Commit 0dddca8d19

0dddca8d19e8bae01a1b0ca15dfd888e7c9d9bba

parent: 9b20a77a99

Unregistered key

taskylizard <75871323+taskylizard@users.noreply.github.com> · 2025-09-28 08:38 UTC

chore: update license

Layout: unified · split

.licenserc.json +9 −33
@@ -1,53 +1,29 @@
11{
22 "**/*.ts": [
33 "/**",
4 "* Copyright (c) 2025 taskylizard",
5 "*",
6 "* Licensed under the Apache License, Version 2.0 (the \"License\");",
7 "* you may not use this file except in compliance with the License.",
8 "* You may obtain a copy of the License at",
4 "* All Rights Reserved",
95 "*",
10 "* http://www.apache.org/licenses/LICENSE-2.0",
6 "* Copyright (c) 2025 taskylizard",
117 "*",
12 "* Unless required by applicable law or agreed to in writing, software",
13 "* distributed under the License is distributed on an \"AS IS\" BASIS,",
14 "* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
15 "* See the License for the specific language governing permissions and",
16 "* limitations under the License.",
8 "* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.",
179 "*/"
1810 ],
1911 "**/*.vue": [
2012 "<!--",
21 " Copyright (c) 2025 taskylizard",
22 "",
23 " Licensed under the Apache License, Version 2.0 (the \"License\");",
24 " you may not use this file except in compliance with the License.",
25 " You may obtain a copy of the License at",
13 " All Rights Reserved",
2614 "",
27 " http://www.apache.org/licenses/LICENSE-2.0",
15 " Copyright (c) 2025 taskylizard",
2816 "",
29 " Unless required by applicable law or agreed to in writing, software",
30 " distributed under the License is distributed on an \"AS IS\" BASIS,",
31 " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
32 " See the License for the specific language governing permissions and",
33 " limitations under the License.",
17 " All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.",
3418 "-->"
3519 ],
3620 "**/*.css": [
3721 "/**",
38 " * Copyright (c) 2025 taskylizard",
22 " * All Rights Reserved",
3923 " *",
40 " * Licensed under the Apache License, Version 2.0 (the \"License\");",
41 " * you may not use this file except in compliance with the License.",
42 " * You may obtain a copy of the License at",
43 " *",
44 " * http://www.apache.org/licenses/LICENSE-2.0",
24 " * Copyright (c) 2025 taskylizard",
4525 " *",
46 " * Unless required by applicable law or agreed to in writing, software",
47 " * distributed under the License is distributed on an \"AS IS\" BASIS,",
48 " * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
49 " * See the License for the specific language governing permissions and",
50 " * limitations under the License.",
26 " * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.",
5127 " */"
5228 ],
5329 "ignore": [
LICENSE.md +3 −20
@@ -1,22 +1,5 @@
1Copyright (c) 2024 Wotaku Team
1All Rights Reserved
22
3The following terms and conditions apply to the contents (markdown, assets) of this repository. For the software, see the license headers in the source files.
3Copyright (c) 2025 taskylizard
44
5## Terms of Use
6
7Permission is hereby granted to use the contents under the following conditions:
8
91. **Attribution**: You must give appropriate credit to the original project, including:
10 - Retaining all original copyright notices
11 - Providing a link to the original project repository (https://github.com/wotakumoe/wotaku)
12 - Clearly indicating if any modifications were made
132. **Restrictions**:
14 - You may NOT clone, reproduce, or redistribute the project websites (wotaku.wiki and associated domains) for commercial purposes
15 - No reproduction of websites with the intent to inject advertisements, malware, or other harmful content
16 - Except artist-made content, reusing the "Wotaku" name and branding is prohibited as it creates confusion with the original project
17 - Direct copy-pasting of markdown contents is prohibited
18 - Machine training is strictly prohibited
193. **Derivative Works**:
20 - Modifications are allowed, but must be clearly marked as changes from the original
21
22The contents are provided "as is", without warranty of any kind. In no event shall the authors be liable for any claims, damages, or other liability.
5All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
api/middleware/cors.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import { corsEventHandler } from 'nitro-cors'
179
1810export default corsEventHandler((_event) => {}, {
api/routes/index.post.ts +15 −24
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import { fetcher } from 'itty-fetcher'
179import {
1810 FeedbackSchema,
@@ -59,16 +51,15 @@ export default defineEventHandler(async (event) => {
5951
6052 await fetcher()
6153 .post(env.WEBHOOK_URL, {
62 username: 'Feedback',
63 embeds: [
64 {
65 color: 3447003,
66 title: getFeedbackOption(type)!.label,
67 fields
68 }
69 ]
70 }
71 )
54 username: 'Feedback',
55 embeds: [
56 {
57 color: 3447003,
58 title: getFeedbackOption(type)!.label,
59 fields
60 }
61 ]
62 })
7263 .catch((error) => {
7364 throw new Error(error)
7465 })
api/routes/op.post.ts +7
@@ -1,3 +1,10 @@
1/**
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
18import { joinURL } from 'ufo'
29
310export default defineEventHandler(async (event) => {
api/routes/single-page.ts +6 −30
@@ -1,34 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16/**
17 * Copyright (c) taskylizard. All rights reserved.
18 *
19 * Licensed under the Apache License, Version 2.0 (the "License");
20 * you may not use this file except in compliance with the License.
21 * You may obtain a copy of the License at
22 *
23 * http://www.apache.org/licenses/LICENSE-2.0
24 *
25 * Unless required by applicable law or agreed to in writing, software
26 * distributed under the License is distributed on an "AS IS" BASIS,
27 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28 * See the License for the specific language governing permissions and
29 * limitations under the License.
30 */
31
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
328import { fetcher } from 'itty-fetcher'
339
3410// Look inside tbe docs directory
api/routes/test.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168export default eventHandler(() => {
179 return { nitro: 'works' }
1810})
docs/.vitepress/configs/constants.ts +7
@@ -1,3 +1,10 @@
1/**
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
18import type { DefaultTheme } from 'vitepress'
29import { x } from 'tinyexec'
310
docs/.vitepress/configs/hooks/index.ts +6 −18
@@ -1,21 +1,9 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16/**
17 * Barrel generated using @taskylizard/tasker.
18 */
19
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
208export * from './meta'
219export * from './opengraph'
docs/.vitepress/configs/hooks/meta.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import type { HeadConfig, TransformContext } from 'vitepress'
179import { excludedFiles } from '../constants'
1810
docs/.vitepress/configs/hooks/opengraph.ts +9 −17
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import { mkdir, readFile, writeFile } from 'node:fs/promises'
179import { dirname, resolve } from 'node:path'
1810import { fileURLToPath } from 'node:url'
@@ -110,11 +102,11 @@ async function generateImage({
110102 props: {
111103 title:
112104 frontmatter.layout === 'home'
113 ? frontmatter.hero.name ?? frontmatter.title
114 : frontmatter.customMetaTitle ?? frontmatter.title,
105 ? (frontmatter.hero.name ?? frontmatter.title)
106 : (frontmatter.customMetaTitle ?? frontmatter.title),
115107 description:
116108 frontmatter.layout === 'home'
117 ? frontmatter.hero.tagline ?? frontmatter.description
109 ? (frontmatter.hero.tagline ?? frontmatter.description)
118110 : frontmatter.description,
119111 // dir: getDir(url)
120112 image: frontmatter.og?.image ?? 'https://i.wotaku.wiki/f/default.png'
docs/.vitepress/configs/hooks/satoriConfig.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import { readFile } from 'node:fs/promises'
179import { dirname, resolve } from 'node:path'
1810import { fileURLToPath } from 'node:url'
docs/.vitepress/configs/index.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import type { DefaultTheme, Plugin, UserConfig } from 'vitepress'
179import { generateImages, generateMeta } from './hooks'
1810import { defs, movePlugin, aliases } from './markdown/emoji'
docs/.vitepress/configs/markdown/emoji.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import type { MarkdownRenderer } from 'vitepress'
179import type { IconifyJSON } from '@iconify-json/octicon'
1810
docs/.vitepress/configs/markdown/headers.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import type { MarkdownRenderer } from 'vitepress'
179
1810const excluded = ['Credits']
docs/.vitepress/configs/markdown/index.ts +7
@@ -1,3 +1,10 @@
1/**
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
18import MdMTables from 'markdown-it-multimd-table'
29// @ts-expect-error
310import MdReg from 'markdown-it-regexp'
docs/.vitepress/credits.ts +7 −15
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168interface Contributor {
179 name: string
1810 avatar: string
@@ -99,7 +91,7 @@ export const contribs = {
9991 avatar: 'https://github.com/officialkaizen.png',
10092 site: 'https://github.com/officialkaizen'
10193 },
102 {
94 {
10395 name: 'ld3z',
10496 avatar: 'https://github.com/ld3z.png',
10597 site: 'https://github.com/ld3z'
docs/.vitepress/theme/Layout.vue +6 −20
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import DefaultTheme from 'vitepress/theme'
@@ -130,17 +122,11 @@ const { Layout } = DefaultTheme
130122<template>
131123 <Layout>
132124 <template #layout-top>
133 <img
134 id="takodachi"
135 ref="takodachiRef"
136 src="/takodachi.webp"
137 alt="Takodachi"
138 class="pointer-events-none fixed absolute z-[9999] h-10 w-10 opacity-0 transition-opacity duration-500"
139 :style="{
125 <img id="takodachi" ref="takodachiRef" src="/takodachi.webp" alt="Takodachi"
126 class="pointer-events-none fixed absolute z-[9999] h-10 w-10 opacity-0 transition-opacity duration-500" :style="{
140127 left: `${position.x}px`,
141128 top: `${position.y}px`
142 }"
143 />
129 }" />
144130 </template>
145131 <template #not-found>
146132 <NotFoundComponent />
docs/.vitepress/theme/components/AnnouncementPill.vue +3 −11
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { useData } from 'vitepress'
docs/.vitepress/theme/components/Authors.vue +3 −11
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { computed } from 'vue'
docs/.vitepress/theme/components/Badge.vue +11 −24
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179interface Props {
@@ -26,13 +18,8 @@ withDefaults(defineProps<Props>(), {
2618</script>
2719
2820<template>
29 <component
30 :target="link ? '_blank' : undefined"
31 :is="link ? 'a' : 'span'"
32 class="VPBadge"
33 :class="link ? 'tip' : type"
34 :href="link"
35 >
21 <component :target="link ? '_blank' : undefined" :is="link ? 'a' : 'span'" class="VPBadge"
22 :class="link ? 'tip' : type" :href="link">
3623 <div v-if="icon" :class="icon" />
3724 <slot>{{ text }}</slot>
3825 </component>
@@ -57,24 +44,24 @@ withDefaults(defineProps<Props>(), {
5744 text-decoration: none !important;
5845}
5946
60.vp-doc h1 > .VPBadge {
47.vp-doc h1>.VPBadge {
6148 margin-top: 4px;
6249 vertical-align: top;
6350}
6451
65.vp-doc h2 > .VPBadge {
52.vp-doc h2>.VPBadge {
6653 margin-top: 3px;
6754 padding: 0 8px;
6855 vertical-align: top;
6956}
7057
71.vp-doc h3 > .VPBadge {
58.vp-doc h3>.VPBadge {
7259 vertical-align: middle;
7360}
7461
75.vp-doc h4 > .VPBadge,
76.vp-doc h5 > .VPBadge,
77.vp-doc h6 > .VPBadge {
62.vp-doc h4>.VPBadge,
63.vp-doc h5>.VPBadge,
64.vp-doc h6>.VPBadge {
7865 vertical-align: middle;
7966 line-height: 18px;
8067}
docs/.vitepress/theme/components/Button.vue +5 −18
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179withDefaults(
@@ -26,13 +18,8 @@ withDefaults(
2618</script>
2719
2820<template>
29 <component
30 :target="link ? '_blank' : undefined"
31 :is="link ? 'a' : 'span'"
32 :href="link"
33 :class="type"
34 class="VButton px4 py3 mt2 gap2 block flex items-center rounded-md"
35 >
21 <component :target="link ? '_blank' : undefined" :is="link ? 'a' : 'span'" :href="link" :class="type"
22 class="VButton px4 py3 mt2 gap2 block flex items-center rounded-md">
3623 <div :class="icon" />
3724 <slot>{{ text }}</slot>
3825 </component>
docs/.vitepress/theme/components/CardField.vue +3 −11
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179defineProps<{
docs/.vitepress/theme/components/ChristmasCard.vue +7 −15
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { ref } from 'vue'
@@ -38,10 +30,8 @@ const handleClick = () => {
3830 </div>
3931 <span class="click-icon" ref="clickIcon">
4032 <svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
41 <path
42 fill="#fff"
43 d="M31.6 17.7V26c0 1.9-.7 3.7-2 5.1v.9c0 1.6-1.3 3-3 3h-8.4c-1.6 0-3-1.3-3-3 0-.6.5-1 1-1s1 .4 1 1c0 .5.4 1 1 1h8.4c.5 0 1-.4 1-1v-1.2-.3-.1c0-.1.1-.2.2-.3 1.1-1.1 1.7-2.5 1.7-4v-8.3c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1v2.4c0 .6-.5 1-1 1s-1-.4-1-1v-5.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v5.5c0 .6-.5 1-1 1s-1-.4-1-1v-8.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v8.5c0 .6-.5 1-1 1s-1-.4-1-1V7.7c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1V20c0 .4-.2.8-.6.9-.4.2-.8.1-1.1-.2L11 18.1c-.6-.6-1.6-.6-2.2.1-.5.6-.4 1.5.2 2.1l7 7c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3-.3 0-.5-.1-.7-.3l-7-7.1c-1.3-1.3-1.5-3.5-.3-4.8C8 16 9 15.5 10 15.5c.9 0 1.8.4 2.5 1l.9.9V7.9c0-1.4.9-2.7 2.3-3 1-.3 2.1 0 2.8.8.6.6.9 1.3.9 2.1V9c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.1 0 .2-.1.3-.1 1-.3 2.1 0 2.8.8.8.5 1.1 1.3 1.1 2z"
44 />
33 <path fill="#fff"
34 d="M31.6 17.7V26c0 1.9-.7 3.7-2 5.1v.9c0 1.6-1.3 3-3 3h-8.4c-1.6 0-3-1.3-3-3 0-.6.5-1 1-1s1 .4 1 1c0 .5.4 1 1 1h8.4c.5 0 1-.4 1-1v-1.2-.3-.1c0-.1.1-.2.2-.3 1.1-1.1 1.7-2.5 1.7-4v-8.3c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1v2.4c0 .6-.5 1-1 1s-1-.4-1-1v-5.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v5.5c0 .6-.5 1-1 1s-1-.4-1-1v-8.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v8.5c0 .6-.5 1-1 1s-1-.4-1-1V7.7c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1V20c0 .4-.2.8-.6.9-.4.2-.8.1-1.1-.2L11 18.1c-.6-.6-1.6-.6-2.2.1-.5.6-.4 1.5.2 2.1l7 7c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3-.3 0-.5-.1-.7-.3l-7-7.1c-1.3-1.3-1.5-3.5-.3-4.8C8 16 9 15.5 10 15.5c.9 0 1.8.4 2.5 1l.9.9V7.9c0-1.4.9-2.7 2.3-3 1-.3 2.1 0 2.8.8.6.6.9 1.3.9 2.1V9c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.1 0 .2-.1.3-.1 1-.3 2.1 0 2.8.8.8.5 1.1 1.3 1.1 2z" />
4535 </svg>
4636 </span>
4737</template>
@@ -146,6 +136,7 @@ const handleClick = () => {
146136}
147137
148138@media (max-width: 767px) {
139
149140 .card,
150141 .card-page {
151142 width: 230px;
@@ -154,6 +145,7 @@ const handleClick = () => {
154145}
155146
156147@media (max-width: 479px) {
148
157149 .card,
158150 .card-page {
159151 width: 150px;
docs/.vitepress/theme/components/Contributors.vue +6 −23
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { computed } from 'vue'
@@ -24,10 +16,7 @@ const contributors = computed(() => contribs || ({} as Contributors))
2416 <h1 class="text-center">Core Team</h1>
2517 <hr />
2618 <div class="flex flex-wrap gap-4 pt-2">
27 <div
28 v-for="(c, index) of contributors.core"
29 class="flex items-center gap-2"
30 >
19 <div v-for="(c, index) of contributors.core" class="flex items-center gap-2">
3120 <img :src="c.avatar" class="h-8 w-8 rounded-full" />
3221 <a v-if="c.site" :href="c.site">{{ c.name }}</a>
3322 <span v-else>{{ c.name }}</span>
@@ -38,10 +27,7 @@ const contributors = computed(() => contribs || ({} as Contributors))
3827 <h1 class="mt-30px text-center">Contributors</h1>
3928 <hr />
4029 <div class="flex flex-wrap gap-4 pt-2">
41 <div
42 v-for="(c, index) of contributors.contributors"
43 class="flex items-center gap-2"
44 >
30 <div v-for="(c, index) of contributors.contributors" class="flex items-center gap-2">
4531 <img :src="c.avatar" class="h-8 w-8 rounded-full" />
4632 <a v-if="c.site" :href="c.site">{{ c.name }}</a>
4733 <span v-else>{{ c.name }}</span>
@@ -52,10 +38,7 @@ const contributors = computed(() => contribs || ({} as Contributors))
5238 <h1 class="mt-30px text-center">Special Thanks to</h1>
5339 <hr />
5440 <div class="flex flex-wrap gap-4 pt-2">
55 <div
56 v-for="(c, index) of contributors.special"
57 class="flex items-center gap-2"
58 >
41 <div v-for="(c, index) of contributors.special" class="flex items-center gap-2">
5942 <img :src="c.avatar" class="h-8 w-8 rounded-full" />
6043 <a v-if="c.site" :href="c.site">{{ c.name }}</a>
6144 <span v-else>{{ c.name }}</span>
docs/.vitepress/theme/components/Feedback.vue +28 −66
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { computed, ref, reactive } from 'vue'
@@ -76,11 +68,11 @@ const isDisabled = computed(() => {
7668const router = useRouter()
7769// prettier-ignore
7870const feedback = reactive<
79 Pick<FeedbackType, 'message' | 'page'> & Partial<Pick<FeedbackType, 'type'>>
71 Pick<FeedbackType, "message" | "page"> & Partial<Pick<FeedbackType, "type">>
8072>({
8173 page: getURL(props.heading!),
82 message: ''
83})
74 message: "",
75});
8476
8577const selectedOption = ref(feedbackOptions[0])
8678
@@ -136,46 +128,33 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value)
136128
137129<template>
138130 <template v-if="props.heading">
139 <button
140 @click="toggleCard()"
141 class="bg-$vp-c-default-soft text-primary border-$vp-c-default-soft hover:border-primary ml-3 inline-flex h-7 items-center justify-center whitespace-nowrap rounded-md border-2 border-solid px-1.5 py-3.5 text-sm font-medium transition-all duration-300 sm:h-6"
142 >
143 <span
144 :class="isCardShown === false ? `i-lucide:mail` : `i-lucide:mail-x`"
145 />
131 <button @click="toggleCard()"
132 class="bg-$vp-c-default-soft text-primary border-$vp-c-default-soft hover:border-primary ml-3 inline-flex h-7 items-center justify-center whitespace-nowrap rounded-md border-2 border-solid px-1.5 py-3.5 text-sm font-medium transition-all duration-300 sm:h-6">
133 <span :class="isCardShown === false ? `i-lucide:mail` : `i-lucide:mail-x`" />
146134 </button>
147135 </template>
148136 <template v-else>
149137 <button
150138 class="bg-$vp-c-default-soft text-primary px2 py1 border-$vp-c-default-soft hover:border-primary mt-2 select-none rounded border-2 border-solid font-bold transition-all duration-300"
151 @click="toggleCard()"
152 >
153 <span
154 :class="
155 isCardShown === false ? `i-lucide:mail mr-2` : `i-lucide:mail-x mr-2`
156 "
157 />
139 @click="toggleCard()">
140 <span :class="isCardShown === false ? `i-lucide:mail mr-2` : `i-lucide:mail-x mr-2`
141 " />
158142 <span>Send Feedback</span>
159143 </button>
160144 </template>
161145
162146 <Transition name="fade" mode="out-in">
163 <div
164 v-if="isCardShown"
165 class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 m-[2rem 0] mt-4 border-2 border-solid p-6"
166 >
147 <div v-if="isCardShown"
148 class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 m-[2rem 0] mt-4 border-2 border-solid p-6">
167149 <Transition name="fade" mode="out-in">
168150 <div v-if="!feedback.type">
169151 <p class="heading">
170152 {{ helpfulText }}
171153 </p>
172154 <div class="flex flex-wrap gap-2">
173 <button
174 v-for="item in feedbackOptions"
175 :key="item.value"
155 <button v-for="item in feedbackOptions" :key="item.value"
176156 class="bg-bg border-$vp-c-default-soft hover:border-primary mt-2 select-none rounded border-2 border-solid font-bold transition-all duration-250 rounded-lg text-[14px] font-500 leading-normal m-0 px-3 py-1.5 text-center align-middle whitespace-nowrap"
177 @click="handleSubmit(item.value)"
178 >
157 @click="handleSubmit(item.value)">
179158 <span>{{ item.label }}</span>
180159 </button>
181160 </div>
@@ -220,24 +199,15 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value)
220199 </li>
221200 <li>
222201 Sites found in the Unsafe lists of
223 <a
224 href="https://fmhy.net/unsafesites"
225 class="text-primary text-underline font-semibold"
226 >
202 <a href="https://fmhy.net/unsafesites" class="text-primary text-underline font-semibold">
227203 FMHY
228204 </a>
229205 ,
230 <a
231 href="https://megathread.pages.dev/unsafe"
232 class="text-primary text-underline font-semibold"
233 >
206 <a href="https://megathread.pages.dev/unsafe" class="text-primary text-underline font-semibold">
234207 Privateersclub
235208 </a>
236209 and/or
237 <a
238 href="https://rentry.org/pgames#untrusted-sites"
239 class="text-primary text-underline font-semibold"
240 >
210 <a href="https://rentry.org/pgames#untrusted-sites" class="text-primary text-underline font-semibold">
241211 r/PiratedGames
242212 </a>
243213 .
@@ -263,35 +233,25 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value)
263233 </ol>
264234 </details>
265235 </div>
266 <textarea
267 v-model="feedback.message"
268 autofocus
236 <textarea v-model="feedback.message" autofocus
269237 class="bg-$vp-c-bg-alt text-$vp-c-text-2 w-full h-[100px] border border-$vp-c-divider rounded px-3 py-1.5 border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 border-2 border-solid"
270 placeholder="Tip: Did you know that starring our GitHub repo doubles the chances that your feedback will be read?"
271 />
238 placeholder="Tip: Did you know that starring our GitHub repo doubles the chances that your feedback will be read?" />
272239 <p class="desc mb-2">
273240 If you want a reply to your feedback, feel free to mention a contact
274241 in the message or join our
275 <a
276 class="text-primary text-underline font-semibold"
277 href="https://discord.gg/wZMuSGpZ8s"
278 >
242 <a class="text-primary text-underline font-semibold" href="https://discord.gg/wZMuSGpZ8s">
279243 Discord.
280244 </a>
281245 </p>
282246 <div class="flex flex-row gap-2">
283247 <button
284248 class="bg-$vp-c-default-soft text-primary border-$vp-c-default-soft inline-flex h-7 items-center justify-center whitespace-nowrap rounded-md border-2 border-solid px-1.5 py-3.5 text-sm font-medium transition-all duration-300 sm:h-6"
285 @click="feedback.type = undefined"
286 >
249 @click="feedback.type = undefined">
287250 <span class="i-lucide:panel-left-close">close</span>
288251 </button>
289 <button
290 type="submit"
252 <button type="submit"
291253 class="border border-div rounded-lg transition-colors duration-250 inline-block text-14px font-500 leading-1.5 px-3 py-3 text-center align-middle whitespace-nowrap disabled:opacity-50 text-text-2 bg-swarm-100 dark:bg-swarm-700 border-swarm-800 dark:border-swarm-700 disabled:bg-swarm-100 dark:disabled:bg-swarm-900 hover:border-swarm-900 dark:hover:border-swarm-800 hover:bg-swarm-200 dark:hover:bg-swarm-800"
292 :disabled="isDisabled"
293 @click="handleSubmit()"
294 >
254 :disabled="isDisabled" @click="handleSubmit()">
295255 Send Feedback 📩
296256 </button>
297257 </div>
@@ -309,7 +269,9 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value)
309269 border: 1px solid var(--vp-c-divider);
310270 background-color: var(--vp-c-bg);
311271 border-radius: 8px;
312 transition: border-color 0.25s, background-color 0.25s;
272 transition:
273 border-color 0.25s,
274 background-color 0.25s;
313275 display: inline-block;
314276 font-size: 14px;
315277 font-weight: 500;
docs/.vitepress/theme/components/GradientCard.vue +7
@@ -1,3 +1,10 @@
1<!--
2 All Rights Reserved
3
4 Copyright (c) 2025 taskylizard
5
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7-->
18<script setup lang="ts">
29import { computed } from 'vue'
310
docs/.vitepress/theme/components/LegendModal.vue +17 −41
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2025 taskylizard
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
2 All Rights Reserved
73
8 http://www.apache.org/licenses/LICENSE-2.0
4 Copyright (c) 2025 taskylizard
95
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179defineProps<{
@@ -32,8 +24,7 @@ const sections = [
3224 { icon: 'i-twemoji-no-one-under-eighteen', label: 'R18' },
3325 { icon: 'i-material-symbols-person-add', label: 'Needs account' },
3426 { icon: 'i-material-symbols-help', label: 'Help / Docs' },
35 { icon: 'i-mdi-arrow-right-bold', label: 'Related' },
36
27 { icon: 'i-mdi-arrow-right-bold', label: 'Related' }
3728 ]
3829 },
3930 {
@@ -54,7 +45,10 @@ const sections = [
5445 title: 'Type',
5546 items: [
5647 { icon: 'i-material-symbols-play-circle-outline', label: 'Stream' },
57 { icon: 'i-material-symbols-cloud-download-outline-rounded', label: 'Online / DDL' },
48 {
49 icon: 'i-material-symbols-cloud-download-outline-rounded',
50 label: 'Online / DDL'
51 },
5852 { icon: 'i-lucide-magnet', label: 'Torrent / p2p' },
5953 { icon: 'i-iconoir-floppy-disk', label: 'Local file' },
6054 { icon: 'i-material-symbols-package-2-outline', label: 'Batch Download' },
@@ -70,7 +64,7 @@ const sections = [
7064 { icon: 'i-ic-round-currency-exchange', label: 'Subscription' },
7165 { icon: 'i-ic-round-money-off-csred', label: 'Has free content' },
7266 { icon: 'i-akar-icons-coin', label: 'Coin / Point' },
73 { icon: 'i-ic-round-add-shopping-cart', label: 'Freemium' },
67 { icon: 'i-ic-round-add-shopping-cart', label: 'Freemium' }
7468 ]
7569 },
7670 {
@@ -141,34 +135,23 @@ const sections = [
141135 ]
142136 }
143137]
144
145138</script>
146139
147140<template>
148141 <Teleport to="body">
149142 <Transition name="modal">
150 <div
151 v-if="isOpen"
152 class="fixed inset-0 z-9999 p-4 sm:p-6 overflow-y-auto"
153 >
143 <div v-if="isOpen" class="fixed inset-0 z-9999 p-4 sm:p-6 overflow-y-auto">
154144 <!-- Backdrop -->
155 <div
156 class="fixed inset-0 bg-black/50 backdrop-blur-sm"
157 @click="$emit('close')"
158 />
145 <div class="fixed inset-0 bg-black/50 backdrop-blur-sm" @click="$emit('close')" />
159146
160147 <!-- Modal -->
161148 <div
162 class="relative mx-auto bg-$vp-c-bg rounded-lg border-2 border-$vp-c-default-soft p-4 sm:p-6 shadow-xl w-full max-w-4xl mt-16 mb-8"
163 >
149 class="relative mx-auto bg-$vp-c-bg rounded-lg border-2 border-$vp-c-default-soft p-4 sm:p-6 shadow-xl w-full max-w-4xl mt-16 mb-8">
164150 <div class="flex justify-between items-center mb-4 sm:mb-6">
165151 <h2 class="text-$vp-c-text-1 text-lg sm:text-xl font-bold">
166152 Legend
167153 </h2>
168 <button
169 class="text-$vp-c-text-2 hover:text-$vp-c-text-1 transition-colors p-1"
170 @click="$emit('close')"
171 >
154 <button class="text-$vp-c-text-2 hover:text-$vp-c-text-1 transition-colors p-1" @click="$emit('close')">
172155 <div class="i-material-symbols-close text-lg" />
173156 </button>
174157 </div>
@@ -178,17 +161,10 @@ const sections = [
178161 <h3 class="text-$vp-c-text-1 font-bold mb-3">
179162 {{ section.title }}
180163 </h3>
181 <div
182 class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2"
183 >
184 <div
185 v-for="item in section.items"
186 :key="item.label"
187 class="flex flex-col items-center justify-center p-3 rounded-lg bg-$vp-c-bg-alt hover:bg-$vp-c-bg-elv transition-colors"
188 >
189 <div
190 :class="[item.icon, 'text-2xl mb-1 text-$vp-c-text-1']"
191 />
164 <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2">
165 <div v-for="item in section.items" :key="item.label"
166 class="flex flex-col items-center justify-center p-3 rounded-lg bg-$vp-c-bg-alt hover:bg-$vp-c-bg-elv transition-colors">
167 <div :class="[item.icon, 'text-2xl mb-1 text-$vp-c-text-1']" />
192168 <div class="text-$vp-c-text-2 text-xs text-center">
193169 {{ item.label }}
194170 </div>
docs/.vitepress/theme/components/NewDomainBanner.vue +5 −18
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { ref, watchEffect } from 'vue'
@@ -45,14 +37,9 @@ const dismiss = () => {
4537 . Bookmark & share!!
4638 </div>
4739 <button type="button" @click="dismiss">
48 <svg
49 xmlns="http://www.w3.org/2000/svg"
50 viewBox="0 0 20 20"
51 fill="currentColor"
52 >
40 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
5341 <path
54 d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
55 />
42 d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" />
5643 </svg>
5744 </button>
5845 </div>
docs/.vitepress/theme/components/NotFound.vue +43 −47
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { ref } from 'vue'
@@ -23,32 +15,18 @@ const imageSize = ref('550px') // Fixed size for the image
2315<template>
2416 <div class="flex min-h-[calc(100vh-4rem)] items-center justify-center p-4">
2517 <div class="text-center">
26 <img
27 :style="{ width: imageSize, height: 'auto' }"
28 src="/asset/404.gif"
29 alt="404 Image"
30 class="mx-auto"
31 />
18 <img :style="{ width: imageSize, height: 'auto' }" src="/asset/404.gif" alt="404 Image" class="mx-auto" />
3219 <p class="text-title-lg mt-4 font-bold leading-tight text-white">404</p>
33 <p
34 class="text-body-lg flex flex-wrap items-center justify-center leading-snug text-gray-400"
35 >
20 <p class="text-body-lg flex flex-wrap items-center justify-center leading-snug text-gray-400">
3621 Umm.... you shouldn’t be here
3722 <span class="icon-container mx-1">
3823 <img class="icon-img" src="/asset/inahuh.png" alt="Inahuh Icon" />
3924 </span>
4025 If you got here from a link, please click
4126 <span class="icon-container mx-1">
42 <svg
43 class="w-icon h-icon inline-block align-text-bottom"
44 xmlns="http://www.w3.org/2000/svg"
45 viewBox="0 0 24 24"
46 fill="none"
47 stroke="currentColor"
48 stroke-linecap="round"
49 stroke-linejoin="round"
50 stroke-width="2"
51 >
27 <svg class="w-icon h-icon inline-block align-text-bottom" xmlns="http://www.w3.org/2000/svg"
28 viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
29 stroke-width="2">
5230 <rect width="20" height="16" x="2" y="4" rx="2"></rect>
5331 <path d="m22 7l-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path>
5432 </svg>
@@ -61,48 +39,64 @@ const imageSize = ref('550px') // Fixed size for the image
6139
6240<style scoped>
6341.text-title-lg {
64 font-size: 1.5rem; /* Font size for titles */
42 font-size: 1.5rem;
43 /* Font size for titles */
6544}
6645
6746.text-body-lg {
68 font-size: 1rem; /* Font size for body text */
47 font-size: 1rem;
48 /* Font size for body text */
6949}
7050
7151.w-icon {
72 width: 1em; /* Make the icon size relative to the text size */
52 width: 1em;
53 /* Make the icon size relative to the text size */
7354}
7455
7556.h-icon {
76 height: 1.25em; /* Make the icon size relative to the text size */
57 height: 1.25em;
58 /* Make the icon size relative to the text size */
7759}
7860
7961.icon-container {
80 display: inline-flex; /* Use inline-flex to control spacing within the container */
81 align-items: center; /* Vertically center the icon/image */
82 justify-content: center; /* Horizontally center the icon/image */
62 display: inline-flex;
63 /* Use inline-flex to control spacing within the container */
64 align-items: center;
65 /* Vertically center the icon/image */
66 justify-content: center;
67 /* Horizontally center the icon/image */
8368}
8469
8570.icon-img {
86 width: 1em; /* Make the image size relative to the text size */
87 height: auto; /* Maintain aspect ratio */
71 width: 1em;
72 /* Make the image size relative to the text size */
73 height: auto;
74 /* Maintain aspect ratio */
8875}
8976
9077.mx-1 {
91 margin-left: 0.25em; /* Adjust this value for precise spacing */
92 margin-right: 0.25em; /* Adjust this value for precise spacing */
78 margin-left: 0.25em;
79 /* Adjust this value for precise spacing */
80 margin-right: 0.25em;
81 /* Adjust this value for precise spacing */
9382}
9483
9584@media (max-width: 640px) {
9685 .text-title-lg {
97 font-size: 1.25rem; /* Adjusted font size for smaller screens */
86 font-size: 1.25rem;
87 /* Adjusted font size for smaller screens */
9888 }
89
9990 .text-body-lg {
100 font-size: 0.875rem; /* Adjusted font size for smaller screens */
91 font-size: 0.875rem;
92 /* Adjusted font size for smaller screens */
10193 }
10294
10395 .mx-1 {
104 margin-left: 0.1em; /* Adjusted margin for smaller screens */
105 margin-right: 0.1em; /* Adjusted margin for smaller screens */
96 margin-left: 0.1em;
97 /* Adjusted margin for smaller screens */
98 margin-right: 0.1em;
99 /* Adjusted margin for smaller screens */
106100 }
107101}
108102
@@ -112,7 +106,9 @@ p {
112106}
113107
114108div {
115 max-height: 100vh; /* Prevents container from exceeding viewport height */
116 overflow-y: hidden; /* Ensures no vertical scrollbar is visible */
109 max-height: 100vh;
110 /* Prevents container from exceeding viewport height */
111 overflow-y: hidden;
112 /* Ensures no vertical scrollbar is visible */
117113}
118114</style>
docs/.vitepress/theme/components/OgImageTemplate.vue +7 −20
@@ -1,32 +1,19 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179defineProps<{ title: string; description?: string; image: string }>()
1810</script>
1911
2012<template>
21 <span
22 tw="w-full h-full bg-black flex flex-col"
23 :style="{
24 backgroundImage: `url(${image})`
25 }"
26 >
27 <span
28 tw="p-10 w-full min-h-0 grow flex flex-col items-center justify-between"
29 >
13 <span tw="w-full h-full bg-black flex flex-col" :style="{
14 backgroundImage: `url(${image})`
15 }">
16 <span tw="p-10 w-full min-h-0 grow flex flex-col items-center justify-between">
3017 <span tw="w-full flex justify-between items-center text-5xl font-medium">
3118 <span tw="flex items-center">
3219 <span tw="text-zinc-100 ml-2 mt-1 font-semibold">wotaku.wiki</span>
docs/.vitepress/theme/components/PreferenceRadio.vue +5 −19
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { useLocalStorage } from '@vueuse/core'
@@ -47,13 +39,7 @@ function removeSpaces(str: string) {
4739 <p class="title">{{ text }}</p>
4840 <div class="VPPreference" :class="{ 'screen-menu': screenMenu }">
4941 <template v-for="option in optionsWithKeys" :key="option">
50 <input
51 type="radio"
52 :id="option.key"
53 :name="name"
54 :value="option.value"
55 v-model="selected"
56 />
42 <input type="radio" :id="option.key" :name="name" :value="option.value" v-model="selected" />
5743 <label :for="option.key">{{ option.value }}</label>
5844 </template>
5945 </div>
@@ -96,7 +82,7 @@ function removeSpaces(str: string) {
9682 text-align: center;
9783}
9884
99.VPPreference input[type='radio']:checked + label {
85.VPPreference input[type='radio']:checked+label {
10086 background-color: var(--vp-c-default-soft);
10187 color: var(--vp-c-brand-1);
10288}
docs/.vitepress/theme/components/ReloadPrompt.vue +7 −24
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { onBeforeMount, ref } from 'vue'
@@ -40,24 +32,15 @@ onBeforeMount(async () => {
4032 <template v-if="needRefresh">
4133 <div
4234 class="pwa-toast z-100 bg-$vp-c-bg b b-solid b-1px b-color-$pwa-border rounded-2 fixed bottom-0 right-0 m-6 px-6 py-4 shadow-xl"
43 role="alertdialog"
44 aria-labelledby="pwa-message"
45 >
35 role="alertdialog" aria-labelledby="pwa-message">
4636 <div id="pwa-message" class="mb-3">
4737 New content available, click the reload button to update.
4838 </div>
49 <button
50 type="button"
51 class="pwa-refresh mr-2 rounded px-3 py-1"
52 @click="updateServiceWorker?.()"
53 >
39 <button type="button" class="pwa-refresh mr-2 rounded px-3 py-1" @click="updateServiceWorker?.()">
5440 Reload
5541 </button>
56 <button
57 type="button"
58 class="pwa-cancel b b-solid b-1px !b-color-$pwa-border mr-2 rounded px-3 py-1"
59 @click="close"
60 >
42 <button type="button" class="pwa-cancel b b-solid b-1px !b-color-$pwa-border mr-2 rounded px-3 py-1"
43 @click="close">
6144 Close
6245 </button>
6346 </div>
docs/.vitepress/theme/components/SidebarCard.vue +10 −21
@@ -1,39 +1,28 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
17import { ref } from 'vue'
9import { ref } from "vue";
1810
19import LegendModal from './LegendModal.vue'
11import LegendModal from "./LegendModal.vue";
2012
21const isModalOpen = ref(false)
13const isModalOpen = ref(false);
2214
2315const focusLegendModal = () => {
24 isModalOpen.value = true
25}
16 isModalOpen.value = true;
17};
2618</script>
2719
2820<template>
2921 <div
30 class="bg-$vp-c-bg hover:bg-$vp-c-bg/40 border-$vp-c-default-soft hover:border-primary transition-border relative z-0 rounded-lg border-2 border-solid p-5 duration-500 mt-2"
31 >
22 class="bg-$vp-c-bg hover:bg-$vp-c-bg/40 border-$vp-c-default-soft hover:border-primary transition-border relative z-0 rounded-lg border-2 border-solid p-5 duration-500 mt-2">
3223 <button class="w-full text-left" @click="isModalOpen = true">
3324 <div class="align-center flex items-center gap-2">
34 <div
35 class="i-material-symbols-info-outline-rounded text-$vp-c-text-2"
36 />
25 <div class="i-material-symbols-info-outline-rounded text-$vp-c-text-2" />
3726 <div class="text-$vp-c-text-1 lh-relaxed text-sm font-bold">Legend</div>
3827 </div>
3928 <div class="text-$vp-c-text-2 text-xs mt-1">
docs/.vitepress/theme/components/Tooltip.vue +16 −30
@@ -1,48 +1,34 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179withDefaults(
18 defineProps<{
19 title: string;
20 icon: string;
21 }>(),
22 {
23 title: "Info",
24 // https://icon-sets.iconify.design/material-symbols/
25 icon: "i-material-symbols-info-i",
26 },
27);
10 defineProps<{
11 title: string
12 icon: string
13 }>(),
14 {
15 title: 'Info',
16 // https://icon-sets.iconify.design/material-symbols/
17 icon: 'i-material-symbols-info-i'
18 }
19)
2820</script>
2921
3022<template>
3123 <VTooltip theme="vp-tooltip">
3224 <button
33 class="bg-$vp-c-default-soft hover:bg-$vp-c-default-soft/40 text-primary border-$vp-c-default-soft hover:border-primary ml-2 size-7 select-none rounded rounded-full border-2 border-solid font-bold transition-all duration-300"
34 >
25 class="bg-$vp-c-default-soft hover:bg-$vp-c-default-soft/40 text-primary border-$vp-c-default-soft hover:border-primary ml-2 size-7 select-none rounded rounded-full border-2 border-solid font-bold transition-all duration-300">
3526 <div :class="icon" />
3627 </button>
3728
3829 <template #popper>
39 <div
40 class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 max-w-lg border-2 border-solid p-4 transition-all"
41 >
42 <h3
43 class="text-$vp-c-text-1 mb-2 text-lg font-semibold"
44 v-text="title"
45 />
30 <div class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 max-w-lg border-2 border-solid p-4 transition-all">
31 <h3 class="text-$vp-c-text-1 mb-2 text-lg font-semibold" v-text="title" />
4632 <p class="text-$vp-c-text-2 text-sm content">
4733 <slot />
4834 </p>
docs/.vitepress/theme/components/VPSwitchAppearance.vue +7 −20
@@ -1,17 +1,9 @@
11<!--
2 Copyright (c) 2024 taskylizard
2 All Rights Reserved
33
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
4 Copyright (c) 2025 taskylizard
75
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157-->
168<script setup lang="ts">
179import { useData } from 'vitepress'
@@ -27,14 +19,8 @@ const toggleAppearance = inject('toggle-appearance', () => {
2719</script>
2820
2921<template>
30 <button
31 type="button"
32 role="switch"
33 title="VPSwitchAppearance"
34 class="VPSwitchAppearance"
35 :aria-checked="isDark"
36 @click="toggleAppearance"
37 >
22 <button type="button" role="switch" title="VPSwitchAppearance" class="VPSwitchAppearance" :aria-checked="isDark"
23 @click="toggleAppearance">
3824 <ClientOnly>
3925 <Transition name="fade" mode="out-in">
4026 <VPIconSun v-if="!isDark" class="sun" />
@@ -59,13 +45,14 @@ const toggleAppearance = inject('toggle-appearance', () => {
5945 transition: color 0.25s;
6046 }
6147
62 & > :deep(svg) {
48 &> :deep(svg) {
6349 width: 20px;
6450 height: 20px;
6551 fill: currentColor;
6652 }
6753
6854 &[data-view-transition='false'] {
55
6956 .fade-enter-active,
7057 .fade-leave-active {
7158 transition: opacity 0.1s ease;
docs/.vitepress/theme/composables/medium-zoom.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import mediumZoom from 'medium-zoom'
179import { inject, nextTick, onMounted, watch } from 'vue'
1810import type { Zoom } from 'medium-zoom'
docs/.vitepress/theme/composables/op.ts +7
@@ -1,3 +1,10 @@
1/**
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
18import type { App, InjectionKey } from 'vue'
29import { Internal } from '../internal/browser'
310
docs/.vitepress/theme/composables/useTooltips.ts +18 −27
@@ -1,41 +1,32 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { ref } from "vue";
17import { getTooltip, type TooltipData } from "virtual:tooltips";
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
8import { ref } from 'vue'
9import { getTooltip, type TooltipData } from 'virtual:tooltips'
1810
19const tooltipCache = ref<Map<string, TooltipData>>(new Map());
11const tooltipCache = ref<Map<string, TooltipData>>(new Map())
2012
2113export function useTooltips() {
2214 const getTooltipData = (id: string): TooltipData | null => {
2315 if (tooltipCache.value.has(id)) {
24 return tooltipCache.value.get(id)!;
16 return tooltipCache.value.get(id)!
2517 }
2618
27 const tooltip = getTooltip(id);
19 const tooltip = getTooltip(id)
2820 if (tooltip) {
29 tooltipCache.value.set(id, tooltip);
30 return tooltip;
21 tooltipCache.value.set(id, tooltip)
22 return tooltip
3123 }
3224
33 console.warn(`Tooltip with id "${id}" not found`);
34 return null;
35 };
25 console.warn(`Tooltip with id "${id}" not found`)
26 return null
27 }
3628
3729 return {
38 getTooltipData,
39 };
30 getTooltipData
31 }
4032}
41
docs/.vitepress/theme/index.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import type { Theme } from 'vitepress'
179import DefaultTheme from 'vitepress/theme'
1810import '@nolebase/vitepress-plugin-git-changelog/client/style.css'
docs/.vitepress/theme/internal/api.ts +7
@@ -1,3 +1,10 @@
1/**
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
18interface ApiConfig {
29 baseUrl: string
310 defaultHeaders?: Record<string, string | Promise<string | null>>
docs/.vitepress/theme/internal/browser.ts +7
@@ -1,3 +1,10 @@
1/**
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
18import type {
29 InternalOptions as InternalBaseOptions,
310 TrackProperties
docs/.vitepress/theme/math.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168// Thanks to @yellowsink for the original code!! <3
179// https://github.com/uwu/uwu.network/blob/master/src/components/sink/Takodachi.astro
1810
docs/.vitepress/theme/styles/style.css +4 −12
@@ -1,17 +1,9 @@
11/**
2 * Copyright (c) 2024 taskylizard
2 * All Rights Reserved
33 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
4 * Copyright (c) 2025 taskylizard
75 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
6 * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
157 */
168:root {
179 /** Layout */
@@ -529,4 +521,4 @@ table tr:nth-child(odd) {
529521 }
530522 }
531523 }
532}
\ No newline at end of file
524}
docs/.vitepress/theme/styles/tooltip-hint.css +7
@@ -1,3 +1,10 @@
1/**
2 * All Rights Reserved
3 *
4 * Copyright (c) 2025 taskylizard
5 *
6 * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7 */
18@import url('floating-vue/dist/style.css');
29
310div.v-popper--theme-hint {
docs/.vitepress/types/Feedback.ts +8 −16
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import z from 'zod'
179
1810export const FeedbackSchema = z.object({
@@ -41,7 +33,7 @@ export const feedbackOptions: Option[] = [
4133 value: 'submit'
4234 },
4335 {
44 label: '❗️ Update link',
36 label: '❗ Update link',
4537 value: 'update'
4638 },
4739 {
@@ -53,7 +45,7 @@ export const feedbackOptions: Option[] = [
5345 value: 'suggestion'
5446 },
5547 {
56 label: '❤️ Love the wiki',
48 label: '❤ Love the wiki',
5749 value: 'appreciation'
5850 },
5951 { label: '💬 Something else', value: 'other' }
docs/.vitepress/types/tooltip.d.ts +7
@@ -1,3 +1,10 @@
1/**
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
18declare module 'virtual:tooltips' {
29 export interface TooltipData {
310 id: string
docs/.vitepress/utils/tooltips.ts +31 −40
@@ -1,67 +1,58 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17import { readdirSync, readFileSync } from "node:fs";
18import { basename, join, resolve } from "pathe";
19import matter from "gray-matter";
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
8import { readdirSync, readFileSync } from 'node:fs'
9import { basename, join, resolve } from 'pathe'
10import matter from 'gray-matter'
2011
2112export interface TooltipData {
22 id: string;
23 frontmatter: Record<string, string>;
24 content: string;
13 id: string
14 frontmatter: Record<string, string>
15 content: string
2516}
2617
27let tooltipsCache: TooltipData[] | null = null;
18let tooltipsCache: TooltipData[] | null = null
2819
2920export function loadTooltips(): TooltipData[] {
30 if (tooltipsCache) return tooltipsCache;
21 if (tooltipsCache) return tooltipsCache
3122
32 const tooltipsDir = resolve(process.cwd(), "docs/.vitepress/tooltips");
33 const tooltips: TooltipData[] = [];
23 const tooltipsDir = resolve(process.cwd(), 'docs/.vitepress/tooltips')
24 const tooltips: TooltipData[] = []
3425
3526 try {
3627 const files = readdirSync(tooltipsDir).filter((file) =>
37 file.endsWith(".md"),
38 );
28 file.endsWith('.md')
29 )
3930
4031 for (const file of files) {
41 const filePath = join(tooltipsDir, file);
42 const fileContent = readFileSync(filePath, "utf-8");
43 const { data, content } = matter(fileContent);
32 const filePath = join(tooltipsDir, file)
33 const fileContent = readFileSync(filePath, 'utf-8')
34 const { data, content } = matter(fileContent)
4435
45 const id = basename(file, ".md");
46 const cleanContent = content.trim();
36 const id = basename(file, '.md')
37 const cleanContent = content.trim()
4738
4839 tooltips.push({
4940 id,
5041 frontmatter: data,
51 content: cleanContent,
52 });
42 content: cleanContent
43 })
5344 }
5445 } catch (error) {
55 console.warn("Failed to load tooltips:", error);
46 console.warn('Failed to load tooltips:', error)
5647 }
5748
58 tooltipsCache = tooltips;
59 return tooltips;
49 tooltipsCache = tooltips
50 return tooltips
6051}
6152
6253export function getTooltip(id: string): TooltipData | undefined {
63 const tooltips = loadTooltips();
64 return tooltips.find((tooltip) => tooltip.id === id);
54 const tooltips = loadTooltips()
55 return tooltips.find((tooltip) => tooltip.id === id)
6556}
6657
67export const tooltips = loadTooltips();
58export const tooltips = loadTooltips()
docs/.vitepress/vue-shim.d.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168/* eslint-disable ts/consistent-type-imports */
179declare module '*.vue' {
1810 const component: import('vue').Component
nitro.config.ts +7 −15
@@ -1,24 +1,16 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168//https://nitro.unjs.io/config
179export default defineNitroConfig({
1810 compatibilityDate: '2024-12-16',
1911 runtimeConfig: {
2012 WEBHOOK_URL: process.env.WEBHOOK_URL,
21 op: { url: process.env.OP_URL, id: process.env.OP_ID },
13 op: { url: process.env.OP_URL, id: process.env.OP_ID }
2214 },
2315 srcDir: 'api',
2416 routeRules: {
unocss.config.ts +6 −14
@@ -1,18 +1,10 @@
11/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
2* All Rights Reserved
3*
4* Copyright (c) 2025 taskylizard
5*
6* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7*/
168import { colors } from '@taskylizard/colors'
179import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders'
1810import { resolve } from 'node:path'