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

Port frontend to Svelte 5 and SvelteKit #524

Merged
merged 41 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
cca4338
begin port
aumetra Apr 29, 2024
611cacb
rewrite frontpage
aumetra May 1, 2024
195cf61
add graphql client
aumetra May 1, 2024
b96d25a
add unplugin-icons
aumetra May 1, 2024
995884f
frontpage overhaul
aumetra May 1, 2024
b6db85b
add register functionality
aumetra May 1, 2024
b12dc7d
new layout
vesdev May 5, 2024
8f0d232
format codebase
aumetra May 5, 2024
b83c519
delete old frontend
aumetra Aug 1, 2024
175c4ee
add secondary button style
aumetra Aug 1, 2024
e7c4f76
update deps
aumetra Aug 1, 2024
c0de7bb
fix page builds
aumetra Aug 1, 2024
a4d53e5
migrate eslint
aumetra Aug 1, 2024
603c083
update action
aumetra Aug 1, 2024
52b1988
fix overlay
aumetra Aug 1, 2024
7c964ee
fix colour accessibility in button
aumetra Aug 2, 2024
31dcb92
fix static builds and warnings
aumetra Aug 2, 2024
aba4f9f
Add banner, use svg
aumetra Aug 5, 2024
3a0d845
add graphql interactions
aumetra Aug 5, 2024
1b94892
properly embed version
aumetra Aug 5, 2024
01f4be9
fix some styles
aumetra Aug 6, 2024
fed8602
up
aumetra Aug 6, 2024
0e4e2d3
rm border radius
aumetra Aug 6, 2024
8893335
fix cargo features
aumetra Aug 6, 2024
4752845
add queries
aumetra Aug 6, 2024
b393456
add dialog, finish register
aumetra Aug 7, 2024
797d0ce
add mutation for oauth app register
aumetra Aug 7, 2024
b85579b
rm unused asset
aumetra Aug 7, 2024
0bf5b5a
reformat codebase
aumetra Aug 7, 2024
1adf539
add loading indicator
aumetra Aug 8, 2024
4fdb37d
restructure
aumetra Aug 8, 2024
e4b93cc
add form validation via zod
aumetra Aug 8, 2024
a7fec70
update media query
aumetra Aug 8, 2024
0e5a1db
allow lint
aumetra Aug 9, 2024
fa42aee
up
aumetra Aug 11, 2024
5500f03
oauth progress
aumetra Aug 12, 2024
c20f5d4
Fix warnings
aumetra Aug 28, 2024
d319c23
Merge branch 'main' into svelte5-frontend
aumetra Sep 2, 2024
1c342ac
up
aumetra Sep 2, 2024
be29670
Merge branch 'main' into svelte5-frontend
aumetra Sep 4, 2024
eccb742
fix lints
aumetra Sep 4, 2024
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
42 changes: 24 additions & 18 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build frontend
working-directory: ./kitsune-fe
run: nix develop ..#frontend --command bash -c "yarn && yarn build"
run: nix develop ..#frontend --command bash -c "npm i && npm run build"

lints:
name: Check lints
Expand All @@ -37,16 +40,19 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run linter
working-directory: ./kitsune-fe
run: nix develop ..#frontend --command bash -c "yarn && yarn lint"
run: nix develop ..#frontend --command bash -c "npm i && npm run lint"
Loading
Loading