Commit 0dddca8d19
Unregistered key
Layout: unified · split
.licenserc.json +9 −33
| @@ -1,53 +1,29 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "**/*.ts": [ |
| 3 | 3 | "/**", |
| 4 | "* Copyright (c) 2025 taskylizard", | |
| 5 | "*", | |
| 6 | "* Licensed under the Apache License, Version 2.0 (the \"License\");", | |
| 7 | "* you may not use this file except in compliance with the License.", | |
| 8 | "* You may obtain a copy of the License at", | |
| 4 | "* All Rights Reserved", | |
| 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", | |
| 13 | "* distributed under the License is distributed on an \"AS IS\" BASIS,", | |
| 14 | "* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", | |
| 15 | "* See the License for the specific language governing permissions and", | |
| 16 | "* limitations under the License.", | |
| 8 | "* All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.", | |
| 17 | 9 | "*/" |
| 18 | 10 | ], |
| 19 | 11 | "**/*.vue": [ |
| 20 | 12 | "<!--", |
| 21 | " Copyright (c) 2025 taskylizard", | |
| 22 | "", | |
| 23 | " Licensed under the Apache License, Version 2.0 (the \"License\");", | |
| 24 | " you may not use this file except in compliance with the License.", | |
| 25 | " You may obtain a copy of the License at", | |
| 13 | " All Rights Reserved", | |
| 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", | |
| 30 | " distributed under the License is distributed on an \"AS IS\" BASIS,", | |
| 31 | " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", | |
| 32 | " See the License for the specific language governing permissions and", | |
| 33 | " limitations under the License.", | |
| 17 | " All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.", | |
| 34 | 18 | "-->" |
| 35 | 19 | ], |
| 36 | 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\");", | |
| 41 | " * you may not use this file except in compliance with the License.", | |
| 42 | " * You may obtain a copy of the License at", | |
| 43 | " *", | |
| 44 | " * http://www.apache.org/licenses/LICENSE-2.0", | |
| 24 | " * Copyright (c) 2025 taskylizard", | |
| 45 | 25 | " *", |
| 46 | " * Unless required by applicable law or agreed to in writing, software", | |
| 47 | " * distributed under the License is distributed on an \"AS IS\" BASIS,", | |
| 48 | " * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", | |
| 49 | " * See the License for the specific language governing permissions and", | |
| 50 | " * limitations under the License.", | |
| 26 | " * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.", | |
| 51 | 27 | " */" |
| 52 | 28 | ], |
| 53 | 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 | |
| 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. | |
| 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. | |
api/middleware/cors.ts +6 −14
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import { corsEventHandler } from 'nitro-cors' |
| 17 | 9 | |
| 18 | 10 | export default corsEventHandler((_event) => {}, { |
api/routes/index.post.ts +15 −24
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import { fetcher } from 'itty-fetcher' |
| 17 | 9 | import { |
| 18 | 10 | FeedbackSchema, |
| @@ -59,16 +51,15 @@ export default defineEventHandler(async (event) => { | ||
| 59 | 51 | |
| 60 | 52 | await fetcher() |
| 61 | 53 | .post(env.WEBHOOK_URL, { |
| 62 | username: 'Feedback', | |
| 63 | embeds: [ | |
| 64 | { | |
| 65 | color: 3447003, | |
| 66 | title: getFeedbackOption(type)!.label, | |
| 67 | fields | |
| 68 | } | |
| 69 | ] | |
| 70 | } | |
| 71 | ) | |
| 54 | username: 'Feedback', | |
| 55 | embeds: [ | |
| 56 | { | |
| 57 | color: 3447003, | |
| 58 | title: getFeedbackOption(type)!.label, | |
| 59 | fields | |
| 60 | } | |
| 61 | ] | |
| 62 | }) | |
| 72 | 63 | .catch((error) => { |
| 73 | 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 | 8 | import { joinURL } from 'ufo' |
| 2 | 9 | |
| 3 | 10 | export default defineEventHandler(async (event) => { |
api/routes/single-page.ts +6 −30
| @@ -1,34 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | /** | |
| 17 | * Copyright (c) taskylizard. All rights reserved. | |
| 18 | * | |
| 19 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 20 | * you may not use this file except in compliance with the License. | |
| 21 | * You may obtain a copy of the License at | |
| 22 | * | |
| 23 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 24 | * | |
| 25 | * Unless required by applicable law or agreed to in writing, software | |
| 26 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 27 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 28 | * See the License for the specific language governing permissions and | |
| 29 | * limitations under the License. | |
| 30 | */ | |
| 31 | ||
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 32 | 8 | import { fetcher } from 'itty-fetcher' |
| 33 | 9 | |
| 34 | 10 | // Look inside tbe docs directory |
api/routes/test.ts +6 −14
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | export default eventHandler(() => { |
| 17 | 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 | 8 | import type { DefaultTheme } from 'vitepress' |
| 2 | 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 | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | /** | |
| 17 | * Barrel generated using @taskylizard/tasker. | |
| 18 | */ | |
| 19 | ||
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 20 | 8 | export * from './meta' |
| 21 | 9 | export * from './opengraph' |
docs/.vitepress/configs/hooks/meta.ts +6 −14
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import type { HeadConfig, TransformContext } from 'vitepress' |
| 17 | 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 | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import { mkdir, readFile, writeFile } from 'node:fs/promises' |
| 17 | 9 | import { dirname, resolve } from 'node:path' |
| 18 | 10 | import { fileURLToPath } from 'node:url' |
| @@ -110,11 +102,11 @@ async function generateImage({ | ||
| 110 | 102 | props: { |
| 111 | 103 | title: |
| 112 | 104 | frontmatter.layout === 'home' |
| 113 | ? frontmatter.hero.name ?? frontmatter.title | |
| 114 | : frontmatter.customMetaTitle ?? frontmatter.title, | |
| 105 | ? (frontmatter.hero.name ?? frontmatter.title) | |
| 106 | : (frontmatter.customMetaTitle ?? frontmatter.title), | |
| 115 | 107 | description: |
| 116 | 108 | frontmatter.layout === 'home' |
| 117 | ? frontmatter.hero.tagline ?? frontmatter.description | |
| 109 | ? (frontmatter.hero.tagline ?? frontmatter.description) | |
| 118 | 110 | : frontmatter.description, |
| 119 | 111 | // dir: getDir(url) |
| 120 | 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 | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import { readFile } from 'node:fs/promises' |
| 17 | 9 | import { dirname, resolve } from 'node:path' |
| 18 | 10 | import { fileURLToPath } from 'node:url' |
docs/.vitepress/configs/index.ts +6 −14
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import type { DefaultTheme, Plugin, UserConfig } from 'vitepress' |
| 17 | 9 | import { generateImages, generateMeta } from './hooks' |
| 18 | 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 | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import type { MarkdownRenderer } from 'vitepress' |
| 17 | 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 | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import type { MarkdownRenderer } from 'vitepress' |
| 17 | 9 | |
| 18 | 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 | 8 | import MdMTables from 'markdown-it-multimd-table' |
| 2 | 9 | // @ts-expect-error |
| 3 | 10 | import MdReg from 'markdown-it-regexp' |
docs/.vitepress/credits.ts +7 −15
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | interface Contributor { |
| 17 | 9 | name: string |
| 18 | 10 | avatar: string |
| @@ -99,7 +91,7 @@ export const contribs = { | ||
| 99 | 91 | avatar: 'https://github.com/officialkaizen.png', |
| 100 | 92 | site: 'https://github.com/officialkaizen' |
| 101 | 93 | }, |
| 102 | { | |
| 94 | { | |
| 103 | 95 | name: 'ld3z', |
| 104 | 96 | avatar: 'https://github.com/ld3z.png', |
| 105 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import DefaultTheme from 'vitepress/theme' |
| @@ -130,17 +122,11 @@ const { Layout } = DefaultTheme | ||
| 130 | 122 | <template> |
| 131 | 123 | <Layout> |
| 132 | 124 | <template #layout-top> |
| 133 | <img | |
| 134 | id="takodachi" | |
| 135 | ref="takodachiRef" | |
| 136 | src="/takodachi.webp" | |
| 137 | alt="Takodachi" | |
| 138 | class="pointer-events-none fixed absolute z-[9999] h-10 w-10 opacity-0 transition-opacity duration-500" | |
| 139 | :style="{ | |
| 125 | <img id="takodachi" ref="takodachiRef" src="/takodachi.webp" alt="Takodachi" | |
| 126 | class="pointer-events-none fixed absolute z-[9999] h-10 w-10 opacity-0 transition-opacity duration-500" :style="{ | |
| 140 | 127 | left: `${position.x}px`, |
| 141 | 128 | top: `${position.y}px` |
| 142 | }" | |
| 143 | /> | |
| 129 | }" /> | |
| 144 | 130 | </template> |
| 145 | 131 | <template #not-found> |
| 146 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | interface Props { |
| @@ -26,13 +18,8 @@ withDefaults(defineProps<Props>(), { | ||
| 26 | 18 | </script> |
| 27 | 19 | |
| 28 | 20 | <template> |
| 29 | <component | |
| 30 | :target="link ? '_blank' : undefined" | |
| 31 | :is="link ? 'a' : 'span'" | |
| 32 | class="VPBadge" | |
| 33 | :class="link ? 'tip' : type" | |
| 34 | :href="link" | |
| 35 | > | |
| 21 | <component :target="link ? '_blank' : undefined" :is="link ? 'a' : 'span'" class="VPBadge" | |
| 22 | :class="link ? 'tip' : type" :href="link"> | |
| 36 | 23 | <div v-if="icon" :class="icon" /> |
| 37 | 24 | <slot>{{ text }}</slot> |
| 38 | 25 | </component> |
| @@ -57,24 +44,24 @@ withDefaults(defineProps<Props>(), { | ||
| 57 | 44 | text-decoration: none !important; |
| 58 | 45 | } |
| 59 | 46 | |
| 60 | .vp-doc h1 > .VPBadge { | |
| 47 | .vp-doc h1>.VPBadge { | |
| 61 | 48 | margin-top: 4px; |
| 62 | 49 | vertical-align: top; |
| 63 | 50 | } |
| 64 | 51 | |
| 65 | .vp-doc h2 > .VPBadge { | |
| 52 | .vp-doc h2>.VPBadge { | |
| 66 | 53 | margin-top: 3px; |
| 67 | 54 | padding: 0 8px; |
| 68 | 55 | vertical-align: top; |
| 69 | 56 | } |
| 70 | 57 | |
| 71 | .vp-doc h3 > .VPBadge { | |
| 58 | .vp-doc h3>.VPBadge { | |
| 72 | 59 | vertical-align: middle; |
| 73 | 60 | } |
| 74 | 61 | |
| 75 | .vp-doc h4 > .VPBadge, | |
| 76 | .vp-doc h5 > .VPBadge, | |
| 77 | .vp-doc h6 > .VPBadge { | |
| 62 | .vp-doc h4>.VPBadge, | |
| 63 | .vp-doc h5>.VPBadge, | |
| 64 | .vp-doc h6>.VPBadge { | |
| 78 | 65 | vertical-align: middle; |
| 79 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | withDefaults( |
| @@ -26,13 +18,8 @@ withDefaults( | ||
| 26 | 18 | </script> |
| 27 | 19 | |
| 28 | 20 | <template> |
| 29 | <component | |
| 30 | :target="link ? '_blank' : undefined" | |
| 31 | :is="link ? 'a' : 'span'" | |
| 32 | :href="link" | |
| 33 | :class="type" | |
| 34 | class="VButton px4 py3 mt2 gap2 block flex items-center rounded-md" | |
| 35 | > | |
| 21 | <component :target="link ? '_blank' : undefined" :is="link ? 'a' : 'span'" :href="link" :class="type" | |
| 22 | class="VButton px4 py3 mt2 gap2 block flex items-center rounded-md"> | |
| 36 | 23 | <div :class="icon" /> |
| 37 | 24 | <slot>{{ text }}</slot> |
| 38 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import { ref } from 'vue' |
| @@ -38,10 +30,8 @@ const handleClick = () => { | ||
| 38 | 30 | </div> |
| 39 | 31 | <span class="click-icon" ref="clickIcon"> |
| 40 | 32 | <svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"> |
| 41 | <path | |
| 42 | fill="#fff" | |
| 43 | d="M31.6 17.7V26c0 1.9-.7 3.7-2 5.1v.9c0 1.6-1.3 3-3 3h-8.4c-1.6 0-3-1.3-3-3 0-.6.5-1 1-1s1 .4 1 1c0 .5.4 1 1 1h8.4c.5 0 1-.4 1-1v-1.2-.3-.1c0-.1.1-.2.2-.3 1.1-1.1 1.7-2.5 1.7-4v-8.3c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1v2.4c0 .6-.5 1-1 1s-1-.4-1-1v-5.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v5.5c0 .6-.5 1-1 1s-1-.4-1-1v-8.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v8.5c0 .6-.5 1-1 1s-1-.4-1-1V7.7c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1V20c0 .4-.2.8-.6.9-.4.2-.8.1-1.1-.2L11 18.1c-.6-.6-1.6-.6-2.2.1-.5.6-.4 1.5.2 2.1l7 7c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3-.3 0-.5-.1-.7-.3l-7-7.1c-1.3-1.3-1.5-3.5-.3-4.8C8 16 9 15.5 10 15.5c.9 0 1.8.4 2.5 1l.9.9V7.9c0-1.4.9-2.7 2.3-3 1-.3 2.1 0 2.8.8.6.6.9 1.3.9 2.1V9c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.1 0 .2-.1.3-.1 1-.3 2.1 0 2.8.8.8.5 1.1 1.3 1.1 2z" | |
| 44 | /> | |
| 33 | <path fill="#fff" | |
| 34 | d="M31.6 17.7V26c0 1.9-.7 3.7-2 5.1v.9c0 1.6-1.3 3-3 3h-8.4c-1.6 0-3-1.3-3-3 0-.6.5-1 1-1s1 .4 1 1c0 .5.4 1 1 1h8.4c.5 0 1-.4 1-1v-1.2-.3-.1c0-.1.1-.2.2-.3 1.1-1.1 1.7-2.5 1.7-4v-8.3c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1v2.4c0 .6-.5 1-1 1s-1-.4-1-1v-5.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v5.5c0 .6-.5 1-1 1s-1-.4-1-1v-8.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v8.5c0 .6-.5 1-1 1s-1-.4-1-1V7.7c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1V20c0 .4-.2.8-.6.9-.4.2-.8.1-1.1-.2L11 18.1c-.6-.6-1.6-.6-2.2.1-.5.6-.4 1.5.2 2.1l7 7c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3-.3 0-.5-.1-.7-.3l-7-7.1c-1.3-1.3-1.5-3.5-.3-4.8C8 16 9 15.5 10 15.5c.9 0 1.8.4 2.5 1l.9.9V7.9c0-1.4.9-2.7 2.3-3 1-.3 2.1 0 2.8.8.6.6.9 1.3.9 2.1V9c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.1 0 .2-.1.3-.1 1-.3 2.1 0 2.8.8.8.5 1.1 1.3 1.1 2z" /> | |
| 45 | 35 | </svg> |
| 46 | 36 | </span> |
| 47 | 37 | </template> |
| @@ -146,6 +136,7 @@ const handleClick = () => { | ||
| 146 | 136 | } |
| 147 | 137 | |
| 148 | 138 | @media (max-width: 767px) { |
| 139 | ||
| 149 | 140 | .card, |
| 150 | 141 | .card-page { |
| 151 | 142 | width: 230px; |
| @@ -154,6 +145,7 @@ const handleClick = () => { | ||
| 154 | 145 | } |
| 155 | 146 | |
| 156 | 147 | @media (max-width: 479px) { |
| 148 | ||
| 157 | 149 | .card, |
| 158 | 150 | .card-page { |
| 159 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import { computed } from 'vue' |
| @@ -24,10 +16,7 @@ const contributors = computed(() => contribs || ({} as Contributors)) | ||
| 24 | 16 | <h1 class="text-center">Core Team</h1> |
| 25 | 17 | <hr /> |
| 26 | 18 | <div class="flex flex-wrap gap-4 pt-2"> |
| 27 | <div | |
| 28 | v-for="(c, index) of contributors.core" | |
| 29 | class="flex items-center gap-2" | |
| 30 | > | |
| 19 | <div v-for="(c, index) of contributors.core" class="flex items-center gap-2"> | |
| 31 | 20 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> |
| 32 | 21 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> |
| 33 | 22 | <span v-else>{{ c.name }}</span> |
| @@ -38,10 +27,7 @@ const contributors = computed(() => contribs || ({} as Contributors)) | ||
| 38 | 27 | <h1 class="mt-30px text-center">Contributors</h1> |
| 39 | 28 | <hr /> |
| 40 | 29 | <div class="flex flex-wrap gap-4 pt-2"> |
| 41 | <div | |
| 42 | v-for="(c, index) of contributors.contributors" | |
| 43 | class="flex items-center gap-2" | |
| 44 | > | |
| 30 | <div v-for="(c, index) of contributors.contributors" class="flex items-center gap-2"> | |
| 45 | 31 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> |
| 46 | 32 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> |
| 47 | 33 | <span v-else>{{ c.name }}</span> |
| @@ -52,10 +38,7 @@ const contributors = computed(() => contribs || ({} as Contributors)) | ||
| 52 | 38 | <h1 class="mt-30px text-center">Special Thanks to</h1> |
| 53 | 39 | <hr /> |
| 54 | 40 | <div class="flex flex-wrap gap-4 pt-2"> |
| 55 | <div | |
| 56 | v-for="(c, index) of contributors.special" | |
| 57 | class="flex items-center gap-2" | |
| 58 | > | |
| 41 | <div v-for="(c, index) of contributors.special" class="flex items-center gap-2"> | |
| 59 | 42 | <img :src="c.avatar" class="h-8 w-8 rounded-full" /> |
| 60 | 43 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> |
| 61 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import { computed, ref, reactive } from 'vue' |
| @@ -76,11 +68,11 @@ const isDisabled = computed(() => { | ||
| 76 | 68 | const router = useRouter() |
| 77 | 69 | // prettier-ignore |
| 78 | 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 | 73 | page: getURL(props.heading!), |
| 82 | message: '' | |
| 83 | }) | |
| 74 | message: "", | |
| 75 | }); | |
| 84 | 76 | |
| 85 | 77 | const selectedOption = ref(feedbackOptions[0]) |
| 86 | 78 | |
| @@ -136,46 +128,33 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | ||
| 136 | 128 | |
| 137 | 129 | <template> |
| 138 | 130 | <template v-if="props.heading"> |
| 139 | <button | |
| 140 | @click="toggleCard()" | |
| 141 | class="bg-$vp-c-default-soft text-primary border-$vp-c-default-soft hover:border-primary ml-3 inline-flex h-7 items-center justify-center whitespace-nowrap rounded-md border-2 border-solid px-1.5 py-3.5 text-sm font-medium transition-all duration-300 sm:h-6" | |
| 142 | > | |
| 143 | <span | |
| 144 | :class="isCardShown === false ? `i-lucide:mail` : `i-lucide:mail-x`" | |
| 145 | /> | |
| 131 | <button @click="toggleCard()" | |
| 132 | class="bg-$vp-c-default-soft text-primary border-$vp-c-default-soft hover:border-primary ml-3 inline-flex h-7 items-center justify-center whitespace-nowrap rounded-md border-2 border-solid px-1.5 py-3.5 text-sm font-medium transition-all duration-300 sm:h-6"> | |
| 133 | <span :class="isCardShown === false ? `i-lucide:mail` : `i-lucide:mail-x`" /> | |
| 146 | 134 | </button> |
| 147 | 135 | </template> |
| 148 | 136 | <template v-else> |
| 149 | 137 | <button |
| 150 | 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()" | |
| 152 | > | |
| 153 | <span | |
| 154 | :class=" | |
| 155 | isCardShown === false ? `i-lucide:mail mr-2` : `i-lucide:mail-x mr-2` | |
| 156 | " | |
| 157 | /> | |
| 139 | @click="toggleCard()"> | |
| 140 | <span :class="isCardShown === false ? `i-lucide:mail mr-2` : `i-lucide:mail-x mr-2` | |
| 141 | " /> | |
| 158 | 142 | <span>Send Feedback</span> |
| 159 | 143 | </button> |
| 160 | 144 | </template> |
| 161 | 145 | |
| 162 | 146 | <Transition name="fade" mode="out-in"> |
| 163 | <div | |
| 164 | v-if="isCardShown" | |
| 165 | class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 m-[2rem 0] mt-4 border-2 border-solid p-6" | |
| 166 | > | |
| 147 | <div v-if="isCardShown" | |
| 148 | class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 m-[2rem 0] mt-4 border-2 border-solid p-6"> | |
| 167 | 149 | <Transition name="fade" mode="out-in"> |
| 168 | 150 | <div v-if="!feedback.type"> |
| 169 | 151 | <p class="heading"> |
| 170 | 152 | {{ helpfulText }} |
| 171 | 153 | </p> |
| 172 | 154 | <div class="flex flex-wrap gap-2"> |
| 173 | <button | |
| 174 | v-for="item in feedbackOptions" | |
| 175 | :key="item.value" | |
| 155 | <button v-for="item in feedbackOptions" :key="item.value" | |
| 176 | 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)" | |
| 178 | > | |
| 157 | @click="handleSubmit(item.value)"> | |
| 179 | 158 | <span>{{ item.label }}</span> |
| 180 | 159 | </button> |
| 181 | 160 | </div> |
| @@ -220,24 +199,15 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | ||
| 220 | 199 | </li> |
| 221 | 200 | <li> |
| 222 | 201 | Sites found in the Unsafe lists of |
| 223 | <a | |
| 224 | href="https://fmhy.net/unsafesites" | |
| 225 | class="text-primary text-underline font-semibold" | |
| 226 | > | |
| 202 | <a href="https://fmhy.net/unsafesites" class="text-primary text-underline font-semibold"> | |
| 227 | 203 | FMHY |
| 228 | 204 | </a> |
| 229 | 205 | , |
| 230 | <a | |
| 231 | href="https://megathread.pages.dev/unsafe" | |
| 232 | class="text-primary text-underline font-semibold" | |
| 233 | > | |
| 206 | <a href="https://megathread.pages.dev/unsafe" class="text-primary text-underline font-semibold"> | |
| 234 | 207 | Privateersclub |
| 235 | 208 | </a> |
| 236 | 209 | and/or |
| 237 | <a | |
| 238 | href="https://rentry.org/pgames#untrusted-sites" | |
| 239 | class="text-primary text-underline font-semibold" | |
| 240 | > | |
| 210 | <a href="https://rentry.org/pgames#untrusted-sites" class="text-primary text-underline font-semibold"> | |
| 241 | 211 | r/PiratedGames |
| 242 | 212 | </a> |
| 243 | 213 | . |
| @@ -263,35 +233,25 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | ||
| 263 | 233 | </ol> |
| 264 | 234 | </details> |
| 265 | 235 | </div> |
| 266 | <textarea | |
| 267 | v-model="feedback.message" | |
| 268 | autofocus | |
| 236 | <textarea v-model="feedback.message" autofocus | |
| 269 | 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?" | |
| 271 | /> | |
| 238 | placeholder="Tip: Did you know that starring our GitHub repo doubles the chances that your feedback will be read?" /> | |
| 272 | 239 | <p class="desc mb-2"> |
| 273 | 240 | If you want a reply to your feedback, feel free to mention a contact |
| 274 | 241 | in the message or join our |
| 275 | <a | |
| 276 | class="text-primary text-underline font-semibold" | |
| 277 | href="https://discord.gg/wZMuSGpZ8s" | |
| 278 | > | |
| 242 | <a class="text-primary text-underline font-semibold" href="https://discord.gg/wZMuSGpZ8s"> | |
| 279 | 243 | Discord. |
| 280 | 244 | </a> |
| 281 | 245 | </p> |
| 282 | 246 | <div class="flex flex-row gap-2"> |
| 283 | 247 | <button |
| 284 | 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" | |
| 286 | > | |
| 249 | @click="feedback.type = undefined"> | |
| 287 | 250 | <span class="i-lucide:panel-left-close">close</span> |
| 288 | 251 | </button> |
| 289 | <button | |
| 290 | type="submit" | |
| 252 | <button type="submit" | |
| 291 | 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" | |
| 293 | @click="handleSubmit()" | |
| 294 | > | |
| 254 | :disabled="isDisabled" @click="handleSubmit()"> | |
| 295 | 255 | Send Feedback 📩 |
| 296 | 256 | </button> |
| 297 | 257 | </div> |
| @@ -309,7 +269,9 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value) | ||
| 309 | 269 | border: 1px solid var(--vp-c-divider); |
| 310 | 270 | background-color: var(--vp-c-bg); |
| 311 | 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 | 275 | display: inline-block; |
| 314 | 276 | font-size: 14px; |
| 315 | 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 | 8 | <script setup lang="ts"> |
| 2 | 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 | |
| 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 2 | All Rights Reserved | |
| 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 | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | defineProps<{ |
| @@ -32,8 +24,7 @@ const sections = [ | ||
| 32 | 24 | { icon: 'i-twemoji-no-one-under-eighteen', label: 'R18' }, |
| 33 | 25 | { icon: 'i-material-symbols-person-add', label: 'Needs account' }, |
| 34 | 26 | { icon: 'i-material-symbols-help', label: 'Help / Docs' }, |
| 35 | { icon: 'i-mdi-arrow-right-bold', label: 'Related' }, | |
| 36 | ||
| 27 | { icon: 'i-mdi-arrow-right-bold', label: 'Related' } | |
| 37 | 28 | ] |
| 38 | 29 | }, |
| 39 | 30 | { |
| @@ -54,7 +45,10 @@ const sections = [ | ||
| 54 | 45 | title: 'Type', |
| 55 | 46 | items: [ |
| 56 | 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 | 52 | { icon: 'i-lucide-magnet', label: 'Torrent / p2p' }, |
| 59 | 53 | { icon: 'i-iconoir-floppy-disk', label: 'Local file' }, |
| 60 | 54 | { icon: 'i-material-symbols-package-2-outline', label: 'Batch Download' }, |
| @@ -70,7 +64,7 @@ const sections = [ | ||
| 70 | 64 | { icon: 'i-ic-round-currency-exchange', label: 'Subscription' }, |
| 71 | 65 | { icon: 'i-ic-round-money-off-csred', label: 'Has free content' }, |
| 72 | 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 | 138 | </script> |
| 146 | 139 | |
| 147 | 140 | <template> |
| 148 | 141 | <Teleport to="body"> |
| 149 | 142 | <Transition name="modal"> |
| 150 | <div | |
| 151 | v-if="isOpen" | |
| 152 | class="fixed inset-0 z-9999 p-4 sm:p-6 overflow-y-auto" | |
| 153 | > | |
| 143 | <div v-if="isOpen" class="fixed inset-0 z-9999 p-4 sm:p-6 overflow-y-auto"> | |
| 154 | 144 | <!-- Backdrop --> |
| 155 | <div | |
| 156 | class="fixed inset-0 bg-black/50 backdrop-blur-sm" | |
| 157 | @click="$emit('close')" | |
| 158 | /> | |
| 145 | <div class="fixed inset-0 bg-black/50 backdrop-blur-sm" @click="$emit('close')" /> | |
| 159 | 146 | |
| 160 | 147 | <!-- Modal --> |
| 161 | 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" | |
| 163 | > | |
| 149 | class="relative mx-auto bg-$vp-c-bg rounded-lg border-2 border-$vp-c-default-soft p-4 sm:p-6 shadow-xl w-full max-w-4xl mt-16 mb-8"> | |
| 164 | 150 | <div class="flex justify-between items-center mb-4 sm:mb-6"> |
| 165 | 151 | <h2 class="text-$vp-c-text-1 text-lg sm:text-xl font-bold"> |
| 166 | 152 | Legend |
| 167 | 153 | </h2> |
| 168 | <button | |
| 169 | class="text-$vp-c-text-2 hover:text-$vp-c-text-1 transition-colors p-1" | |
| 170 | @click="$emit('close')" | |
| 171 | > | |
| 154 | <button class="text-$vp-c-text-2 hover:text-$vp-c-text-1 transition-colors p-1" @click="$emit('close')"> | |
| 172 | 155 | <div class="i-material-symbols-close text-lg" /> |
| 173 | 156 | </button> |
| 174 | 157 | </div> |
| @@ -178,17 +161,10 @@ const sections = [ | ||
| 178 | 161 | <h3 class="text-$vp-c-text-1 font-bold mb-3"> |
| 179 | 162 | {{ section.title }} |
| 180 | 163 | </h3> |
| 181 | <div | |
| 182 | class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2" | |
| 183 | > | |
| 184 | <div | |
| 185 | v-for="item in section.items" | |
| 186 | :key="item.label" | |
| 187 | class="flex flex-col items-center justify-center p-3 rounded-lg bg-$vp-c-bg-alt hover:bg-$vp-c-bg-elv transition-colors" | |
| 188 | > | |
| 189 | <div | |
| 190 | :class="[item.icon, 'text-2xl mb-1 text-$vp-c-text-1']" | |
| 191 | /> | |
| 164 | <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2"> | |
| 165 | <div v-for="item in section.items" :key="item.label" | |
| 166 | class="flex flex-col items-center justify-center p-3 rounded-lg bg-$vp-c-bg-alt hover:bg-$vp-c-bg-elv transition-colors"> | |
| 167 | <div :class="[item.icon, 'text-2xl mb-1 text-$vp-c-text-1']" /> | |
| 192 | 168 | <div class="text-$vp-c-text-2 text-xs text-center"> |
| 193 | 169 | {{ item.label }} |
| 194 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import { ref, watchEffect } from 'vue' |
| @@ -45,14 +37,9 @@ const dismiss = () => { | ||
| 45 | 37 | . Bookmark & share!! |
| 46 | 38 | </div> |
| 47 | 39 | <button type="button" @click="dismiss"> |
| 48 | <svg | |
| 49 | xmlns="http://www.w3.org/2000/svg" | |
| 50 | viewBox="0 0 20 20" | |
| 51 | fill="currentColor" | |
| 52 | > | |
| 40 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> | |
| 53 | 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" | |
| 55 | /> | |
| 42 | d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" /> | |
| 56 | 43 | </svg> |
| 57 | 44 | </button> |
| 58 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import { ref } from 'vue' |
| @@ -23,32 +15,18 @@ const imageSize = ref('550px') // Fixed size for the image | ||
| 23 | 15 | <template> |
| 24 | 16 | <div class="flex min-h-[calc(100vh-4rem)] items-center justify-center p-4"> |
| 25 | 17 | <div class="text-center"> |
| 26 | <img | |
| 27 | :style="{ width: imageSize, height: 'auto' }" | |
| 28 | src="/asset/404.gif" | |
| 29 | alt="404 Image" | |
| 30 | class="mx-auto" | |
| 31 | /> | |
| 18 | <img :style="{ width: imageSize, height: 'auto' }" src="/asset/404.gif" alt="404 Image" class="mx-auto" /> | |
| 32 | 19 | <p class="text-title-lg mt-4 font-bold leading-tight text-white">404</p> |
| 33 | <p | |
| 34 | class="text-body-lg flex flex-wrap items-center justify-center leading-snug text-gray-400" | |
| 35 | > | |
| 20 | <p class="text-body-lg flex flex-wrap items-center justify-center leading-snug text-gray-400"> | |
| 36 | 21 | Umm.... you shouldn’t be here |
| 37 | 22 | <span class="icon-container mx-1"> |
| 38 | 23 | <img class="icon-img" src="/asset/inahuh.png" alt="Inahuh Icon" /> |
| 39 | 24 | </span> |
| 40 | 25 | If you got here from a link, please click |
| 41 | 26 | <span class="icon-container mx-1"> |
| 42 | <svg | |
| 43 | class="w-icon h-icon inline-block align-text-bottom" | |
| 44 | xmlns="http://www.w3.org/2000/svg" | |
| 45 | viewBox="0 0 24 24" | |
| 46 | fill="none" | |
| 47 | stroke="currentColor" | |
| 48 | stroke-linecap="round" | |
| 49 | stroke-linejoin="round" | |
| 50 | stroke-width="2" | |
| 51 | > | |
| 27 | <svg class="w-icon h-icon inline-block align-text-bottom" xmlns="http://www.w3.org/2000/svg" | |
| 28 | viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" | |
| 29 | stroke-width="2"> | |
| 52 | 30 | <rect width="20" height="16" x="2" y="4" rx="2"></rect> |
| 53 | 31 | <path d="m22 7l-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path> |
| 54 | 32 | </svg> |
| @@ -61,48 +39,64 @@ const imageSize = ref('550px') // Fixed size for the image | ||
| 61 | 39 | |
| 62 | 40 | <style scoped> |
| 63 | 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 | 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 | 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 | 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 | 61 | .icon-container { |
| 80 | display: inline-flex; /* Use inline-flex to control spacing within the container */ | |
| 81 | align-items: center; /* Vertically center the icon/image */ | |
| 82 | justify-content: center; /* Horizontally center the icon/image */ | |
| 62 | display: inline-flex; | |
| 63 | /* Use inline-flex to control spacing within the container */ | |
| 64 | align-items: center; | |
| 65 | /* Vertically center the icon/image */ | |
| 66 | justify-content: center; | |
| 67 | /* Horizontally center the icon/image */ | |
| 83 | 68 | } |
| 84 | 69 | |
| 85 | 70 | .icon-img { |
| 86 | width: 1em; /* Make the image size relative to the text size */ | |
| 87 | height: auto; /* Maintain aspect ratio */ | |
| 71 | width: 1em; | |
| 72 | /* Make the image size relative to the text size */ | |
| 73 | height: auto; | |
| 74 | /* Maintain aspect ratio */ | |
| 88 | 75 | } |
| 89 | 76 | |
| 90 | 77 | .mx-1 { |
| 91 | margin-left: 0.25em; /* Adjust this value for precise spacing */ | |
| 92 | margin-right: 0.25em; /* Adjust this value for precise spacing */ | |
| 78 | margin-left: 0.25em; | |
| 79 | /* Adjust this value for precise spacing */ | |
| 80 | margin-right: 0.25em; | |
| 81 | /* Adjust this value for precise spacing */ | |
| 93 | 82 | } |
| 94 | 83 | |
| 95 | 84 | @media (max-width: 640px) { |
| 96 | 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 | 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 | 95 | .mx-1 { |
| 104 | margin-left: 0.1em; /* Adjusted margin for smaller screens */ | |
| 105 | margin-right: 0.1em; /* Adjusted margin for smaller screens */ | |
| 96 | margin-left: 0.1em; | |
| 97 | /* Adjusted margin for smaller screens */ | |
| 98 | margin-right: 0.1em; | |
| 99 | /* Adjusted margin for smaller screens */ | |
| 106 | 100 | } |
| 107 | 101 | } |
| 108 | 102 | |
| @@ -112,7 +106,9 @@ p { | ||
| 112 | 106 | } |
| 113 | 107 | |
| 114 | 108 | div { |
| 115 | max-height: 100vh; /* Prevents container from exceeding viewport height */ | |
| 116 | overflow-y: hidden; /* Ensures no vertical scrollbar is visible */ | |
| 109 | max-height: 100vh; | |
| 110 | /* Prevents container from exceeding viewport height */ | |
| 111 | overflow-y: hidden; | |
| 112 | /* Ensures no vertical scrollbar is visible */ | |
| 117 | 113 | } |
| 118 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | defineProps<{ title: string; description?: string; image: string }>() |
| 18 | 10 | </script> |
| 19 | 11 | |
| 20 | 12 | <template> |
| 21 | <span | |
| 22 | tw="w-full h-full bg-black flex flex-col" | |
| 23 | :style="{ | |
| 24 | backgroundImage: `url(${image})` | |
| 25 | }" | |
| 26 | > | |
| 27 | <span | |
| 28 | tw="p-10 w-full min-h-0 grow flex flex-col items-center justify-between" | |
| 29 | > | |
| 13 | <span tw="w-full h-full bg-black flex flex-col" :style="{ | |
| 14 | backgroundImage: `url(${image})` | |
| 15 | }"> | |
| 16 | <span tw="p-10 w-full min-h-0 grow flex flex-col items-center justify-between"> | |
| 30 | 17 | <span tw="w-full flex justify-between items-center text-5xl font-medium"> |
| 31 | 18 | <span tw="flex items-center"> |
| 32 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import { useLocalStorage } from '@vueuse/core' |
| @@ -47,13 +39,7 @@ function removeSpaces(str: string) { | ||
| 47 | 39 | <p class="title">{{ text }}</p> |
| 48 | 40 | <div class="VPPreference" :class="{ 'screen-menu': screenMenu }"> |
| 49 | 41 | <template v-for="option in optionsWithKeys" :key="option"> |
| 50 | <input | |
| 51 | type="radio" | |
| 52 | :id="option.key" | |
| 53 | :name="name" | |
| 54 | :value="option.value" | |
| 55 | v-model="selected" | |
| 56 | /> | |
| 42 | <input type="radio" :id="option.key" :name="name" :value="option.value" v-model="selected" /> | |
| 57 | 43 | <label :for="option.key">{{ option.value }}</label> |
| 58 | 44 | </template> |
| 59 | 45 | </div> |
| @@ -96,7 +82,7 @@ function removeSpaces(str: string) { | ||
| 96 | 82 | text-align: center; |
| 97 | 83 | } |
| 98 | 84 | |
| 99 | .VPPreference input[type='radio']:checked + label { | |
| 85 | .VPPreference input[type='radio']:checked+label { | |
| 100 | 86 | background-color: var(--vp-c-default-soft); |
| 101 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import { onBeforeMount, ref } from 'vue' |
| @@ -40,24 +32,15 @@ onBeforeMount(async () => { | ||
| 40 | 32 | <template v-if="needRefresh"> |
| 41 | 33 | <div |
| 42 | 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" | |
| 44 | aria-labelledby="pwa-message" | |
| 45 | > | |
| 35 | role="alertdialog" aria-labelledby="pwa-message"> | |
| 46 | 36 | <div id="pwa-message" class="mb-3"> |
| 47 | 37 | New content available, click the reload button to update. |
| 48 | 38 | </div> |
| 49 | <button | |
| 50 | type="button" | |
| 51 | class="pwa-refresh mr-2 rounded px-3 py-1" | |
| 52 | @click="updateServiceWorker?.()" | |
| 53 | > | |
| 39 | <button type="button" class="pwa-refresh mr-2 rounded px-3 py-1" @click="updateServiceWorker?.()"> | |
| 54 | 40 | Reload |
| 55 | 41 | </button> |
| 56 | <button | |
| 57 | type="button" | |
| 58 | class="pwa-cancel b b-solid b-1px !b-color-$pwa-border mr-2 rounded px-3 py-1" | |
| 59 | @click="close" | |
| 60 | > | |
| 42 | <button type="button" class="pwa-cancel b b-solid b-1px !b-color-$pwa-border mr-2 rounded px-3 py-1" | |
| 43 | @click="close"> | |
| 61 | 44 | Close |
| 62 | 45 | </button> |
| 63 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 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 | 15 | const focusLegendModal = () => { |
| 24 | isModalOpen.value = true | |
| 25 | } | |
| 16 | isModalOpen.value = true; | |
| 17 | }; | |
| 26 | 18 | </script> |
| 27 | 19 | |
| 28 | 20 | <template> |
| 29 | 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" | |
| 31 | > | |
| 22 | class="bg-$vp-c-bg hover:bg-$vp-c-bg/40 border-$vp-c-default-soft hover:border-primary transition-border relative z-0 rounded-lg border-2 border-solid p-5 duration-500 mt-2"> | |
| 32 | 23 | <button class="w-full text-left" @click="isModalOpen = true"> |
| 33 | 24 | <div class="align-center flex items-center gap-2"> |
| 34 | <div | |
| 35 | class="i-material-symbols-info-outline-rounded text-$vp-c-text-2" | |
| 36 | /> | |
| 25 | <div class="i-material-symbols-info-outline-rounded text-$vp-c-text-2" /> | |
| 37 | 26 | <div class="text-$vp-c-text-1 lh-relaxed text-sm font-bold">Legend</div> |
| 38 | 27 | </div> |
| 39 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | withDefaults( |
| 18 | defineProps<{ | |
| 19 | title: string; | |
| 20 | icon: string; | |
| 21 | }>(), | |
| 22 | { | |
| 23 | title: "Info", | |
| 24 | // https://icon-sets.iconify.design/material-symbols/ | |
| 25 | icon: "i-material-symbols-info-i", | |
| 26 | }, | |
| 27 | ); | |
| 10 | defineProps<{ | |
| 11 | title: string | |
| 12 | icon: string | |
| 13 | }>(), | |
| 14 | { | |
| 15 | title: 'Info', | |
| 16 | // https://icon-sets.iconify.design/material-symbols/ | |
| 17 | icon: 'i-material-symbols-info-i' | |
| 18 | } | |
| 19 | ) | |
| 28 | 20 | </script> |
| 29 | 21 | |
| 30 | 22 | <template> |
| 31 | 23 | <VTooltip theme="vp-tooltip"> |
| 32 | 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" | |
| 34 | > | |
| 25 | class="bg-$vp-c-default-soft hover:bg-$vp-c-default-soft/40 text-primary border-$vp-c-default-soft hover:border-primary ml-2 size-7 select-none rounded rounded-full border-2 border-solid font-bold transition-all duration-300"> | |
| 35 | 26 | <div :class="icon" /> |
| 36 | 27 | </button> |
| 37 | 28 | |
| 38 | 29 | <template #popper> |
| 39 | <div | |
| 40 | class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 max-w-lg border-2 border-solid p-4 transition-all" | |
| 41 | > | |
| 42 | <h3 | |
| 43 | class="text-$vp-c-text-1 mb-2 text-lg font-semibold" | |
| 44 | v-text="title" | |
| 45 | /> | |
| 30 | <div class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 max-w-lg border-2 border-solid p-4 transition-all"> | |
| 31 | <h3 class="text-$vp-c-text-1 mb-2 text-lg font-semibold" v-text="title" /> | |
| 46 | 32 | <p class="text-$vp-c-text-2 text-sm content"> |
| 47 | 33 | <slot /> |
| 48 | 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"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 4 | Copyright (c) 2025 taskylizard | |
| 7 | 5 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 6 | All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | --> |
| 16 | 8 | <script setup lang="ts"> |
| 17 | 9 | import { useData } from 'vitepress' |
| @@ -27,14 +19,8 @@ const toggleAppearance = inject('toggle-appearance', () => { | ||
| 27 | 19 | </script> |
| 28 | 20 | |
| 29 | 21 | <template> |
| 30 | <button | |
| 31 | type="button" | |
| 32 | role="switch" | |
| 33 | title="VPSwitchAppearance" | |
| 34 | class="VPSwitchAppearance" | |
| 35 | :aria-checked="isDark" | |
| 36 | @click="toggleAppearance" | |
| 37 | > | |
| 22 | <button type="button" role="switch" title="VPSwitchAppearance" class="VPSwitchAppearance" :aria-checked="isDark" | |
| 23 | @click="toggleAppearance"> | |
| 38 | 24 | <ClientOnly> |
| 39 | 25 | <Transition name="fade" mode="out-in"> |
| 40 | 26 | <VPIconSun v-if="!isDark" class="sun" /> |
| @@ -59,13 +45,14 @@ const toggleAppearance = inject('toggle-appearance', () => { | ||
| 59 | 45 | transition: color 0.25s; |
| 60 | 46 | } |
| 61 | 47 | |
| 62 | & > :deep(svg) { | |
| 48 | &> :deep(svg) { | |
| 63 | 49 | width: 20px; |
| 64 | 50 | height: 20px; |
| 65 | 51 | fill: currentColor; |
| 66 | 52 | } |
| 67 | 53 | |
| 68 | 54 | &[data-view-transition='false'] { |
| 55 | ||
| 69 | 56 | .fade-enter-active, |
| 70 | 57 | .fade-leave-active { |
| 71 | 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 | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import mediumZoom from 'medium-zoom' |
| 17 | 9 | import { inject, nextTick, onMounted, watch } from 'vue' |
| 18 | 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 | 8 | import type { App, InjectionKey } from 'vue' |
| 2 | 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 | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | import { ref } from "vue"; | |
| 17 | import { getTooltip, type TooltipData } from "virtual:tooltips"; | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 8 | import { ref } from 'vue' | |
| 9 | 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 | 13 | export function useTooltips() { |
| 22 | 14 | const getTooltipData = (id: string): TooltipData | null => { |
| 23 | 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 | 20 | if (tooltip) { |
| 29 | tooltipCache.value.set(id, tooltip); | |
| 30 | return tooltip; | |
| 21 | tooltipCache.value.set(id, tooltip) | |
| 22 | return tooltip | |
| 31 | 23 | } |
| 32 | 24 | |
| 33 | console.warn(`Tooltip with id "${id}" not found`); | |
| 34 | return null; | |
| 35 | }; | |
| 25 | console.warn(`Tooltip with id "${id}" not found`) | |
| 26 | return null | |
| 27 | } | |
| 36 | 28 | |
| 37 | 29 | return { |
| 38 | getTooltipData, | |
| 39 | }; | |
| 30 | getTooltipData | |
| 31 | } | |
| 40 | 32 | } |
| 41 | ||
docs/.vitepress/theme/index.ts +6 −14
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import type { Theme } from 'vitepress' |
| 17 | 9 | import DefaultTheme from 'vitepress/theme' |
| 18 | 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 | 8 | interface ApiConfig { |
| 2 | 9 | baseUrl: string |
| 3 | 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 | 8 | import type { |
| 2 | 9 | InternalOptions as InternalBaseOptions, |
| 3 | 10 | TrackProperties |
docs/.vitepress/theme/math.ts +6 −14
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | // Thanks to @yellowsink for the original code!! <3 |
| 17 | 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"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 7 | 5 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 15 | 7 | */ |
| 16 | 8 | :root { |
| 17 | 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 | 8 | @import url('floating-vue/dist/style.css'); |
| 2 | 9 | |
| 3 | 10 | div.v-popper--theme-hint { |
docs/.vitepress/types/Feedback.ts +8 −16
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import z from 'zod' |
| 17 | 9 | |
| 18 | 10 | export const FeedbackSchema = z.object({ |
| @@ -41,7 +33,7 @@ export const feedbackOptions: Option[] = [ | ||
| 41 | 33 | value: 'submit' |
| 42 | 34 | }, |
| 43 | 35 | { |
| 44 | label: '❗️ Update link', | |
| 36 | label: '❗ Update link', | |
| 45 | 37 | value: 'update' |
| 46 | 38 | }, |
| 47 | 39 | { |
| @@ -53,7 +45,7 @@ export const feedbackOptions: Option[] = [ | ||
| 53 | 45 | value: 'suggestion' |
| 54 | 46 | }, |
| 55 | 47 | { |
| 56 | label: '❤️ Love the wiki', | |
| 48 | label: '❤ Love the wiki', | |
| 57 | 49 | value: 'appreciation' |
| 58 | 50 | }, |
| 59 | 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 | 8 | declare module 'virtual:tooltips' { |
| 2 | 9 | export interface TooltipData { |
| 3 | 10 | id: string |
docs/.vitepress/utils/tooltips.ts +31 −40
| @@ -1,67 +1,58 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | ||
| 17 | import { readdirSync, readFileSync } from "node:fs"; | |
| 18 | import { basename, join, resolve } from "pathe"; | |
| 19 | import matter from "gray-matter"; | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 8 | import { readdirSync, readFileSync } from 'node:fs' | |
| 9 | import { basename, join, resolve } from 'pathe' | |
| 10 | import matter from 'gray-matter' | |
| 20 | 11 | |
| 21 | 12 | export interface TooltipData { |
| 22 | id: string; | |
| 23 | frontmatter: Record<string, string>; | |
| 24 | content: string; | |
| 13 | id: string | |
| 14 | frontmatter: Record<string, string> | |
| 15 | content: string | |
| 25 | 16 | } |
| 26 | 17 | |
| 27 | let tooltipsCache: TooltipData[] | null = null; | |
| 18 | let tooltipsCache: TooltipData[] | null = null | |
| 28 | 19 | |
| 29 | 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"); | |
| 33 | const tooltips: TooltipData[] = []; | |
| 23 | const tooltipsDir = resolve(process.cwd(), 'docs/.vitepress/tooltips') | |
| 24 | const tooltips: TooltipData[] = [] | |
| 34 | 25 | |
| 35 | 26 | try { |
| 36 | 27 | const files = readdirSync(tooltipsDir).filter((file) => |
| 37 | file.endsWith(".md"), | |
| 38 | ); | |
| 28 | file.endsWith('.md') | |
| 29 | ) | |
| 39 | 30 | |
| 40 | 31 | for (const file of files) { |
| 41 | const filePath = join(tooltipsDir, file); | |
| 42 | const fileContent = readFileSync(filePath, "utf-8"); | |
| 43 | const { data, content } = matter(fileContent); | |
| 32 | const filePath = join(tooltipsDir, file) | |
| 33 | const fileContent = readFileSync(filePath, 'utf-8') | |
| 34 | const { data, content } = matter(fileContent) | |
| 44 | 35 | |
| 45 | const id = basename(file, ".md"); | |
| 46 | const cleanContent = content.trim(); | |
| 36 | const id = basename(file, '.md') | |
| 37 | const cleanContent = content.trim() | |
| 47 | 38 | |
| 48 | 39 | tooltips.push({ |
| 49 | 40 | id, |
| 50 | 41 | frontmatter: data, |
| 51 | content: cleanContent, | |
| 52 | }); | |
| 42 | content: cleanContent | |
| 43 | }) | |
| 53 | 44 | } |
| 54 | 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; | |
| 59 | return tooltips; | |
| 49 | tooltipsCache = tooltips | |
| 50 | return tooltips | |
| 60 | 51 | } |
| 61 | 52 | |
| 62 | 53 | export function getTooltip(id: string): TooltipData | undefined { |
| 63 | const tooltips = loadTooltips(); | |
| 64 | return tooltips.find((tooltip) => tooltip.id === id); | |
| 54 | const tooltips = loadTooltips() | |
| 55 | return tooltips.find((tooltip) => tooltip.id === id) | |
| 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 | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | /* eslint-disable ts/consistent-type-imports */ |
| 17 | 9 | declare module '*.vue' { |
| 18 | 10 | const component: import('vue').Component |
nitro.config.ts +7 −15
| @@ -1,24 +1,16 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | //https://nitro.unjs.io/config |
| 17 | 9 | export default defineNitroConfig({ |
| 18 | 10 | compatibilityDate: '2024-12-16', |
| 19 | 11 | runtimeConfig: { |
| 20 | 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 | 15 | srcDir: 'api', |
| 24 | 16 | routeRules: { |
unocss.config.ts +6 −14
| @@ -1,18 +1,10 @@ | ||
| 1 | 1 | /** |
| 2 | * Copyright (c) 2024 taskylizard | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 2 | * All Rights Reserved | |
| 3 | * | |
| 4 | * Copyright (c) 2025 taskylizard | |
| 5 | * | |
| 6 | * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder. | |
| 7 | */ | |
| 16 | 8 | import { colors } from '@taskylizard/colors' |
| 17 | 9 | import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders' |
| 18 | 10 | import { resolve } from 'node:path' |