Compare commits

...

9 Commits

Author SHA1 Message Date
taskylizard
fdb6a5cfc1
Merge branch 'main' into reorganize 2024-02-25 02:27:09 +00:00
taskylizard
1fe7aa16df
scripts 2024-02-25 02:13:36 +00:00
taskylizard
9065a0aeb7
monorepofiy 2024-02-25 01:31:53 +00:00
taskylizard
b693586301
move these configs respectively 2024-02-25 01:13:16 +00:00
taskylizard
00ab9fd3c6
edu to educational 2024-02-25 01:05:38 +00:00
taskylizard
a85067d01f
drop piracy suffixes 2024-02-25 01:04:37 +00:00
taskylizard
ef5e42c43a
convert into monorepo 2024-02-24 17:20:24 +00:00
taskylizard
5ae5b7e266
restructure 2024-02-24 16:59:30 +00:00
taskylizard
cc3cd6c4af
init
skip-checks: true
2024-02-24 14:45:01 +00:00
104 changed files with 427 additions and 566 deletions

View File

@ -2,6 +2,6 @@
import tasky from '@taskylizard/eslint-config' import tasky from '@taskylizard/eslint-config'
export default tasky({ export default tasky({
vue: true, browser: true,
browser: true ignores: ['**/.nitro']
}) })

View File

@ -3,7 +3,6 @@ export default defineNitroConfig({
runtimeConfig: { runtimeConfig: {
WEBHOOK_URL: process.env.WEBHOOK_URL WEBHOOK_URL: process.env.WEBHOOK_URL
}, },
srcDir: '.vitepress',
routeRules: { routeRules: {
'/': { '/': {
cors: false cors: false

24
api/package.json Normal file
View File

@ -0,0 +1,24 @@
{
"name": "@fmhy/api",
"version": "1.0.0",
"type": "module",
"description": "FMHY API.",
"scripts": {
"prepare": "nitropack prepare",
"dev": "nitropack dev",
"build": "nitropack build",
"preview": "node .output/server/index.mjs",
"types": "nitropack prepare",
"lint": "eslint --cache -f pretty routes types middleware nitro.config.ts"
},
"dependencies": {
"itty-fetcher": "^0.9.4",
"nitro-cors": "^0.7.0",
"nitropack": "latest"
},
"devDependencies": {
"@taskylizard/eslint-config": "^1.1.1",
"eslint": "^8.56.0"
},
"author": "taskylizard <taskylizard@fmhy.net>"
}

View File

@ -2,6 +2,5 @@
"extends": "./.nitro/types/tsconfig.json", "extends": "./.nitro/types/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"verbatimModuleSyntax": true "verbatimModuleSyntax": true
}, }
"include": ["./.vitepress/"]
} }

View File

@ -41,7 +41,7 @@ const authors = computed(() =>
<template> <template>
<div class="flex flex-wrap gap-4 pt-2"> <div class="flex flex-wrap gap-4 pt-2">
<div v-for="(c, index) of authors" class="flex gap-2 items-center"> <div v-for="(c, index) of authors" class="flex gap-2 items-center">
<img :src="`${c.github}.png`" class="w-8 h-8 rounded-full" /> <img :src="`${c.github}.png`" class="w-8 h-8 rounded-full" >
<a :href="c.github">{{ c.name }}</a> <a :href="c.github">{{ c.name }}</a>
<span v-if="index < authors.length - 1"></span> <span v-if="index < authors.length - 1"></span>
</div> </div>

View File

@ -5,7 +5,7 @@ import {
type FeedbackType, type FeedbackType,
getFeedbackOption, getFeedbackOption,
feedbackOptions feedbackOptions
} from '../../types/Feedback' } from '../../../../api/types/Feedback'
const loading = ref<boolean>(false) const loading = ref<boolean>(false)
const error = ref<unknown>(null) const error = ref<unknown>(null)

View File

10
docs/eslint.config.js Normal file
View File

@ -0,0 +1,10 @@
// @ts-check
import tasky from '@taskylizard/eslint-config'
export default tasky({
vue: true,
typescript: true,
browser: true,
unocss: true,
files: ['**/.vitepress/**']
})

36
docs/package.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "@fmhy/docs",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview",
"lint": "eslint --cache -f pretty .",
"og": "x-satori -t ./.vitepress/hooks/Template.vue -c ./.vitepress/hooks/satoriConfig.ts --dev"
},
"dependencies": {
"@headlessui/vue": "^1.7.17",
"@resvg/resvg-js": "^2.6.0",
"vitepress": "npm:@taskylizard/vitepress@1.0.10",
"consola": "^3.2.3",
"feed": "^4.2.2",
"fs-extra": "^11.2.0",
"nprogress": "^0.2.0",
"pathe": "^1.1.2",
"unocss": "^0.58.4",
"vue": "^3.4.15",
"x-satori": "^0.1.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@taskylizard/eslint-config": "^1.1.1",
"eslint": "^8.56.0",
"@iconify-json/carbon": "^1.1.28",
"@iconify-json/twemoji": "^1.1.15",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.11.15",
"@types/nprogress": "^0.2.3"
},
"author": "nbats, taskylizard & Contributors"
}

View File

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

Before

Width:  |  Height:  |  Size: 451 KiB

After

Width:  |  Height:  |  Size: 451 KiB

View File

Before

Width:  |  Height:  |  Size: 442 KiB

After

Width:  |  Height:  |  Size: 442 KiB

View File

Before

Width:  |  Height:  |  Size: 442 KiB

After

Width:  |  Height:  |  Size: 442 KiB

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 318 KiB

After

Width:  |  Height:  |  Size: 318 KiB

29
docs/tsconfig.json Normal file
View File

@ -0,0 +1,29 @@
{
"compilerOptions": {
"verbatimModuleSyntax": true,
"baseUrl": ".",
"module": "esnext",
"target": "esnext",
"lib": [
"DOM",
"ESNext"
],
"strict": true,
"jsx": "preserve",
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"types": [
"vite/client",
"vitepress"
]
},
"include": [
".vitepress",
"eslint.config.js"
]
}

Some files were not shown because too many files have changed in this diff Show More