Remove unusued postprocess

This commit is contained in:
Djuri 2024-03-30 15:26:44 +01:00
parent 746001d3f3
commit b1d9ab3c53
11 changed files with 75 additions and 95 deletions

View file

@ -1,5 +1,5 @@
import { browser } from '$app/environment';
import { init, register } from 'svelte-i18n';
import { init } from 'svelte-i18n';
const defaultLocale = 'en';

View file

@ -1,19 +1,7 @@
<script lang="ts">
import {
Collapse,
Dropdown,
DropdownItem,
DropdownMenu,
DropdownToggle,
Nav,
NavItem,
NavLink,
Navbar,
NavbarBrand
} from '@sveltestrap/sveltestrap';
import { Collapse, Nav, NavItem, Navbar, NavbarBrand } from '@sveltestrap/sveltestrap';
import { page } from '$app/stores';
import { locale, locales, isLoading } from 'svelte-i18n';
import { locale, locales } from 'svelte-i18n';
export const setLocale = (lang: string) => () => {
locale.set(lang);
@ -57,9 +45,7 @@
</NavbarBrand>
<Collapse navbar expand="md">
<Nav class="me-auto" navbar>
<NavItem>
WebFlasher
</NavItem>
<NavItem>WebFlasher</NavItem>
</Nav>
</Collapse>
</Navbar>

View file

@ -7,18 +7,13 @@
Card,
CardHeader,
CardTitle,
CardSubtitle,
CardFooter,
CardBody,
Button,
CardText,
Row
} from '@sveltestrap/sveltestrap';
// import Settings from './Settings.svelte';
// import Status from './Status.svelte';
// import Control from './Control.svelte';
import { onDestroy, onMount } from 'svelte';
import { writable } from 'svelte/store';
</script>
<svelte:head>
@ -37,12 +32,12 @@
<CardTitle>Wemos S2/S3 mini</CardTitle>
</CardHeader>
<CardBody>
<esp-web-install-button manifest="/manifests/epd2_13.json">
<span slot="activate"><Button color="primary">2.13 inch</Button></span>
</esp-web-install-button>
<esp-web-install-button manifest="/manifests/epd2_13.json">
<span slot="activate"><Button color="primary">2.13 inch</Button></span>
</esp-web-install-button>
<esp-web-install-button manifest="/manifests/epd2_9.json">
<span slot="activate"><Button color="secondary">2.9 inch</Button></span>
</esp-web-install-button>
<span slot="activate"><Button color="secondary">2.9 inch</Button></span>
</esp-web-install-button>
</CardBody>
</Card>
</Col>
@ -52,18 +47,25 @@
<CardTitle>OrangeClock PCB</CardTitle>
</CardHeader>
<CardBody>
<esp-web-install-button manifest="/manifests/oc_pcb.json">
<span slot="activate"><Button color="secondary">2.9 inch</Button></span>
</esp-web-install-button>
</CardBody>
<esp-web-install-button manifest="/manifests/oc_pcb.json">
<span slot="activate"><Button color="secondary">2.9 inch</Button></span>
</esp-web-install-button>
</CardBody>
</Card>
</Col>
</Row>
<Row>
<Col>
<h1>How it works</h1>
<p>ESP Web Tools works by using Web Serial and a manifest which describes the firmware. ESP Web Tools detects the chipset of the connected ESP device and automatically selects the right firmware variant from the manifest.</p>
<p>Web Serial is available in Google Chrome and Microsoft Edge browsers. Android support should be possible but has not been implemented yet.</p>
</Col>
</Row>
<Row>
<Col>
<h1>How it works</h1>
<p>
ESP Web Tools works by using Web Serial and a manifest which describes the firmware. ESP Web
Tools detects the chipset of the connected ESP device and automatically selects the right
firmware variant from the manifest.
</p>
<p>
Web Serial is available in Google Chrome and Microsoft Edge browsers. Android support should
be possible but has not been implemented yet.
</p>
</Col>
</Row>
</Container>