Skip to content

Commit baa065d

Browse files
author
shdancer
committed
feat: celebration page and games
1 parent 5f7333f commit baa065d

File tree

168 files changed

+1147
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+1147
-39
lines changed

.vitepress/config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,15 @@ export default defineConfig({
2525
prev: '上一页',
2626
next: '下一页'
2727
}
28+
},
29+
vite: {
30+
server: {
31+
proxy: {
32+
"/api": {
33+
target: "https://anniversary.fduhole.com",
34+
changeOrigin: true
35+
}
36+
}
37+
}
2838
}
2939
})

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@
2424
"tailwindcss": {}
2525
}
2626
},
27-
"packageManager": "[email protected]+sha1.a58c038faac410c947dbdb93eb30994037d0fce2"
27+
"packageManager": "[email protected]+sha1.a58c038faac410c947dbdb93eb30994037d0fce2",
28+
"dependencies": {
29+
"@vueuse/core": "^13.1.0"
30+
}
2831
}

pnpm-lock.yaml

Lines changed: 32 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/BlessingBar.vue

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<script setup lang="ts">
2+
import { computed, onMounted, ref, watch } from 'vue';
3+
import { useFetch } from '@vueuse/core';
4+
5+
const floorNumber = 114514
6+
7+
const position = ref(0)
8+
9+
const positionString = computed(() => {
10+
return `${position.value}%`
11+
})
12+
13+
14+
const { isFetching, error, data } = useFetch(`/api/floors/${floorNumber}/_special?order_by=id&size=100&sort=asc&offset=0`).get().json()
15+
16+
const messages: any = computed(() =>
17+
data.value?.map(item => ({
18+
content: item.content,
19+
name: item.anonyname,
20+
}))?.filter(item => !item.content.includes("!()")) ?? []
21+
)
22+
const interval = setInterval(() => {
23+
position.value -= 0.003
24+
if (position.value > 100) {
25+
position.value = 0
26+
}
27+
}, 10)
28+
29+
30+
31+
</script>
32+
33+
<template>
34+
<div class="bg-gray-100 rounded-xl shadow-inner overflow-hidden p-3 flex ">
35+
<div class="flex items-center gap-4 flex-nowrap move">
36+
<div v-for="message in messages">
37+
<div class="flex text-nowrap">
38+
<b>
39+
{{ message.content }}
40+
</b>
41+
<i>
42+
by
43+
{{ message.name }}
44+
</i>
45+
</div>
46+
</div>
47+
</div>
48+
49+
50+
</div>
51+
</template>
52+
53+
<style scoped>
54+
.move {
55+
transform: translateX(v-bind(positionString));
56+
}
57+
</style>
1.14 MB
Loading
709 KB
Loading
797 KB
Loading
875 KB
Loading

src/public/assets/background.webp

23.8 KB
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"paths":{"1":["effects/builtin-2d-spine",0],"2":["effects/builtin-2d-gray-sprite",0],"3":["effects/builtin-2d-sprite",0],"4":["materials/builtin-unlit",1],"5":["effects/builtin-3d-trail",0],"6":["effects/builtin-2d-graphics",0],"7":["materials/builtin-2d-gray-sprite",1],"8":["materials/builtin-3d-particle",1],"9":["materials/builtin-3d-trail",1],"11":["effects/builtin-unlit",0],"12":["materials/builtin-2d-base",1],"13":["materials/builtin-2d-spine",1],"14":["effects/builtin-3d-particle",0],"15":["materials/builtin-2d-graphics",1],"16":["effects/builtin-clear-stencil",0],"17":["materials/builtin-clear-stencil",1],"18":["materials/builtin-2d-label",1],"19":["materials/builtin-2d-sprite",1],"20":["effects/builtin-2d-label",0]},"types":["cc.EffectAsset","cc.Material"],"uuids":["02delMVqdBD70a/HSD99FK","0ek66qC1NOQLjgYmi04HvX","14TDKXr2NJ6LjvHPops74o","28dPjdQWxEQIG3VVl1Qm6T","2aKWBXJHxKHLvrBUi2yYZQ","2afAA24LNP4YmYiaVLiivs","30aC+Hnw1PF4pEcoY3kUYb","3ae7efMv1CLq2ilvUY/tQi","43L6CczwNM/6GGmCYEQIoH","46bU+b5fROqIXVPG6aZWWK","60AwGqM1dKELCGhPAR+jK6","6dkeWRTOBGXICfYQ7JUBnG","6fgBCSDDdPMInvyNlggls2","7a/QZLET9IDreTiBfRn2PD","82migssElAGb04Ws6NimQX","a1U5RdJRFMFL57BdJC9H1X","c0BAyVxX9JzZy8EjFrc9DU","cffgu4qBxEqa150o1DmRAy","e0LYfU5ZlNFoAB4UiRrGUG","ecpdLyjvZBwrvm+cedCcQy","f1h0LXVtJOta5JLZ1xCzfI"],"scenes":{},"redirect":[],"deps":[],"packs":{"0b6c4470e":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},"name":"internal","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["0b6c4470e","9537f"],"native":[0,"cea68",10,"c3a3a"]}}

0 commit comments

Comments
 (0)