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

Draft
wants to merge 33 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7bc0f59
begin port
aumetra Apr 29, 2024
6ee64e0
rewrite frontpage
aumetra May 1, 2024
c404e23
add graphql client
aumetra May 1, 2024
5281b49
add unplugin-icons
aumetra May 1, 2024
2467817
frontpage overhaul
aumetra May 1, 2024
ed0f7c0
add register functionality
aumetra May 1, 2024
baccb70
new layout
vesdev May 5, 2024
1fbce89
format codebase
aumetra May 5, 2024
48960a9
delete old frontend
aumetra Aug 1, 2024
4bb03d3
add secondary button style
aumetra Aug 1, 2024
3c14895
update deps
aumetra Aug 1, 2024
404d7c9
fix page builds
aumetra Aug 1, 2024
f033ec3
migrate eslint
aumetra Aug 1, 2024
4761ac0
update action
aumetra Aug 1, 2024
4039d44
fix overlay
aumetra Aug 1, 2024
e59915a
fix colour accessibility in button
aumetra Aug 2, 2024
0e67a7a
fix static builds and warnings
aumetra Aug 2, 2024
1a225e7
Merge branch 'main' into svelte5-frontend
aumetra Aug 5, 2024
e7d2fc9
Add Forgejo test fixtures
aumetra Aug 5, 2024
d10466e
Merge branch 'main' into svelte5-frontend
aumetra Aug 5, 2024
bde1509
Add banner, use svg
aumetra Aug 5, 2024
3286e30
add graphql interactions
aumetra Aug 5, 2024
2652260
properly embed version
aumetra Aug 5, 2024
da2f973
fix some styles
aumetra Aug 6, 2024
a8183ca
up
aumetra Aug 6, 2024
1c1d29d
rm border radius
aumetra Aug 6, 2024
0516a7d
fix cargo features
aumetra Aug 6, 2024
b0f354c
add queries
aumetra Aug 6, 2024
d306314
add dialog, finish register
aumetra Aug 7, 2024
06b6290
add mutation for oauth app register
aumetra Aug 7, 2024
9eab095
rm unused asset
aumetra Aug 7, 2024
f26c027
reformat codebase
aumetra Aug 7, 2024
4224200
up
aumetra Aug 7, 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