Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
55dfb9f
add svelte clerk
ingoau Jun 18, 2025
db290e0
wrap with clerkprovider
ingoau Jun 18, 2025
fcc5aac
fix env thing
ingoau Jun 18, 2025
778c0fb
add account buttons
ingoau Jun 18, 2025
46ce821
put api key in code very good practice
ingoau Jun 18, 2025
ddb6130
add clerk themes
ingoau Jun 18, 2025
c34e877
style buttons a bit
ingoau Jun 18, 2025
78294f1
add custom auth section
ingoau Jun 18, 2025
c2598cd
add avatar
ingoau Jun 18, 2025
d674b81
add sign in and sign out buttons
ingoau Jun 18, 2025
8171014
add signed in menu items
ingoau Jun 18, 2025
ce20a8d
move sidebar auth to seperate file
ingoau Jun 18, 2025
d7cc53f
add loading state
ingoau Jun 18, 2025
f2849d2
add notice about ingo.au
ingoau Jun 18, 2025
16ef679
change back to test key
ingoau Jun 18, 2025
a7ed05c
allow localhost
ingoau Jun 18, 2025
aad6de1
convex time
ingoau Jun 18, 2025
b3baada
add identify componenet
ingoau Jun 18, 2025
9f78f38
reset posthog
ingoau Jun 18, 2025
b4f5a73
change email method
ingoau Jun 18, 2025
a23cc3a
send all clerk user info to posthog
ingoau Jun 18, 2025
d0fb89f
send clerk user id
ingoau Jun 18, 2025
612d62b
Merge branch 'main' into 331-account-system
ingoau Jun 19, 2025
4b59e4d
Merge branch 'main' into 331-account-system
ingoau Jun 27, 2025
e453edc
merge
ingoau Jul 4, 2025
aa7fae7
change lockfile
ingoau Jul 4, 2025
738cccb
install convex
ingoau Jul 4, 2025
265e31e
add convex config
ingoau Jul 4, 2025
51edd59
init convex
ingoau Jul 4, 2025
9478794
add db schema
ingoau Jul 4, 2025
e635591
add userid to backups
ingoau Jul 4, 2025
32457fe
add dummy function for backups
ingoau Jul 4, 2025
63d6634
add convex
ingoau Jul 4, 2025
9d3cfce
add test backusp
ingoau Jul 4, 2025
7ece7f1
add clerk backend
ingoau Jul 4, 2025
5aeb836
add jwt
ingoau Jul 4, 2025
31f69c9
add types for jwt
ingoau Jul 4, 2025
1a62877
Prettified Code!
Jul 4, 2025
298016c
add authorization
ingoau Jul 14, 2025
343a267
Merge branch '331-account-system' of https://github.com/EducationalTo…
ingoau Jul 14, 2025
4ae84f9
update convex stuff
ingoau Jul 14, 2025
828e0e1
Prettified Code!
Jul 14, 2025
5a0bc4c
return blank array if jwt not exits
ingoau Jul 14, 2025
7b0f13c
return more data
ingoau Jul 14, 2025
ccb0e2c
show backups in grid
ingoau Jul 14, 2025
87df035
only show backups when signed in
ingoau Jul 14, 2025
c4f7f05
add max width
ingoau Jul 14, 2025
ae141d0
add dayjs
ingoau Jul 14, 2025
bbaa1d7
show date on backups
ingoau Jul 14, 2025
b490f92
use a card
ingoau Jul 14, 2025
22b940a
make delete destructive
ingoau Jul 14, 2025
d13ea63
add card to create backup
ingoau Jul 14, 2025
55c59d6
add backup create
ingoau Jul 14, 2025
59d223e
delete return
ingoau Jul 14, 2025
78b9b6e
Merge branch '331-account-system' of https://github.com/EducationalTo…
ingoau Jul 14, 2025
18a2a76
convex undoes prettiers work :)
ingoau Jul 14, 2025
71c35b2
ignore generated by convex files
ingoau Jul 14, 2025
a115b9d
Prettified Code!
Jul 14, 2025
de88654
add loading state
ingoau Jul 14, 2025
a666709
remove creation time
ingoau Jul 14, 2025
b260b91
delete space
ingoau Jul 14, 2025
34c8eb8
add backup create logic
ingoau Jul 14, 2025
bbb601a
add success toast
ingoau Jul 14, 2025
ada9a10
Merge branch '331-account-system' of https://github.com/EducationalTo…
ingoau Jul 14, 2025
9d13008
ignore convex.json from prettier
ingoau Jul 14, 2025
f3823f2
shwo dialogs on delete or restore
ingoau Jul 14, 2025
cfbec13
send backup id
ingoau Jul 14, 2025
50ae989
order backups desc
ingoau Jul 14, 2025
3818f32
add remove backup function
ingoau Jul 14, 2025
928b850
make delete backup button do soemthign
ingoau Jul 14, 2025
fac69f3
add backup component
ingoau Jul 14, 2025
8dad25a
complete move to component
ingoau Jul 14, 2025
06c2e54
close dialog when deleted
ingoau Jul 14, 2025
d6f5ad1
add deleting state and show toast when deleted
ingoau Jul 14, 2025
bbcc501
remove deleting state
ingoau Jul 14, 2025
9030438
add createbackup function
ingoau Jul 14, 2025
2ae1589
get data for backup
ingoau Jul 14, 2025
7da36e8
show error whwne delete fails
ingoau Jul 14, 2025
6ec9b19
remove error toast
ingoau Jul 14, 2025
1ac526b
add refreshtoken function
ingoau Jul 14, 2025
fc9c349
use refreshtoken function
ingoau Jul 14, 2025
b21e134
refresh token before create
ingoau Jul 14, 2025
1b28fd1
refresh token in backup componenet
ingoau Jul 14, 2025
1372473
do some typescript stuff
ingoau Jul 14, 2025
1ebbab4
remove something went wrong if ctx.session is undefined
ingoau Jul 14, 2025
9ecbddb
add loading dialog
ingoau Jul 14, 2025
950d856
fix loading state on backup component
ingoau Jul 14, 2025
ccad262
wrap everything
ingoau Jul 14, 2025
b7a5bc5
add import box
ingoau Jul 14, 2025
30897b6
add code to restore backup
ingoau Jul 14, 2025
e9b618e
allow defualt prefs to be overridden by backup data
ingoau Jul 14, 2025
4601b4f
add restore backup
ingoau Jul 14, 2025
64c9489
add copy button and change to icons
ingoau Jul 14, 2025
4e23b7d
use @lucide/svelte everywhere
ingoau Jul 14, 2025
7f8e0ff
add tip and change capitiisation
ingoau Jul 14, 2025
06f369d
only show tip when signed out
ingoau Jul 14, 2025
a8e511a
remove lucide installed twice??
ingoau Jul 14, 2025
2851b6d
Prettified Code!
Jul 14, 2025
acebef2
add backups to menu
ingoau Jul 14, 2025
7411a3e
show sign up dialog after sso
ingoau Jul 14, 2025
926a662
try and fix
ingoau Jul 14, 2025
7d657d3
use redirect rather than dialog
ingoau Jul 14, 2025
7d69d0f
Merge branch '331-account-system' of https://github.com/EducationalTo…
ingoau Jul 14, 2025
422653c
dont restore if no data
ingoau Jul 14, 2025
e19cd78
add title
ingoau Jul 14, 2025
54f4f6d
add backup restore button
ingoau Jul 14, 2025
311e198
fix issue and update
ingoau Jul 14, 2025
d5ddef3
disable backup button when length is 0
ingoau Jul 14, 2025
6134fd4
fix
ingoau Jul 14, 2025
ce24d4c
add google one tap (might work)
ingoau Jul 14, 2025
1bfcf60
fix icon input
ingoau Jul 14, 2025
133cb37
add filtering to createbackup
ingoau Jul 14, 2025
e24ec92
set restrictions on deleting storage
ingoau Jul 14, 2025
3cc1f24
add posthog reset and better error handlinga
ingoau Jul 14, 2025
4f62074
use env var
ingoau Jul 14, 2025
cb1c098
change date format
ingoau Jul 14, 2025
bf97082
Refactor JWT verification into shared helper function
ingoau Jul 14, 2025
521eb33
Improve backup deletion with async/await and error handling
ingoau Jul 14, 2025
e8bd44e
Fix cookie deletion to skip malformed cookies without '='
ingoau Jul 14, 2025
eb67c3a
Handle errors when decoding or parsing backup data
ingoau Jul 14, 2025
57803de
Remove debug console.log statements from restoreBackup
ingoau Jul 14, 2025
c8084ea
Use $page.url.hostname instead of location.hostname
ingoau Jul 14, 2025
89bf36c
Handle errors during backup creation and log failures
ingoau Jul 14, 2025
1aa1e82
add secrets to workflow
ingoau Jul 15, 2025
f28101d
add env vars in more places
ingoau Jul 15, 2025
d9b6615
what could go wrong
ingoau Jul 15, 2025
337e778
Merge branch 'main' into 331-account-system
ingoau Jul 15, 2025
6713763
Merge pull request #402 from EducationalTools/331-account-system
ingoau Jul 15, 2025
2d01080
fix issue
ingoau Jul 16, 2025
3c015c8
Merge pull request #407 from EducationalTools/331-account-system
ingoau Jul 16, 2025
b8dcd16
Bump bits-ui from 2.8.0 to 2.8.11
dependabot[bot] Jul 16, 2025
b445e77
Merge pull request #404 from EducationalTools/dependabot/npm_and_yarn…
ingoau Jul 16, 2025
9b5240d
Update index.html
ingoau Jul 16, 2025
87de6ff
Merge pull request #409 from EducationalTools/395-update-pedal-to-the…
ingoau Jul 16, 2025
3cff618
add events to play page
ingoau Jul 16, 2025
9b1773c
add another event for onmount
ingoau Jul 16, 2025
578ff34
add settings change event
ingoau Jul 16, 2025
94efb99
add events for backups
ingoau Jul 16, 2025
2eea2a1
add sidebar toggle event why not
ingoau Jul 16, 2025
ca1e106
add search event
ingoau Jul 16, 2025
0e3a56e
Merge pull request #410 from EducationalTools/384-more-analytics
ingoau Jul 16, 2025
e8df2a6
close... thanks coderabbit
ingoau Jul 16, 2025
44e3e89
Remove redundant public key check in JWT verification
ingoau Jul 16, 2025
f5099ec
Check session before fetching token in backups page
ingoau Jul 16, 2025
11a7e97
Show error toast on backup creation failure
ingoau Jul 16, 2025
ce9f962
update
ingoau Jul 16, 2025
6a28b24
Use secrets for env vars in GitHub Actions workflows
ingoau Jul 16, 2025
c3c14f8
delete pnpm workspace file
ingoau Jul 16, 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
3 changes: 3 additions & 0 deletions .github/workflows/beta_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
run: pnpm install && pnpm install -g firebase-tools

- name: Build
env:
PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.PUBLIC_CLERK_PUBLISHABLE_KEY }}
PUBLIC_CONVEX_URL: ${{ secrets.PUBLIC_CONVEX_URL }}
run: |
pnpm run build

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ jobs:
pnpm install

- name: Build
env:
PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.PUBLIC_CLERK_PUBLISHABLE_KEY }}
PUBLIC_CONVEX_URL: ${{ secrets.PUBLIC_CONVEX_URL }}
run: |
pnpm run build
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
run: pnpm install && pnpm install -g firebase-tools

- name: Build
env:
PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.PUBLIC_CLERK_PUBLISHABLE_KEY }}
PUBLIC_CONVEX_URL: ${{ secrets.PUBLIC_CONVEX_URL }}
run: |
pnpm run build

Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
package-lock.json
pnpm-lock.yaml
yarn.lock
static/_app/tools
static/_app/tools
src/convex/_generated
convex.json
3 changes: 3 additions & 0 deletions convex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"functions": "src/convex/"
}
38 changes: 23 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,44 +15,52 @@
},
"devDependencies": {
"@internationalized/date": "^3.8.2",
"@lucide/svelte": "^0.515.0",
"@sveltejs/adapter-auto": "^6.0.1",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.22.0",
"@sveltejs/vite-plugin-svelte": "^5.1.0",
"@sveltejs/kit": "^2.24.0",
"@sveltejs/vite-plugin-svelte": "^5.1.1",
"@tailwindcss/typography": "^0.5.16",
"@tailwindcss/vite": "^4.1.10",
"@tailwindcss/vite": "^4.1.11",
"@tanstack/table-core": "^8.21.3",
"@types/jsonwebtoken": "^9.0.10",
"@types/md5": "^2.3.5",
"autoprefixer": "^10.4.21",
"bits-ui": "2.8.0",
"bits-ui": "2.8.11",
"clsx": "^2.1.1",
"embla-carousel-svelte": "^8.6.0",
"layerchart": "2.0.0-next.24",
"lucide-svelte": "^0.516.0",
"mode-watcher": "^1.0.8",
"mode-watcher": "^1.1.0",
"paneforge": "1.0.0-next.5",
"prettier": "^3.6.0",
"prettier": "^3.6.2",
"prettier-plugin-svelte": "^3.4.0",
"prettier-plugin-tailwindcss": "^0.6.12",
"svelte": "^5.34.3",
"svelte-check": "^4.2.1",
"prettier-plugin-tailwindcss": "^0.6.14",
"svelte": "^5.36.2",
"svelte-check": "^4.2.2",
"svelte-sonner": "^1.0.5",
"sveltekit-superforms": "^2.27.0",
"sveltekit-superforms": "^2.27.1",
"tailwind-merge": "^3.3.1",
"tailwind-variants": "^1.0.0",
"tailwindcss": "^4.1.10",
"tw-animate-css": "^1.3.4",
"tailwindcss": "^4.1.11",
"tw-animate-css": "^1.3.5",
"typescript": "^5.8.3",
"vaul-svelte": "1.0.0-next.7",
"vite": "^6.3.5"
},
"dependencies": {
"@clerk/backend": "^2.4.3",
"@clerk/themes": "^2.3.0",
"@friendofsvelte/tipex": "0.0.7",
"@lucide/svelte": "^0.525.0",
"@tanstack/match-sorter-utils": "^8.19.4",
"convex": "^1.25.4",
"convex-svelte": "^0.0.11",
"dayjs": "^1.11.13",
"formsnap": "^2.0.1",
"jose": "^6.0.12",
"jsonwebtoken": "^9.0.2",
"md5": "^2.3.0",
"posthog-js": "^1.255.1",
"posthog-js": "^1.257.0",
"svelte-clerk": "^0.13.4",
"svelte-persisted-store": "^0.12.0"
}
}
Loading