Skip to content

Commit c7fb68a

Browse files
优化了由官方Astro-check的94个error和多个hint,优化了番剧页面的动画逻辑以及修复日历页面的文章数据溢出
1 parent 1ef885a commit c7fb68a

97 files changed

Lines changed: 21686 additions & 11713 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["biomejs.biome", "astro-build.astro-vscode"]
2+
"recommendations": ["biomejs.biome", "astro-build.astro-vscode"]
33
}

.vscode/settings.json

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
{
2-
"editor.formatOnSave": true,
3-
"editor.defaultFormatter": "biomejs.biome",
4-
"[javascript]": {
5-
"editor.defaultFormatter": "biomejs.biome"
6-
},
7-
"[javascriptreact]": {
8-
"editor.defaultFormatter": "biomejs.biome"
9-
},
10-
"[typescript]": {
11-
"editor.defaultFormatter": "biomejs.biome"
12-
},
13-
"[typescriptreact]": {
14-
"editor.defaultFormatter": "biomejs.biome"
15-
},
16-
"editor.codeActionsOnSave": {
17-
"source.fixAll": "explicit",
18-
"quickfix.biome": "always",
19-
"source.organizeImports.biome": "always"
20-
},
21-
"liveServer.settings.root": "/dist",
22-
"frontMatter.dashboard.openOnStart": false
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "biomejs.biome",
4+
"[javascript]": {
5+
"editor.defaultFormatter": "biomejs.biome"
6+
},
7+
"[javascriptreact]": {
8+
"editor.defaultFormatter": "biomejs.biome"
9+
},
10+
"[typescript]": {
11+
"editor.defaultFormatter": "biomejs.biome"
12+
},
13+
"[typescriptreact]": {
14+
"editor.defaultFormatter": "biomejs.biome"
15+
},
16+
"editor.codeActionsOnSave": {
17+
"source.fixAll.biome": "explicit"
18+
},
19+
"liveServer.settings.root": "/dist",
20+
"frontMatter.dashboard.openOnStart": false
2321
}

_frontmatter.json

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
{
2-
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
3-
"frontMatter.framework.id": "astro",
4-
"frontMatter.preview.host": "http://localhost:4321",
5-
"frontMatter.content.publicFolder": "public",
6-
"frontMatter.content.pageFolders": [
7-
{
8-
"title": "posts",
9-
"path": "[[workspace]]/src/content/posts"
10-
}
11-
],
12-
"frontMatter.taxonomy.contentTypes": [
13-
{
14-
"name": "default",
15-
"pageBundle": true,
16-
"previewPath": "'blog'",
17-
"filePrefix": null,
18-
"clearEmpty": true,
19-
"fields": [
20-
{
21-
"title": "title",
22-
"name": "title",
23-
"type": "string",
24-
"single": true
25-
},
26-
{
27-
"title": "description",
28-
"name": "description",
29-
"type": "string"
30-
},
31-
{
32-
"title": "published",
33-
"name": "published",
34-
"type": "datetime",
35-
"default": "{{now}}",
36-
"isPublishDate": true
37-
},
38-
{
39-
"title": "preview",
40-
"name": "image",
41-
"type": "image",
42-
"isPreviewImage": true
43-
},
44-
{
45-
"title": "tags",
46-
"name": "tags",
47-
"type": "list"
48-
},
49-
{
50-
"title": "category",
51-
"name": "category",
52-
"type": "string"
53-
},
54-
{
55-
"title": "draft",
56-
"name": "draft",
57-
"type": "boolean"
58-
},
59-
{
60-
"title": "language",
61-
"name": "language",
62-
"type": "string"
63-
}
64-
]
65-
}
66-
]
2+
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
3+
"frontMatter.framework.id": "astro",
4+
"frontMatter.preview.host": "http://localhost:4321",
5+
"frontMatter.content.publicFolder": "public",
6+
"frontMatter.content.pageFolders": [
7+
{
8+
"title": "posts",
9+
"path": "[[workspace]]/src/content/posts"
10+
}
11+
],
12+
"frontMatter.taxonomy.contentTypes": [
13+
{
14+
"name": "default",
15+
"pageBundle": true,
16+
"previewPath": "'blog'",
17+
"filePrefix": null,
18+
"clearEmpty": true,
19+
"fields": [
20+
{
21+
"title": "title",
22+
"name": "title",
23+
"type": "string",
24+
"single": true
25+
},
26+
{
27+
"title": "description",
28+
"name": "description",
29+
"type": "string"
30+
},
31+
{
32+
"title": "published",
33+
"name": "published",
34+
"type": "datetime",
35+
"default": "{{now}}",
36+
"isPublishDate": true
37+
},
38+
{
39+
"title": "preview",
40+
"name": "image",
41+
"type": "image",
42+
"isPreviewImage": true
43+
},
44+
{
45+
"title": "tags",
46+
"name": "tags",
47+
"type": "list"
48+
},
49+
{
50+
"title": "category",
51+
"name": "category",
52+
"type": "string"
53+
},
54+
{
55+
"title": "draft",
56+
"name": "draft",
57+
"type": "boolean"
58+
},
59+
{
60+
"title": "language",
61+
"name": "language",
62+
"type": "string"
63+
}
64+
]
65+
}
66+
]
6767
}

astro.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,16 @@ export default defineConfig({
8181
showLineNumbers: false,
8282
},
8383
bash: {
84-
frame: 'code',
84+
frame: "code",
8585
},
8686
shell: {
87-
frame: 'code',
87+
frame: "code",
8888
},
8989
sh: {
90-
frame: 'code',
90+
frame: "code",
9191
},
9292
zsh: {
93-
frame: 'code',
93+
frame: "code",
9494
},
9595
},
9696
},

biome.json

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
3-
"vcs": {
4-
"enabled": false,
5-
"clientKind": "git",
6-
"useIgnoreFile": false
7-
},
8-
"files": {
9-
"ignoreUnknown": false,
10-
"includes": [
11-
"**",
12-
"!**/src/**/*.css",
13-
"!**/src/public/**/*",
14-
"!**/dist/**/*",
15-
"!**/node_modules/**/*"
16-
]
17-
},
18-
"formatter": {
19-
"enabled": true,
20-
"indentStyle": "tab"
21-
},
22-
"assist": { "actions": { "source": { "organizeImports": "on" } } },
23-
"linter": {
24-
"enabled": true,
25-
"rules": {
26-
"recommended": true,
27-
"style": {
28-
"noParameterAssign": "error",
29-
"useAsConstAssertion": "error",
30-
"useDefaultParameterLast": "error",
31-
"useEnumInitializers": "error",
32-
"useSelfClosingElements": "error",
33-
"useSingleVarDeclarator": "error",
34-
"noUnusedTemplateLiteral": "error",
35-
"useNumberNamespace": "error",
36-
"noInferrableTypes": "error",
37-
"noUselessElse": "error"
38-
}
39-
}
40-
},
41-
"javascript": {
42-
"formatter": {
43-
"quoteStyle": "double"
44-
}
45-
},
46-
"overrides": [
47-
{
48-
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
49-
"linter": {
50-
"rules": {
51-
"style": {
52-
"useConst": "off",
53-
"useImportType": "off"
54-
},
55-
"correctness": {
56-
"noUnusedVariables": "off",
57-
"noUnusedImports": "off"
58-
}
59-
}
60-
}
61-
}
62-
]
2+
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": [
11+
"**",
12+
"!**/src/**/*.css",
13+
"!**/src/public/**/*",
14+
"!**/dist/**/*",
15+
"!**/node_modules/**/*"
16+
]
17+
},
18+
"formatter": {
19+
"enabled": true,
20+
"indentStyle": "tab"
21+
},
22+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
23+
"linter": {
24+
"enabled": true,
25+
"rules": {
26+
"recommended": true,
27+
"style": {
28+
"noParameterAssign": "error",
29+
"useAsConstAssertion": "error",
30+
"useDefaultParameterLast": "error",
31+
"useEnumInitializers": "error",
32+
"useSelfClosingElements": "error",
33+
"useSingleVarDeclarator": "error",
34+
"noUnusedTemplateLiteral": "error",
35+
"useNumberNamespace": "error",
36+
"noInferrableTypes": "error",
37+
"noUselessElse": "error"
38+
}
39+
}
40+
},
41+
"javascript": {
42+
"formatter": {
43+
"quoteStyle": "double"
44+
}
45+
},
46+
"overrides": [
47+
{
48+
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
49+
"linter": {
50+
"rules": {
51+
"style": {
52+
"useConst": "off",
53+
"useImportType": "off"
54+
},
55+
"correctness": {
56+
"noUnusedVariables": "off",
57+
"noUnusedImports": "off"
58+
}
59+
}
60+
}
61+
}
62+
]
6363
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mizuki",
33
"type": "module",
4-
"version": "7.5.0",
4+
"version": "7.6.0",
55
"scripts": {
66
"sync-content": "node scripts/sync-content.js",
77
"init-content": "node scripts/init-content-repo.js",

postcss.config.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import postcssImport from 'postcss-import';
2-
import postcssNesting from 'tailwindcss/nesting/index.js';
3-
import tailwindcss from 'tailwindcss';
1+
import postcssImport from "postcss-import";
2+
import tailwindcss from "tailwindcss";
3+
import postcssNesting from "tailwindcss/nesting/index.js";
44

55
export default {
6-
plugins: {
7-
'postcss-import': postcssImport, // to combine multiple css files
8-
'tailwindcss/nesting': postcssNesting,
9-
tailwindcss: tailwindcss,
10-
}
6+
plugins: {
7+
"postcss-import": postcssImport, // to combine multiple css files
8+
"tailwindcss/nesting": postcssNesting,
9+
tailwindcss: tailwindcss,
10+
},
1111
};

0 commit comments

Comments
 (0)