create-vuepress-theme-hope 2.0.0-beta.2 → 2.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -0
- package/lib/node/index.js.map +1 -1
- package/package.json +3 -3
- package/src/node/i18n.ts +2 -0
- package/src/node/index.ts +3 -0
- package/template/en-US/.vuepress/sidebar.ts +1 -2
- package/template/en-US/.vuepress/themeConfig.ts +8 -62
- package/template/en-US/guide/README.md +1 -0
- package/template/en-US/guide/disable.md +1 -0
- package/template/en-US/guide/markdown.md +37 -0
- package/template/en-US/guide/page.md +6 -0
- package/template/en-US/home.md +1 -1
- package/template/i18n/.vuepress/sidebar/en.ts +1 -2
- package/template/i18n/.vuepress/sidebar/zh.ts +2 -1
- package/template/i18n/.vuepress/themeConfig.ts +8 -71
- package/template/i18n/guide/README.md +1 -0
- package/template/i18n/guide/disable.md +1 -0
- package/template/i18n/guide/markdown.md +37 -0
- package/template/i18n/guide/page.md +6 -0
- package/template/i18n/home.md +1 -1
- package/template/i18n/zh/README.md +1 -1
- package/template/i18n/zh/guide/README.md +1 -0
- package/template/i18n/zh/guide/disable.md +1 -0
- package/template/i18n/zh/guide/markdown.md +37 -0
- package/template/i18n/zh/guide/page.md +6 -0
- package/template/i18n/zh/home.md +3 -3
- package/template/zh-CN/.vuepress/sidebar.ts +2 -1
- package/template/zh-CN/.vuepress/themeConfig.ts +7 -66
- package/template/zh-CN/README.md +1 -1
- package/template/zh-CN/guide/README.md +1 -0
- package/template/zh-CN/guide/disable.md +1 -0
- package/template/zh-CN/guide/markdown.md +37 -0
- package/template/zh-CN/guide/page.md +6 -0
- package/template/zh-CN/home.md +3 -3
- package/template/en-US/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
- package/template/en-US/.vuepress/public/assets/icon/chrome-192.png +0 -0
- package/template/en-US/.vuepress/public/assets/icon/chrome-512.png +0 -0
- package/template/en-US/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
- package/template/en-US/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
- package/template/en-US/.vuepress/public/assets/icon/guide-maskable.png +0 -0
- package/template/en-US/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
- package/template/en-US/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
- package/template/i18n/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
- package/template/i18n/.vuepress/public/assets/icon/chrome-192.png +0 -0
- package/template/i18n/.vuepress/public/assets/icon/chrome-512.png +0 -0
- package/template/i18n/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
- package/template/i18n/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
- package/template/i18n/.vuepress/public/assets/icon/guide-maskable.png +0 -0
- package/template/i18n/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
- package/template/i18n/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
- package/template/zh-CN/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
- package/template/zh-CN/.vuepress/public/assets/icon/chrome-192.png +0 -0
- package/template/zh-CN/.vuepress/public/assets/icon/chrome-512.png +0 -0
- package/template/zh-CN/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
- package/template/zh-CN/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
- package/template/zh-CN/.vuepress/public/assets/icon/guide-maskable.png +0 -0
- package/template/zh-CN/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
- package/template/zh-CN/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,84 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.0.0-beta.20](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.19...v2.0.0-beta.20) (2022-03-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
9
|
+
|
|
10
|
+
# [2.0.0-beta.19](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.18...v2.0.0-beta.19) (2022-03-18)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
13
|
+
|
|
14
|
+
# [2.0.0-beta.18](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.17...v2.0.0-beta.18) (2022-03-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
17
|
+
|
|
18
|
+
# [2.0.0-beta.17](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.16...v2.0.0-beta.17) (2022-03-17)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
21
|
+
|
|
22
|
+
# [2.0.0-beta.16](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.15...v2.0.0-beta.16) (2022-03-15)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
25
|
+
|
|
26
|
+
# [2.0.0-beta.15](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.14...v2.0.0-beta.15) (2022-03-14)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
29
|
+
|
|
30
|
+
# [2.0.0-beta.14](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.13...v2.0.0-beta.14) (2022-03-13)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
33
|
+
|
|
34
|
+
# [2.0.0-beta.13](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.12...v2.0.0-beta.13) (2022-03-12)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
37
|
+
|
|
38
|
+
# [2.0.0-beta.12](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.11...v2.0.0-beta.12) (2022-03-12)
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
- **md-enhance:** new `chart` optoin ([6742945](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/6742945d802e21babb1f3b2b1dfc797c7bd17877))
|
|
43
|
+
|
|
44
|
+
# [2.0.0-beta.11](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.10...v2.0.0-beta.11) (2022-03-12)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
47
|
+
|
|
48
|
+
# [2.0.0-beta.10](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.9...v2.0.0-beta.10) (2022-03-11)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
51
|
+
|
|
52
|
+
# [2.0.0-beta.9](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.8...v2.0.0-beta.9) (2022-03-10)
|
|
53
|
+
|
|
54
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
55
|
+
|
|
56
|
+
# [2.0.0-beta.8](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.7...v2.0.0-beta.8) (2022-03-10)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
59
|
+
|
|
60
|
+
# [2.0.0-beta.7](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.6...v2.0.0-beta.7) (2022-03-09)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
63
|
+
|
|
64
|
+
# [2.0.0-beta.6](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.5...v2.0.0-beta.6) (2022-03-08)
|
|
65
|
+
|
|
66
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
67
|
+
|
|
68
|
+
# [2.0.0-beta.5](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.4...v2.0.0-beta.5) (2022-03-07)
|
|
69
|
+
|
|
70
|
+
**Note:** Version bump only for package create-vuepress-theme-hope
|
|
71
|
+
|
|
72
|
+
# [2.0.0-beta.4](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2022-03-06)
|
|
73
|
+
|
|
74
|
+
### Features
|
|
75
|
+
|
|
76
|
+
- **create:** update template ([fc6c344](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/fc6c344ed6ff5d546646c178fe3a401ee607e35b))
|
|
77
|
+
|
|
78
|
+
# [2.0.0-beta.3](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2022-03-05)
|
|
79
|
+
|
|
80
|
+
### Features
|
|
81
|
+
|
|
82
|
+
- **create:** remove pwa feature in template ([5574303](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/5574303cffe5750945fe5cbaa659855eb539af01))
|
|
83
|
+
|
|
6
84
|
# [2.0.0-beta.2](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2022-03-04)
|
|
7
85
|
|
|
8
86
|
**Note:** Version bump only for package create-vuepress-theme-hope
|
package/lib/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/node/deepAssign.ts","../../src/node/copy.ts","../../src/node/checkVersion.ts","../../src/node/i18n.ts","../../src/node/registry.ts","../../src/node/index.ts","../../src/node/hasYarn.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["deepAssign","originObject","assignObjects","length","assignObject","shift","Object","keys","forEach","property","Array","isArray","ensureDirExistSync","dirPath","readdirSync","err","mkdirSync","copyFile","srcFile","targetFile","targetDir","dirname","rs","createReadStream","ws","createWriteStream","pipe","copyDir","srcDir","withFileTypes","file","isFile","name","isDirectory","checkForNextVersion","packageName","Promise","resolve","reject","get","res","statusCode","body","on","data","JSON","parse","next","Error","i18n","getVersion","createPackage","updatePackage","template","wait","install","success","devServerAsk","devServer","hint","nameMessage","nameError","versionMessage","versionError","descriptionMessage","licenseMessage","i18nMessage","getLanguage","async","language","prompt","type","message","choices","lang","getRegistry","bin","userRegistry","sync","stdout","getUserRegistry","registry","cli","cac","stdio","e","detectYarn","command","action","dir","outputHelp","targetFolder","process","cwd","packageJsonPath","scripts","console","log","devDependencies","vuepress","existsSync","packageContent","readFileSync","encoding","writeFileSync","stringify","default","validate","input","exec","templateFolder","src","target","__dirname","statSync","warn","execa","choise","help","title"],"mappings":";mNAIO,MAAMA,EAAa,CAKxBC,KACGC,KAEH,GAA6B,IAAzBA,EAAcC,OAAc,OAAOF,EAGvC,MAAMG,EAAgBF,EAAcG,SAA0B,GAyB9D,OAvBAC,OAAOC,KAAKH,GAAcI,SAASC,IAEG,iBAA3BR,EAAaQ,IACnBC,MAAMC,QAAQV,EAAaQ,KACM,iBAA3BL,EAAaK,IACnBC,MAAMC,QAAQP,EAAaK,IAGa,iBAA3BL,EAAaK,GACvBC,MAAMC,QAAQP,EAAaK,IAC5BR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGlBR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGpBR,EAA4BQ,GAAYL,EACvCK,GAZFT,EAAWC,EAAaQ,GAAWL,EAAaK,OAgB7CT,EAAWC,KAAiBC,IC/B/BU,EAAsBC,IAC1B,IACEC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/node/deepAssign.ts","../../src/node/copy.ts","../../src/node/checkVersion.ts","../../src/node/i18n.ts","../../src/node/registry.ts","../../src/node/index.ts","../../src/node/hasYarn.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["deepAssign","originObject","assignObjects","length","assignObject","shift","Object","keys","forEach","property","Array","isArray","ensureDirExistSync","dirPath","readdirSync","err","mkdirSync","copyFile","srcFile","targetFile","targetDir","dirname","rs","createReadStream","ws","createWriteStream","pipe","copyDir","srcDir","withFileTypes","file","isFile","name","isDirectory","checkForNextVersion","packageName","Promise","resolve","reject","get","res","statusCode","body","on","data","JSON","parse","next","Error","i18n","getVersion","createPackage","updatePackage","template","wait","install","success","devServerAsk","devServer","hint","nameMessage","nameError","versionMessage","versionError","descriptionMessage","licenseMessage","i18nMessage","getLanguage","async","language","prompt","type","message","choices","lang","getRegistry","bin","userRegistry","sync","stdout","getUserRegistry","registry","cli","cac","stdio","e","detectYarn","command","action","dir","outputHelp","targetFolder","process","cwd","packageJsonPath","scripts","console","log","devDependencies","vuepress","existsSync","packageContent","readFileSync","encoding","writeFileSync","stringify","default","validate","input","exec","templateFolder","src","target","__dirname","statSync","warn","execa","choise","help","title"],"mappings":";mNAIO,MAAMA,EAAa,CAKxBC,KACGC,KAEH,GAA6B,IAAzBA,EAAcC,OAAc,OAAOF,EAGvC,MAAMG,EAAgBF,EAAcG,SAA0B,GAyB9D,OAvBAC,OAAOC,KAAKH,GAAcI,SAASC,IAEG,iBAA3BR,EAAaQ,IACnBC,MAAMC,QAAQV,EAAaQ,KACM,iBAA3BL,EAAaK,IACnBC,MAAMC,QAAQP,EAAaK,IAGa,iBAA3BL,EAAaK,GACvBC,MAAMC,QAAQP,EAAaK,IAC5BR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGlBR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGpBR,EAA4BQ,GAAYL,EACvCK,GAZFT,EAAWC,EAAaQ,GAAWL,EAAaK,OAgB7CT,EAAWC,KAAiBC,IC/B/BU,EAAsBC,IAC1B,IACEC,EAAWA,YAACD,GACZ,MAAOE,GACPC,EAASA,UAACH,KAIRI,EAAW,CAACC,EAAiBC,KACjC,MAAMC,EAAYC,UAAQF,GAE1BP,EAAmBQ,GAEnB,MAAME,EAAKC,mBAAiBL,GACtBM,EAAKC,oBAAk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IzB,EAAQhB,SAEpB,MAAM6D,OAAEA,SAAiB/C,SAAiC,CACxD,CACEtC,KAAM,SACNuC,KAAM,OACNC,QAASA,EAAQf,aACjBgB,QAAS,CAAC,MAAO,SAIN,QAAX4C,GACFrB,QAAQC,IAAIzB,EAAQd,iBAEd0D,EAAK,QAACxC,EAAK,CAAC,MAAO,YAAa,CACpCG,OAAQ,aAELiB,QAAQC,IAAIzB,EAAQb,SAG/BuB,EAAIoC,MAAK,IAAM,CACb,CACEC,MACE,6EACF7E,KAAM,qDAIVwC,EAAIpC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuepress-theme-hope",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.20",
|
|
4
4
|
"description": "Create vuepress-theme-hope demo project helper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/inquirer": "^8.2.0",
|
|
36
36
|
"cac": "^6.7.12",
|
|
37
37
|
"execa": "^5.1.1",
|
|
38
|
-
"inquirer": "^8.2.
|
|
38
|
+
"inquirer": "^8.2.1"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "01d17df3dde7be372be6c9b67356049590ca7aec"
|
|
41
41
|
}
|
package/src/node/i18n.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface CreateI18n {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export const i18n: Record<Lang, CreateI18n> = {
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
26
27
|
"zh-CN": {
|
|
27
28
|
getVersion: "获取依赖的最新版本...",
|
|
28
29
|
createPackage: "生成 package.json...",
|
|
@@ -43,6 +44,7 @@ export const i18n: Record<Lang, CreateI18n> = {
|
|
|
43
44
|
licenseMessage: "设置协议",
|
|
44
45
|
i18nMessage: "项目需要用到多语言么?",
|
|
45
46
|
},
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
46
48
|
"en-US": {
|
|
47
49
|
getVersion: "Getting lastest version of deps...",
|
|
48
50
|
createPackage: "Generating package.json...",
|
package/src/node/index.ts
CHANGED
|
@@ -24,8 +24,11 @@ cli
|
|
|
24
24
|
const targetFolder = resolve(process.cwd(), dir);
|
|
25
25
|
const packageJsonPath = resolve(process.cwd(), "package.json");
|
|
26
26
|
const scripts = {
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
27
28
|
"docs:build": `vuepress build ${dir}`,
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
28
30
|
"docs:clean-dev": `vuepress dev ${dir} --clean-cache`,
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
29
32
|
"docs:dev": `vuepress dev ${dir}`,
|
|
30
33
|
};
|
|
31
34
|
|
|
@@ -28,6 +28,8 @@ export default defineThemeConfig({
|
|
|
28
28
|
|
|
29
29
|
displayFooter: true,
|
|
30
30
|
|
|
31
|
+
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
|
|
32
|
+
|
|
31
33
|
blog: {
|
|
32
34
|
description: "A FrontEnd programmer",
|
|
33
35
|
intro: "/intro.html",
|
|
@@ -75,9 +77,13 @@ export default defineThemeConfig({
|
|
|
75
77
|
autoExcerpt: true,
|
|
76
78
|
},
|
|
77
79
|
|
|
80
|
+
// you can also use Waline
|
|
78
81
|
comment: {
|
|
79
|
-
type: "
|
|
80
|
-
|
|
82
|
+
type: "giscus",
|
|
83
|
+
repo: "vuepress-theme-hope/giscus-discussions",
|
|
84
|
+
repoId: "R_kgDOG_Pt2A",
|
|
85
|
+
category: "Announcements",
|
|
86
|
+
categoryId: "DIC_kwDOG_Pt2M4COD69",
|
|
81
87
|
},
|
|
82
88
|
|
|
83
89
|
mdEnhance: {
|
|
@@ -86,65 +92,5 @@ export default defineThemeConfig({
|
|
|
86
92
|
plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
87
93
|
},
|
|
88
94
|
},
|
|
89
|
-
|
|
90
|
-
pwa: {
|
|
91
|
-
favicon: "/favicon.ico",
|
|
92
|
-
cachePic: true,
|
|
93
|
-
apple: {
|
|
94
|
-
icon: "/assets/icon/apple-icon-152.png",
|
|
95
|
-
statusBarColor: "black",
|
|
96
|
-
},
|
|
97
|
-
msTile: {
|
|
98
|
-
image: "/assets/icon/ms-icon-144.png",
|
|
99
|
-
color: "#ffffff",
|
|
100
|
-
},
|
|
101
|
-
manifest: {
|
|
102
|
-
icons: [
|
|
103
|
-
{
|
|
104
|
-
src: "/assets/icon/chrome-mask-512.png",
|
|
105
|
-
sizes: "512x512",
|
|
106
|
-
purpose: "maskable",
|
|
107
|
-
type: "image/png",
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
src: "/assets/icon/chrome-mask-192.png",
|
|
111
|
-
sizes: "192x192",
|
|
112
|
-
purpose: "maskable",
|
|
113
|
-
type: "image/png",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
src: "/assets/icon/chrome-512.png",
|
|
117
|
-
sizes: "512x512",
|
|
118
|
-
type: "image/png",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
src: "/assets/icon/chrome-192.png",
|
|
122
|
-
sizes: "192x192",
|
|
123
|
-
type: "image/png",
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
shortcuts: [
|
|
127
|
-
{
|
|
128
|
-
name: "Guide",
|
|
129
|
-
short_name: "Guide",
|
|
130
|
-
url: "/guide/",
|
|
131
|
-
icons: [
|
|
132
|
-
{
|
|
133
|
-
src: "/assets/icon/guide-maskable.png",
|
|
134
|
-
sizes: "192x192",
|
|
135
|
-
purpose: "maskable",
|
|
136
|
-
type: "image/png",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
src: "/assets/icon/guide-monochrome.png",
|
|
140
|
-
sizes: "192x192",
|
|
141
|
-
purpose: "monochrome",
|
|
142
|
-
type: "image/png",
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
95
|
},
|
|
150
96
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
index: 2
|
|
2
3
|
icon: markdown
|
|
3
4
|
title: Markdown Enhance
|
|
4
5
|
category:
|
|
@@ -200,6 +201,42 @@ You can mark ==important words== .
|
|
|
200
201
|
|
|
201
202
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
|
|
202
203
|
|
|
204
|
+
### Chart
|
|
205
|
+
|
|
206
|
+
::: chart A Scatter Chart
|
|
207
|
+
|
|
208
|
+
```json
|
|
209
|
+
{
|
|
210
|
+
"type": "scatter",
|
|
211
|
+
"data": {
|
|
212
|
+
"datasets": [
|
|
213
|
+
{
|
|
214
|
+
"label": "Scatter Dataset",
|
|
215
|
+
"data": [
|
|
216
|
+
{ "x": -10, "y": 0 },
|
|
217
|
+
{ "x": 0, "y": 10 },
|
|
218
|
+
{ "x": 10, "y": 5 },
|
|
219
|
+
{ "x": 0.5, "y": 5.5 }
|
|
220
|
+
],
|
|
221
|
+
"backgroundColor": "rgb(255, 99, 132)"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"options": {
|
|
226
|
+
"scales": {
|
|
227
|
+
"x": {
|
|
228
|
+
"type": "linear",
|
|
229
|
+
"position": "bottom"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
:::
|
|
237
|
+
|
|
238
|
+
- [View Detail](<[chart.md](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)>)
|
|
239
|
+
|
|
203
240
|
### Flowchart
|
|
204
241
|
|
|
205
242
|
```flow
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
+
# This control sidebar index
|
|
3
|
+
index: 1
|
|
2
4
|
# This is the icon of the page
|
|
3
5
|
icon: page
|
|
4
6
|
# This is the title of the article
|
|
@@ -22,6 +24,10 @@ star: true
|
|
|
22
24
|
footer: Footer content for test
|
|
23
25
|
---
|
|
24
26
|
|
|
27
|
+
Content before `more` comment is regarded as page excerpt.
|
|
28
|
+
|
|
29
|
+
<!-- more -->
|
|
30
|
+
|
|
25
31
|
## Page information
|
|
26
32
|
|
|
27
33
|
You can set page information in Markdown’s Frontmatter.
|
package/template/en-US/home.md
CHANGED
|
@@ -65,7 +65,7 @@ features:
|
|
|
65
65
|
link: https://vuepress-theme-hope.github.io/v2/guide/feature/encrypt.html
|
|
66
66
|
|
|
67
67
|
- title: Copy button
|
|
68
|
-
icon:
|
|
68
|
+
icon: copy
|
|
69
69
|
details: Copy codes with one click in code blocks
|
|
70
70
|
link: https://vuepress-theme-hope.github.io/v2/guide/feature/copy-code.html
|
|
71
71
|
|
|
@@ -8,10 +8,9 @@ export const en = defineSidebarConfig({
|
|
|
8
8
|
{
|
|
9
9
|
icon: "creative",
|
|
10
10
|
text: "Guide",
|
|
11
|
-
collapsable: true,
|
|
12
11
|
prefix: "guide/",
|
|
13
12
|
link: "guide/",
|
|
14
|
-
children:
|
|
13
|
+
children: "structure",
|
|
15
14
|
},
|
|
16
15
|
{
|
|
17
16
|
text: "Articles",
|
|
@@ -18,6 +18,8 @@ export default defineThemeConfig({
|
|
|
18
18
|
|
|
19
19
|
docsDir: "demo/src",
|
|
20
20
|
|
|
21
|
+
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
|
|
22
|
+
|
|
21
23
|
blog: {
|
|
22
24
|
medias: {
|
|
23
25
|
Baidu: "https://example.com",
|
|
@@ -68,10 +70,6 @@ export default defineThemeConfig({
|
|
|
68
70
|
description: "A FrontEnd programmer",
|
|
69
71
|
intro: "/intro.html",
|
|
70
72
|
},
|
|
71
|
-
|
|
72
|
-
metaLocales: {
|
|
73
|
-
editLink: "Edit this page on GitHub",
|
|
74
|
-
},
|
|
75
73
|
},
|
|
76
74
|
|
|
77
75
|
/**
|
|
@@ -92,11 +90,6 @@ export default defineThemeConfig({
|
|
|
92
90
|
description: "一个前端开发者",
|
|
93
91
|
intro: "/zh/intro.html",
|
|
94
92
|
},
|
|
95
|
-
|
|
96
|
-
// page meta
|
|
97
|
-
metaLocales: {
|
|
98
|
-
editLink: "在 GitHub 上编辑此页",
|
|
99
|
-
},
|
|
100
93
|
},
|
|
101
94
|
},
|
|
102
95
|
|
|
@@ -112,9 +105,13 @@ export default defineThemeConfig({
|
|
|
112
105
|
autoExcerpt: true,
|
|
113
106
|
},
|
|
114
107
|
|
|
108
|
+
// you can also use Waline
|
|
115
109
|
comment: {
|
|
116
|
-
type: "
|
|
117
|
-
|
|
110
|
+
type: "giscus",
|
|
111
|
+
repo: "vuepress-theme-hope/giscus-discussions",
|
|
112
|
+
repoId: "R_kgDOG_Pt2A",
|
|
113
|
+
category: "Announcements",
|
|
114
|
+
categoryId: "DIC_kwDOG_Pt2M4COD69",
|
|
118
115
|
},
|
|
119
116
|
|
|
120
117
|
mdEnhance: {
|
|
@@ -123,65 +120,5 @@ export default defineThemeConfig({
|
|
|
123
120
|
plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
124
121
|
},
|
|
125
122
|
},
|
|
126
|
-
|
|
127
|
-
pwa: {
|
|
128
|
-
favicon: "/favicon.ico",
|
|
129
|
-
cachePic: true,
|
|
130
|
-
apple: {
|
|
131
|
-
icon: "/assets/icon/apple-icon-152.png",
|
|
132
|
-
statusBarColor: "black",
|
|
133
|
-
},
|
|
134
|
-
msTile: {
|
|
135
|
-
image: "/assets/icon/ms-icon-144.png",
|
|
136
|
-
color: "#ffffff",
|
|
137
|
-
},
|
|
138
|
-
manifest: {
|
|
139
|
-
icons: [
|
|
140
|
-
{
|
|
141
|
-
src: "/assets/icon/chrome-mask-512.png",
|
|
142
|
-
sizes: "512x512",
|
|
143
|
-
purpose: "maskable",
|
|
144
|
-
type: "image/png",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
src: "/assets/icon/chrome-mask-192.png",
|
|
148
|
-
sizes: "192x192",
|
|
149
|
-
purpose: "maskable",
|
|
150
|
-
type: "image/png",
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
src: "/assets/icon/chrome-512.png",
|
|
154
|
-
sizes: "512x512",
|
|
155
|
-
type: "image/png",
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
src: "/assets/icon/chrome-192.png",
|
|
159
|
-
sizes: "192x192",
|
|
160
|
-
type: "image/png",
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
shortcuts: [
|
|
164
|
-
{
|
|
165
|
-
name: "Guide",
|
|
166
|
-
short_name: "Guide",
|
|
167
|
-
url: "/guide/",
|
|
168
|
-
icons: [
|
|
169
|
-
{
|
|
170
|
-
src: "/assets/icon/guide-maskable.png",
|
|
171
|
-
sizes: "192x192",
|
|
172
|
-
purpose: "maskable",
|
|
173
|
-
type: "image/png",
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
src: "/assets/icon/guide-monochrome.png",
|
|
177
|
-
sizes: "192x192",
|
|
178
|
-
purpose: "monochrome",
|
|
179
|
-
type: "image/png",
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
123
|
},
|
|
187
124
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
index: 2
|
|
2
3
|
icon: markdown
|
|
3
4
|
title: Markdown Enhance
|
|
4
5
|
category:
|
|
@@ -200,6 +201,42 @@ You can mark ==important words== .
|
|
|
200
201
|
|
|
201
202
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
|
|
202
203
|
|
|
204
|
+
### Chart
|
|
205
|
+
|
|
206
|
+
::: chart A Scatter Chart
|
|
207
|
+
|
|
208
|
+
```json
|
|
209
|
+
{
|
|
210
|
+
"type": "scatter",
|
|
211
|
+
"data": {
|
|
212
|
+
"datasets": [
|
|
213
|
+
{
|
|
214
|
+
"label": "Scatter Dataset",
|
|
215
|
+
"data": [
|
|
216
|
+
{ "x": -10, "y": 0 },
|
|
217
|
+
{ "x": 0, "y": 10 },
|
|
218
|
+
{ "x": 10, "y": 5 },
|
|
219
|
+
{ "x": 0.5, "y": 5.5 }
|
|
220
|
+
],
|
|
221
|
+
"backgroundColor": "rgb(255, 99, 132)"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"options": {
|
|
226
|
+
"scales": {
|
|
227
|
+
"x": {
|
|
228
|
+
"type": "linear",
|
|
229
|
+
"position": "bottom"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
:::
|
|
237
|
+
|
|
238
|
+
- [View Detail](<[chart.md](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)>)
|
|
239
|
+
|
|
203
240
|
### Flowchart
|
|
204
241
|
|
|
205
242
|
```flow
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
+
# This control sidebar index
|
|
3
|
+
index: 1
|
|
2
4
|
# This is the icon of the page
|
|
3
5
|
icon: page
|
|
4
6
|
# This is the title of the article
|
|
@@ -22,6 +24,10 @@ star: true
|
|
|
22
24
|
footer: Footer content for test
|
|
23
25
|
---
|
|
24
26
|
|
|
27
|
+
Content before `more` comment is regarded as page excerpt.
|
|
28
|
+
|
|
29
|
+
<!-- more -->
|
|
30
|
+
|
|
25
31
|
## Page information
|
|
26
32
|
|
|
27
33
|
You can set page information in Markdown’s Frontmatter.
|
package/template/i18n/home.md
CHANGED
|
@@ -65,7 +65,7 @@ features:
|
|
|
65
65
|
link: https://vuepress-theme-hope.github.io/v2/guide/feature/encrypt.html
|
|
66
66
|
|
|
67
67
|
- title: Copy button
|
|
68
|
-
icon:
|
|
68
|
+
icon: copy
|
|
69
69
|
details: Copy codes with one click in code blocks
|
|
70
70
|
link: https://vuepress-theme-hope.github.io/v2/guide/feature/copy-code.html
|
|
71
71
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
index: 2
|
|
2
3
|
icon: markdown
|
|
3
4
|
title: Markdown 增强
|
|
4
5
|
category:
|
|
@@ -198,6 +199,42 @@ npm i -D vuepress-theme-hope
|
|
|
198
199
|
|
|
199
200
|
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/tasklist.html)
|
|
200
201
|
|
|
202
|
+
### 图表
|
|
203
|
+
|
|
204
|
+
::: chart 一个散点图案例
|
|
205
|
+
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"type": "scatter",
|
|
209
|
+
"data": {
|
|
210
|
+
"datasets": [
|
|
211
|
+
{
|
|
212
|
+
"label": "散点数据集",
|
|
213
|
+
"data": [
|
|
214
|
+
{ "x": -10, "y": 0 },
|
|
215
|
+
{ "x": 0, "y": 10 },
|
|
216
|
+
{ "x": 10, "y": 5 },
|
|
217
|
+
{ "x": 0.5, "y": 5.5 }
|
|
218
|
+
],
|
|
219
|
+
"backgroundColor": "rgb(255, 99, 132)"
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"options": {
|
|
224
|
+
"scales": {
|
|
225
|
+
"x": {
|
|
226
|
+
"type": "linear",
|
|
227
|
+
"position": "bottom"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
:::
|
|
235
|
+
|
|
236
|
+
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/chart.html)
|
|
237
|
+
|
|
201
238
|
### 流程图
|
|
202
239
|
|
|
203
240
|
```flow
|
package/template/i18n/zh/home.md
CHANGED
|
@@ -21,7 +21,7 @@ features:
|
|
|
21
21
|
|
|
22
22
|
- title: 幻灯片页面
|
|
23
23
|
icon: slides
|
|
24
|
-
details:
|
|
24
|
+
details: 添加幻灯片页面以显示你喜欢的内容
|
|
25
25
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/slides
|
|
26
26
|
|
|
27
27
|
- title: 布局增强
|
|
@@ -55,7 +55,7 @@ features:
|
|
|
55
55
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/darkmode.html
|
|
56
56
|
|
|
57
57
|
- title: 完整的无障碍支持
|
|
58
|
-
icon:
|
|
58
|
+
icon: support
|
|
59
59
|
details: 为你的网站带来完整的无障碍支持
|
|
60
60
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/accessibility.html
|
|
61
61
|
|
|
@@ -65,7 +65,7 @@ features:
|
|
|
65
65
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/encrypt.html
|
|
66
66
|
|
|
67
67
|
- title: 复制按钮
|
|
68
|
-
icon:
|
|
68
|
+
icon: copy
|
|
69
69
|
details: 一键复制代码块中的代码
|
|
70
70
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/copy-code.html
|
|
71
71
|
|
|
@@ -28,10 +28,7 @@ export default defineThemeConfig({
|
|
|
28
28
|
|
|
29
29
|
displayFooter: true,
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
metaLocales: {
|
|
33
|
-
editLink: "在 GitHub 上编辑此页",
|
|
34
|
-
},
|
|
31
|
+
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
|
|
35
32
|
|
|
36
33
|
blog: {
|
|
37
34
|
description: "一个前端开发者",
|
|
@@ -80,9 +77,13 @@ export default defineThemeConfig({
|
|
|
80
77
|
autoExcerpt: true,
|
|
81
78
|
},
|
|
82
79
|
|
|
80
|
+
// 你也可以使用 Waline
|
|
83
81
|
comment: {
|
|
84
|
-
type: "
|
|
85
|
-
|
|
82
|
+
type: "giscus",
|
|
83
|
+
repo: "vuepress-theme-hope/giscus-discussions",
|
|
84
|
+
repoId: "R_kgDOG_Pt2A",
|
|
85
|
+
category: "Announcements",
|
|
86
|
+
categoryId: "DIC_kwDOG_Pt2M4COD69",
|
|
86
87
|
},
|
|
87
88
|
|
|
88
89
|
mdEnhance: {
|
|
@@ -91,65 +92,5 @@ export default defineThemeConfig({
|
|
|
91
92
|
plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
92
93
|
},
|
|
93
94
|
},
|
|
94
|
-
|
|
95
|
-
pwa: {
|
|
96
|
-
favicon: "/favicon.ico",
|
|
97
|
-
cachePic: true,
|
|
98
|
-
apple: {
|
|
99
|
-
icon: "/assets/icon/apple-icon-152.png",
|
|
100
|
-
statusBarColor: "black",
|
|
101
|
-
},
|
|
102
|
-
msTile: {
|
|
103
|
-
image: "/assets/icon/ms-icon-144.png",
|
|
104
|
-
color: "#ffffff",
|
|
105
|
-
},
|
|
106
|
-
manifest: {
|
|
107
|
-
icons: [
|
|
108
|
-
{
|
|
109
|
-
src: "/assets/icon/chrome-mask-512.png",
|
|
110
|
-
sizes: "512x512",
|
|
111
|
-
purpose: "maskable",
|
|
112
|
-
type: "image/png",
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
src: "/assets/icon/chrome-mask-192.png",
|
|
116
|
-
sizes: "192x192",
|
|
117
|
-
purpose: "maskable",
|
|
118
|
-
type: "image/png",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
src: "/assets/icon/chrome-512.png",
|
|
122
|
-
sizes: "512x512",
|
|
123
|
-
type: "image/png",
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
src: "/assets/icon/chrome-192.png",
|
|
127
|
-
sizes: "192x192",
|
|
128
|
-
type: "image/png",
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
shortcuts: [
|
|
132
|
-
{
|
|
133
|
-
name: "Guide",
|
|
134
|
-
short_name: "Guide",
|
|
135
|
-
url: "/guide/",
|
|
136
|
-
icons: [
|
|
137
|
-
{
|
|
138
|
-
src: "/assets/icon/guide-maskable.png",
|
|
139
|
-
sizes: "192x192",
|
|
140
|
-
purpose: "maskable",
|
|
141
|
-
type: "image/png",
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
src: "/assets/icon/guide-monochrome.png",
|
|
145
|
-
sizes: "192x192",
|
|
146
|
-
purpose: "monochrome",
|
|
147
|
-
type: "image/png",
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
95
|
},
|
|
155
96
|
});
|
package/template/zh-CN/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
index: 2
|
|
2
3
|
icon: markdown
|
|
3
4
|
title: Markdown 增强
|
|
4
5
|
category:
|
|
@@ -198,6 +199,42 @@ npm i -D vuepress-theme-hope
|
|
|
198
199
|
|
|
199
200
|
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/tasklist.html)
|
|
200
201
|
|
|
202
|
+
### 图表
|
|
203
|
+
|
|
204
|
+
::: chart 一个散点图案例
|
|
205
|
+
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"type": "scatter",
|
|
209
|
+
"data": {
|
|
210
|
+
"datasets": [
|
|
211
|
+
{
|
|
212
|
+
"label": "散点数据集",
|
|
213
|
+
"data": [
|
|
214
|
+
{ "x": -10, "y": 0 },
|
|
215
|
+
{ "x": 0, "y": 10 },
|
|
216
|
+
{ "x": 10, "y": 5 },
|
|
217
|
+
{ "x": 0.5, "y": 5.5 }
|
|
218
|
+
],
|
|
219
|
+
"backgroundColor": "rgb(255, 99, 132)"
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"options": {
|
|
224
|
+
"scales": {
|
|
225
|
+
"x": {
|
|
226
|
+
"type": "linear",
|
|
227
|
+
"position": "bottom"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
:::
|
|
235
|
+
|
|
236
|
+
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/chart.html)
|
|
237
|
+
|
|
201
238
|
### 流程图
|
|
202
239
|
|
|
203
240
|
```flow
|
package/template/zh-CN/home.md
CHANGED
|
@@ -21,7 +21,7 @@ features:
|
|
|
21
21
|
|
|
22
22
|
- title: 幻灯片页面
|
|
23
23
|
icon: slides
|
|
24
|
-
details:
|
|
24
|
+
details: 添加幻灯片页面以显示你喜欢的内容
|
|
25
25
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/slides
|
|
26
26
|
|
|
27
27
|
- title: 布局增强
|
|
@@ -55,7 +55,7 @@ features:
|
|
|
55
55
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/darkmode.html
|
|
56
56
|
|
|
57
57
|
- title: 完整的无障碍支持
|
|
58
|
-
icon:
|
|
58
|
+
icon: support
|
|
59
59
|
details: 为你的网站带来完整的无障碍支持
|
|
60
60
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/accessibility.html
|
|
61
61
|
|
|
@@ -65,7 +65,7 @@ features:
|
|
|
65
65
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/encrypt.html
|
|
66
66
|
|
|
67
67
|
- title: 复制按钮
|
|
68
|
-
icon:
|
|
68
|
+
icon: copy
|
|
69
69
|
details: 一键复制代码块中的代码
|
|
70
70
|
link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/copy-code.html
|
|
71
71
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|