mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-05 09:32:53 +00:00
fix: PWA fixes
This commit is contained in:
@@ -5,7 +5,9 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $needRefresh}
|
{#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}
|
{:else if $offlineReady}
|
||||||
<div title="App can now be used offline" class="icon">offline_pin</div>
|
<div title="App can now be used offline" class="icon">offline_pin</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -43,17 +43,17 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href={import.meta.env.VITE_BUGS_URL} rel="noreferrer" target="_blank"
|
<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>
|
||||||
<li>
|
<li>
|
||||||
<a href={import.meta.env.VITE_DOCS_URL} rel="noreferrer" target="_blank"
|
<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>
|
||||||
<li>
|
<li>
|
||||||
<a href={import.meta.env.VITE_LEARN_URL} rel="noreferrer" target="_blank"
|
<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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const {version} = JSON.parse(await readFile(fileURLToPath(new URL("package.json"
|
|||||||
const config = {
|
const config = {
|
||||||
preprocess: [preprocess({postcss: {plugins: autoprefixer()}})],
|
preprocess: [preprocess({postcss: {plugins: autoprefixer()}})],
|
||||||
kit: {
|
kit: {
|
||||||
adapter: adapter(),
|
adapter: adapter({fallback: "404.html"}),
|
||||||
version: {
|
version: {
|
||||||
name: version,
|
name: version,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ export default defineConfig({
|
|||||||
globPatterns: ["**/*.{js,css,html,woff2,json,csv,png,svg}"],
|
globPatterns: ["**/*.{js,css,html,woff2,json,csv,png,svg}"],
|
||||||
},
|
},
|
||||||
manifest: {
|
manifest: {
|
||||||
name: "dot i/o",
|
name: "CharaChorder Device Manager",
|
||||||
id: "dot_io_v2",
|
id: "charchorder-device-manager",
|
||||||
theme_color: themeColor,
|
theme_color: themeColor,
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user