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

feat: version 6 #3

Merged
merged 46 commits into from
Nov 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
1ce1341
feat: init web and db
leomotors Oct 18, 2023
28bdc13
feat!: node 20
leomotors Oct 19, 2023
a61982a
feat: basic webhook
leomotors Oct 19, 2023
09a9143
feat: auth done
leomotors Oct 19, 2023
a23168f
chore: update env var name
leomotors Oct 21, 2023
c7479c4
chore: update tsconfig
leomotors Oct 21, 2023
efacf58
favicon and og image
leomotors Oct 21, 2023
60c4383
restructure routes
leomotors Oct 21, 2023
740b160
add sourceEn and sourceJa field
leomotors Oct 21, 2023
29d5d8b
feat: home page done
leomotors Oct 22, 2023
68a65e4
enhance login page
leomotors Oct 22, 2023
4a9b146
chore(web): format
leomotors Oct 22, 2023
b6e472c
encodeuricomponent instead
leomotors Oct 22, 2023
5e3c1f6
home page done
leomotors Oct 22, 2023
fb266e1
basic admin page and style more on phone
leomotors Oct 22, 2023
fe287dd
feat: SUPERIDOL role
leomotors Oct 22, 2023
48cb974
chore: deps and fix ts error
leomotors Oct 22, 2023
a9b5725
seed past waifu part 1
leomotors Oct 22, 2023
b35e0ff
remove svelte favicon
leomotors Oct 23, 2023
b93185c
feat: enhance home page
leomotors Oct 24, 2023
864e04d
update past waifu data complete
leomotors Oct 24, 2023
2bd0cb8
chore: readme
leomotors Oct 24, 2023
e28b11e
chore: fix ci and build docker
leomotors Oct 25, 2023
c19cb6e
chore: deps
leomotors Oct 25, 2023
77202ca
past waifu now works without javascript
leomotors Oct 25, 2023
466b130
Merge branch 'main' into web
leomotors Oct 25, 2023
f5e7bbb
ci: update ci version
leomotors Oct 25, 2023
d8e5570
feat: get accept language
leomotors Oct 25, 2023
8876419
web: better parse accept language
leomotors Oct 25, 2023
fd42ab9
db: use autoincrement for waifu id
leomotors Oct 25, 2023
216be23
landing page improvements
leomotors Oct 25, 2023
31947df
crud activity done
leomotors Oct 26, 2023
a86f44b
chore: deps
leomotors Nov 15, 2023
0d1729a
remove unused and vulnerable lib
leomotors Nov 15, 2023
ef9652b
admin waifu page
leomotors Nov 15, 2023
b6a56ac
fix build error
leomotors Nov 16, 2023
6f4b32f
migration dockerfile
leomotors Nov 16, 2023
5b87d64
waifu data form
leomotors Nov 16, 2023
101afa8
update waifu data part 1
leomotors Nov 18, 2023
d214ade
update waifu data part 2
leomotors Nov 18, 2023
d8c1549
update waifu data complete
leomotors Nov 18, 2023
8ed72bc
web: unable to change simping waifu
leomotors Nov 18, 2023
32b4390
waifu sync part 1
leomotors Nov 18, 2023
b6d4253
waifu sync part 2: webhook done
leomotors Nov 18, 2023
d5dc2ae
prob ready for prod
leomotors Nov 18, 2023
c5dcd2b
chore: deps
leomotors Nov 18, 2023
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
Prev Previous commit
Next Next commit
restructure routes
  • Loading branch information
leomotors committed Oct 21, 2023
commit 60c4383b8b21e1e92472f6f2e32b606e035960e2
2 changes: 1 addition & 1 deletion apps/web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

<svelte:head>
<title>Waifu Bot</title>
<meta property="og:image" content="{PUBLIC_WEB_URL}/image/og" />
<meta property="og:image" content="{PUBLIC_WEB_URL}/api/image/og" />
</svelte:head>

<slot />
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { error, type RequestHandler } from "@sveltejs/kit";
export const GET = (async ({ setHeaders, fetch }) => {
const waifu = await getCurrentWaifu();

const imageUrl = `/image?url=${encodeURI(waifu.bannerUrl)}&w=1200&q=100`;
const imageUrl = `/api/image?url=${encodeURI(waifu.bannerUrl)}&w=1200&q=100`;
const res = await fetch(imageUrl);

if (!res.body) {
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { error, type RequestHandler } from "@sveltejs/kit";
export const GET = (async ({ setHeaders, fetch }) => {
const waifu = await getCurrentWaifu();

const imageUrl = `/image?url=${encodeURI(waifu.imageUrl)}&w=64&q=100`;
const imageUrl = `/api/image?url=${encodeURI(waifu.imageUrl)}&w=64&q=100`;
const res = await fetch(imageUrl);

if (!res.body) {