diff --git a/.licenserc.json b/.licenserc.json
index af860f16d..9464af5b3 100644
--- a/.licenserc.json
+++ b/.licenserc.json
@@ -1,19 +1,25 @@
{
- "docs/.vitepress/**/*.ts": [
+ "**/*.ts": [
"/**",
- " Copyright (c) taskylizard. All rights reserved.",
- "",
- " Licensed under the Apache License, Version 2.0 (the \"License\");",
- " you may not use this file except in compliance with the License.",
- " You may obtain a copy of the License at",
- "",
- " http://www.apache.org/licenses/LICENSE-2.0",
- "",
- " Unless required by applicable law or agreed to in writing, software",
- " distributed under the License is distributed on an \"AS IS\" BASIS,",
- " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
- " See the License for the specific language governing permissions and",
- " limitations under the License.",
+ "* Copyright (c) taskylizard. All rights reserved.",
+ "*",
+ "* Licensed under the Apache License, Version 2.0 (the \"License\");",
+ "* you may not use this file except in compliance with the License.",
+ "* You may obtain a copy of the License at",
+ "*",
+ "* http://www.apache.org/licenses/LICENSE-2.0",
+ "*",
+ "* Unless required by applicable law or agreed to in writing, software",
+ "* distributed under the License is distributed on an \"AS IS\" BASIS,",
+ "* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
+ "* See the License for the specific language governing permissions and",
+ "* limitations under the License.",
"*/"
+ ],
+ "ignore": [
+ "node_modules",
+ "dist",
+ "docs/.vitepress/dist",
+ "docs/.vitepress/cache"
]
}
diff --git a/api/middleware/cors.ts b/api/middleware/cors.ts
index 4e8af9dd1..1ae38263e 100644
--- a/api/middleware/cors.ts
+++ b/api/middleware/cors.ts
@@ -1,3 +1,18 @@
+/**
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
import { corsEventHandler } from 'nitro-cors'
export default corsEventHandler(
diff --git a/api/routes/feedback.post.ts b/api/routes/feedback.post.ts
index 05d11dbc3..729069bb3 100644
--- a/api/routes/feedback.post.ts
+++ b/api/routes/feedback.post.ts
@@ -1,3 +1,18 @@
+/**
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
import { fetcher } from 'itty-fetcher'
import {
FeedbackSchema,
diff --git a/api/routes/index.ts b/api/routes/index.ts
index cb36c7c7a..324d3bdd3 100644
--- a/api/routes/index.ts
+++ b/api/routes/index.ts
@@ -1,3 +1,18 @@
+/**
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
export default eventHandler(() => {
return { nitro: 'works' }
})
diff --git a/api/routes/single-page.ts b/api/routes/single-page.ts
index 1002f8b20..85444d946 100644
--- a/api/routes/single-page.ts
+++ b/api/routes/single-page.ts
@@ -1,3 +1,18 @@
+/**
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
import { fetcher } from 'itty-fetcher'
// Look inside tbe docs directory
diff --git a/docs/.vitepress/LICENSE b/docs/.vitepress/LICENSE
new file mode 100644
index 000000000..fd5d6d44a
--- /dev/null
+++ b/docs/.vitepress/LICENSE
@@ -0,0 +1,14 @@
+Copyright (c) taskylizard. Apache License 2.0
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
diff --git a/docs/.vitepress/README.md b/docs/.vitepress/README.md
new file mode 100644
index 000000000..e2da1674c
--- /dev/null
+++ b/docs/.vitepress/README.md
@@ -0,0 +1,3 @@
+This is the website source code to be used with [VitePress](https://vitepress.dev/).
+
+Licensed under the Apache License v2.0, see [LICENSE](./LICENSE) for more information.
diff --git a/docs/.vitepress/constants.ts b/docs/.vitepress/constants.ts
index 824700b9e..d3d04a11f 100644
--- a/docs/.vitepress/constants.ts
+++ b/docs/.vitepress/constants.ts
@@ -1,17 +1,17 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
*/
import type { DefaultTheme } from 'vitepress'
import { transform, transformGuide } from './transformer'
@@ -26,9 +26,8 @@ export const meta = {
export const commitRef =
process.env.CF_PAGES && process.env.CF_PAGES_COMMIT_SHA
- ? `${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}`
+ ? `${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}`
: 'dev'
export const feedback = ``
diff --git a/docs/.vitepress/hooks/index.ts b/docs/.vitepress/hooks/index.ts
index dfd73db96..6bf435df8 100644
--- a/docs/.vitepress/hooks/index.ts
+++ b/docs/.vitepress/hooks/index.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
/**
* Barrel generated using @taskylizard/tasker.
*/
diff --git a/docs/.vitepress/hooks/meta.ts b/docs/.vitepress/hooks/meta.ts
index 8f702e66f..643676507 100644
--- a/docs/.vitepress/hooks/meta.ts
+++ b/docs/.vitepress/hooks/meta.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import type { HeadConfig, TransformContext } from 'vitepress'
export function generateMeta(context: TransformContext, hostname: string) {
diff --git a/docs/.vitepress/hooks/opengraph.ts b/docs/.vitepress/hooks/opengraph.ts
index a96225101..74c5749dd 100644
--- a/docs/.vitepress/hooks/opengraph.ts
+++ b/docs/.vitepress/hooks/opengraph.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import { mkdir, readFile, writeFile } from 'node:fs/promises'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
@@ -26,7 +26,7 @@ import { headers } from '../transformer/constants'
const __dirname = dirname(fileURLToPath(import.meta.url))
const __fonts = resolve(__dirname, '../fonts')
-export async function generateImages(config: SiteConfig): Promise {
+export async function generateImages(config: SiteConfig): Promise {
const pages = await createContentLoader('**/*.md', { excerpt: true }).load()
const template = await readFile(resolve(__dirname, './Template.vue'), 'utf-8')
@@ -80,20 +80,20 @@ async function generateImage({
template,
outDir,
fonts
-}: GenerateImagesOptions): Promise {
+}: GenerateImagesOptions): Promise {
const { frontmatter, url } = page
const _page = getPage(url)
const title =
frontmatter.layout === 'home'
- ? (frontmatter.hero.name ?? frontmatter.title)
+ ? frontmatter.hero.name ?? frontmatter.title
: frontmatter.title
? frontmatter.title
: _page?.title
const description =
frontmatter.layout === 'home'
- ? (frontmatter.hero.tagline ?? frontmatter.description)
+ ? frontmatter.hero.tagline ?? frontmatter.description
: frontmatter.description
? frontmatter.description
: _page?.description
diff --git a/docs/.vitepress/hooks/rss.ts b/docs/.vitepress/hooks/rss.ts
index b50898ee1..40d7d5d44 100644
--- a/docs/.vitepress/hooks/rss.ts
+++ b/docs/.vitepress/hooks/rss.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import path from 'node:path'
import { writeFileSync } from 'node:fs'
import { Feed } from 'feed'
@@ -24,7 +24,7 @@ import {
import consola from 'consola'
import { meta } from '../constants'
-export async function generateFeed(config: SiteConfig): Promise {
+export async function generateFeed(config: SiteConfig): Promise {
const feed: Feed = new Feed({
id: meta.hostname,
link: meta.hostname,
diff --git a/docs/.vitepress/hooks/satoriConfig.ts b/docs/.vitepress/hooks/satoriConfig.ts
index 3e71fefe5..6a758fcac 100644
--- a/docs/.vitepress/hooks/satoriConfig.ts
+++ b/docs/.vitepress/hooks/satoriConfig.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import { readFile } from 'node:fs/promises'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
diff --git a/docs/.vitepress/imports.d.ts b/docs/.vitepress/imports.d.ts
index 36a7d1f27..247ace555 100644
--- a/docs/.vitepress/imports.d.ts
+++ b/docs/.vitepress/imports.d.ts
@@ -1,3 +1,18 @@
+/**
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
diff --git a/docs/.vitepress/markdown/base64.ts b/docs/.vitepress/markdown/base64.ts
index 7b8050c6a..ddb883b3d 100644
--- a/docs/.vitepress/markdown/base64.ts
+++ b/docs/.vitepress/markdown/base64.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import type { MarkdownRenderer } from 'vitepress'
// FIXME: tasky: possibly write less horror jank?
@@ -27,7 +27,6 @@ export function base64DecodePlugin(md: MarkdownRenderer) {
}
md.renderer.rules.code_inline = function (tokens, idx, options, env, self) {
- // @ts-expect-error shut the fuck up already I HATE THIS
if (
!env.frontmatter.title ||
(env.frontmatter.title && !env.frontmatter.title === 'base64')
diff --git a/docs/.vitepress/markdown/emoji.ts b/docs/.vitepress/markdown/emoji.ts
index db7a093a1..d50dd48e0 100644
--- a/docs/.vitepress/markdown/emoji.ts
+++ b/docs/.vitepress/markdown/emoji.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import { icons as twemoji } from '@iconify-json/twemoji'
import type { MarkdownRenderer } from 'vitepress'
diff --git a/docs/.vitepress/markdown/headers.ts b/docs/.vitepress/markdown/headers.ts
index 3ad57cadc..b771b7c9e 100644
--- a/docs/.vitepress/markdown/headers.ts
+++ b/docs/.vitepress/markdown/headers.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import type { MarkdownRenderer } from 'vitepress'
import { headers } from '../transformer/constants'
diff --git a/docs/.vitepress/markdown/toggleStarred.ts b/docs/.vitepress/markdown/toggleStarred.ts
index 2554a0279..baf60ca85 100644
--- a/docs/.vitepress/markdown/toggleStarred.ts
+++ b/docs/.vitepress/markdown/toggleStarred.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import type { MarkdownRenderer } from 'vitepress'
const excluded = ['Beginners Guide']
diff --git a/docs/.vitepress/theme/composables/nprogress.ts b/docs/.vitepress/theme/composables/nprogress.ts
index 862e17339..90e34516e 100644
--- a/docs/.vitepress/theme/composables/nprogress.ts
+++ b/docs/.vitepress/theme/composables/nprogress.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import nprogress, { type NProgress } from 'nprogress'
import type { EnhanceAppContext } from 'vitepress'
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 7bb9b8305..d6499251f 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import Layout from './Layout.vue'
diff --git a/docs/.vitepress/theme/posts.data.ts b/docs/.vitepress/theme/posts.data.ts
index d56c76958..72ec7ecdc 100644
--- a/docs/.vitepress/theme/posts.data.ts
+++ b/docs/.vitepress/theme/posts.data.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import { createContentLoader, type ContentData } from 'vitepress'
import { groupBy } from '../utils'
@@ -22,12 +22,12 @@ interface Post {
date: string
}
-type Dictionary = ReturnType
+type Dictionary = ReturnType
declare const data: Dictionary
export { data }
-function transformRawPosts(rawPosts: ContentData[]): Record {
+function transformRawPosts(rawPosts: ContentData[]): Record {
const posts: Post[] = rawPosts
.map(({ url, frontmatter }) => ({
title: frontmatter.title,
diff --git a/docs/.vitepress/transformer.ts b/docs/.vitepress/transformer.ts
index 2f399135a..ffd72088a 100644
--- a/docs/.vitepress/transformer.ts
+++ b/docs/.vitepress/transformer.ts
@@ -1,17 +1,17 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
*/
import { basename } from 'pathe'
import type { Plugin } from 'vitepress'
diff --git a/docs/.vitepress/transformer/constants.ts b/docs/.vitepress/transformer/constants.ts
index f3338e52b..e8e165588 100644
--- a/docs/.vitepress/transformer/constants.ts
+++ b/docs/.vitepress/transformer/constants.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
interface Header {
[file: string]: { title: string; description: string }
}
diff --git a/docs/.vitepress/transformer/core.ts b/docs/.vitepress/transformer/core.ts
index 4ea68bac3..905aa640f 100644
--- a/docs/.vitepress/transformer/core.ts
+++ b/docs/.vitepress/transformer/core.ts
@@ -1,18 +1,18 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ * Copyright (c) taskylizard. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import consola from 'consola'
type Transform = {
@@ -29,7 +29,7 @@ interface Replacer {
}
export const transformer = (text: string) => {
- const handler: ProxyHandler<{ text: string }> = {
+ const handler: ProxyHandler = {
get(target, prop) {
if (prop === 'transform') {
return (name: string, transforms: Transform[]): Replacer => {
diff --git a/docs/.vitepress/types/Feedback.ts b/docs/.vitepress/types/Feedback.ts
index 07885ef6d..247a80eee 100644
--- a/docs/.vitepress/types/Feedback.ts
+++ b/docs/.vitepress/types/Feedback.ts
@@ -1,17 +1,17 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
*/
import z from 'zod'
diff --git a/docs/.vitepress/utils.ts b/docs/.vitepress/utils.ts
index 2bfe86d37..e5d712317 100644
--- a/docs/.vitepress/utils.ts
+++ b/docs/.vitepress/utils.ts
@@ -1,17 +1,17 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
*/
export function groupBy(
arr: T[],
@@ -20,7 +20,7 @@ export function groupBy(
return arr.reduce(
(groups, item) => {
// biome-ignore lint/suspicious/noAssignInExpressions:
- ;(groups[key(item)] ||= []).push(item)
+ ; (groups[key(item)] ||= []).push(item)
return groups
},
{} as Record
diff --git a/docs/.vitepress/vue-shim.d.ts b/docs/.vitepress/vue-shim.d.ts
index b728bbab7..475bcfc2a 100644
--- a/docs/.vitepress/vue-shim.d.ts
+++ b/docs/.vitepress/vue-shim.d.ts
@@ -1,17 +1,17 @@
/**
- Copyright (c) taskylizard. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
*/
/* eslint-disable ts/consistent-type-imports */
declare module '*.vue' {
diff --git a/nitro.config.ts b/nitro.config.ts
index 0e79edeb0..437cd1073 100644
--- a/nitro.config.ts
+++ b/nitro.config.ts
@@ -1,3 +1,18 @@
+/**
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
//https://nitro.unjs.io/config
export default defineNitroConfig({
runtimeConfig: {
diff --git a/unocss.config.ts b/unocss.config.ts
index c20cdc879..496c016da 100644
--- a/unocss.config.ts
+++ b/unocss.config.ts
@@ -1,3 +1,18 @@
+/**
+* Copyright (c) taskylizard. All rights reserved.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
import {
defineConfig,
presetUno,