mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-03-01 04:22:08 +00:00
1
src/env.d.ts
vendored
1
src/env.d.ts
vendored
@@ -12,6 +12,7 @@ interface ImportMetaEnv {
|
|||||||
readonly VITE_BUGS_URL: string
|
readonly VITE_BUGS_URL: string
|
||||||
readonly VITE_DOCS_URL: string
|
readonly VITE_DOCS_URL: string
|
||||||
readonly VIET_LEARN_URL: string
|
readonly VIET_LEARN_URL: string
|
||||||
|
readonly VITE_LATEST_FIRMWARE: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ImportMeta {
|
interface ImportMeta {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
import {slide, fade} from "svelte/transition"
|
import {slide, fade} from "svelte/transition"
|
||||||
import {preference} from "$lib/preferences"
|
import {preference} from "$lib/preferences"
|
||||||
import LL from "../i18n/i18n-svelte"
|
import LL from "../i18n/i18n-svelte"
|
||||||
|
import Tooltip from "$lib/components/Tooltip.svelte"
|
||||||
|
|
||||||
function reboot() {
|
function reboot() {
|
||||||
$serialPort?.reboot()
|
$serialPort?.reboot()
|
||||||
@@ -51,6 +52,11 @@
|
|||||||
<br />
|
<br />
|
||||||
Version {$serialPort.version}
|
Version {$serialPort.version}
|
||||||
</p>
|
</p>
|
||||||
|
{#if $serialPort.version.toString() !== import.meta.env.VITE_LATEST_FIRMWARE}
|
||||||
|
<a href="https://docs.charachorder.com/CharaChorder%20One.html#updating-the-firmware"
|
||||||
|
>Firmware Update Instructions</a
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
<!--<button on:click={updateFirmware}>Update</button>-->
|
<!--<button on:click={updateFirmware}>Update</button>-->
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ process.env.VITE_HOMEPAGE_URL = repository.url.replace(/\.git$/, "")
|
|||||||
process.env.VITE_DOCS_URL = homepage
|
process.env.VITE_DOCS_URL = homepage
|
||||||
process.env.VITE_BUGS_URL = bugs.url
|
process.env.VITE_BUGS_URL = bugs.url
|
||||||
process.env.VITE_LEARN_URL = "https://www.iq-eq.io/"
|
process.env.VITE_LEARN_URL = "https://www.iq-eq.io/"
|
||||||
|
process.env.VITE_LATEST_FIRMWARE = "1.1.3"
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
|
|||||||
Reference in New Issue
Block a user