mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
api/pages : add pages api
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
a55acd0200
commit
1e02211e96
3 changed files with 15 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,4 +2,5 @@ _*.css
|
||||||
node_modules/
|
node_modules/
|
||||||
*.min.*
|
*.min.*
|
||||||
/api/apis.json
|
/api/apis.json
|
||||||
|
/api/pages.json
|
||||||
/api_hash
|
/api_hash
|
||||||
|
|
6
TODO.md
6
TODO.md
|
@ -5,14 +5,16 @@
|
||||||
- [x] Store files in IndexedDB
|
- [x] Store files in IndexedDB
|
||||||
- [Overly complex API, i dont want to deliver this much JS, i already deliver quite a package](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
|
- [Overly complex API, i dont want to deliver this much JS, i already deliver quite a package](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
|
||||||
- [x] Export/Import
|
- [x] Export/Import
|
||||||
- [ ] Python code runner
|
- [x] Python code runner
|
||||||
|
- `terminal` branch is not being worked on anymore
|
||||||
- [x] Minimal UI framework
|
- [x] Minimal UI framework
|
||||||
- [x] Convert some of the pages to use that framework
|
- [x] Convert some of the pages to use that framework
|
||||||
- Stupid idea ngl
|
- Stupid idea ngl
|
||||||
- [x] WASM
|
- [x] WASM
|
||||||
- Fun challenge, but will ruin browser support, although keeping this idea for some commands :)
|
- Fun challenge, but will ruin browser support, although keeping this idea for some commands :)
|
||||||
- [ ] Custom ari-web assembler ?
|
- [x] Custom ari-web assembler ?
|
||||||
- Ari-web ASM -> (WAT ?) -> WASM -> run
|
- Ari-web ASM -> (WAT ?) -> WASM -> run
|
||||||
|
- `terminal` branch is not being worked on anymore
|
||||||
- [ ] More theme generators
|
- [ ] More theme generators
|
||||||
- [ ] ViM themes
|
- [ ] ViM themes
|
||||||
- [ ] Suckless themes
|
- [ ] Suckless themes
|
||||||
|
|
|
@ -9,11 +9,19 @@ mkdata() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
printf ' * %s... ' 'Generating pages api'
|
||||||
|
|
||||||
|
{
|
||||||
|
printf '%s' '['
|
||||||
|
for page in page/*; do
|
||||||
|
echo "$page" | mkdata | sed 's/,$//'
|
||||||
|
done
|
||||||
|
echo ']'
|
||||||
|
} >api/pages.json
|
||||||
|
|
||||||
printf ' * %s... ' 'Generating api list'
|
printf ' * %s... ' 'Generating api list'
|
||||||
apis='api/apis.json'
|
apis='api/apis.json'
|
||||||
|
|
||||||
: >"$apis"
|
|
||||||
|
|
||||||
# shellcheck disable=SC2094
|
# shellcheck disable=SC2094
|
||||||
{
|
{
|
||||||
printf '%s' '['
|
printf '%s' '['
|
||||||
|
|
Loading…
Add table
Reference in a new issue