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

migrate from sveltekit -> nextjs #240

Merged
merged 143 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
ca3d8bf
Initial commit from Create Next App
dromzeh Jul 18, 2023
d8531a6
feat: Prettier, contentlayer, shadcn/ui setup
dromzeh Jul 18, 2023
1bc7186
prettier check (+workflow)
dromzeh Jul 18, 2023
2e95a86
update shadcn/ui config
dromzeh Jul 18, 2023
2368868
`/asset/[id]`, `/user/[name]` api reqs
dromzeh Jul 18, 2023
6ba1e97
asset & contributor interfaces
dromzeh Jul 18, 2023
af83efe
user interface, initialize i18n submodule
dromzeh Jul 18, 2023
e28ab90
pass in asset and user interfaces
dromzeh Jul 18, 2023
b7d91d6
init currently useless search route
dromzeh Jul 18, 2023
9e2b9f7
pass query params into /search
dromzeh Jul 18, 2023
71553e3
authprovider wrapper & nextauth credentials setup
dromzeh Jul 18, 2023
92789ee
register api route, uuidv4 generation
dromzeh Jul 18, 2023
ecffa97
typecheck workflow
dromzeh Jul 18, 2023
7baab87
husky pre commit hook, init nav & auth pages
dromzeh Jul 18, 2023
ca4935a
assetitem component & migrate helper functions
dromzeh Jul 18, 2023
e4b776c
search w/ games && asset categories && query
dromzeh Jul 19, 2023
13c7583
move asset search handler into its own component
dromzeh Jul 19, 2023
74a202e
move asset filters into their own components
dromzeh Jul 19, 2023
ffa9c93
game filtering dropdown 🤤💯💯
dromzeh Jul 19, 2023
e0348c0
recreate category filter to match games
dromzeh Jul 19, 2023
29d9066
init auth pages, upd schema & components
dromzeh Jul 19, 2023
d6f9687
help
dromzeh Jul 19, 2023
7591e07
fix casing skull emoji
dromzeh Jul 19, 2023
3981bed
feat: user dropdown
dromzeh Jul 19, 2023
0a68fa2
`assetsContainer` to store assets grid
dromzeh Jul 19, 2023
3f69680
update satoshi.css import
dromzeh Jul 19, 2023
f239962
update styling fr
dromzeh Jul 19, 2023
ac20423
janky create account logic
dromzeh Jul 19, 2023
780810d
never again (fix auth)
dromzeh Jul 20, 2023
e2e503c
boring legal stuff
dromzeh Jul 20, 2023
ae9b133
update `.env.example`
dromzeh Jul 20, 2023
3eae831
clean up prisma
dromzeh Jul 20, 2023
e3bb2fc
remove unused deps
dromzeh Jul 20, 2023
5149ffb
relocale i18n && update auth urls
dromzeh Jul 20, 2023
123dcc0
hacky session passing until i make a wrapper
dromzeh Jul 20, 2023
b713cef
cleanup getting session
dromzeh Jul 21, 2023
f351e0f
add missing userattributes
dromzeh Jul 21, 2023
650072b
fix inconsistent casing
dromzeh Jul 21, 2023
f2deb55
update next, fix schema and various others
dromzeh Jul 23, 2023
d9ef965
cleanup & right click menu on asset items
dromzeh Jul 23, 2023
ff45ad3
working rclick download and animations on assets
dromzeh Jul 23, 2023
678fcc2
(temp) update gamecontainer styling
dromzeh Jul 23, 2023
f205025
prevent invalid data from being passed as a param
dromzeh Jul 25, 2023
c01eaa8
recreate settings
dromzeh Jul 25, 2023
781e98a
recreate status component
dromzeh Jul 25, 2023
568a30b
minor style changes (padding & margin)
dromzeh Jul 25, 2023
226d02a
game container animations
dromzeh Jul 25, 2023
229f424
change opacity on gamecontainer hover
dromzeh Jul 25, 2023
0f075b9
fix scaling on settings & gamecontainer
dromzeh Jul 25, 2023
4e15ab9
improve backend validation, discord component
dromzeh Jul 25, 2023
fb9258d
checkbox on create account
dromzeh Jul 25, 2023
82b8509
init navbar search
dromzeh Jul 25, 2023
524a865
update schema and styling
dromzeh Jul 26, 2023
5a5ca0e
fix hydration error
dromzeh Jul 26, 2023
e9940c4
fix bad assetitem layout, init connections
dromzeh Jul 26, 2023
5441141
reimplement scrolltotop component
dromzeh Jul 26, 2023
0ab80eb
seperate asset file format from asset name
dromzeh Jul 28, 2023
30914ac
fix(deps): update dependencies
dromzeh Jul 31, 2023
8f47b04
fix(??): bruh (remove old lucia dep)
dromzeh Jul 31, 2023
93aba70
feat: improved footer and navbar
jktrn Aug 1, 2023
6fb041e
lint: prettier
jktrn Aug 1, 2023
79de31a
move discord user into seperate component
dromzeh Aug 1, 2023
34ff061
reusable skeleton loading component
dromzeh Aug 1, 2023
ea672c6
fix: favicon, better responsiveness
jktrn Aug 1, 2023
a1fab3a
feat: `og:image` generation
jktrn Aug 2, 2023
8e55b7a
[skip ci] this should be illegal
dromzeh Aug 2, 2023
0e83bb6
just delete the code causing the issue 4head
dromzeh Aug 2, 2023
5c32fab
remove (some) unnecessary imports
dromzeh Aug 2, 2023
2541914
feat: skeleton loader on main page
dromzeh Aug 2, 2023
9b8921c
add `metadataBase` to metadata
dromzeh Aug 2, 2023
46eabec
remove s3, resend, backend auth
dromzeh Aug 2, 2023
a7fcbc7
feat: [skip ci] init oc generator routes
dromzeh Aug 2, 2023
20f6e0a
refactor: many UI/UX changes, clean unused imports
jktrn Aug 3, 2023
39b6280
fix: opengraph embed bug
jktrn Aug 3, 2023
c324ce6
feat: we making it out the draft pr with this one 💯🔥
jktrn Aug 3, 2023
e850b9f
remove prisma cfg
dromzeh Aug 3, 2023
e3ee6fa
chore: upd `/search` -> `/search/asset
dromzeh Aug 3, 2023
bb150db
feat: `/asset/[id]` breadcrumb, update urls
dromzeh Aug 3, 2023
d37b1b6
oc generator type interface, return notfound correctly
dromzeh Aug 3, 2023
1a8eb3f
fix: use locale images
dromzeh Aug 3, 2023
e54559a
feat: auth context & session management :3
dromzeh Aug 3, 2023
19ab501
feat: revamped privacy policy, revamped contributors page
jktrn Aug 4, 2023
749565a
Merge branch 'next' of https://github.com/wanderer-moe/site into next
jktrn Aug 4, 2023
ca4b2ca
fix: fuck you html escaping
jktrn Aug 4, 2023
d2273c2
lint: prettier
jktrn Aug 4, 2023
e12dd53
chore: update API endpoints
dromzeh Aug 4, 2023
8ff7a83
feat: add resolution to `/asset/[id]`
dromzeh Aug 4, 2023
d1cf9da
upd games interface, display asset count
dromzeh Aug 4, 2023
96cf6bd
fix: whatever is going on
dromzeh Aug 4, 2023
dc32c37
feat: updated terms of service
jktrn Aug 5, 2023
8d2723f
fix: temporarily fix the flashbang
jktrn Aug 5, 2023
95e3f64
fix: thank god it's not prod 🔥
jktrn Aug 5, 2023
f9a29b9
assetsearchhandler dynamic & more opt props
dromzeh Aug 5, 2023
bfea9d7
lint: prettier [skip ci]
dromzeh Aug 5, 2023
6fd2f44
the amount of inconsistencies in this kekwa
dromzeh Aug 6, 2023
f4eae0b
fix: view all assets url
dromzeh Aug 6, 2023
3626b08
chore: update api endpoint url
dromzeh Aug 6, 2023
962073f
relocate clearing individual filters
dromzeh Aug 6, 2023
29de98c
fix: incorrect text colour [skip ci]
dromzeh Aug 6, 2023
ddd78ab
feat: working `authContext` [no ci]
dromzeh Aug 6, 2023
c1e1d12
correctly define session state :3 [no ci]
dromzeh Aug 6, 2023
46a255a
feat: 💯🔥💯🔥🔥 [skip ci]
dromzeh Aug 8, 2023
3db9a50
feat(temp): incredibly super secret key impl
dromzeh Aug 8, 2023
a95cbdb
fix: use edge runtime
dromzeh Aug 9, 2023
60b57c9
logout helper, assetitem `128px` preview image
dromzeh Aug 23, 2023
3ae9d21
sidebar init
dromzeh Aug 26, 2023
9c041b3
game & assetcategory sidebar [actual clean code??]
dromzeh Aug 26, 2023
4d0724d
`useGetGames` hook
dromzeh Aug 26, 2023
8bbf8ca
i lack the braincells required for the human brain
dromzeh Aug 26, 2023
8144ced
site config #250
dromzeh Aug 26, 2023
6cdea15
upd compoennt names
dromzeh Aug 27, 2023
7346800
quicklinks 4 sidebar
dromzeh Aug 27, 2023
a5ebaab
create manifest
dromzeh Aug 28, 2023
130ebd3
fix: increase sheet z index for navbar blur
dromzeh Aug 28, 2023
e8e064d
fix: force window reload
dromzeh Aug 29, 2023
0acd9e3
feat: yipee new cookie policy
jktrn Aug 30, 2023
29a24b7
real
dromzeh Sep 5, 2023
6a2146c
device warning, use browser detection hook
dromzeh Sep 14, 2023
7d751a3
init oc generator page
dromzeh Sep 14, 2023
98ee6da
feat [ocgen]: interface, [un]lock & shuffle all
dromzeh Sep 14, 2023
a625a51
refactor components [w/ stronger typing] 😉
dromzeh Sep 15, 2023
97f52b9
init oc gen color palette, upd deps
dromzeh Sep 19, 2023
a1ee474
🔥🔥🔥🔥🔥v🔥🔥🔥
dromzeh Sep 20, 2023
6106795
optional height prop, set initial color
dromzeh Sep 20, 2023
9e5ddc3
true
dromzeh Sep 28, 2023
b2a0fa5
i love absuing ternary operators
dromzeh Sep 28, 2023
01806fa
update/clear deps
dromzeh Sep 28, 2023
42de351
zod frontend validation 🗣️🗣️🗣️🗣️💅💅💅
dromzeh Sep 29, 2023
dcc82aa
........... fix infinite useeffect ...............
dromzeh Sep 29, 2023
3665d25
cleanup game container hover overlay
dromzeh Sep 29, 2023
1dea04b
what /???????????????????????????????????????????????????????????????…
dromzeh Sep 29, 2023
6ff0f64
true
dromzeh Sep 29, 2023
cd7d7fa
refactor index page
dromzeh Sep 30, 2023
797cf44
add oc generator list to index page
dromzeh Sep 30, 2023
08c7cc5
support mobile "hover" for game containers
dromzeh Sep 30, 2023
70c308e
real
dromzeh Sep 30, 2023
c759d4c
minor wording improvements, update navbar items
dromzeh Sep 30, 2023
be0ff18
error pages, visual cleanups
dromzeh Oct 2, 2023
6866039
view password indicator
dromzeh Oct 3, 2023
bc2ac82
reimpl pw reset page
dromzeh Oct 7, 2023
ae09d6e
override tooltip color & set `delayDuration`
dromzeh Oct 13, 2023
34f952f
match oc generator clipboard resp w/ prod
dromzeh Oct 14, 2023
6d7aeec
init import for oc gen 👀
dromzeh Oct 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
DATABASE_URL=""
RESEND_API_KEY=""
BASE_URL=""
R2_ACCESS_KEY=""
R2_ACCOUNT_ID=""
R2_SECRET_KEY=""
CDN_BUCKET_NAME="cdn"
CF_SECRET_KEY=""
CF_SITE_KEY=""
7 changes: 0 additions & 7 deletions .eslintrc.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
42 changes: 7 additions & 35 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Check Code
name: Check formatting

on:
push:
branches:
- main
- development
- 'next'

concurrency:
group: ${{ github.job }}-${{ github.ref }}
Expand Down Expand Up @@ -33,10 +32,10 @@ jobs:
run: pnpm install

- name: Prettier check
run: pnpm run prettier:check
run: pnpm run prettier:chk

svelte-check:
name: Svelte check
typecheck:
name: TypeScript type checking
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -56,32 +55,5 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Initialize git submodules (i18n)
run: git submodule update --init --recursive

- name: Svelte check
run: pnpm run svelte:check

# lint:
# name: ESLint
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3

# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 18

# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: latest
# run_install: false

# - name: Install dependencies
# run: pnpm install

# - name: Lint
# run: pnpm run lint
- name: TypeScript type checking
run: pnpm run typecheck
45 changes: 37 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,39 @@
/node_modules/
src/node_modules/
yarn-error.log
.svelte-kit/
build/
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
.env

# webstorm
.idea

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
.env
.wrangler
.mf
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "src/i18n"]
path = src/i18n
[submodule "src/lib/i18n"]
path = src/lib/i18n
url = https://github.com/wanderer-moe/i18n
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run typecheck && pnpm run lint && pnpm run prettier:chk
9 changes: 4 additions & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
**/.svelte-kit
**/.idea
**/build
**/node_modules
**/.DS_Store
node_modules
.next
build
.contentlayer
13 changes: 4 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{
"tabWidth": 4,
"bracketSameLine": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"singleQuote": true,
"endOfLine": "lf",
"semi": false,
"svelteAllowShorthand": true,
"svelteIndentScriptAndStyle": false,
"svelteSortOrder": "options-styles-scripts-markup",
"svelteStrictMode": true,
"tabWidth": 4,
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"]
}
"plugins": ["prettier-plugin-tailwindcss"]
}
69 changes: 0 additions & 69 deletions CONTRIBUTING.md

This file was deleted.

Loading