mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-11 13:26:16 +00:00
fix: PWA fixes
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
</script>
|
||||
|
||||
{#if $needRefresh}
|
||||
<button title="Update ready" class="icon" on:click={() => updateServiceWorker(true)}>update</button>
|
||||
<button title="Update ready" on:click={() => updateServiceWorker(true)}
|
||||
>Update <span class="icon">update</span></button
|
||||
>
|
||||
{:else if $offlineReady}
|
||||
<div title="App can now be used offline" class="icon">offline_pin</div>
|
||||
{/if}
|
||||
|
||||
@@ -43,17 +43,17 @@
|
||||
</li>
|
||||
<li>
|
||||
<a href={import.meta.env.VITE_BUGS_URL} rel="noreferrer" target="_blank"
|
||||
><span class="icon">bug_report</span> File an issue</a
|
||||
><span class="icon">bug_report</span> Issues</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a href={import.meta.env.VITE_DOCS_URL} rel="noreferrer" target="_blank"
|
||||
><span class="icon">description</span> Read the docs</a
|
||||
><span class="icon">description</span> Docs</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a href={import.meta.env.VITE_LEARN_URL} rel="noreferrer" target="_blank"
|
||||
><span class="icon">school</span> Training</a
|
||||
><span class="icon">school</span> Train</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -10,7 +10,7 @@ const {version} = JSON.parse(await readFile(fileURLToPath(new URL("package.json"
|
||||
const config = {
|
||||
preprocess: [preprocess({postcss: {plugins: autoprefixer()}})],
|
||||
kit: {
|
||||
adapter: adapter(),
|
||||
adapter: adapter({fallback: "404.html"}),
|
||||
version: {
|
||||
name: version,
|
||||
},
|
||||
|
||||
@@ -45,8 +45,8 @@ export default defineConfig({
|
||||
globPatterns: ["**/*.{js,css,html,woff2,json,csv,png,svg}"],
|
||||
},
|
||||
manifest: {
|
||||
name: "dot i/o",
|
||||
id: "dot_io_v2",
|
||||
name: "CharaChorder Device Manager",
|
||||
id: "charchorder-device-manager",
|
||||
theme_color: themeColor,
|
||||
icons: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user