create-vuepress-theme-hope 2.0.0-beta.28 → 2.0.0-beta.29
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/{readme.md → README.md} +0 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/package.json +10 -4
- package/src/{node/checkVersion.ts → checkVersion.ts} +9 -2
- package/src/{node/copy.ts → copy.ts} +0 -0
- package/src/{node/deepAssign.ts → deepAssign.ts} +0 -0
- package/src/{node/hasYarn.ts → hasYarn.ts} +0 -0
- package/src/{node/i18n.ts → i18n.ts} +4 -0
- package/src/{node/index.ts → index.ts} +25 -15
- package/src/{node/registry.ts → registry.ts} +0 -0
- package/template/en-US/.vuepress/themeConfig.ts +19 -2
- package/template/i18n/.vuepress/themeConfig.ts +19 -2
- package/template/zh-CN/.vuepress/.cache/default-development/0.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/1.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/10.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/11.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/12.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/13.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/14.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/15.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/16.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/17.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/2.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/3.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/4.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/5.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/6.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/7.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/8.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/9.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/index.pack +0 -0
- package/template/zh-CN/.vuepress/.cache/default-development/index.pack.old +0 -0
- package/template/zh-CN/.vuepress/.temp/blog/category.js +14 -0
- package/template/zh-CN/.vuepress/.temp/blog/type.js +14 -0
- package/template/zh-CN/.vuepress/.temp/internal/clientAppEnhances.js +23 -0
- package/template/zh-CN/.vuepress/.temp/internal/clientAppRootComponents.js +7 -0
- package/template/zh-CN/.vuepress/.temp/internal/clientAppSetups.js +15 -0
- package/template/zh-CN/.vuepress/.temp/internal/layoutComponents.js +8 -0
- package/template/zh-CN/.vuepress/.temp/internal/pagesComponents.js +80 -0
- package/template/zh-CN/.vuepress/.temp/internal/pagesData.js +78 -0
- package/template/zh-CN/.vuepress/.temp/internal/pagesRoutes.js +67 -0
- package/template/zh-CN/.vuepress/.temp/internal/siteData.js +35 -0
- package/template/zh-CN/.vuepress/.temp/internal/themeData.js +305 -0
- package/template/zh-CN/.vuepress/.temp/pages/404.html.js +61 -0
- package/template/zh-CN/.vuepress/.temp/pages/404.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/article/index.html.js +73 -0
- package/template/zh-CN/.vuepress/.temp/pages/article/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/category/categorya/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/category/categorya/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/category/categoryb/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/category/categoryb/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/category/index.html.js +73 -0
- package/template/zh-CN/.vuepress/.temp/pages/category/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/category//344/275/277/347/224/250/346/214/207/345/215/227/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/category//344/275/277/347/224/250/346/214/207/345/215/227/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/encrypted/index.html.js +73 -0
- package/template/zh-CN/.vuepress/.temp/pages/encrypted/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/disable.html.js +110 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/disable.html.vue +17 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/encrypt.html.js +91 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/encrypt.html.vue +5 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/index.html.js +87 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/index.html.vue +16 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/markdown.html.js +203 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/markdown.html.vue +201 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/page.html.js +144 -0
- package/template/zh-CN/.vuepress/.temp/pages/guide/page.html.vue +43 -0
- package/template/zh-CN/.vuepress/.temp/pages/home.html.js +200 -0
- package/template/zh-CN/.vuepress/.temp/pages/home.html.vue +4 -0
- package/template/zh-CN/.vuepress/.temp/pages/index.html.js +124 -0
- package/template/zh-CN/.vuepress/.temp/pages/index.html.vue +4 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article1.html.js +121 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article1.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article2.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article2.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article3.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article3.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article4.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article4.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article5.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article5.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article6.html.js +123 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article6.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article7.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article7.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article8.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article/article8.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article10.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article10.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article11.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article11.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article12.html.js +123 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article12.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article9.html.js +122 -0
- package/template/zh-CN/.vuepress/.temp/pages/posts/article9.html.vue +6 -0
- package/template/zh-CN/.vuepress/.temp/pages/slide.html.js +80 -0
- package/template/zh-CN/.vuepress/.temp/pages/slide.html.vue +2 -0
- package/template/zh-CN/.vuepress/.temp/pages/slides/index.html.js +73 -0
- package/template/zh-CN/.vuepress/.temp/pages/slides/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/star/index.html.js +73 -0
- package/template/zh-CN/.vuepress/.temp/pages/star/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag/index.html.js +73 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag/markdown/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag/markdown/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag/tag-a/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag/tag-a/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag/tag-b/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag/tag-b/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag//344/275/277/347/224/250/346/214/207/345/215/227/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag//344/275/277/347/224/250/346/214/207/345/215/227/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag//346/226/207/347/253/240/345/212/240/345/257/206/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag//346/226/207/347/253/240/345/212/240/345/257/206/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag//347/246/201/347/224/250/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag//347/246/201/347/224/250/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag//351/241/265/351/235/242/351/205/215/347/275/256/index.html.js +74 -0
- package/template/zh-CN/.vuepress/.temp/pages/tag//351/241/265/351/235/242/351/205/215/347/275/256/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/pages/timeline/index.html.js +73 -0
- package/template/zh-CN/.vuepress/.temp/pages/timeline/index.html.vue +1 -0
- package/template/zh-CN/.vuepress/.temp/sass-palette/hope-config.scss +6 -0
- package/template/zh-CN/.vuepress/.temp/sass-palette/hope-inject.scss +32 -0
- package/template/zh-CN/.vuepress/.temp/sass-palette/hope-palette.scss +4 -0
- package/template/zh-CN/.vuepress/.temp/sass-palette/hope-style.scss +1 -0
- package/template/zh-CN/.vuepress/.temp/sass-palette/load-hope.js +1 -0
- package/template/zh-CN/.vuepress/.temp/theme-hope/sidebar.js +1 -0
- package/template/zh-CN/.vuepress/.temp/theme-hope/socialMedia.js +1 -0
- package/template/zh-CN/.vuepress/.temp/theme-hope/theme-color.scss +1 -0
- package/template/zh-CN/.vuepress/themeConfig.ts +19 -2
- package/workflows/en-US/deploy-docs.yml +42 -0
- package/workflows/zh-CN/deploy-docs.yml +42 -0
- package/CHANGELOG.md +0 -212
- package/lib/node/index.js +0 -3
- package/lib/node/index.js.map +0 -1
- package/rollup.config.js +0 -15
- package/tsconfig.build.json +0 -10
- package/tsconfig.json +0 -8
package/{readme.md → README.md}
RENAMED
|
File without changes
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";var e=require("fs"),s=require("path"),r=require("cac"),t=require("inquirer"),a=require("execa"),n=require("https");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(a);const c=(e,...s)=>{if(0===s.length)return e;const r=s.shift()||{};return Object.keys(r).forEach((s=>{"object"!=typeof e[s]||Array.isArray(e[s])||"object"!=typeof r[s]||Array.isArray(r[s])?"object"==typeof r[s]?Array.isArray(r[s])?e[s]=[...r[s]]:e[s]={...r[s]}:e[s]=r[s]:c(e[s],r[s])})),c(e,...s)},p=s=>{try{e.readdirSync(s)}catch(r){e.mkdirSync(s)}},l=(r,t)=>{const a=s.dirname(t);p(a);const n=e.createReadStream(r),o=e.createWriteStream(t);n.pipe(o)},u=(s,r)=>{p(r);e.readdirSync(s,{withFileTypes:!0}).forEach((e=>{e.isFile()?l(`${s}/${e.name}`,`${r}/${e.name}`):e.isDirectory()&&u(`${s}/${e.name}`,`${r}/${e.name}`)}))},d=(s,r)=>{e.statSync(s).isDirectory()?u(s,r):e.statSync(s).isFile()&&l(s,r)},g=(e,s)=>new Promise(((r,t)=>{n.get(`${"npm"===s?"https://registry.npmjs.org":"https://registry.yarnpkg.com"}/-/package/${e}/dist-tags`,(s=>{if(200===s.statusCode){let e="";s.on("data",(s=>e+=s)),s.on("end",(()=>{r(JSON.parse(e).next)}))}else t(new Error(`Get ${e} version failed, please check your network!`))})).on("error",(()=>{t(new Error(`Get ${e} version failed, please check your network!`))}))})),m={"zh-CN":{getVersion:"获取依赖的最新版本...",createPackage:"生成 package.json...",updatePackage:"更新 package.json...",template:"生成模板...",wait:"这可能需要数分钟,请耐心等待.\n我们无法正确输出子进程的进度条,所以进程可能会看似未响应",install:"安装依赖...",success:"模板已成功生成!",devServerAsk:"是否想要现在启动 Demo 查看?",devServer:"启动开发服务器...\n启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')",hint:'提示: 请使用 "yarn run docs:dev" 命令启动开发服务器',nameMessage:"设置应用名称",nameError:"应用名称应只包含小写字母、数字和连接线 (-)",versionMessage:"设置应用版本号",versionError:"此版本无效,版本号应为 'x.x.x'",descriptionMessage:"设置应用描述",licenseMessage:"设置协议",i18nMessage:"项目需要用到多语言么?",workflowMessage:"是否需要一个自动部署文档到 GitHub Pages 的工作流?"},"en-US":{getVersion:"Getting lastest version of deps...",createPackage:"Generating package.json...",updatePackage:"Updating package.json...",template:"Generating Template...",wait:"This may take a few minutes, please be patient.\nWe can not correctly output progress bar from child process, so the process may look stuck.",install:"Installing Deps...",success:"Successful Generated!",devServerAsk:"Would you like to preview template now?",devServer:"Staring dev server...\nAfter the dev server starts running, please visit the given server link ('localhost:8080' by default)",hint:'Hint: You should execute "yarn run docs:dev" to start dev server.',nameMessage:"Your project name",nameError:"package name should only contain lowercase characters, numbers and dash",versionMessage:"Your project version",versionError:"This version is not a valid one. Version should be like 'x.x.x'",descriptionMessage:"Your project description",licenseMessage:"Your project lincense",i18nMessage:"Does the project need mutiple languages?",workflowMessage:"Do you need a GitHub workflow to deploy docs on GitHub pages?"}},y=async()=>{const{language:e}=await t.prompt([{name:"language",type:"list",message:"Select a language to display",choices:["en-US","zh-CN"]}]);return{lang:e,message:m[e]}},v=async(e,s)=>{const r=(e=>a.sync(e?"yarn":"npm",["config","get","registry"]).stdout)(s);if("en-US"===e||"https://registry.npmmirror.com/"===r)return r;const{registry:n}=await t.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return"国内镜像源"===n?"https://registry.npmmirror.com/":r},h=r.cac("vuepress-theme-hope"),f=(()=>{try{return a.sync("yarn --version",{stdio:"ignore"}),!0}catch(e){return!1}})()?"yarn":"npm";h.command("[dir]","Generate a new vuepress-theme-hope project").action((async r=>{if(!r)return h.outputHelp();const{lang:a,message:n}=await y(),o=s.resolve(process.cwd(),r),p=s.resolve(process.cwd(),"package.json"),l={"docs:build":`vuepress build ${r}`,"docs:clean-dev":`vuepress dev ${r} --clean-cache`,"docs:dev":`vuepress dev ${r}`};console.log(n.getVersion);const u={vuepress:`^${await g("vuepress",f)}`,"vuepress-theme-hope":`^${await g("vuepress-theme-hope",f)}`};if(e.existsSync(o)||e.mkdirSync(o),e.existsSync(p)){console.log(n.updatePackage);const s=JSON.parse(e.readFileSync(p,{encoding:"utf-8"}));c(s,{scripts:l,devDependencies:u}),e.writeFileSync(p,`${JSON.stringify(s,null,2)}\n`,{encoding:"utf-8"})}else{console.log(n.createPackage);const s={...await t.prompt([{name:"name",type:"input",message:n.nameMessage,default:"vuepress-theme-hope-template",validate:e=>!!/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u.exec(e)||n.nameError},{name:"version",type:"input",message:n.versionMessage,default:"2.0.0",validate:e=>!!/^[0-9]+\.[0-9]+\.(?:[0=9]+|[0-9]+-[a-z]+\.[0-9])$/u.exec(e)||n.versionError},{name:"description",type:"input",message:n.descriptionMessage,default:"A project of vuepress-theme-hope"},{name:"license",type:"input",message:n.licenseMessage,default:"MIT"}]),scripts:l,devDependencies:u};e.writeFileSync(p,`${JSON.stringify(s,null,2)}\n`,{encoding:"utf-8"})}const{i18n:m,workflow:w}=await t.prompt([{name:"i18n",type:"confirm",message:n.i18nMessage},{name:"workflow",type:"confirm",message:n.workflowMessage,default:!0}]);console.log(n.template);const k=m?"i18n":a;d(s.resolve(__dirname,"../template",k),s.resolve(process.cwd(),r)),w&&d(s.resolve(__dirname,"../workflows",a),s.resolve(process.cwd(),".github/workflows")),console.log(n.install),console.warn(n.wait);const S=await v(a,f);i.default.sync(f,["install","--registry",S],{stdout:"inherit"}),console.log(n.success);const{choise:$}=await t.prompt([{name:"choise",type:"confirm",message:n.devServerAsk,default:!0}]);$?(console.log(n.devServer),await i.default(f,["run","docs:dev"],{stdout:"inherit"})):console.log(n.hint)})),h.help((()=>[{title:"yarn create vuepress-theme-hope <dir> / npm init vuepress-theme-hope <dir>",body:"Create a vuepress-theme-hope template in <dir>"}])),h.parse();
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/deepAssign.ts","../src/copy.ts","../src/checkVersion.ts","../src/i18n.ts","../src/registry.ts","../src/index.ts","../src/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","copy","src","target","statSync","checkForNextVersion","packageName","bin","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","workflowMessage","getLanguage","async","language","prompt","type","message","choices","lang","getRegistry","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","workflow","templateFolder","__dirname","warn","execa","choise","help","title"],"mappings":";mNAIO,MAAMA,EAAa,CAKxBC,KACGC,KAEH,GAA6B,IAAzBA,EAAcC,OAAc,OAAOF,EAGvC,MAAMG,EAAgBF,EAAcG,SA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0-beta.
|
|
3
|
+
"version": "2.0.0-beta.29",
|
|
4
4
|
"description": "Create vuepress-theme-hope demo project helper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -23,8 +23,14 @@
|
|
|
23
23
|
"url": "https://mrhope.site"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
|
-
"create-vuepress-theme-hope": "./lib/
|
|
26
|
+
"create-vuepress-theme-hope": "./lib/index.js"
|
|
27
27
|
},
|
|
28
|
+
"files": [
|
|
29
|
+
"lib",
|
|
30
|
+
"src",
|
|
31
|
+
"template",
|
|
32
|
+
"workflows"
|
|
33
|
+
],
|
|
28
34
|
"scripts": {
|
|
29
35
|
"build": "rollup -c",
|
|
30
36
|
"clean": "rimraf ./lib ./*.tsbuildinfo",
|
|
@@ -32,10 +38,10 @@
|
|
|
32
38
|
"dev:ts": "tsc -b tsconfig.build.json --watch"
|
|
33
39
|
},
|
|
34
40
|
"dependencies": {
|
|
35
|
-
"@types/inquirer": "^8.2.
|
|
41
|
+
"@types/inquirer": "^8.2.1",
|
|
36
42
|
"cac": "^6.7.12",
|
|
37
43
|
"execa": "^5.1.1",
|
|
38
44
|
"inquirer": "^8.2.2"
|
|
39
45
|
},
|
|
40
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "02d8ad953f56229bd06e55871569d643edd148f2"
|
|
41
47
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { get } from "https";
|
|
2
2
|
|
|
3
|
-
export const checkForNextVersion = (
|
|
3
|
+
export const checkForNextVersion = (
|
|
4
|
+
packageName: string,
|
|
5
|
+
bin: "npm" | "yarn"
|
|
6
|
+
): Promise<string> =>
|
|
4
7
|
new Promise((resolve, reject) => {
|
|
5
8
|
get(
|
|
6
|
-
|
|
9
|
+
`${
|
|
10
|
+
bin === "npm"
|
|
11
|
+
? "https://registry.npmjs.org"
|
|
12
|
+
: "https://registry.yarnpkg.com"
|
|
13
|
+
}/-/package/${packageName}/dist-tags`,
|
|
7
14
|
(res) => {
|
|
8
15
|
if (res.statusCode === 200) {
|
|
9
16
|
let body = "";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -20,6 +20,7 @@ export interface CreateI18n {
|
|
|
20
20
|
descriptionMessage: string;
|
|
21
21
|
licenseMessage: string;
|
|
22
22
|
i18nMessage: string;
|
|
23
|
+
workflowMessage: string;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
export const i18n: Record<Lang, CreateI18n> = {
|
|
@@ -43,6 +44,7 @@ export const i18n: Record<Lang, CreateI18n> = {
|
|
|
43
44
|
descriptionMessage: "设置应用描述",
|
|
44
45
|
licenseMessage: "设置协议",
|
|
45
46
|
i18nMessage: "项目需要用到多语言么?",
|
|
47
|
+
workflowMessage: "是否需要一个自动部署文档到 GitHub Pages 的工作流?",
|
|
46
48
|
},
|
|
47
49
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
48
50
|
"en-US": {
|
|
@@ -66,6 +68,8 @@ export const i18n: Record<Lang, CreateI18n> = {
|
|
|
66
68
|
descriptionMessage: "Your project description",
|
|
67
69
|
licenseMessage: "Your project lincense",
|
|
68
70
|
i18nMessage: "Does the project need mutiple languages?",
|
|
71
|
+
workflowMessage:
|
|
72
|
+
"Do you need a GitHub workflow to deploy docs on GitHub pages?",
|
|
69
73
|
},
|
|
70
74
|
};
|
|
71
75
|
|
|
@@ -34,8 +34,8 @@ cli
|
|
|
34
34
|
|
|
35
35
|
console.log(message.getVersion);
|
|
36
36
|
|
|
37
|
-
const vuepressVersion = await checkForNextVersion("vuepress");
|
|
38
|
-
const themeVersion = await checkForNextVersion("vuepress-theme-hope");
|
|
37
|
+
const vuepressVersion = await checkForNextVersion("vuepress", bin);
|
|
38
|
+
const themeVersion = await checkForNextVersion("vuepress-theme-hope", bin);
|
|
39
39
|
|
|
40
40
|
const devDependencies = {
|
|
41
41
|
vuepress: `^${vuepressVersion}`,
|
|
@@ -115,28 +115,38 @@ cli
|
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
i18n:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const { i18n } = await prompt<I18nAnswer>([
|
|
118
|
+
const { i18n, workflow } = await prompt<{
|
|
119
|
+
i18n: boolean;
|
|
120
|
+
workflow: boolean;
|
|
121
|
+
}>([
|
|
123
122
|
{
|
|
124
123
|
name: "i18n",
|
|
125
|
-
type: "
|
|
124
|
+
type: "confirm",
|
|
126
125
|
message: message.i18nMessage,
|
|
127
|
-
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "workflow",
|
|
129
|
+
type: "confirm",
|
|
130
|
+
message: message.workflowMessage,
|
|
131
|
+
default: true,
|
|
128
132
|
},
|
|
129
133
|
]);
|
|
130
134
|
|
|
131
135
|
console.log(message.template);
|
|
132
136
|
|
|
133
|
-
const templateFolder = i18n
|
|
137
|
+
const templateFolder = i18n ? "i18n" : lang;
|
|
134
138
|
|
|
135
139
|
copy(
|
|
136
|
-
resolve(__dirname, "
|
|
140
|
+
resolve(__dirname, "../template", templateFolder),
|
|
137
141
|
resolve(process.cwd(), dir)
|
|
138
142
|
);
|
|
139
143
|
|
|
144
|
+
if (workflow)
|
|
145
|
+
copy(
|
|
146
|
+
resolve(__dirname, "../workflows", lang),
|
|
147
|
+
resolve(process.cwd(), ".github/workflows")
|
|
148
|
+
);
|
|
149
|
+
|
|
140
150
|
console.log(message.install);
|
|
141
151
|
console.warn(message.wait);
|
|
142
152
|
|
|
@@ -148,16 +158,16 @@ cli
|
|
|
148
158
|
|
|
149
159
|
console.log(message.success);
|
|
150
160
|
|
|
151
|
-
const { choise } = await prompt<{ choise:
|
|
161
|
+
const { choise } = await prompt<{ choise: boolean }>([
|
|
152
162
|
{
|
|
153
163
|
name: "choise",
|
|
154
|
-
type: "
|
|
164
|
+
type: "confirm",
|
|
155
165
|
message: message.devServerAsk,
|
|
156
|
-
|
|
166
|
+
default: true,
|
|
157
167
|
},
|
|
158
168
|
]);
|
|
159
169
|
|
|
160
|
-
if (choise
|
|
170
|
+
if (choise) {
|
|
161
171
|
console.log(message.devServer);
|
|
162
172
|
|
|
163
173
|
await execa(bin, ["run", "docs:dev"], {
|
|
File without changes
|
|
@@ -14,7 +14,7 @@ export default defineThemeConfig({
|
|
|
14
14
|
|
|
15
15
|
logo: "/logo.svg",
|
|
16
16
|
|
|
17
|
-
repo: "
|
|
17
|
+
repo: "vuepress-theme-hope/vuepress-theme-hope",
|
|
18
18
|
|
|
19
19
|
docsDir: "demo/src",
|
|
20
20
|
|
|
@@ -77,13 +77,30 @@ export default defineThemeConfig({
|
|
|
77
77
|
autoExcerpt: true,
|
|
78
78
|
},
|
|
79
79
|
|
|
80
|
-
// you can
|
|
80
|
+
// If you don't need comment feature, you can remove following option
|
|
81
|
+
// The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
|
|
82
|
+
// To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
|
|
81
83
|
comment: {
|
|
84
|
+
/**
|
|
85
|
+
* Using giscus
|
|
86
|
+
*/
|
|
82
87
|
type: "giscus",
|
|
83
88
|
repo: "vuepress-theme-hope/giscus-discussions",
|
|
84
89
|
repoId: "R_kgDOG_Pt2A",
|
|
85
90
|
category: "Announcements",
|
|
86
91
|
categoryId: "DIC_kwDOG_Pt2M4COD69",
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Using twikoo
|
|
95
|
+
*/
|
|
96
|
+
// type: "twikoo",
|
|
97
|
+
// envId: "https://twikoo.ccknbc.vercel.app",
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Using Waline
|
|
101
|
+
*/
|
|
102
|
+
// type: "waline",
|
|
103
|
+
// serverURL: "https://vuepress-theme-hope-comment.vercel.app",
|
|
87
104
|
},
|
|
88
105
|
|
|
89
106
|
mdEnhance: {
|
|
@@ -14,7 +14,7 @@ export default defineThemeConfig({
|
|
|
14
14
|
|
|
15
15
|
logo: "/logo.svg",
|
|
16
16
|
|
|
17
|
-
repo: "
|
|
17
|
+
repo: "vuepress-theme-hope/vuepress-theme-hope",
|
|
18
18
|
|
|
19
19
|
docsDir: "demo/src",
|
|
20
20
|
|
|
@@ -105,13 +105,30 @@ export default defineThemeConfig({
|
|
|
105
105
|
autoExcerpt: true,
|
|
106
106
|
},
|
|
107
107
|
|
|
108
|
-
// you can
|
|
108
|
+
// If you don't need comment feature, you can remove following option
|
|
109
|
+
// The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
|
|
110
|
+
// To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
|
|
109
111
|
comment: {
|
|
112
|
+
/**
|
|
113
|
+
* Using giscus
|
|
114
|
+
*/
|
|
110
115
|
type: "giscus",
|
|
111
116
|
repo: "vuepress-theme-hope/giscus-discussions",
|
|
112
117
|
repoId: "R_kgDOG_Pt2A",
|
|
113
118
|
category: "Announcements",
|
|
114
119
|
categoryId: "DIC_kwDOG_Pt2M4COD69",
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Using twikoo
|
|
123
|
+
*/
|
|
124
|
+
// type: "twikoo",
|
|
125
|
+
// envId: "https://twikoo.ccknbc.vercel.app",
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Using Waline
|
|
129
|
+
*/
|
|
130
|
+
// type: "waline",
|
|
131
|
+
// serverURL: "https://vuepress-theme-hope-comment.vercel.app",
|
|
115
132
|
},
|
|
116
133
|
|
|
117
134
|
mdEnhance: {
|
|
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
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const categoryMap = {"category":{"/":{"path":"/category/","map":{"使用指南":{"path":"/category/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/","keys":["v-4eaf9f84","v-4c863446","v-bf720700","v-0978b044","v-fffb8e28"]},"CategoryA":{"path":"/category/categorya/","keys":["v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690"]},"CategoryB":{"path":"/category/categoryb/","keys":["v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce"]}}}},"tag":{"/":{"path":"/tag/","map":{"禁用":{"path":"/tag/%E7%A6%81%E7%94%A8/","keys":["v-4c863446"]},"文章加密":{"path":"/tag/%E6%96%87%E7%AB%A0%E5%8A%A0%E5%AF%86/","keys":["v-bf720700"]},"markdown":{"path":"/tag/markdown/","keys":["v-0978b044"]},"页面配置":{"path":"/tag/%E9%A1%B5%E9%9D%A2%E9%85%8D%E7%BD%AE/","keys":["v-4eaf9f84"]},"使用指南":{"path":"/tag/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/","keys":["v-4eaf9f84"]},"tag A":{"path":"/tag/tag-a/","keys":["v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690"]},"tag B":{"path":"/tag/tag-b/","keys":["v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690"]}}}}}
|
|
2
|
+
|
|
3
|
+
if (import.meta.webpackHot) {
|
|
4
|
+
import.meta.webpackHot.accept()
|
|
5
|
+
if (__VUE_HMR_RUNTIME__.updateBlogCategory) {
|
|
6
|
+
__VUE_HMR_RUNTIME__.updateBlogCategory(categoryMap)
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (import.meta.hot) {
|
|
11
|
+
import.meta.hot.accept(({ categoryMap }) => {
|
|
12
|
+
__VUE_HMR_RUNTIME__.updateBlogCategory(categoryMap)
|
|
13
|
+
})
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const typeMap = {"article":{"/":{"path":"/article/","keys":["v-4eaf9f84","v-0e503981","v-4c863446","v-bf720700","v-0978b044","v-fffb8e28","v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690"]}},"encrypted":{"/":{"path":"/encrypted/","keys":["v-bf720700"]}},"slide":{"/":{"path":"/slides/","keys":["v-0e503981"]}},"star":{"/":{"path":"/star/","keys":["v-4eaf9f84","v-5deafbd7","v-0c0c61ab","v-0538ff2f"]}},"timeline":{"/":{"path":"/timeline/","keys":["v-0e503981","v-4c863446","v-bf720700","v-0978b044","v-fffb8e28","v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690","v-4eaf9f84"]}}}
|
|
2
|
+
|
|
3
|
+
if (import.meta.webpackHot) {
|
|
4
|
+
import.meta.webpackHot.accept()
|
|
5
|
+
if (__VUE_HMR_RUNTIME__.updateBlogType) {
|
|
6
|
+
__VUE_HMR_RUNTIME__.updateBlogType(typeMap)
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (import.meta.hot) {
|
|
11
|
+
import.meta.hot.accept(({ typeMap }) => {
|
|
12
|
+
__VUE_HMR_RUNTIME__.updateBlogType(typeMap)
|
|
13
|
+
})
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import clientAppEnhance0 from 'C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/sass-palette/load-hope.js'
|
|
2
|
+
import clientAppEnhance1 from 'C:/projects/vuepress-theme-hope/packages/components/lib/client/appEnhance.js'
|
|
3
|
+
import clientAppEnhance2 from 'C:/projects/vuepress-theme-hope/node_modules/@vuepress/plugin-external-link-icon/lib/client/clientAppEnhance.js'
|
|
4
|
+
import clientAppEnhance3 from 'C:/projects/vuepress-theme-hope/node_modules/@vuepress/plugin-theme-data/lib/client/clientAppEnhance.js'
|
|
5
|
+
import clientAppEnhance4 from 'C:/projects/vuepress-theme-hope/packages/comment2/lib/client/appEnhance.js'
|
|
6
|
+
import clientAppEnhance5 from 'C:/projects/vuepress-theme-hope/packages/md-enhance/lib/client/appEnhance.js'
|
|
7
|
+
import clientAppEnhance6 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/appEnhance.js'
|
|
8
|
+
import clientAppEnhance7 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/navbar/appEnhance.js'
|
|
9
|
+
import clientAppEnhance8 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/sidebar/appEnhance.js'
|
|
10
|
+
import clientAppEnhance9 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/blog/appEnhance.js'
|
|
11
|
+
|
|
12
|
+
export const clientAppEnhances = [
|
|
13
|
+
clientAppEnhance0,
|
|
14
|
+
clientAppEnhance1,
|
|
15
|
+
clientAppEnhance2,
|
|
16
|
+
clientAppEnhance3,
|
|
17
|
+
clientAppEnhance4,
|
|
18
|
+
clientAppEnhance5,
|
|
19
|
+
clientAppEnhance6,
|
|
20
|
+
clientAppEnhance7,
|
|
21
|
+
clientAppEnhance8,
|
|
22
|
+
clientAppEnhance9,
|
|
23
|
+
]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import clientAppRootComponent0 from 'C:/projects/vuepress-theme-hope/packages/components/lib/client/root-components/BackToTop.js'
|
|
2
|
+
import clientAppRootComponent1 from 'C:/projects/vuepress-theme-hope/packages/photo-swipe/lib/client/root-components/ImageViewer.js'
|
|
3
|
+
|
|
4
|
+
export const clientAppRootComponents = [
|
|
5
|
+
clientAppRootComponent0,
|
|
6
|
+
clientAppRootComponent1,
|
|
7
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import clientAppSetup0 from 'C:/projects/vuepress-theme-hope/node_modules/@vuepress/plugin-active-header-links/lib/client/clientAppSetup.js'
|
|
2
|
+
import clientAppSetup1 from 'C:/projects/vuepress-theme-hope/node_modules/@vuepress/plugin-nprogress/lib/client/clientAppSetup.js'
|
|
3
|
+
import clientAppSetup2 from 'C:/projects/vuepress-theme-hope/packages/copy-code2/lib/client/appSetup.js'
|
|
4
|
+
import clientAppSetup3 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/blog/appSetup.js'
|
|
5
|
+
import clientAppSetup4 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/outlook/appSetup.js'
|
|
6
|
+
import clientAppSetup5 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/sidebar/appSetup.js'
|
|
7
|
+
|
|
8
|
+
export const clientAppSetups = [
|
|
9
|
+
clientAppSetup0,
|
|
10
|
+
clientAppSetup1,
|
|
11
|
+
clientAppSetup2,
|
|
12
|
+
clientAppSetup3,
|
|
13
|
+
clientAppSetup4,
|
|
14
|
+
clientAppSetup5,
|
|
15
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { defineAsyncComponent } from 'vue'
|
|
2
|
+
|
|
3
|
+
export const layoutComponents = {
|
|
4
|
+
"404": defineAsyncComponent(() => import(/* webpackChunkName: "layout-404" */"C:/projects/vuepress-theme-hope/packages/theme/lib/client/layouts/404.js")),
|
|
5
|
+
"Layout": defineAsyncComponent(() => import(/* webpackChunkName: "layout-Layout" */"C:/projects/vuepress-theme-hope/packages/theme/lib/client/layouts/Layout.js")),
|
|
6
|
+
"Slide": defineAsyncComponent(() => import(/* webpackChunkName: "layout-Slide" */"vuepress-plugin-md-enhance/lib/client/SlidePage.js")),
|
|
7
|
+
"Blog": defineAsyncComponent(() => import(/* webpackChunkName: "layout-Blog" */"C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/blog/layouts/Blog.js")),
|
|
8
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { defineAsyncComponent } from 'vue'
|
|
2
|
+
|
|
3
|
+
export const pagesComponents = {
|
|
4
|
+
// path: /home.html
|
|
5
|
+
"v-79fdd481": defineAsyncComponent(() => import(/* webpackChunkName: "v-79fdd481" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/home.html.vue")),
|
|
6
|
+
// path: /
|
|
7
|
+
"v-8daa1a0e": defineAsyncComponent(() => import(/* webpackChunkName: "v-8daa1a0e" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/index.html.vue")),
|
|
8
|
+
// path: /slide.html
|
|
9
|
+
"v-0e503981": defineAsyncComponent(() => import(/* webpackChunkName: "v-0e503981" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/slide.html.vue")),
|
|
10
|
+
// path: /guide/disable.html
|
|
11
|
+
"v-4c863446": defineAsyncComponent(() => import(/* webpackChunkName: "v-4c863446" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/disable.html.vue")),
|
|
12
|
+
// path: /guide/encrypt.html
|
|
13
|
+
"v-bf720700": defineAsyncComponent(() => import(/* webpackChunkName: "v-bf720700" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/encrypt.html.vue")),
|
|
14
|
+
// path: /guide/markdown.html
|
|
15
|
+
"v-0978b044": defineAsyncComponent(() => import(/* webpackChunkName: "v-0978b044" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/markdown.html.vue")),
|
|
16
|
+
// path: /guide/page.html
|
|
17
|
+
"v-4eaf9f84": defineAsyncComponent(() => import(/* webpackChunkName: "v-4eaf9f84" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/page.html.vue")),
|
|
18
|
+
// path: /guide/
|
|
19
|
+
"v-fffb8e28": defineAsyncComponent(() => import(/* webpackChunkName: "v-fffb8e28" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/index.html.vue")),
|
|
20
|
+
// path: /posts/article10.html
|
|
21
|
+
"v-5a814a99": defineAsyncComponent(() => import(/* webpackChunkName: "v-5a814a99" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article10.html.vue")),
|
|
22
|
+
// path: /posts/article11.html
|
|
23
|
+
"v-5c362338": defineAsyncComponent(() => import(/* webpackChunkName: "v-5c362338" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article11.html.vue")),
|
|
24
|
+
// path: /posts/article12.html
|
|
25
|
+
"v-5deafbd7": defineAsyncComponent(() => import(/* webpackChunkName: "v-5deafbd7" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article12.html.vue")),
|
|
26
|
+
// path: /posts/article9.html
|
|
27
|
+
"v-7beb5be1": defineAsyncComponent(() => import(/* webpackChunkName: "v-7beb5be1" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article9.html.vue")),
|
|
28
|
+
// path: /posts/article/article1.html
|
|
29
|
+
"v-03842690": defineAsyncComponent(() => import(/* webpackChunkName: "v-03842690" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article1.html.vue")),
|
|
30
|
+
// path: /posts/article/article2.html
|
|
31
|
+
"v-0538ff2f": defineAsyncComponent(() => import(/* webpackChunkName: "v-0538ff2f" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article2.html.vue")),
|
|
32
|
+
// path: /posts/article/article3.html
|
|
33
|
+
"v-06edd7ce": defineAsyncComponent(() => import(/* webpackChunkName: "v-06edd7ce" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article3.html.vue")),
|
|
34
|
+
// path: /posts/article/article4.html
|
|
35
|
+
"v-08a2b06d": defineAsyncComponent(() => import(/* webpackChunkName: "v-08a2b06d" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article4.html.vue")),
|
|
36
|
+
// path: /posts/article/article5.html
|
|
37
|
+
"v-0a57890c": defineAsyncComponent(() => import(/* webpackChunkName: "v-0a57890c" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article5.html.vue")),
|
|
38
|
+
// path: /posts/article/article6.html
|
|
39
|
+
"v-0c0c61ab": defineAsyncComponent(() => import(/* webpackChunkName: "v-0c0c61ab" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article6.html.vue")),
|
|
40
|
+
// path: /posts/article/article7.html
|
|
41
|
+
"v-0dc13a4a": defineAsyncComponent(() => import(/* webpackChunkName: "v-0dc13a4a" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article7.html.vue")),
|
|
42
|
+
// path: /posts/article/article8.html
|
|
43
|
+
"v-0f7612e9": defineAsyncComponent(() => import(/* webpackChunkName: "v-0f7612e9" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article8.html.vue")),
|
|
44
|
+
// path: /404.html
|
|
45
|
+
"v-3706649a": defineAsyncComponent(() => import(/* webpackChunkName: "v-3706649a" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/404.html.vue")),
|
|
46
|
+
// path: /category/
|
|
47
|
+
"v-5bc93818": defineAsyncComponent(() => import(/* webpackChunkName: "v-5bc93818" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/category/index.html.vue")),
|
|
48
|
+
// path: /tag/
|
|
49
|
+
"v-744d024e": defineAsyncComponent(() => import(/* webpackChunkName: "v-744d024e" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/index.html.vue")),
|
|
50
|
+
// path: /article/
|
|
51
|
+
"v-e52c881c": defineAsyncComponent(() => import(/* webpackChunkName: "v-e52c881c" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/article/index.html.vue")),
|
|
52
|
+
// path: /encrypted/
|
|
53
|
+
"v-75ed4ea4": defineAsyncComponent(() => import(/* webpackChunkName: "v-75ed4ea4" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/encrypted/index.html.vue")),
|
|
54
|
+
// path: /slides/
|
|
55
|
+
"v-2897d318": defineAsyncComponent(() => import(/* webpackChunkName: "v-2897d318" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/slides/index.html.vue")),
|
|
56
|
+
// path: /star/
|
|
57
|
+
"v-154dc4c4": defineAsyncComponent(() => import(/* webpackChunkName: "v-154dc4c4" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/star/index.html.vue")),
|
|
58
|
+
// path: /timeline/
|
|
59
|
+
"v-01560935": defineAsyncComponent(() => import(/* webpackChunkName: "v-01560935" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/timeline/index.html.vue")),
|
|
60
|
+
// path: /category/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/
|
|
61
|
+
"v-03d57386": defineAsyncComponent(() => import(/* webpackChunkName: "v-03d57386" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/category/使用指南/index.html.vue")),
|
|
62
|
+
// path: /tag/%E7%A6%81%E7%94%A8/
|
|
63
|
+
"v-83e1f92e": defineAsyncComponent(() => import(/* webpackChunkName: "v-83e1f92e" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/禁用/index.html.vue")),
|
|
64
|
+
// path: /category/categorya/
|
|
65
|
+
"v-3e5b7b84": defineAsyncComponent(() => import(/* webpackChunkName: "v-3e5b7b84" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/category/categorya/index.html.vue")),
|
|
66
|
+
// path: /tag/%E6%96%87%E7%AB%A0%E5%8A%A0%E5%AF%86/
|
|
67
|
+
"v-1e447d61": defineAsyncComponent(() => import(/* webpackChunkName: "v-1e447d61" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/文章加密/index.html.vue")),
|
|
68
|
+
// path: /category/categoryb/
|
|
69
|
+
"v-3e5b7ba3": defineAsyncComponent(() => import(/* webpackChunkName: "v-3e5b7ba3" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/category/categoryb/index.html.vue")),
|
|
70
|
+
// path: /tag/markdown/
|
|
71
|
+
"v-484552dc": defineAsyncComponent(() => import(/* webpackChunkName: "v-484552dc" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/markdown/index.html.vue")),
|
|
72
|
+
// path: /tag/%E9%A1%B5%E9%9D%A2%E9%85%8D%E7%BD%AE/
|
|
73
|
+
"v-a378ad66": defineAsyncComponent(() => import(/* webpackChunkName: "v-a378ad66" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/页面配置/index.html.vue")),
|
|
74
|
+
// path: /tag/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/
|
|
75
|
+
"v-7b167472": defineAsyncComponent(() => import(/* webpackChunkName: "v-7b167472" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/使用指南/index.html.vue")),
|
|
76
|
+
// path: /tag/tag-a/
|
|
77
|
+
"v-06bbb262": defineAsyncComponent(() => import(/* webpackChunkName: "v-06bbb262" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/tag-a/index.html.vue")),
|
|
78
|
+
// path: /tag/tag-b/
|
|
79
|
+
"v-06bbb224": defineAsyncComponent(() => import(/* webpackChunkName: "v-06bbb224" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/tag-b/index.html.vue")),
|
|
80
|
+
}
|