Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gleam frontend to get up to date with typescript one. #47

Draft
wants to merge 74 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
4d9bfe4
I think this list is pretty much complete?
strawmelonjuice Nov 19, 2024
9f8b1c8
Fixed some lingual errors
strawmelonjuice Nov 19, 2024
2334953
Sync the page definitions w the typescript version
strawmelonjuice Nov 19, 2024
9e10f3f
Ignore that line (bun runs the tests, so it not existing is solved)
strawmelonjuice Nov 20, 2024
2b3be88
Remove this comment, as the decoder has already been written.
strawmelonjuice Nov 20, 2024
32adb69
Upgrade ffi from js to ts
strawmelonjuice Nov 20, 2024
7e99d46
Re-enable those sourcemaps, even though they're inspecific.
strawmelonjuice Nov 20, 2024
e0f61fc
Link prelude for gleam ffi dev
strawmelonjuice Nov 21, 2024
19b09fe
work on the FEJSON-functions
strawmelonjuice Nov 21, 2024
2aaf20a
Order
strawmelonjuice Nov 21, 2024
054c335
We are making progress
strawmelonjuice Nov 22, 2024
8af5109
rename generic ffi module to specific ffi module
strawmelonjuice Nov 22, 2024
7c01c2a
Add element actions module
strawmelonjuice Nov 22, 2024
668397d
Block comment for copyright header
strawmelonjuice Nov 22, 2024
3d2c47f
And its usage
strawmelonjuice Nov 22, 2024
6823d22
THROW THOSE
strawmelonjuice Nov 22, 2024
075cfff
Bruh, gleam compiler does not recognise mts
strawmelonjuice Nov 22, 2024
d254adf
Fix package json
strawmelonjuice Nov 23, 2024
3858133
Had to debug the backend for sending/receiving credentials
strawmelonjuice Nov 23, 2024
7619fe5
Now able to send credentials to fe api
strawmelonjuice Nov 23, 2024
eb0de41
SUUUREE... https is the default... ugh
strawmelonjuice Nov 23, 2024
8888bfa
Always return errorvalue
strawmelonjuice Nov 25, 2024
f36f60a
Seem to have finished the login module
strawmelonjuice Nov 25, 2024
33c062e
Update todo
strawmelonjuice Nov 25, 2024
fab0359
Convert formdata.encode to edit a request by itself
strawmelonjuice Nov 25, 2024
2a1444f
Add mobile nav enhancements to todo
strawmelonjuice Nov 25, 2024
f01ee2e
Format
strawmelonjuice Nov 25, 2024
b4c4395
Add @types/bun
strawmelonjuice Nov 25, 2024
ea0dc75
consolidating node_modules patterns
strawmelonjuice Nov 25, 2024
0fa1f21
Remove io import
strawmelonjuice Nov 25, 2024
81db14a
Improve the session handling function name and structure
strawmelonjuice Nov 25, 2024
5d1a7fa
add a module header
strawmelonjuice Nov 25, 2024
a554935
let bun do the symlinking
strawmelonjuice Nov 25, 2024
49aa9dc
Don't let that error slow you down.
strawmelonjuice Nov 25, 2024
f17a76a
eww get out!
strawmelonjuice Nov 25, 2024
1140729
Move nodemon config to nodemon.json
strawmelonjuice Nov 25, 2024
9c10411
Implement queue limit to FEJson fn queue
strawmelonjuice Nov 26, 2024
e14c28e
Got this mainly usable
strawmelonjuice Nov 26, 2024
486daf7
Update todo
strawmelonjuice Nov 26, 2024
8f7c3c4
Remove lousy space
strawmelonjuice Nov 27, 2024
5492635
Slow down fejson fns
strawmelonjuice Nov 27, 2024
786914b
Just commenting this in so I can go to sleep knowing I won't mess up …
strawmelonjuice Nov 27, 2024
bf4af9b
Update gleamy_lights (#50) (#51)
strawmelonjuice Nov 27, 2024
a30b7f3
Expand element actions with hiding and viewing
strawmelonjuice Nov 28, 2024
73c9363
Woo, mobile menu'ing
strawmelonjuice Nov 29, 2024
c8cf97e
Why the heck?
strawmelonjuice Nov 29, 2024
c7be821
Uh?
strawmelonjuice Nov 29, 2024
ee7cd30
Register some FEJsonFN's
strawmelonjuice Nov 29, 2024
e4c1c01
I think the next thing I do will be in this file
strawmelonjuice Nov 30, 2024
e8d4c48
Minor spelling mistake
strawmelonjuice Dec 2, 2024
b0190b8
Turn those to shareds
strawmelonjuice Dec 3, 2024
eb2b662
For today
strawmelonjuice Dec 6, 2024
903fc01
taking out the minify until pull
strawmelonjuice Dec 29, 2024
928b7c9
I am not finished but battery power threathens me
strawmelonjuice Dec 29, 2024
40c4410
update the dc
strawmelonjuice Dec 30, 2024
e630f54
update the dc
strawmelonjuice Dec 30, 2024
4cac39c
...
strawmelonjuice Dec 30, 2024
b8a19f6
Add Rust backend back in
strawmelonjuice Dec 30, 2024
902326f
Makin' it work, kinda
strawmelonjuice Dec 31, 2024
9d882ea
Allow any subcommand
strawmelonjuice Dec 31, 2024
2aa0ea2
switch to RC
strawmelonjuice Dec 31, 2024
f23ffb8
Always return errorvalue, even if empty
strawmelonjuice Dec 31, 2024
324f86a
fmt
strawmelonjuice Dec 31, 2024
c6176d8
catch both
strawmelonjuice Dec 31, 2024
71b71ac
Switch to JSON encoding
strawmelonjuice Dec 31, 2024
622f4cb
fmt
strawmelonjuice Dec 31, 2024
db85df7
fix dat
strawmelonjuice Dec 31, 2024
d833190
And that required pprint!
strawmelonjuice Dec 31, 2024
aef562c
slowly putting lustre into the frontend where it probably should have…
strawmelonjuice Jan 1, 2025
8dcc061
Add mod comment to media
strawmelonjuice Jan 2, 2025
236a66e
do Array to List conversion in Gleam instead of JS
strawmelonjuice Jan 2, 2025
654a334
Getting some communication errors out of the way
strawmelonjuice Jan 2, 2025
0c3cc12
Hey svg
strawmelonjuice Jan 3, 2025
eaccb5c
enable username check
strawmelonjuice Jan 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers-extra/features/gleam:1": {},
"ghcr.io/prulloac/devcontainer-features/bun:1": {},
"ghcr.io/itsmechlark/features/postgresql:1": {}
}
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers-extra/features/gleam:1": {
"version": "v1.7.0-rc2"
},
"ghcr.io/devcontainers/features/rust:1": {
"version": "latest"
},
"ghcr.io/itsmechlark/features/postgresql:1": {
"version": "latest"
},
"ghcr.io/lumenpink/devcontainer-features/bun:0": {},
"ghcr.io/devcontainers-extra/features/asdf-package:1": {
"plugin": "erlang",
"version": "latest",
"pluginRepo": "https://github.com/asdf-vm/asdf-erlang.git"
}
},
"customizations": {
"vscode": {
"extensions": [
"gleam.gleam",
"ms-ossdata.vscode-postgresql",
"rust-lang.rust-analyzer",
"Yasuo-Higano.gleam-qol"
]
}
}
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

* text=auto
*.svg linguist-detectable
51 changes: 26 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
name: tests
on:
push:
branches:
- master
- main
pull_request:
push:
branches:
- master
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.4.1"
rebar3-version: "3"
# elixir-version: "1.15.4"
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.1.30"
- run: bash ./build.sh --test
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.4.1"
rebar3-version: "3"
# elixir-version: "1.15.4"
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.1.30"
# For now at least.
- run: bash ./build.sh --test --backend=gleam
16 changes: 12 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
*.beam
*.ez
/target/

# Ignore Gleam backend build artifacts
backend/build
backend/priv/generated

# Ignore Rust backend build artifacts
backend-rs/target
backend-rs/generated

# Ignore Gleam frontend build artifacts
frontend/prelude.mjs

erl_crash.dump
/test
*.log
frontend-ts/node_modules/
frontend/node_modules/
backend/node_modules/
node_modules
package-lock.json
rsffi/target
rsffi/test
node_modules
strawmelonjuice marked this conversation as resolved.
Show resolved Hide resolved
# Ignore Editor files
.idea/
.vscode/

node_modules
Loading
Loading