Commit 0dddca8d19
Unregistered key
Layout: unified · split
.licenserc.json +9 −33
| @@ -1,53 +1,29 @@ | |||
| 1 | { | 1 | { |
| 2 | "**/*.ts": [ | 2 | "**/*.ts": [ |
| 3 | "/**", | 3 | "/**", |
| 4 | "* Copyright (c) 2025 taskylizard", | 4 | "* All Rights Reserved", |
| 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", | ||
| 9 | "*", | 5 | "*", |
| 10 | "* http://www.apache.org/licenses/LICENSE-2.0", | 6 | "* Copyright (c) 2025 taskylizard", |
| 11 | "*", | 7 | "*", |
| 12 | "* Unless required by applicable law or agreed to in writing, software", | 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.", |
| 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.", | ||
| 17 | "*/" | 9 | "*/" |
| 18 | ], | 10 | ], |
| 19 | "**/*.vue": [ | 11 | "**/*.vue": [ |
| 20 | "<!--", | 12 | "<!--", |
| 21 | " Copyright (c) 2025 taskylizard", | 13 | " All Rights Reserved", |
| 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", | ||
| 26 | "", | 14 | "", |
| 27 | " http://www.apache.org/licenses/LICENSE-2.0", | 15 | " Copyright (c) 2025 taskylizard", |
| 28 | "", | 16 | "", |
| 29 | " Unless required by applicable law or agreed to in writing, software", | 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.", |
| 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.", | ||
| 34 | "-->" | 18 | "-->" |
| 35 | ], | 19 | ], |
| 36 | "**/*.css": [ | 20 | "**/*.css": [ |
| 37 | "/**", | 21 | "/**", |
| 38 | " * Copyright (c) 2025 taskylizard", | 22 | " * All Rights Reserved", |
| 39 | " *", | 23 | " *", |
| 40 | " * Licensed under the Apache License, Version 2.0 (the \"License\");", | 24 | " * Copyright (c) 2025 taskylizard", |
| 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", | ||
| 45 | " *", | 25 | " *", |
| 46 | " * Unless required by applicable law or agreed to in writing, software", | 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.", |
| 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.", | ||
| 51 | " */" | 27 | " */" |
| 52 | ], | 28 | ], |
| 53 | "ignore": [ | 29 | "ignore": [ |
LICENSE.md +3 −20
| @@ -1,22 +1,5 @@ | |||
| 1 | Copyright (c) 2024 Wotaku Team | 1 | All Rights Reserved |
| 2 | 2 | ||
| 3 | The following terms and conditions apply to the contents (markdown, assets) of this repository. For the software, see the license headers in the source files. | 3 | Copyright (c) 2025 taskylizard |
| 4 | 4 | ||
| 5 | ## Terms of Use | 5 | 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. |
| 6 | |||
| 7 | Permission is hereby granted to use the contents under the following conditions: | ||
| 8 | |||
| 9 | 1. **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 | ||
| 13 | 2. **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 | ||
| 19 | 3. **Derivative Works**: | ||
| 20 | - Modifications are allowed, but must be clearly marked as changes from the original | ||
| 21 | |||
| 22 | The 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. | ||
api/middleware/cors.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import { corsEventHandler } from 'nitro-cors' | 8 | import { corsEventHandler } from 'nitro-cors' |
| 17 | 9 | ||
| 18 | export default corsEventHandler((_event) => {}, { | 10 | export default corsEventHandler((_event) => {}, { |
api/routes/index.post.ts +15 −24
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import { fetcher } from 'itty-fetcher' | 8 | import { fetcher } from 'itty-fetcher' |
| 17 | import { | 9 | import { |
| 18 | FeedbackSchema, | 10 | FeedbackSchema, |
| @@ -59,16 +51,15 @@ export default defineEventHandler(async (event) => { | |||
| 59 | 51 | ||
| 60 | await fetcher() | 52 | await fetcher() |
| 61 | .post(env.WEBHOOK_URL, { | 53 | .post(env.WEBHOOK_URL, { |
| 62 | username: 'Feedback', | 54 | username: 'Feedback', |
| 63 | embeds: [ | 55 | embeds: [ |
| 64 | { | 56 | { |
| 65 | color: 3447003, | 57 | color: 3447003, |
| 66 | title: getFeedbackOption(type)!.label, | 58 | title: getFeedbackOption(type)!.label, |
| 67 | fields | 59 | fields |
| 68 | } | 60 | } |
| 69 | ] | 61 | ] |
| 70 | } | 62 | }) |
| 71 | ) | ||
| 72 | .catch((error) => { | 63 | .catch((error) => { |
| 73 | throw new Error(error) | 64 | throw new Error(error) |
| 74 | }) | 65 | }) |
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 | */ | ||
| 1 | import { joinURL } from 'ufo' | 8 | import { joinURL } from 'ufo' |
| 2 | 9 | ||
| 3 | export default defineEventHandler(async (event) => { | 10 | export default defineEventHandler(async (event) => { |
api/routes/single-page.ts +6 −30
| @@ -1,34 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | |||
| 32 | import { fetcher } from 'itty-fetcher' | 8 | import { fetcher } from 'itty-fetcher' |
| 33 | 9 | ||
| 34 | // Look inside tbe docs directory | 10 | // Look inside tbe docs directory |
api/routes/test.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | export default eventHandler(() => { | 8 | export default eventHandler(() => { |
| 17 | return { nitro: 'works' } | 9 | return { nitro: 'works' } |
| 18 | }) | 10 | }) |
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 | */ | ||
| 1 | import type { DefaultTheme } from 'vitepress' | 8 | import type { DefaultTheme } from 'vitepress' |
| 2 | import { x } from 'tinyexec' | 9 | import { x } from 'tinyexec' |
| 3 | 10 | ||
docs/.vitepress/configs/hooks/index.ts +6 −18
| @@ -1,21 +1,9 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | |||
| 20 | export * from './meta' | 8 | export * from './meta' |
| 21 | export * from './opengraph' | 9 | export * from './opengraph' |
docs/.vitepress/configs/hooks/meta.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import type { HeadConfig, TransformContext } from 'vitepress' | 8 | import type { HeadConfig, TransformContext } from 'vitepress' |
| 17 | import { excludedFiles } from '../constants' | 9 | import { excludedFiles } from '../constants' |
| 18 | 10 | ||
docs/.vitepress/configs/hooks/opengraph.ts +9 −17
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import { mkdir, readFile, writeFile } from 'node:fs/promises' | 8 | import { mkdir, readFile, writeFile } from 'node:fs/promises' |
| 17 | import { dirname, resolve } from 'node:path' | 9 | import { dirname, resolve } from 'node:path' |
| 18 | import { fileURLToPath } from 'node:url' | 10 | import { fileURLToPath } from 'node:url' |
| @@ -110,11 +102,11 @@ async function generateImage({ | |||
| 110 | props: { | 102 | props: { |
| 111 | title: | 103 | title: |
| 112 | frontmatter.layout === 'home' | 104 | frontmatter.layout === 'home' |
| 113 | ? frontmatter.hero.name ?? frontmatter.title | 105 | ? (frontmatter.hero.name ?? frontmatter.title) |
| 114 | : frontmatter.customMetaTitle ?? frontmatter.title, | 106 | : (frontmatter.customMetaTitle ?? frontmatter.title), |
| 115 | description: | 107 | description: |
| 116 | frontmatter.layout === 'home' | 108 | frontmatter.layout === 'home' |
| 117 | ? frontmatter.hero.tagline ?? frontmatter.description | 109 | ? (frontmatter.hero.tagline ?? frontmatter.description) |
| 118 | : frontmatter.description, | 110 | : frontmatter.description, |
| 119 | // dir: getDir(url) | 111 | // dir: getDir(url) |
| 120 | image: frontmatter.og?.image ?? 'https://i.wotaku.wiki/f/default.png' | 112 | image: frontmatter.og?.image ?? 'https://i.wotaku.wiki/f/default.png' |
docs/.vitepress/configs/hooks/satoriConfig.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import { readFile } from 'node:fs/promises' | 8 | import { readFile } from 'node:fs/promises' |
| 17 | import { dirname, resolve } from 'node:path' | 9 | import { dirname, resolve } from 'node:path' |
| 18 | import { fileURLToPath } from 'node:url' | 10 | import { fileURLToPath } from 'node:url' |
docs/.vitepress/configs/index.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import type { DefaultTheme, Plugin, UserConfig } from 'vitepress' | 8 | import type { DefaultTheme, Plugin, UserConfig } from 'vitepress' |
| 17 | import { generateImages, generateMeta } from './hooks' | 9 | import { generateImages, generateMeta } from './hooks' |
| 18 | import { defs, movePlugin, aliases } from './markdown/emoji' | 10 | import { defs, movePlugin, aliases } from './markdown/emoji' |
docs/.vitepress/configs/markdown/emoji.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import type { MarkdownRenderer } from 'vitepress' | 8 | import type { MarkdownRenderer } from 'vitepress' |
| 17 | import type { IconifyJSON } from '@iconify-json/octicon' | 9 | import type { IconifyJSON } from '@iconify-json/octicon' |
| 18 | 10 | ||
docs/.vitepress/configs/markdown/headers.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import type { MarkdownRenderer } from 'vitepress' | 8 | import type { MarkdownRenderer } from 'vitepress' |
| 17 | 9 | ||
| 18 | const excluded = ['Credits'] | 10 | const 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 | */ | ||
| 1 | import MdMTables from 'markdown-it-multimd-table' | 8 | import MdMTables from 'markdown-it-multimd-table' |
| 2 | // @ts-expect-error | 9 | // @ts-expect-error |
| 3 | import MdReg from 'markdown-it-regexp' | 10 | import MdReg from 'markdown-it-regexp' |
docs/.vitepress/credits.ts +7 −15
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | interface Contributor { | 8 | interface Contributor { |
| 17 | name: string | 9 | name: string |
| 18 | avatar: string | 10 | avatar: string |
| @@ -99,7 +91,7 @@ export const contribs = { | |||
| 99 | avatar: 'https://github.com/officialkaizen.png', | 91 | avatar: 'https://github.com/officialkaizen.png', |
| 100 | site: 'https://github.com/officialkaizen' | 92 | site: 'https://github.com/officialkaizen' |
| 101 | }, | 93 | }, |
| 102 | { | 94 | { |
| 103 | name: 'ld3z', | 95 | name: 'ld3z', |
| 104 | avatar: 'https://github.com/ld3z.png', | 96 | avatar: 'https://github.com/ld3z.png', |
| 105 | site: 'https://github.com/ld3z' | 97 | site: 'https://github.com/ld3z' |
docs/.vitepress/theme/Layout.vue +6 −20
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import DefaultTheme from 'vitepress/theme' | 9 | import DefaultTheme from 'vitepress/theme' |
| @@ -130,17 +122,11 @@ const { Layout } = DefaultTheme | |||
| 130 | <template> | 122 | <template> |
| 131 | <Layout> | 123 | <Layout> |
| 132 | <template #layout-top> | 124 | <template #layout-top> |
| 133 | <img | 125 | <img id="takodachi" ref="takodachiRef" src="/takodachi.webp" alt="Takodachi" |
| 134 | id="takodachi" | 126 | class="pointer-events-none fixed absolute z-[9999] h-10 w-10 opacity-0 transition-opacity duration-500" :style="{ |
| 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="{ | ||
| 140 | left: `${position.x}px`, | 127 | left: `${position.x}px`, |
| 141 | top: `${position.y}px` | 128 | top: `${position.y}px` |
| 142 | }" | 129 | }" /> |
| 143 | /> | ||
| 144 | </template> | 130 | </template> |
| 145 | <template #not-found> | 131 | <template #not-found> |
| 146 | <NotFoundComponent /> | 132 | <NotFoundComponent /> |
docs/.vitepress/theme/components/AnnouncementPill.vue +3 −11
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { useData } from 'vitepress' | 9 | import { useData } from 'vitepress' |
docs/.vitepress/theme/components/Authors.vue +3 −11
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { computed } from 'vue' | 9 | import { computed } from 'vue' |
docs/.vitepress/theme/components/Badge.vue +11 −24
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | interface Props { | 9 | interface Props { |
| @@ -26,13 +18,8 @@ withDefaults(defineProps<Props>(), { | |||
| 26 | </script> | 18 | </script> |
| 27 | 19 | ||
| 28 | <template> | 20 | <template> |
| 29 | <component | 21 | <component :target="link ? '_blank' : undefined" :is="link ? 'a' : 'span'" class="VPBadge" |
| 30 | :target="link ? '_blank' : undefined" | 22 | :class="link ? 'tip' : type" :href="link"> |
| 31 | :is="link ? 'a' : 'span'" | ||
| 32 | class="VPBadge" | ||
| 33 | :class="link ? 'tip' : type" | ||
| 34 | :href="link" | ||
| 35 | > | ||
| 36 | <div v-if="icon" :class="icon" /> | 23 | <div v-if="icon" :class="icon" /> |
| 37 | <slot>{{ text }}</slot> | 24 | <slot>{{ text }}</slot> |
| 38 | </component> | 25 | </component> |
| @@ -57,24 +44,24 @@ withDefaults(defineProps<Props>(), { | |||
| 57 | text-decoration: none !important; | 44 | text-decoration: none !important; |
| 58 | } | 45 | } |
| 59 | 46 | ||
| 60 | .vp-doc h1 > .VPBadge { | 47 | .vp-doc h1>.VPBadge { |
| 61 | margin-top: 4px; | 48 | margin-top: 4px; |
| 62 | vertical-align: top; | 49 | vertical-align: top; |
| 63 | } | 50 | } |
| 64 | 51 | ||
| 65 | .vp-doc h2 > .VPBadge { | 52 | .vp-doc h2>.VPBadge { |
| 66 | margin-top: 3px; | 53 | margin-top: 3px; |
| 67 | padding: 0 8px; | 54 | padding: 0 8px; |
| 68 | vertical-align: top; | 55 | vertical-align: top; |
| 69 | } | 56 | } |
| 70 | 57 | ||
| 71 | .vp-doc h3 > .VPBadge { | 58 | .vp-doc h3>.VPBadge { |
| 72 | vertical-align: middle; | 59 | vertical-align: middle; |
| 73 | } | 60 | } |
| 74 | 61 | ||
| 75 | .vp-doc h4 > .VPBadge, | 62 | .vp-doc h4>.VPBadge, |
| 76 | .vp-doc h5 > .VPBadge, | 63 | .vp-doc h5>.VPBadge, |
| 77 | .vp-doc h6 > .VPBadge { | 64 | .vp-doc h6>.VPBadge { |
| 78 | vertical-align: middle; | 65 | vertical-align: middle; |
| 79 | line-height: 18px; | 66 | line-height: 18px; |
| 80 | } | 67 | } |
docs/.vitepress/theme/components/Button.vue +5 −18
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | withDefaults( | 9 | withDefaults( |
| @@ -26,13 +18,8 @@ withDefaults( | |||
| 26 | </script> | 18 | </script> |
| 27 | 19 | ||
| 28 | <template> | 20 | <template> |
| 29 | <component | 21 | <component :target="link ? '_blank' : undefined" :is="link ? 'a' : 'span'" :href="link" :class="type" |
| 30 | :target="link ? '_blank' : undefined" | 22 | class="VButton px4 py3 mt2 gap2 block flex items-center rounded-md"> |
| 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 | > | ||
| 36 | <div :class="icon" /> | 23 | <div :class="icon" /> |
| 37 | <slot>{{ text }}</slot> | 24 | <slot>{{ text }}</slot> |
| 38 | </component> | 25 | </component> |
docs/.vitepress/theme/components/CardField.vue +3 −11
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | defineProps<{ | 9 | defineProps<{ |
docs/.vitepress/theme/components/ChristmasCard.vue +7 −15
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { ref } from 'vue' | 9 | import { ref } from 'vue' |
| @@ -38,10 +30,8 @@ const handleClick = () => { | |||
| 38 | </div> | 30 | </div> |
| 39 | <span class="click-icon" ref="clickIcon"> | 31 | <span class="click-icon" ref="clickIcon"> |
| 40 | <svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"> | 32 | <svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"> |
| 41 | <path | 33 | <path fill="#fff" |
| 42 | 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" /> |
| 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 | /> | ||
| 45 | </svg> | 35 | </svg> |
| 46 | </span> | 36 | </span> |
| 47 | </template> | 37 | </template> |
| @@ -146,6 +136,7 @@ const handleClick = () => { | |||
| 146 | } | 136 | } |
| 147 | 137 | ||
| 148 | @media (max-width: 767px) { | 138 | @media (max-width: 767px) { |
| 139 | |||
| 149 | .card, | 140 | .card, |
| 150 | .card-page { | 141 | .card-page { |
| 151 | width: 230px; | 142 | width: 230px; |
| @@ -154,6 +145,7 @@ const handleClick = () => { | |||
| 154 | } | 145 | } |
| 155 | 146 | ||
| 156 | @media (max-width: 479px) { | 147 | @media (max-width: 479px) { |
| 148 | |||
| 157 | .card, | 149 | .card, |
| 158 | .card-page { | 150 | .card-page { |
| 159 | width: 150px; | 151 | width: 150px; |
docs/.vitepress/theme/components/Contributors.vue +6 −23
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { computed } from 'vue' | 9 | import { computed } from 'vue' |
| @@ -24,10 +16,7 @@ const contributors = computed(() => contribs || ({} as Contributors)) | |||
| 24 | <h1 class="text-center">Core Team</h1> | 16 | <h1 class="text-center">Core Team</h1> |
| 25 | <hr /> | 17 | <hr /> |
| 26 | <div class="flex flex-wrap gap-4 pt-2"> | 18 | <div class="flex flex-wrap gap-4 pt-2"> |
| 27 | <div | 19 | <div v-for="(c, index) of contributors.core" class="flex items-center gap-2"> |
| 28 | v-for="(c, index) of contributors.core" | ||
| 29 | class="flex items-center gap-2" | ||
| 30 | > | ||
| 31 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> | 20 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> |
| 32 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> | 21 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> |
| 33 | <span v-else>{{ c.name }}</span> | 22 | <span v-else>{{ c.name }}</span> |
| @@ -38,10 +27,7 @@ const contributors = computed(() => contribs || ({} as Contributors)) | |||
| 38 | <h1 class="mt-30px text-center">Contributors</h1> | 27 | <h1 class="mt-30px text-center">Contributors</h1> |
| 39 | <hr /> | 28 | <hr /> |
| 40 | <div class="flex flex-wrap gap-4 pt-2"> | 29 | <div class="flex flex-wrap gap-4 pt-2"> |
| 41 | <div | 30 | <div v-for="(c, index) of contributors.contributors" class="flex items-center gap-2"> |
| 42 | v-for="(c, index) of contributors.contributors" | ||
| 43 | class="flex items-center gap-2" | ||
| 44 | > | ||
| 45 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> | 31 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> |
| 46 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> | 32 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> |
| 47 | <span v-else>{{ c.name }}</span> | 33 | <span v-else>{{ c.name }}</span> |
| @@ -52,10 +38,7 @@ const contributors = computed(() => contribs || ({} as Contributors)) | |||
| 52 | <h1 class="mt-30px text-center">Special Thanks to</h1> | 38 | <h1 class="mt-30px text-center">Special Thanks to</h1> |
| 53 | <hr /> | 39 | <hr /> |
| 54 | <div class="flex flex-wrap gap-4 pt-2"> | 40 | <div class="flex flex-wrap gap-4 pt-2"> |
| 55 | <div | 41 | <div v-for="(c, index) of contributors.special" class="flex items-center gap-2"> |
| 56 | v-for="(c, index) of contributors.special" | ||
| 57 | class="flex items-center gap-2" | ||
| 58 | > | ||
| 59 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> | 42 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> |
| 60 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> | 43 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> |
| 61 | <span v-else>{{ c.name }}</span> | 44 | <span v-else>{{ c.name }}</span> |
docs/.vitepress/theme/components/Feedback.vue +28 −66
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { computed, ref, reactive } from 'vue' | 9 | import { computed, ref, reactive } from 'vue' |
| @@ -76,11 +68,11 @@ const isDisabled = computed(() => { | |||
| 76 | const router = useRouter() | 68 | const router = useRouter() |
| 77 | // prettier-ignore | 69 | // prettier-ignore |
| 78 | const feedback = reactive< | 70 | const feedback = reactive< |
| 79 | Pick<FeedbackType, 'message' | 'page'> & Partial<Pick<FeedbackType, 'type'>> | 71 | Pick<FeedbackType, "message" | "page"> & Partial<Pick<FeedbackType, "type">> |
| 80 | >({ | 72 | >({ |
| 81 | page: getURL(props.heading!), | 73 | page: getURL(props.heading!), |
| 82 | message: '' | 74 | message: "", |
| 83 | }) | 75 | }); |
| 84 | 76 | ||
| 85 | const selectedOption = ref(feedbackOptions[0]) | 77 | const selectedOption = ref(feedbackOptions[0]) |
| 86 | 78 | ||
| @@ -136,46 +128,33 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | |||
| 136 | 128 | ||
| 137 | <template> | 129 | <template> |
| 138 | <template v-if="props.heading"> | 130 | <template v-if="props.heading"> |
| 139 | <button | 131 | <button @click="toggleCard()" |
| 140 | @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"> |
| 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" | 133 | <span :class="isCardShown === false ? `i-lucide:mail` : `i-lucide:mail-x`" /> |
| 142 | > | ||
| 143 | <span | ||
| 144 | :class="isCardShown === false ? `i-lucide:mail` : `i-lucide:mail-x`" | ||
| 145 | /> | ||
| 146 | </button> | 134 | </button> |
| 147 | </template> | 135 | </template> |
| 148 | <template v-else> | 136 | <template v-else> |
| 149 | <button | 137 | <button |
| 150 | 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" | 138 | 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()" | 139 | @click="toggleCard()"> |
| 152 | > | 140 | <span :class="isCardShown === false ? `i-lucide:mail mr-2` : `i-lucide:mail-x mr-2` |
| 153 | <span | 141 | " /> |
| 154 | :class=" | ||
| 155 | isCardShown === false ? `i-lucide:mail mr-2` : `i-lucide:mail-x mr-2` | ||
| 156 | " | ||
| 157 | /> | ||
| 158 | <span>Send Feedback</span> | 142 | <span>Send Feedback</span> |
| 159 | </button> | 143 | </button> |
| 160 | </template> | 144 | </template> |
| 161 | 145 | ||
| 162 | <Transition name="fade" mode="out-in"> | 146 | <Transition name="fade" mode="out-in"> |
| 163 | <div | 147 | <div v-if="isCardShown" |
| 164 | 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"> |
| 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 | > | ||
| 167 | <Transition name="fade" mode="out-in"> | 149 | <Transition name="fade" mode="out-in"> |
| 168 | <div v-if="!feedback.type"> | 150 | <div v-if="!feedback.type"> |
| 169 | <p class="heading"> | 151 | <p class="heading"> |
| 170 | {{ helpfulText }} | 152 | {{ helpfulText }} |
| 171 | </p> | 153 | </p> |
| 172 | <div class="flex flex-wrap gap-2"> | 154 | <div class="flex flex-wrap gap-2"> |
| 173 | <button | 155 | <button v-for="item in feedbackOptions" :key="item.value" |
| 174 | v-for="item in feedbackOptions" | ||
| 175 | :key="item.value" | ||
| 176 | 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" | 156 | 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)" | 157 | @click="handleSubmit(item.value)"> |
| 178 | > | ||
| 179 | <span>{{ item.label }}</span> | 158 | <span>{{ item.label }}</span> |
| 180 | </button> | 159 | </button> |
| 181 | </div> | 160 | </div> |
| @@ -220,24 +199,15 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | |||
| 220 | </li> | 199 | </li> |
| 221 | <li> | 200 | <li> |
| 222 | Sites found in the Unsafe lists of | 201 | Sites found in the Unsafe lists of |
| 223 | <a | 202 | <a href="https://fmhy.net/unsafesites" class="text-primary text-underline font-semibold"> |
| 224 | href="https://fmhy.net/unsafesites" | ||
| 225 | class="text-primary text-underline font-semibold" | ||
| 226 | > | ||
| 227 | FMHY | 203 | FMHY |
| 228 | </a> | 204 | </a> |
| 229 | , | 205 | , |
| 230 | <a | 206 | <a href="https://megathread.pages.dev/unsafe" class="text-primary text-underline font-semibold"> |
| 231 | href="https://megathread.pages.dev/unsafe" | ||
| 232 | class="text-primary text-underline font-semibold" | ||
| 233 | > | ||
| 234 | Privateersclub | 207 | Privateersclub |
| 235 | </a> | 208 | </a> |
| 236 | and/or | 209 | and/or |
| 237 | <a | 210 | <a href="https://rentry.org/pgames#untrusted-sites" class="text-primary text-underline font-semibold"> |
| 238 | href="https://rentry.org/pgames#untrusted-sites" | ||
| 239 | class="text-primary text-underline font-semibold" | ||
| 240 | > | ||
| 241 | r/PiratedGames | 211 | r/PiratedGames |
| 242 | </a> | 212 | </a> |
| 243 | . | 213 | . |
| @@ -263,35 +233,25 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | |||
| 263 | </ol> | 233 | </ol> |
| 264 | </details> | 234 | </details> |
| 265 | </div> | 235 | </div> |
| 266 | <textarea | 236 | <textarea v-model="feedback.message" autofocus |
| 267 | v-model="feedback.message" | ||
| 268 | autofocus | ||
| 269 | 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" | 237 | 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?" | 238 | placeholder="Tip: Did you know that starring our GitHub repo doubles the chances that your feedback will be read?" /> |
| 271 | /> | ||
| 272 | <p class="desc mb-2"> | 239 | <p class="desc mb-2"> |
| 273 | If you want a reply to your feedback, feel free to mention a contact | 240 | If you want a reply to your feedback, feel free to mention a contact |
| 274 | in the message or join our | 241 | in the message or join our |
| 275 | <a | 242 | <a class="text-primary text-underline font-semibold" href="https://discord.gg/wZMuSGpZ8s"> |
| 276 | class="text-primary text-underline font-semibold" | ||
| 277 | href="https://discord.gg/wZMuSGpZ8s" | ||
| 278 | > | ||
| 279 | Discord. | 243 | Discord. |
| 280 | </a> | 244 | </a> |
| 281 | </p> | 245 | </p> |
| 282 | <div class="flex flex-row gap-2"> | 246 | <div class="flex flex-row gap-2"> |
| 283 | <button | 247 | <button |
| 284 | 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" | 248 | 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" | 249 | @click="feedback.type = undefined"> |
| 286 | > | ||
| 287 | <span class="i-lucide:panel-left-close">close</span> | 250 | <span class="i-lucide:panel-left-close">close</span> |
| 288 | </button> | 251 | </button> |
| 289 | <button | 252 | <button type="submit" |
| 290 | type="submit" | ||
| 291 | 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" | 253 | 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" | 254 | :disabled="isDisabled" @click="handleSubmit()"> |
| 293 | @click="handleSubmit()" | ||
| 294 | > | ||
| 295 | Send Feedback 📩 | 255 | Send Feedback 📩 |
| 296 | </button> | 256 | </button> |
| 297 | </div> | 257 | </div> |
| @@ -309,7 +269,9 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | |||
| 309 | border: 1px solid var(--vp-c-divider); | 269 | border: 1px solid var(--vp-c-divider); |
| 310 | background-color: var(--vp-c-bg); | 270 | background-color: var(--vp-c-bg); |
| 311 | border-radius: 8px; | 271 | 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; | ||
| 313 | display: inline-block; | 275 | display: inline-block; |
| 314 | font-size: 14px; | 276 | font-size: 14px; |
| 315 | font-weight: 500; | 277 | 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 | --> | ||
| 1 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 2 | import { computed } from 'vue' | 9 | import { computed } from 'vue' |
| 3 | 10 | ||
docs/.vitepress/theme/components/LegendModal.vue +17 −41
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2025 taskylizard | 2 | All Rights Reserved |
| 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 | 3 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 4 | Copyright (c) 2025 taskylizard |
| 9 | 5 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | defineProps<{ | 9 | defineProps<{ |
| @@ -32,8 +24,7 @@ const sections = [ | |||
| 32 | { icon: 'i-twemoji-no-one-under-eighteen', label: 'R18' }, | 24 | { icon: 'i-twemoji-no-one-under-eighteen', label: 'R18' }, |
| 33 | { icon: 'i-material-symbols-person-add', label: 'Needs account' }, | 25 | { icon: 'i-material-symbols-person-add', label: 'Needs account' }, |
| 34 | { icon: 'i-material-symbols-help', label: 'Help / Docs' }, | 26 | { icon: 'i-material-symbols-help', label: 'Help / Docs' }, |
| 35 | { icon: 'i-mdi-arrow-right-bold', label: 'Related' }, | 27 | { icon: 'i-mdi-arrow-right-bold', label: 'Related' } |
| 36 | |||
| 37 | ] | 28 | ] |
| 38 | }, | 29 | }, |
| 39 | { | 30 | { |
| @@ -54,7 +45,10 @@ const sections = [ | |||
| 54 | title: 'Type', | 45 | title: 'Type', |
| 55 | items: [ | 46 | items: [ |
| 56 | { icon: 'i-material-symbols-play-circle-outline', label: 'Stream' }, | 47 | { 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 | }, | ||
| 58 | { icon: 'i-lucide-magnet', label: 'Torrent / p2p' }, | 52 | { icon: 'i-lucide-magnet', label: 'Torrent / p2p' }, |
| 59 | { icon: 'i-iconoir-floppy-disk', label: 'Local file' }, | 53 | { icon: 'i-iconoir-floppy-disk', label: 'Local file' }, |
| 60 | { icon: 'i-material-symbols-package-2-outline', label: 'Batch Download' }, | 54 | { icon: 'i-material-symbols-package-2-outline', label: 'Batch Download' }, |
| @@ -70,7 +64,7 @@ const sections = [ | |||
| 70 | { icon: 'i-ic-round-currency-exchange', label: 'Subscription' }, | 64 | { icon: 'i-ic-round-currency-exchange', label: 'Subscription' }, |
| 71 | { icon: 'i-ic-round-money-off-csred', label: 'Has free content' }, | 65 | { icon: 'i-ic-round-money-off-csred', label: 'Has free content' }, |
| 72 | { icon: 'i-akar-icons-coin', label: 'Coin / Point' }, | 66 | { 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' } |
| 74 | ] | 68 | ] |
| 75 | }, | 69 | }, |
| 76 | { | 70 | { |
| @@ -141,34 +135,23 @@ const sections = [ | |||
| 141 | ] | 135 | ] |
| 142 | } | 136 | } |
| 143 | ] | 137 | ] |
| 144 | |||
| 145 | </script> | 138 | </script> |
| 146 | 139 | ||
| 147 | <template> | 140 | <template> |
| 148 | <Teleport to="body"> | 141 | <Teleport to="body"> |
| 149 | <Transition name="modal"> | 142 | <Transition name="modal"> |
| 150 | <div | 143 | <div v-if="isOpen" class="fixed inset-0 z-9999 p-4 sm:p-6 overflow-y-auto"> |
| 151 | v-if="isOpen" | ||
| 152 | class="fixed inset-0 z-9999 p-4 sm:p-6 overflow-y-auto" | ||
| 153 | > | ||
| 154 | <!-- Backdrop --> | 144 | <!-- Backdrop --> |
| 155 | <div | 145 | <div class="fixed inset-0 bg-black/50 backdrop-blur-sm" @click="$emit('close')" /> |
| 156 | class="fixed inset-0 bg-black/50 backdrop-blur-sm" | ||
| 157 | @click="$emit('close')" | ||
| 158 | /> | ||
| 159 | 146 | ||
| 160 | <!-- Modal --> | 147 | <!-- Modal --> |
| 161 | <div | 148 | <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" | 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"> |
| 163 | > | ||
| 164 | <div class="flex justify-between items-center mb-4 sm:mb-6"> | 150 | <div class="flex justify-between items-center mb-4 sm:mb-6"> |
| 165 | <h2 class="text-$vp-c-text-1 text-lg sm:text-xl font-bold"> | 151 | <h2 class="text-$vp-c-text-1 text-lg sm:text-xl font-bold"> |
| 166 | Legend | 152 | Legend |
| 167 | </h2> | 153 | </h2> |
| 168 | <button | 154 | <button class="text-$vp-c-text-2 hover:text-$vp-c-text-1 transition-colors p-1" @click="$emit('close')"> |
| 169 | class="text-$vp-c-text-2 hover:text-$vp-c-text-1 transition-colors p-1" | ||
| 170 | @click="$emit('close')" | ||
| 171 | > | ||
| 172 | <div class="i-material-symbols-close text-lg" /> | 155 | <div class="i-material-symbols-close text-lg" /> |
| 173 | </button> | 156 | </button> |
| 174 | </div> | 157 | </div> |
| @@ -178,17 +161,10 @@ const sections = [ | |||
| 178 | <h3 class="text-$vp-c-text-1 font-bold mb-3"> | 161 | <h3 class="text-$vp-c-text-1 font-bold mb-3"> |
| 179 | {{ section.title }} | 162 | {{ section.title }} |
| 180 | </h3> | 163 | </h3> |
| 181 | <div | 164 | <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2"> |
| 182 | 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" |
| 183 | > | 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"> |
| 184 | <div | 167 | <div :class="[item.icon, 'text-2xl mb-1 text-$vp-c-text-1']" /> |
| 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 | /> | ||
| 192 | <div class="text-$vp-c-text-2 text-xs text-center"> | 168 | <div class="text-$vp-c-text-2 text-xs text-center"> |
| 193 | {{ item.label }} | 169 | {{ item.label }} |
| 194 | </div> | 170 | </div> |
docs/.vitepress/theme/components/NewDomainBanner.vue +5 −18
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { ref, watchEffect } from 'vue' | 9 | import { ref, watchEffect } from 'vue' |
| @@ -45,14 +37,9 @@ const dismiss = () => { | |||
| 45 | . Bookmark & share!! | 37 | . Bookmark & share!! |
| 46 | </div> | 38 | </div> |
| 47 | <button type="button" @click="dismiss"> | 39 | <button type="button" @click="dismiss"> |
| 48 | <svg | 40 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> |
| 49 | xmlns="http://www.w3.org/2000/svg" | ||
| 50 | viewBox="0 0 20 20" | ||
| 51 | fill="currentColor" | ||
| 52 | > | ||
| 53 | <path | 41 | <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" | 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" /> |
| 55 | /> | ||
| 56 | </svg> | 43 | </svg> |
| 57 | </button> | 44 | </button> |
| 58 | </div> | 45 | </div> |
docs/.vitepress/theme/components/NotFound.vue +43 −47
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { ref } from 'vue' | 9 | import { ref } from 'vue' |
| @@ -23,32 +15,18 @@ const imageSize = ref('550px') // Fixed size for the image | |||
| 23 | <template> | 15 | <template> |
| 24 | <div class="flex min-h-[calc(100vh-4rem)] items-center justify-center p-4"> | 16 | <div class="flex min-h-[calc(100vh-4rem)] items-center justify-center p-4"> |
| 25 | <div class="text-center"> | 17 | <div class="text-center"> |
| 26 | <img | 18 | <img :style="{ width: imageSize, height: 'auto' }" src="/asset/404.gif" alt="404 Image" class="mx-auto" /> |
| 27 | :style="{ width: imageSize, height: 'auto' }" | ||
| 28 | src="/asset/404.gif" | ||
| 29 | alt="404 Image" | ||
| 30 | class="mx-auto" | ||
| 31 | /> | ||
| 32 | <p class="text-title-lg mt-4 font-bold leading-tight text-white">404</p> | 19 | <p class="text-title-lg mt-4 font-bold leading-tight text-white">404</p> |
| 33 | <p | 20 | <p class="text-body-lg flex flex-wrap items-center justify-center leading-snug text-gray-400"> |
| 34 | class="text-body-lg flex flex-wrap items-center justify-center leading-snug text-gray-400" | ||
| 35 | > | ||
| 36 | Umm.... you shouldn’t be here | 21 | Umm.... you shouldn’t be here |
| 37 | <span class="icon-container mx-1"> | 22 | <span class="icon-container mx-1"> |
| 38 | <img class="icon-img" src="/asset/inahuh.png" alt="Inahuh Icon" /> | 23 | <img class="icon-img" src="/asset/inahuh.png" alt="Inahuh Icon" /> |
| 39 | </span> | 24 | </span> |
| 40 | If you got here from a link, please click | 25 | If you got here from a link, please click |
| 41 | <span class="icon-container mx-1"> | 26 | <span class="icon-container mx-1"> |
| 42 | <svg | 27 | <svg class="w-icon h-icon inline-block align-text-bottom" xmlns="http://www.w3.org/2000/svg" |
| 43 | class="w-icon h-icon inline-block align-text-bottom" | 28 | viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" |
| 44 | xmlns="http://www.w3.org/2000/svg" | 29 | stroke-width="2"> |
| 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 | > | ||
| 52 | <rect width="20" height="16" x="2" y="4" rx="2"></rect> | 30 | <rect width="20" height="16" x="2" y="4" rx="2"></rect> |
| 53 | <path d="m22 7l-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path> | 31 | <path d="m22 7l-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path> |
| 54 | </svg> | 32 | </svg> |
| @@ -61,48 +39,64 @@ const imageSize = ref('550px') // Fixed size for the image | |||
| 61 | 39 | ||
| 62 | <style scoped> | 40 | <style scoped> |
| 63 | .text-title-lg { | 41 | .text-title-lg { |
| 64 | font-size: 1.5rem; /* Font size for titles */ | 42 | font-size: 1.5rem; |
| 43 | /* Font size for titles */ | ||
| 65 | } | 44 | } |
| 66 | 45 | ||
| 67 | .text-body-lg { | 46 | .text-body-lg { |
| 68 | font-size: 1rem; /* Font size for body text */ | 47 | font-size: 1rem; |
| 48 | /* Font size for body text */ | ||
| 69 | } | 49 | } |
| 70 | 50 | ||
| 71 | .w-icon { | 51 | .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 */ | ||
| 73 | } | 54 | } |
| 74 | 55 | ||
| 75 | .h-icon { | 56 | .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 */ | ||
| 77 | } | 59 | } |
| 78 | 60 | ||
| 79 | .icon-container { | 61 | .icon-container { |
| 80 | display: inline-flex; /* Use inline-flex to control spacing within the container */ | 62 | display: inline-flex; |
| 81 | align-items: center; /* Vertically center the icon/image */ | 63 | /* Use inline-flex to control spacing within the container */ |
| 82 | justify-content: center; /* Horizontally center the icon/image */ | 64 | align-items: center; |
| 65 | /* Vertically center the icon/image */ | ||
| 66 | justify-content: center; | ||
| 67 | /* Horizontally center the icon/image */ | ||
| 83 | } | 68 | } |
| 84 | 69 | ||
| 85 | .icon-img { | 70 | .icon-img { |
| 86 | width: 1em; /* Make the image size relative to the text size */ | 71 | width: 1em; |
| 87 | height: auto; /* Maintain aspect ratio */ | 72 | /* Make the image size relative to the text size */ |
| 73 | height: auto; | ||
| 74 | /* Maintain aspect ratio */ | ||
| 88 | } | 75 | } |
| 89 | 76 | ||
| 90 | .mx-1 { | 77 | .mx-1 { |
| 91 | margin-left: 0.25em; /* Adjust this value for precise spacing */ | 78 | margin-left: 0.25em; |
| 92 | margin-right: 0.25em; /* Adjust this value for precise spacing */ | 79 | /* Adjust this value for precise spacing */ |
| 80 | margin-right: 0.25em; | ||
| 81 | /* Adjust this value for precise spacing */ | ||
| 93 | } | 82 | } |
| 94 | 83 | ||
| 95 | @media (max-width: 640px) { | 84 | @media (max-width: 640px) { |
| 96 | .text-title-lg { | 85 | .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 */ | ||
| 98 | } | 88 | } |
| 89 | |||
| 99 | .text-body-lg { | 90 | .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 */ | ||
| 101 | } | 93 | } |
| 102 | 94 | ||
| 103 | .mx-1 { | 95 | .mx-1 { |
| 104 | margin-left: 0.1em; /* Adjusted margin for smaller screens */ | 96 | margin-left: 0.1em; |
| 105 | margin-right: 0.1em; /* Adjusted margin for smaller screens */ | 97 | /* Adjusted margin for smaller screens */ |
| 98 | margin-right: 0.1em; | ||
| 99 | /* Adjusted margin for smaller screens */ | ||
| 106 | } | 100 | } |
| 107 | } | 101 | } |
| 108 | 102 | ||
| @@ -112,7 +106,9 @@ p { | |||
| 112 | } | 106 | } |
| 113 | 107 | ||
| 114 | div { | 108 | div { |
| 115 | max-height: 100vh; /* Prevents container from exceeding viewport height */ | 109 | max-height: 100vh; |
| 116 | overflow-y: hidden; /* Ensures no vertical scrollbar is visible */ | 110 | /* Prevents container from exceeding viewport height */ |
| 111 | overflow-y: hidden; | ||
| 112 | /* Ensures no vertical scrollbar is visible */ | ||
| 117 | } | 113 | } |
| 118 | </style> | 114 | </style> |
docs/.vitepress/theme/components/OgImageTemplate.vue +7 −20
| @@ -1,32 +1,19 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | defineProps<{ title: string; description?: string; image: string }>() | 9 | defineProps<{ title: string; description?: string; image: string }>() |
| 18 | </script> | 10 | </script> |
| 19 | 11 | ||
| 20 | <template> | 12 | <template> |
| 21 | <span | 13 | <span tw="w-full h-full bg-black flex flex-col" :style="{ |
| 22 | tw="w-full h-full bg-black flex flex-col" | 14 | backgroundImage: `url(${image})` |
| 23 | :style="{ | 15 | }"> |
| 24 | backgroundImage: `url(${image})` | 16 | <span tw="p-10 w-full min-h-0 grow flex flex-col items-center justify-between"> |
| 25 | }" | ||
| 26 | > | ||
| 27 | <span | ||
| 28 | tw="p-10 w-full min-h-0 grow flex flex-col items-center justify-between" | ||
| 29 | > | ||
| 30 | <span tw="w-full flex justify-between items-center text-5xl font-medium"> | 17 | <span tw="w-full flex justify-between items-center text-5xl font-medium"> |
| 31 | <span tw="flex items-center"> | 18 | <span tw="flex items-center"> |
| 32 | <span tw="text-zinc-100 ml-2 mt-1 font-semibold">wotaku.wiki</span> | 19 | <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 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { useLocalStorage } from '@vueuse/core' | 9 | import { useLocalStorage } from '@vueuse/core' |
| @@ -47,13 +39,7 @@ function removeSpaces(str: string) { | |||
| 47 | <p class="title">{{ text }}</p> | 39 | <p class="title">{{ text }}</p> |
| 48 | <div class="VPPreference" :class="{ 'screen-menu': screenMenu }"> | 40 | <div class="VPPreference" :class="{ 'screen-menu': screenMenu }"> |
| 49 | <template v-for="option in optionsWithKeys" :key="option"> | 41 | <template v-for="option in optionsWithKeys" :key="option"> |
| 50 | <input | 42 | <input type="radio" :id="option.key" :name="name" :value="option.value" v-model="selected" /> |
| 51 | type="radio" | ||
| 52 | :id="option.key" | ||
| 53 | :name="name" | ||
| 54 | :value="option.value" | ||
| 55 | v-model="selected" | ||
| 56 | /> | ||
| 57 | <label :for="option.key">{{ option.value }}</label> | 43 | <label :for="option.key">{{ option.value }}</label> |
| 58 | </template> | 44 | </template> |
| 59 | </div> | 45 | </div> |
| @@ -96,7 +82,7 @@ function removeSpaces(str: string) { | |||
| 96 | text-align: center; | 82 | text-align: center; |
| 97 | } | 83 | } |
| 98 | 84 | ||
| 99 | .VPPreference input[type='radio']:checked + label { | 85 | .VPPreference input[type='radio']:checked+label { |
| 100 | background-color: var(--vp-c-default-soft); | 86 | background-color: var(--vp-c-default-soft); |
| 101 | color: var(--vp-c-brand-1); | 87 | color: var(--vp-c-brand-1); |
| 102 | } | 88 | } |
docs/.vitepress/theme/components/ReloadPrompt.vue +7 −24
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { onBeforeMount, ref } from 'vue' | 9 | import { onBeforeMount, ref } from 'vue' |
| @@ -40,24 +32,15 @@ onBeforeMount(async () => { | |||
| 40 | <template v-if="needRefresh"> | 32 | <template v-if="needRefresh"> |
| 41 | <div | 33 | <div |
| 42 | 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" | 34 | 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" | 35 | role="alertdialog" aria-labelledby="pwa-message"> |
| 44 | aria-labelledby="pwa-message" | ||
| 45 | > | ||
| 46 | <div id="pwa-message" class="mb-3"> | 36 | <div id="pwa-message" class="mb-3"> |
| 47 | New content available, click the reload button to update. | 37 | New content available, click the reload button to update. |
| 48 | </div> | 38 | </div> |
| 49 | <button | 39 | <button type="button" class="pwa-refresh mr-2 rounded px-3 py-1" @click="updateServiceWorker?.()"> |
| 50 | type="button" | ||
| 51 | class="pwa-refresh mr-2 rounded px-3 py-1" | ||
| 52 | @click="updateServiceWorker?.()" | ||
| 53 | > | ||
| 54 | Reload | 40 | Reload |
| 55 | </button> | 41 | </button> |
| 56 | <button | 42 | <button type="button" class="pwa-cancel b b-solid b-1px !b-color-$pwa-border mr-2 rounded px-3 py-1" |
| 57 | type="button" | 43 | @click="close"> |
| 58 | class="pwa-cancel b b-solid b-1px !b-color-$pwa-border mr-2 rounded px-3 py-1" | ||
| 59 | @click="close" | ||
| 60 | > | ||
| 61 | Close | 44 | Close |
| 62 | </button> | 45 | </button> |
| 63 | </div> | 46 | </div> |
docs/.vitepress/theme/components/SidebarCard.vue +10 −21
| @@ -1,39 +1,28 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { ref } from 'vue' | 9 | import { ref } from "vue"; |
| 18 | 10 | ||
| 19 | import LegendModal from './LegendModal.vue' | 11 | import LegendModal from "./LegendModal.vue"; |
| 20 | 12 | ||
| 21 | const isModalOpen = ref(false) | 13 | const isModalOpen = ref(false); |
| 22 | 14 | ||
| 23 | const focusLegendModal = () => { | 15 | const focusLegendModal = () => { |
| 24 | isModalOpen.value = true | 16 | isModalOpen.value = true; |
| 25 | } | 17 | }; |
| 26 | </script> | 18 | </script> |
| 27 | 19 | ||
| 28 | <template> | 20 | <template> |
| 29 | <div | 21 | <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" | 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"> |
| 31 | > | ||
| 32 | <button class="w-full text-left" @click="isModalOpen = true"> | 23 | <button class="w-full text-left" @click="isModalOpen = true"> |
| 33 | <div class="align-center flex items-center gap-2"> | 24 | <div class="align-center flex items-center gap-2"> |
| 34 | <div | 25 | <div class="i-material-symbols-info-outline-rounded text-$vp-c-text-2" /> |
| 35 | class="i-material-symbols-info-outline-rounded text-$vp-c-text-2" | ||
| 36 | /> | ||
| 37 | <div class="text-$vp-c-text-1 lh-relaxed text-sm font-bold">Legend</div> | 26 | <div class="text-$vp-c-text-1 lh-relaxed text-sm font-bold">Legend</div> |
| 38 | </div> | 27 | </div> |
| 39 | <div class="text-$vp-c-text-2 text-xs mt-1"> | 28 | <div class="text-$vp-c-text-2 text-xs mt-1"> |
docs/.vitepress/theme/components/Tooltip.vue +16 −30
| @@ -1,48 +1,34 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | withDefaults( | 9 | withDefaults( |
| 18 | defineProps<{ | 10 | defineProps<{ |
| 19 | title: string; | 11 | title: string |
| 20 | icon: string; | 12 | icon: string |
| 21 | }>(), | 13 | }>(), |
| 22 | { | 14 | { |
| 23 | title: "Info", | 15 | title: 'Info', |
| 24 | // https://icon-sets.iconify.design/material-symbols/ | 16 | // https://icon-sets.iconify.design/material-symbols/ |
| 25 | icon: "i-material-symbols-info-i", | 17 | icon: 'i-material-symbols-info-i' |
| 26 | }, | 18 | } |
| 27 | ); | 19 | ) |
| 28 | </script> | 20 | </script> |
| 29 | 21 | ||
| 30 | <template> | 22 | <template> |
| 31 | <VTooltip theme="vp-tooltip"> | 23 | <VTooltip theme="vp-tooltip"> |
| 32 | <button | 24 | <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" | 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"> |
| 34 | > | ||
| 35 | <div :class="icon" /> | 26 | <div :class="icon" /> |
| 36 | </button> | 27 | </button> |
| 37 | 28 | ||
| 38 | <template #popper> | 29 | <template #popper> |
| 39 | <div | 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"> |
| 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" | 31 | <h3 class="text-$vp-c-text-1 mb-2 text-lg font-semibold" v-text="title" /> |
| 41 | > | ||
| 42 | <h3 | ||
| 43 | class="text-$vp-c-text-1 mb-2 text-lg font-semibold" | ||
| 44 | v-text="title" | ||
| 45 | /> | ||
| 46 | <p class="text-$vp-c-text-2 text-sm content"> | 32 | <p class="text-$vp-c-text-2 text-sm content"> |
| 47 | <slot /> | 33 | <slot /> |
| 48 | </p> | 34 | </p> |
docs/.vitepress/theme/components/VPSwitchAppearance.vue +7 −20
| @@ -1,17 +1,9 @@ | |||
| 1 | <!-- | 1 | <!-- |
| 2 | Copyright (c) 2024 taskylizard | 2 | All Rights Reserved |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Copyright (c) 2025 taskylizard |
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | 5 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | --> | 7 | --> |
| 16 | <script setup lang="ts"> | 8 | <script setup lang="ts"> |
| 17 | import { useData } from 'vitepress' | 9 | import { useData } from 'vitepress' |
| @@ -27,14 +19,8 @@ const toggleAppearance = inject('toggle-appearance', () => { | |||
| 27 | </script> | 19 | </script> |
| 28 | 20 | ||
| 29 | <template> | 21 | <template> |
| 30 | <button | 22 | <button type="button" role="switch" title="VPSwitchAppearance" class="VPSwitchAppearance" :aria-checked="isDark" |
| 31 | type="button" | 23 | @click="toggleAppearance"> |
| 32 | role="switch" | ||
| 33 | title="VPSwitchAppearance" | ||
| 34 | class="VPSwitchAppearance" | ||
| 35 | :aria-checked="isDark" | ||
| 36 | @click="toggleAppearance" | ||
| 37 | > | ||
| 38 | <ClientOnly> | 24 | <ClientOnly> |
| 39 | <Transition name="fade" mode="out-in"> | 25 | <Transition name="fade" mode="out-in"> |
| 40 | <VPIconSun v-if="!isDark" class="sun" /> | 26 | <VPIconSun v-if="!isDark" class="sun" /> |
| @@ -59,13 +45,14 @@ const toggleAppearance = inject('toggle-appearance', () => { | |||
| 59 | transition: color 0.25s; | 45 | transition: color 0.25s; |
| 60 | } | 46 | } |
| 61 | 47 | ||
| 62 | & > :deep(svg) { | 48 | &> :deep(svg) { |
| 63 | width: 20px; | 49 | width: 20px; |
| 64 | height: 20px; | 50 | height: 20px; |
| 65 | fill: currentColor; | 51 | fill: currentColor; |
| 66 | } | 52 | } |
| 67 | 53 | ||
| 68 | &[data-view-transition='false'] { | 54 | &[data-view-transition='false'] { |
| 55 | |||
| 69 | .fade-enter-active, | 56 | .fade-enter-active, |
| 70 | .fade-leave-active { | 57 | .fade-leave-active { |
| 71 | transition: opacity 0.1s ease; | 58 | transition: opacity 0.1s ease; |
docs/.vitepress/theme/composables/medium-zoom.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import mediumZoom from 'medium-zoom' | 8 | import mediumZoom from 'medium-zoom' |
| 17 | import { inject, nextTick, onMounted, watch } from 'vue' | 9 | import { inject, nextTick, onMounted, watch } from 'vue' |
| 18 | import type { Zoom } from 'medium-zoom' | 10 | import 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 | */ | ||
| 1 | import type { App, InjectionKey } from 'vue' | 8 | import type { App, InjectionKey } from 'vue' |
| 2 | import { Internal } from '../internal/browser' | 9 | import { Internal } from '../internal/browser' |
| 3 | 10 | ||
docs/.vitepress/theme/composables/useTooltips.ts +18 −27
| @@ -1,41 +1,32 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 7 | */ |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | import { ref } from 'vue' |
| 9 | * | 9 | import { getTooltip, type TooltipData } from 'virtual:tooltips' |
| 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 | import { ref } from "vue"; | ||
| 17 | import { getTooltip, type TooltipData } from "virtual:tooltips"; | ||
| 18 | 10 | ||
| 19 | const tooltipCache = ref<Map<string, TooltipData>>(new Map()); | 11 | const tooltipCache = ref<Map<string, TooltipData>>(new Map()) |
| 20 | 12 | ||
| 21 | export function useTooltips() { | 13 | export function useTooltips() { |
| 22 | const getTooltipData = (id: string): TooltipData | null => { | 14 | const getTooltipData = (id: string): TooltipData | null => { |
| 23 | if (tooltipCache.value.has(id)) { | 15 | if (tooltipCache.value.has(id)) { |
| 24 | return tooltipCache.value.get(id)!; | 16 | return tooltipCache.value.get(id)! |
| 25 | } | 17 | } |
| 26 | 18 | ||
| 27 | const tooltip = getTooltip(id); | 19 | const tooltip = getTooltip(id) |
| 28 | if (tooltip) { | 20 | if (tooltip) { |
| 29 | tooltipCache.value.set(id, tooltip); | 21 | tooltipCache.value.set(id, tooltip) |
| 30 | return tooltip; | 22 | return tooltip |
| 31 | } | 23 | } |
| 32 | 24 | ||
| 33 | console.warn(`Tooltip with id "${id}" not found`); | 25 | console.warn(`Tooltip with id "${id}" not found`) |
| 34 | return null; | 26 | return null |
| 35 | }; | 27 | } |
| 36 | 28 | ||
| 37 | return { | 29 | return { |
| 38 | getTooltipData, | 30 | getTooltipData |
| 39 | }; | 31 | } |
| 40 | } | 32 | } |
| 41 | |||
docs/.vitepress/theme/index.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import type { Theme } from 'vitepress' | 8 | import type { Theme } from 'vitepress' |
| 17 | import DefaultTheme from 'vitepress/theme' | 9 | import DefaultTheme from 'vitepress/theme' |
| 18 | import '@nolebase/vitepress-plugin-git-changelog/client/style.css' | 10 | import '@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 | */ | ||
| 1 | interface ApiConfig { | 8 | interface ApiConfig { |
| 2 | baseUrl: string | 9 | baseUrl: string |
| 3 | defaultHeaders?: Record<string, string | Promise<string | null>> | 10 | 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 | */ | ||
| 1 | import type { | 8 | import type { |
| 2 | InternalOptions as InternalBaseOptions, | 9 | InternalOptions as InternalBaseOptions, |
| 3 | TrackProperties | 10 | TrackProperties |
docs/.vitepress/theme/math.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | // Thanks to @yellowsink for the original code!! <3 | 8 | // Thanks to @yellowsink for the original code!! <3 |
| 17 | // https://github.com/uwu/uwu.network/blob/master/src/components/sink/Takodachi.astro | 9 | // https://github.com/uwu/uwu.network/blob/master/src/components/sink/Takodachi.astro |
| 18 | 10 | ||
docs/.vitepress/theme/styles/style.css +4 −12
| @@ -1,17 +1,9 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | ||
| 6 | * You may obtain a copy of the License at | ||
| 7 | * | 5 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 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. |
| 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 | */ | 7 | */ |
| 16 | :root { | 8 | :root { |
| 17 | /** Layout */ | 9 | /** Layout */ |
| @@ -529,4 +521,4 @@ table tr:nth-child(odd) { | |||
| 529 | } | 521 | } |
| 530 | } | 522 | } |
| 531 | } | 523 | } |
| 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 | */ | ||
| 1 | @import url('floating-vue/dist/style.css'); | 8 | @import url('floating-vue/dist/style.css'); |
| 2 | 9 | ||
| 3 | div.v-popper--theme-hint { | 10 | div.v-popper--theme-hint { |
docs/.vitepress/types/Feedback.ts +8 −16
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import z from 'zod' | 8 | import z from 'zod' |
| 17 | 9 | ||
| 18 | export const FeedbackSchema = z.object({ | 10 | export const FeedbackSchema = z.object({ |
| @@ -41,7 +33,7 @@ export const feedbackOptions: Option[] = [ | |||
| 41 | value: 'submit' | 33 | value: 'submit' |
| 42 | }, | 34 | }, |
| 43 | { | 35 | { |
| 44 | label: '❗️ Update link', | 36 | label: '❗ Update link', |
| 45 | value: 'update' | 37 | value: 'update' |
| 46 | }, | 38 | }, |
| 47 | { | 39 | { |
| @@ -53,7 +45,7 @@ export const feedbackOptions: Option[] = [ | |||
| 53 | value: 'suggestion' | 45 | value: 'suggestion' |
| 54 | }, | 46 | }, |
| 55 | { | 47 | { |
| 56 | label: '❤️ Love the wiki', | 48 | label: '❤ Love the wiki', |
| 57 | value: 'appreciation' | 49 | value: 'appreciation' |
| 58 | }, | 50 | }, |
| 59 | { label: '💬 Something else', value: 'other' } | 51 | { 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 | */ | ||
| 1 | declare module 'virtual:tooltips' { | 8 | declare module 'virtual:tooltips' { |
| 2 | export interface TooltipData { | 9 | export interface TooltipData { |
| 3 | id: string | 10 | id: string |
docs/.vitepress/utils/tooltips.ts +31 −40
| @@ -1,67 +1,58 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 7 | */ |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | import { readdirSync, readFileSync } from 'node:fs' |
| 9 | * | 9 | import { basename, join, resolve } from 'pathe' |
| 10 | * Unless required by applicable law or agreed to in writing, software | 10 | import matter from 'gray-matter' |
| 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 | import { readdirSync, readFileSync } from "node:fs"; | ||
| 18 | import { basename, join, resolve } from "pathe"; | ||
| 19 | import matter from "gray-matter"; | ||
| 20 | 11 | ||
| 21 | export interface TooltipData { | 12 | export interface TooltipData { |
| 22 | id: string; | 13 | id: string |
| 23 | frontmatter: Record<string, string>; | 14 | frontmatter: Record<string, string> |
| 24 | content: string; | 15 | content: string |
| 25 | } | 16 | } |
| 26 | 17 | ||
| 27 | let tooltipsCache: TooltipData[] | null = null; | 18 | let tooltipsCache: TooltipData[] | null = null |
| 28 | 19 | ||
| 29 | export function loadTooltips(): TooltipData[] { | 20 | export function loadTooltips(): TooltipData[] { |
| 30 | if (tooltipsCache) return tooltipsCache; | 21 | if (tooltipsCache) return tooltipsCache |
| 31 | 22 | ||
| 32 | const tooltipsDir = resolve(process.cwd(), "docs/.vitepress/tooltips"); | 23 | const tooltipsDir = resolve(process.cwd(), 'docs/.vitepress/tooltips') |
| 33 | const tooltips: TooltipData[] = []; | 24 | const tooltips: TooltipData[] = [] |
| 34 | 25 | ||
| 35 | try { | 26 | try { |
| 36 | const files = readdirSync(tooltipsDir).filter((file) => | 27 | const files = readdirSync(tooltipsDir).filter((file) => |
| 37 | file.endsWith(".md"), | 28 | file.endsWith('.md') |
| 38 | ); | 29 | ) |
| 39 | 30 | ||
| 40 | for (const file of files) { | 31 | for (const file of files) { |
| 41 | const filePath = join(tooltipsDir, file); | 32 | const filePath = join(tooltipsDir, file) |
| 42 | const fileContent = readFileSync(filePath, "utf-8"); | 33 | const fileContent = readFileSync(filePath, 'utf-8') |
| 43 | const { data, content } = matter(fileContent); | 34 | const { data, content } = matter(fileContent) |
| 44 | 35 | ||
| 45 | const id = basename(file, ".md"); | 36 | const id = basename(file, '.md') |
| 46 | const cleanContent = content.trim(); | 37 | const cleanContent = content.trim() |
| 47 | 38 | ||
| 48 | tooltips.push({ | 39 | tooltips.push({ |
| 49 | id, | 40 | id, |
| 50 | frontmatter: data, | 41 | frontmatter: data, |
| 51 | content: cleanContent, | 42 | content: cleanContent |
| 52 | }); | 43 | }) |
| 53 | } | 44 | } |
| 54 | } catch (error) { | 45 | } catch (error) { |
| 55 | console.warn("Failed to load tooltips:", error); | 46 | console.warn('Failed to load tooltips:', error) |
| 56 | } | 47 | } |
| 57 | 48 | ||
| 58 | tooltipsCache = tooltips; | 49 | tooltipsCache = tooltips |
| 59 | return tooltips; | 50 | return tooltips |
| 60 | } | 51 | } |
| 61 | 52 | ||
| 62 | export function getTooltip(id: string): TooltipData | undefined { | 53 | export function getTooltip(id: string): TooltipData | undefined { |
| 63 | const tooltips = loadTooltips(); | 54 | const tooltips = loadTooltips() |
| 64 | return tooltips.find((tooltip) => tooltip.id === id); | 55 | return tooltips.find((tooltip) => tooltip.id === id) |
| 65 | } | 56 | } |
| 66 | 57 | ||
| 67 | export const tooltips = loadTooltips(); | 58 | export const tooltips = loadTooltips() |
docs/.vitepress/vue-shim.d.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | /* eslint-disable ts/consistent-type-imports */ | 8 | /* eslint-disable ts/consistent-type-imports */ |
| 17 | declare module '*.vue' { | 9 | declare module '*.vue' { |
| 18 | const component: import('vue').Component | 10 | const component: import('vue').Component |
nitro.config.ts +7 −15
| @@ -1,24 +1,16 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | //https://nitro.unjs.io/config | 8 | //https://nitro.unjs.io/config |
| 17 | export default defineNitroConfig({ | 9 | export default defineNitroConfig({ |
| 18 | compatibilityDate: '2024-12-16', | 10 | compatibilityDate: '2024-12-16', |
| 19 | runtimeConfig: { | 11 | runtimeConfig: { |
| 20 | WEBHOOK_URL: process.env.WEBHOOK_URL, | 12 | 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 } |
| 22 | }, | 14 | }, |
| 23 | srcDir: 'api', | 15 | srcDir: 'api', |
| 24 | routeRules: { | 16 | routeRules: { |
unocss.config.ts +6 −14
| @@ -1,18 +1,10 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | 2 | * All Rights Reserved |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Copyright (c) 2025 taskylizard |
| 5 | * you may not use this file except in compliance with the License. | 5 | * |
| 6 | * You may obtain a copy of the License at | 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 | * | 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 | import { colors } from '@taskylizard/colors' | 8 | import { colors } from '@taskylizard/colors' |
| 17 | import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders' | 9 | import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders' |
| 18 | import { resolve } from 'node:path' | 10 | import { resolve } from 'node:path' |