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
@ -52,22 +52,22 @@ jobs:
# run: npx playwright install --with-deps
# - name: Run Playwright tests
# run: npx playwright test
- name: Build
- name: Build
run: yarn build
- name: Create tarball
run: tar czf webflasher.tgz --strip-components=1 dist
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "github-pages"
name: 'github-pages'
path: |
webflasher.tgz
deploy:
# Add a dependency to the build job
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

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>
@ -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>

View file

@ -1,17 +1,13 @@
{
"name": "OrangeClock 2.13 inch",
"builds": [
{
"chipFamily": "ESP32-S2",
"parts": [
{ "path": "/firmwares/lolin_s2_mini_213epd.bin", "offset": 0 }
]
},
{
"chipFamily": "ESP32-S3",
"parts": [
{ "path": "/firmwares/lolin_s3_mini_213epd.bin", "offset": 0 }
]
}
]
}
"name": "OrangeClock 2.13 inch",
"builds": [
{
"chipFamily": "ESP32-S2",
"parts": [{ "path": "/firmwares/lolin_s2_mini_213epd.bin", "offset": 0 }]
},
{
"chipFamily": "ESP32-S3",
"parts": [{ "path": "/firmwares/lolin_s3_mini_213epd.bin", "offset": 0 }]
}
]
}

View file

@ -1,17 +1,13 @@
{
"name": "OrangeClock 2.9 inch",
"builds": [
{
"chipFamily": "ESP32-S2",
"parts": [
{ "path": "lolin_s2_mini_29epd.bin", "offset": 0 }
]
},
{
"chipFamily": "ESP32-S3",
"parts": [
{ "path": "lolin_s3_mini_29epd.bin", "offset": 0 }
]
}
]
}
"name": "OrangeClock 2.9 inch",
"builds": [
{
"chipFamily": "ESP32-S2",
"parts": [{ "path": "lolin_s2_mini_29epd.bin", "offset": 0 }]
},
{
"chipFamily": "ESP32-S3",
"parts": [{ "path": "lolin_s3_mini_29epd.bin", "offset": 0 }]
}
]
}

View file

@ -1,14 +1,14 @@
{
"name": "OrangeClock PCB",
"builds": [
{
"chipFamily": "ESP32-S3",
"parts": [
{
"path": "/firmwares/orangeclock_29epd.bin",
"offset": 0
}
]
}
]
}
"name": "OrangeClock PCB",
"builds": [
{
"chipFamily": "ESP32-S3",
"parts": [
{
"path": "/firmwares/orangeclock_29epd.bin",
"offset": 0
}
]
}
]
}

View file

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