Remove unusued postprocess

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

View file

@ -11,3 +11,4 @@ node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock
dist/

View file

@ -43,7 +43,7 @@ jobs:
~/node_modules
key: ${{ runner.os }}-webflasher
- name: Install yarn
run: yarn && yarn postinstall
run: yarn
- name: Run linter
run: yarn lint
# - name: Run vitest tests
@ -59,7 +59,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "github-pages"
name: 'github-pages'
path: |
webflasher.tgz
deploy:

View file

@ -2,3 +2,4 @@
pnpm-lock.yaml
package-lock.json
yarn.lock
dist/

View file

@ -1,5 +1,3 @@
{
"i18n-ally.localesPaths": [
"src/lib/i18n"
]
"i18n-ally.localesPaths": ["src/lib/i18n"]
}

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>
@ -62,8 +57,15 @@
<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>
<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>

View file

@ -3,15 +3,11 @@
"builds": [
{
"chipFamily": "ESP32-S2",
"parts": [
{ "path": "/firmwares/lolin_s2_mini_213epd.bin", "offset": 0 }
]
"parts": [{ "path": "/firmwares/lolin_s2_mini_213epd.bin", "offset": 0 }]
},
{
"chipFamily": "ESP32-S3",
"parts": [
{ "path": "/firmwares/lolin_s3_mini_213epd.bin", "offset": 0 }
]
"parts": [{ "path": "/firmwares/lolin_s3_mini_213epd.bin", "offset": 0 }]
}
]
}
}

View file

@ -3,15 +3,11 @@
"builds": [
{
"chipFamily": "ESP32-S2",
"parts": [
{ "path": "lolin_s2_mini_29epd.bin", "offset": 0 }
]
"parts": [{ "path": "lolin_s2_mini_29epd.bin", "offset": 0 }]
},
{
"chipFamily": "ESP32-S3",
"parts": [
{ "path": "lolin_s3_mini_29epd.bin", "offset": 0 }
]
"parts": [{ "path": "lolin_s3_mini_29epd.bin", "offset": 0 }]
}
]
}
}

View file

@ -20,7 +20,7 @@ const config = {
}),
appDir: 'build',
paths: {
base: process.env.NODE_ENV === 'production' ? '/oc-flasher' : '',
base: process.env.NODE_ENV === 'production' ? '/oc-flasher' : ''
}
}
};