create-vuepress-theme-hope 2.0.0-beta.32 → 2.0.0-beta.35
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/lib/index.js +1 -1
- package/package.json +2 -2
- package/template/en-US/.vuepress/.cache/@giscus_vue.js +156 -0
- package/template/en-US/.vuepress/.cache/@giscus_vue.js.map +7 -0
- package/template/en-US/.vuepress/.cache/@mr-hope_vuepress-shared_lib_client.js +1459 -0
- package/template/en-US/.vuepress/.cache/@mr-hope_vuepress-shared_lib_client.js.map +7 -0
- package/template/en-US/.vuepress/.cache/@vue_devtools-api.js +45 -0
- package/template/en-US/.vuepress/.cache/@vue_devtools-api.js.map +7 -0
- package/template/en-US/.vuepress/.cache/@vuepress_shared.js +622 -0
- package/template/en-US/.vuepress/.cache/@vuepress_shared.js.map +7 -0
- package/template/en-US/.vuepress/.cache/@vueuse_core.js +6928 -0
- package/template/en-US/.vuepress/.cache/@vueuse_core.js.map +7 -0
- package/template/en-US/.vuepress/.cache/_metadata.json +141 -0
- package/template/en-US/.vuepress/.cache/bcryptjs.js +1909 -0
- package/template/en-US/.vuepress/.cache/bcryptjs.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chart_js_auto.js +12922 -0
- package/template/en-US/.vuepress/.cache/chart_js_auto.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-2WZCGDJF.js +331 -0
- package/template/en-US/.vuepress/.cache/chunk-2WZCGDJF.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-AFWL6OTZ.js +123 -0
- package/template/en-US/.vuepress/.cache/chunk-AFWL6OTZ.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-DDJL2UG7.js +87 -0
- package/template/en-US/.vuepress/.cache/chunk-DDJL2UG7.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-ED4SQPTR.js +394 -0
- package/template/en-US/.vuepress/.cache/chunk-ED4SQPTR.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-FH5D6ALC.js +65 -0
- package/template/en-US/.vuepress/.cache/chunk-FH5D6ALC.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-JFXOXVAP.js +167 -0
- package/template/en-US/.vuepress/.cache/chunk-JFXOXVAP.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-MGTZPBBT.js +105 -0
- package/template/en-US/.vuepress/.cache/chunk-MGTZPBBT.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-S7KAUVUC.js +8451 -0
- package/template/en-US/.vuepress/.cache/chunk-S7KAUVUC.js.map +7 -0
- package/template/en-US/.vuepress/.cache/chunk-U6IILTIK.js +247 -0
- package/template/en-US/.vuepress/.cache/chunk-U6IILTIK.js.map +7 -0
- package/template/en-US/.vuepress/.cache/dayjs.js +42 -0
- package/template/en-US/.vuepress/.cache/dayjs.js.map +7 -0
- package/template/en-US/.vuepress/.cache/dayjs_plugin_localizedFormat.js +42 -0
- package/template/en-US/.vuepress/.cache/dayjs_plugin_localizedFormat.js.map +7 -0
- package/template/en-US/.vuepress/.cache/dayjs_plugin_objectSupport.js +42 -0
- package/template/en-US/.vuepress/.cache/dayjs_plugin_objectSupport.js.map +7 -0
- package/template/en-US/.vuepress/.cache/dayjs_plugin_timezone.js +42 -0
- package/template/en-US/.vuepress/.cache/dayjs_plugin_timezone.js.map +7 -0
- package/template/en-US/.vuepress/.cache/dayjs_plugin_utc.js +42 -0
- package/template/en-US/.vuepress/.cache/dayjs_plugin_utc.js.map +7 -0
- package/template/en-US/.vuepress/.cache/flowchart_js.js +4617 -0
- package/template/en-US/.vuepress/.cache/flowchart_js.js.map +7 -0
- package/template/en-US/.vuepress/.cache/lodash_debounce.js +188 -0
- package/template/en-US/.vuepress/.cache/lodash_debounce.js.map +7 -0
- package/template/en-US/.vuepress/.cache/lodash_throttle.js +203 -0
- package/template/en-US/.vuepress/.cache/lodash_throttle.js.map +7 -0
- package/template/en-US/.vuepress/.cache/mermaid.js +29764 -0
- package/template/en-US/.vuepress/.cache/mermaid.js.map +7 -0
- package/template/en-US/.vuepress/.cache/nprogress.js +334 -0
- package/template/en-US/.vuepress/.cache/nprogress.js.map +7 -0
- package/template/en-US/.vuepress/.cache/package.json +1 -0
- package/template/en-US/.vuepress/.cache/photoswipe.js +3137 -0
- package/template/en-US/.vuepress/.cache/photoswipe.js.map +7 -0
- package/template/en-US/.vuepress/.cache/reveal_js_dist_reveal_esm_js.js +1891 -0
- package/template/en-US/.vuepress/.cache/reveal_js_dist_reveal_esm_js.js.map +7 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_highlight_highlight_esm_js.js +4549 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_highlight_highlight_esm_js.js.map +7 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_markdown_markdown_esm_js.js +2957 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_markdown_markdown_esm_js.js.map +7 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_math_math_esm_js.js +1545 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_math_math_esm_js.js.map +7 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_notes_notes_esm_js.js +3157 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_notes_notes_esm_js.js.map +7 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_search_search_esm_js.js +811 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_search_search_esm_js.js.map +7 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_zoom_zoom_esm_js.js +120 -0
- package/template/en-US/.vuepress/.cache/reveal_js_plugin_zoom_zoom_esm_js.js.map +7 -0
- package/template/en-US/.vuepress/.cache/vue-router.js +2419 -0
- package/template/en-US/.vuepress/.cache/vue-router.js.map +7 -0
- package/template/en-US/.vuepress/.cache/vue.js +329 -0
- package/template/en-US/.vuepress/.cache/vue.js.map +7 -0
- package/template/en-US/.vuepress/.temp/blog/category.js +14 -0
- package/template/en-US/.vuepress/.temp/blog/type.js +14 -0
- package/template/en-US/.vuepress/.temp/internal/clientAppEnhances.js +23 -0
- package/template/en-US/.vuepress/.temp/internal/clientAppRootComponents.js +5 -0
- package/template/en-US/.vuepress/.temp/internal/clientAppSetups.js +17 -0
- package/template/en-US/.vuepress/.temp/internal/layoutComponents.js +8 -0
- package/template/en-US/.vuepress/.temp/internal/pagesComponents.js +82 -0
- package/template/en-US/.vuepress/.temp/internal/pagesData.js +80 -0
- package/template/en-US/.vuepress/.temp/internal/pagesRoutes.js +68 -0
- package/template/en-US/.vuepress/.temp/internal/siteData.js +29 -0
- package/template/en-US/.vuepress/.temp/internal/themeData.js +271 -0
- package/template/en-US/.vuepress/.temp/pages/404.html.js +60 -0
- package/template/en-US/.vuepress/.temp/pages/404.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/article/index.html.js +72 -0
- package/template/en-US/.vuepress/.temp/pages/article/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/category/categorya/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/category/categorya/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/category/categoryb/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/category/categoryb/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/category/guide/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/category/guide/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/category/index.html.js +72 -0
- package/template/en-US/.vuepress/.temp/pages/category/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/encrypted/index.html.js +72 -0
- package/template/en-US/.vuepress/.temp/pages/encrypted/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/guide/disable.html.js +94 -0
- package/template/en-US/.vuepress/.temp/pages/guide/disable.html.vue +17 -0
- package/template/en-US/.vuepress/.temp/pages/guide/encrypt.html.js +80 -0
- package/template/en-US/.vuepress/.temp/pages/guide/encrypt.html.vue +5 -0
- package/template/en-US/.vuepress/.temp/pages/guide/index.html.js +71 -0
- package/template/en-US/.vuepress/.temp/pages/guide/index.html.vue +16 -0
- package/template/en-US/.vuepress/.temp/pages/guide/markdown.html.js +193 -0
- package/template/en-US/.vuepress/.temp/pages/guide/markdown.html.vue +200 -0
- package/template/en-US/.vuepress/.temp/pages/guide/page.html.js +128 -0
- package/template/en-US/.vuepress/.temp/pages/guide/page.html.vue +43 -0
- package/template/en-US/.vuepress/.temp/pages/home.html.js +189 -0
- package/template/en-US/.vuepress/.temp/pages/home.html.vue +4 -0
- package/template/en-US/.vuepress/.temp/pages/index.html.js +113 -0
- package/template/en-US/.vuepress/.temp/pages/index.html.vue +4 -0
- package/template/en-US/.vuepress/.temp/pages/intro.html.js +67 -0
- package/template/en-US/.vuepress/.temp/pages/intro.html.vue +3 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article1.html.js +110 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article1.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article2.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article2.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article3.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article3.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article4.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article4.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article5.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article5.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article6.html.js +112 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article6.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article7.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article7.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article8.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article/article8.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article10.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article10.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article11.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article11.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article12.html.js +112 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article12.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article9.html.js +111 -0
- package/template/en-US/.vuepress/.temp/pages/posts/article9.html.vue +6 -0
- package/template/en-US/.vuepress/.temp/pages/slide.html.js +69 -0
- package/template/en-US/.vuepress/.temp/pages/slide.html.vue +2 -0
- package/template/en-US/.vuepress/.temp/pages/slides/index.html.js +72 -0
- package/template/en-US/.vuepress/.temp/pages/slides/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/star/index.html.js +72 -0
- package/template/en-US/.vuepress/.temp/pages/star/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/tag/disable/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/tag/disable/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/tag/encryption/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/tag/encryption/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/tag/guide/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/tag/guide/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/tag/index.html.js +72 -0
- package/template/en-US/.vuepress/.temp/pages/tag/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/tag/markdown/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/tag/markdown/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/tag/page-config/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/tag/page-config/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/tag/tag-a/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/tag/tag-a/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/tag/tag-b/index.html.js +73 -0
- package/template/en-US/.vuepress/.temp/pages/tag/tag-b/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/pages/timeline/index.html.js +72 -0
- package/template/en-US/.vuepress/.temp/pages/timeline/index.html.vue +1 -0
- package/template/en-US/.vuepress/.temp/sass-palette/hope-config.scss +6 -0
- package/template/en-US/.vuepress/.temp/sass-palette/hope-inject.scss +29 -0
- package/template/en-US/.vuepress/.temp/sass-palette/hope-palette.scss +4 -0
- package/template/en-US/.vuepress/.temp/sass-palette/hope-style.scss +1 -0
- package/template/en-US/.vuepress/.temp/sass-palette/load-hope.js +1 -0
- package/template/en-US/.vuepress/.temp/theme-hope/sidebar.js +1 -0
- package/template/en-US/.vuepress/.temp/theme-hope/socialMedia.js +1 -0
- package/template/en-US/.vuepress/.temp/theme-hope/theme-color.scss +1 -0
- package/template/en-US/.vuepress/.temp/vite-root/index.html +13 -0
package/lib/index.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|
7
7
|
*
|
|
8
8
|
* MIT Licensed
|
|
9
|
-
*/(),i=process.binding("constants"),o=n(),u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",a=/XXXXXX/,s=(i.O_CREAT||i.fs.O_CREAT)|(i.O_EXCL||i.fs.O_EXCL)|(i.O_RDWR||i.fs.O_RDWR),c=i.EBADF||i.os.errno.EBADF,l=i.ENOENT||i.os.errno.ENOENT,f=[];var d=!1,p=!1;function v(e){var t=[],n=null;try{n=r.randomBytes(e)}catch(t){n=r.pseudoRandomBytes(e)}for(var i=0;i<e;i++)t.push(u[n[i]%u.length]);return t.join("")}function y(e){return void 0===e}function m(e,t){return"function"==typeof e?[t||{},e]:y(e)?[{},t]:[e,t]}function g(e){if(e.name)return t.join(e.dir||o,e.name);if(e.template)return e.template.replace(a,v(6));const r=[e.prefix||"tmp-",process.pid,v(12),e.postfix||""].join("");return t.join(e.dir||o,r)}function D(t,r){var n=m(t,r),i=n[0],o=n[1],u=i.name?1:i.tries||3;return isNaN(u)||u<0?o(new Error("Invalid tries")):i.template&&!i.template.match(a)?o(new Error("Invalid template provided")):void function t(){const r=g(i);e.stat(r,(function(e){if(!e)return u-- >0?t():o(new Error("Could not get a unique tmp filename, max tries reached "+r));o(null,r)}))}()}function _(t){var r=m(t)[0],n=r.name?1:r.tries||3;if(isNaN(n)||n<0)throw new Error("Invalid tries");if(r.template&&!r.template.match(a))throw new Error("Invalid template provided");do{const t=g(r);try{e.statSync(t)}catch(e){return t}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function w(r){const n=[r];do{for(var i=n.pop(),o=!1,u=e.readdirSync(i),a=0,s=u.length;a<s;a++){var c=t.join(i,u[a]);e.lstatSync(c).isDirectory()?(o||(o=!0,n.push(i)),n.push(c)):e.unlinkSync(c)}o||e.rmdirSync(i)}while(0!==n.length)}function O(t,r,n){const i=j((function(t){try{0<=t[0]&&e.closeSync(t[0])}catch(e){if(!function(e){return P(e,-c,"EBADF")}(e)&&!C(e))throw e}try{e.unlinkSync(t[1])}catch(e){if(!C(e))throw e}}),[r,t]);return n.keep||f.unshift(i),i}function S(t,r){const n=j(r.unsafeCleanup?w:e.rmdirSync.bind(e),t);return r.keep||f.unshift(n),n}function j(e,t){var r=!1;return function n(i){if(!r){const i=f.indexOf(n);i>=0&&f.splice(i,1),r=!0,e(t)}i&&i(null)}}function x(){if(!p||d)for(;f.length;)try{f[0].call(null)}catch(e){}}function C(e){return P(e,-l,"ENOENT")}function P(e,t,r){return e.code==t||e.code==r}const F=process.versions.node.split(".").map((function(e){return parseInt(e,10)}));return 0===F[0]&&(F[1]<9||9===F[1]&&F[2]<5)&&process.addListener("uncaughtException",(function(e){throw p=!0,x(),e})),process.addListener("exit",(function(e){e&&(p=!0),x()})),ek.tmpdir=o,ek.dir=function(t,r){var n=m(t,r),i=n[0],o=n[1];D(i,(function(t,r){if(t)return o(t);e.mkdir(r,i.mode||448,(function(e){if(e)return o(e);o(null,r,S(r,i))}))}))},ek.dirSync=function(t){var r=m(t)[0];const n=_(r);return e.mkdirSync(n,r.mode||448),{name:n,removeCallback:S(n,r)}},ek.file=function(t,r){var n=m(t,r),i=n[0],o=n[1];i.postfix=y(i.postfix)?".tmp":i.postfix,D(i,(function(t,r){if(t)return o(t);e.open(r,s,i.mode||384,(function(t,n){return t?o(t):i.discardDescriptor?e.close(n,(function(t){if(t){try{e.unlinkSync(r)}catch(e){C(e)||(t=e)}return o(t)}o(null,r,void 0,O(r,-1,i))})):i.detachDescriptor?o(null,r,n,O(r,-1,i)):void o(null,r,n,O(r,n,i))}))}))},ek.fileSync=function(t){var r=m(t)[0];r.postfix=r.postfix||".tmp";const n=r.discardDescriptor||r.detachDescriptor,i=_(r);var o=e.openSync(i,s,r.mode||384);return r.discardDescriptor&&(e.closeSync(o),o=void 0),{name:i,fd:o,removeCallback:O(i,n?-1:o,r)}},ek.tmpName=D,ek.tmpNameSync=_,ek.setGracefulCleanup=function(){d=!0},ek}var rk,nk={};var ik,ok={};var uk,ak={};var sk,ck,lk,fk,dk={};function pk(){if(ck)return zA;ck=1,Object.defineProperty(zA,"__esModule",{value:!0});var e=function(){if(iT)return VA;iT=1;var e=h.default,t=KA(),r=QA(),n=ZA(),i=rT(),o=uT(),u=S,a=[new t,new r.UTF_16BE,new r.UTF_16LE,new r.UTF_32BE,new r.UTF_32LE,new n.sjis,new n.big5,new n.euc_jp,new n.euc_kr,new n.gb_18030,new o.ISO_2022_JP,new o.ISO_2022_KR,new o.ISO_2022_CN,new i.ISO_8859_1,new i.ISO_8859_2,new i.ISO_8859_5,new i.ISO_8859_6,new i.ISO_8859_7,new i.ISO_8859_8,new i.ISO_8859_9,new i.windows_1251,new i.windows_1256,new i.KOI8_R];return VA.detect=function(e,t){for(var r=[],n=0;n<256;n++)r[n]=0;for(n=e.length-1;n>=0;n--)r[255&e[n]]++;var i=!1;for(n=128;n<=159;n+=1)if(0!=r[n]){i=!0;break}var o={fByteStats:r,fC1Bytes:i,fRawInput:e,fRawLength:e.length,fInputBytes:e,fInputLen:e.length},u=a.map((function(e){return e.match(o)})).filter((function(e){return!!e})).sort((function(e,t){return t.confidence-e.confidence}));return t&&!0===t.returnAllMatches?u:u.length>0?u[0].name:null},VA.detectFile=function(t,r,n){var i;"function"==typeof r&&(n=r,r=void 0);var o=function(t,o){if(i&&e.closeSync(i),t)return n(t,null);n(null,u.detect(o,r))};if(r&&r.sampleSize)return i=e.openSync(t,"r"),sample=Buffer.allocUnsafe(r.sampleSize),void e.read(i,sample,0,r.sampleSize,null,(function(e){o(e,sample)}));e.readFile(t,o)},VA.detectFileSync=function(t,r){if(r&&r.sampleSize){var n=e.openSync(t,"r"),i=Buffer.allocUnsafe(r.sampleSize);return e.readSync(n,i,0,r.sampleSize),e.closeSync(n),u.detect(i,r)}return u.detect(e.readFileSync(t),r)},VA.detectAll=function(e,t){return"object"!=typeof t&&(t={}),t.returnAllMatches=!0,u.detect(e,t)},VA.detectFileAll=function(e,t,r){"function"==typeof t&&(r=t,t=void 0),"object"!=typeof t&&(t={}),t.returnAllMatches=!0,u.detectFile(e,t,r)},VA.detectFileAllSync=function(e,t){return"object"!=typeof t&&(t={}),t.returnAllMatches=!0,u.detectFileSync(e,t)},VA}(),t=v.default,r=h.default,n=QT(),i=tk(),o=function(){if(rk)return nk;rk=1;var e=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(nk,"__esModule",{value:!0});var t=function(t){function r(e){var r=this.constructor,n=t.call(this,"Failed to create temporary file for editor")||this;n.originalError=e;var i=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=r.prototype,n}return e(r,t),r}(Error);return nk.CreateFileError=t,nk}();zA.CreateFileError=o.CreateFileError;var u=function(){if(ik)return ok;ik=1;var e=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ok,"__esModule",{value:!0});var t=function(t){function r(e){var r=this.constructor,n=t.call(this,"Failed launch editor")||this;n.originalError=e;var i=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=r.prototype,n}return e(r,t),r}(Error);return ok.LaunchEditorError=t,ok}();zA.LaunchEditorError=u.LaunchEditorError;var a=function(){if(uk)return ak;uk=1;var e=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ak,"__esModule",{value:!0});var t=function(t){function r(e){var r=this.constructor,n=t.call(this,"Failed to read temporary file")||this;n.originalError=e;var i=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=r.prototype,n}return e(r,t),r}(Error);return ak.ReadFileError=t,ak}();zA.ReadFileError=a.ReadFileError;var s=function(){if(sk)return dk;sk=1;var e=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(dk,"__esModule",{value:!0});var t=function(t){function r(e){var r=this.constructor,n=t.call(this,"Failed to cleanup temporary file")||this;n.originalError=e;var i=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=r.prototype,n}return e(r,t),r}(Error);return dk.RemoveFileError=t,dk}();zA.RemoveFileError=s.RemoveFileError,zA.edit=function(e,t){void 0===e&&(e="");var r=new c(e,t);return r.run(),r.cleanup(),r.text},zA.editAsync=function(e,t,r){void 0===e&&(e="");var n=new c(e,r);n.runAsync((function(e,r){if(e)setImmediate(t,e,null);else try{n.cleanup(),setImmediate(t,null,r)}catch(e){setImmediate(t,e,null)}}))};var c=function(){function c(e,t){void 0===e&&(e=""),this.text="",this.fileOptions={},this.text=e,t&&(this.fileOptions=t),this.determineEditor(),this.createTemporaryFile()}return c.splitStringBySpace=function(e){for(var t=[],r="",n=0;n<e.length;n++){var i=e[n];n>0&&" "===i&&"\\"!==e[n-1]&&r.length>0?(t.push(r),r=""):r+=i}return r.length>0&&t.push(r),t},Object.defineProperty(c.prototype,"temp_file",{get:function(){return console.log("DEPRECATED: temp_file. Use tempFile moving forward."),this.tempFile},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"last_exit_status",{get:function(){return console.log("DEPRECATED: last_exit_status. Use lastExitStatus moving forward."),this.lastExitStatus},enumerable:!0,configurable:!0}),c.prototype.run=function(){return this.launchEditor(),this.readTemporaryFile(),this.text},c.prototype.runAsync=function(e){var t=this;try{this.launchEditorAsync((function(){try{t.readTemporaryFile(),setImmediate(e,null,t.text)}catch(t){setImmediate(e,t,null)}}))}catch(t){setImmediate(e,t,null)}},c.prototype.cleanup=function(){this.removeTemporaryFile()},c.prototype.determineEditor=function(){var e=process.env.VISUAL?process.env.VISUAL:process.env.EDITOR?process.env.EDITOR:/^win/.test(process.platform)?"notepad":"vim",t=c.splitStringBySpace(e).map((function(e){return e.replace("\\ "," ")})),r=t.shift();this.editor={args:t,bin:r}},c.prototype.createTemporaryFile=function(){try{this.tempFile=i.tmpNameSync(this.fileOptions);var e={encoding:"utf8"};this.fileOptions.hasOwnProperty("mode")&&(e.mode=this.fileOptions.mode),r.writeFileSync(this.tempFile,this.text,e)}catch(e){throw new o.CreateFileError(e)}},c.prototype.readTemporaryFile=function(){try{var t=r.readFileSync(this.tempFile);if(0===t.length)this.text="";else{var i=e.detect(t).toString();n.encodingExists(i)||(i="utf8"),this.text=n.decode(t,i)}}catch(e){throw new a.ReadFileError(e)}},c.prototype.removeTemporaryFile=function(){try{r.unlinkSync(this.tempFile)}catch(e){throw new s.RemoveFileError(e)}},c.prototype.launchEditor=function(){try{var e=t.spawnSync(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"});this.lastExitStatus=e.status}catch(e){throw new u.LaunchEditorError(e)}},c.prototype.launchEditorAsync=function(e){var r=this;try{t.spawn(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"}).on("exit",(function(t){r.lastExitStatus=t,setImmediate(e)}))}catch(e){throw new u.LaunchEditorError(e)}},c}();return zA.ExternalEditor=c,zA}!function(e){const t=e.exports;t.prompts={},t.Separator=Zn,t.ui={BottomBar:hi,Prompt:kE},t.createPromptModule=function(e){const r=function(n,i){let o;try{o=new t.ui.Prompt(r.prompts,e)}catch(e){return Promise.reject(e)}const u=o.run(n,i);return u.ui=o,u};return r.prompts={},r.registerPrompt=function(e,t){return r.prompts[e]=t,this},r.restoreDefaultPrompts=function(){this.registerPrompt("list",BA()),this.registerPrompt("input",IA()),this.registerPrompt("number",function(){if(cA)return sA;cA=1;const e=IA();return sA=class extends e{filterInput(e){if(e&&"string"==typeof e){const t=(e=e.trim()).match(/(^-?\d+|^\d+\.\d*|^\d*\.\d+)(e\d+)?$/);if(t)return Number(t[0])}return null==this.opt.default?NaN:this.opt.default}},sA}()),this.registerPrompt("confirm",function(){if(fA)return lA;fA=1;const e=$n,{take:t,takeUntil:r}=CO,n=AA(),i=TA();return lA=class extends n{constructor(e,t,r){super(e,t,r);let n=!0;Object.assign(this.opt,{filter(e){let t=n;return null!=e&&""!==e&&(t=/^y(es)?/i.test(e)),t}}),null!=this.opt.default&&(n=Boolean(this.opt.default)),this.opt.default=n?"Y/n":"y/N"}_run(e){this.done=e;const n=i(this.rl);return n.keypress.pipe(r(n.line)).forEach(this.onKeypress.bind(this)),n.line.pipe(t(1)).forEach(this.onEnd.bind(this)),this.render(),this}render(t){let r=this.getQuestion();return r+="boolean"==typeof t?e.cyan(t?"Yes":"No"):this.rl.line,this.screen.render(r),this}onEnd(e){this.status="answered";const t=this.opt.filter(e);this.render(t),this.screen.done(),this.done(t)}onKeypress(){this.render()}},lA}()),this.registerPrompt("rawlist",RA()),this.registerPrompt("expand",LA()),this.registerPrompt("checkbox",NA()),this.registerPrompt("password",function(){if(gA)return mA;gA=1;const e=$n,{map:t,takeUntil:r}=CO,n=AA(),i=TA();function o(e,t){return t="string"==typeof t?t:"*",0===(e=String(e)).length?"":new Array(e.length+1).join(t)}return mA=class extends n{_run(e){this.done=e;const n=i(this.rl),o=n.line.pipe(t(this.filterInput.bind(this))),u=this.handleSubmitEvents(o);return u.success.forEach(this.onEnd.bind(this)),u.error.forEach(this.onError.bind(this)),n.keypress.pipe(r(u.success)).forEach(this.onKeypress.bind(this)),this.render(),this}render(t){let r=this.getQuestion(),n="";"answered"===this.status?r+=this.getMaskedValue(this.answer):r+=this.getMaskedValue(this.rl.line||""),t&&(n="\n"+e.red(">> ")+t),this.screen.render(r,n)}getMaskedValue(t){return"answered"===this.status?this.opt.mask?e.cyan(o(t,this.opt.mask)):e.italic.dim("[hidden]"):this.opt.mask?o(t,this.opt.mask):e.italic.dim("[input is hidden] ")}getSpinningValue(e){return this.getMaskedValue(e)}filterInput(e){return e||(null==this.opt.default?"":this.opt.default)}onEnd(e){this.status="answered",this.answer=e.value,this.render(),this.screen.done(),this.done(e.value)}onError(e){this.render(e.isValid)}onKeypress(){this.opt.default&&(this.opt.default=void 0),this.render()}},mA}()),this.registerPrompt("editor",function(){if(fk)return lk;fk=1;const e=$n,{editAsync:t}=pk(),r=AA(),n=TA(),{Subject:i}=wa;return lk=class extends r{_run(e){this.done=e,this.editorResult=new i;const t=n(this.rl);this.lineSubscription=t.line.subscribe(this.startExternalEditor.bind(this));const r=this.handleSubmitEvents(this.editorResult);return r.success.forEach(this.onEnd.bind(this)),r.error.forEach(this.onError.bind(this)),this.currentText=this.opt.default,this.opt.default=null,this.render(),this}render(t){let r="",n=this.getQuestion();"answered"===this.status?n+=e.dim("Received"):n+=e.dim("Press <enter> to launch your preferred editor."),t&&(r=e.red(">> ")+t),this.screen.render(n,r)}startExternalEditor(){this.rl.pause(),t(this.currentText,this.endExternalEditor.bind(this))}endExternalEditor(e,t){this.rl.resume(),e?this.editorResult.error(e):this.editorResult.next(t)}onEnd(e){this.editorResult.unsubscribe(),this.lineSubscription.unsubscribe(),this.answer=e.value,this.status="answered",this.render(),this.screen.done(),this.done(this.answer)}onError(e){this.render(e.isValid)}},lk}())},r.restoreDefaultPrompts(),r},t.prompt=t.createPromptModule(),t.registerPrompt=function(e,r){t.prompt.registerPrompt(e,r)},t.restoreDefaultPrompts=function(){t.prompt.restoreDefaultPrompts()}}(an);const hk=async(e,t)=>{for(let r=1;r<=3;r++){const n=await new Promise(((r,n)=>{f.get(`${"npm"===t?"https://registry.npmjs.org":"https://registry.yarnpkg.com"}/-/package/${e}/dist-tags`,(e=>{if(200===e.statusCode){let t="";e.on("data",(e=>t+=e)),e.on("end",(()=>{r(JSON.parse(t).next)}))}else n()})).on("error",(()=>{n()}))})).catch((()=>{console.log(`Get ${e} version failed, [${r}/3]`)}));if(n)return n}throw new Error(`Get ${e} version failed!`)},bk=(()=>{try{return Xr("yarn --version",{stdio:"ignore"}),!0}catch(e){return!1}})()?"yarn":"npm",vk=(e,...t)=>{if(0===t.length)return e;const r=t.shift()||{};return Object.keys(r).forEach((t=>{"object"!=typeof e[t]||Array.isArray(e[t])||"object"!=typeof r[t]||Array.isArray(r[t])?"object"==typeof r[t]?Array.isArray(r[t])?e[t]=[...r[t]]:e[t]={...r[t]}:e[t]=r[t]:vk(e[t],r[t])})),vk(e,...t)},yk=t=>{try{e.readdirSync(t)}catch(r){e.mkdirSync(t,{recursive:!0})}},mk=(r,n)=>{const i=t.dirname(n);yk(i);const o=e.createReadStream(r),u=e.createWriteStream(n);o.pipe(u)},gk=(t,r)=>{yk(r);e.readdirSync(t,{withFileTypes:!0}).forEach((e=>{e.isFile()?mk(`${t}/${e.name}`,`${r}/${e.name}`):e.isDirectory()&&gk(`${t}/${e.name}`,`${r}/${e.name}`)}))},Dk={"简体中文":{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'",dirError:'"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "src", "docs" 等!',descriptionMessage:"设置应用描述",licenseMessage:"设置协议",i18nMessage:"项目需要用到多语言么?",workflowMessage:"是否需要一个自动部署文档到 GitHub Pages 的工作流?"},"english (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'",dirError:'The brackets in "[dir]" means it is an argument, you should replace it with folder name you want to use! E.g.: "src", "docs"',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?"}},_k=async()=>{const{language:e}=await an.exports.prompt([{name:"language",type:"list",message:"Select a language to display / 选择显示语言",choices:["english (US)","简体中文"]}]);return{lang:e,message:Dk[e]}},wk=async(e,t)=>{const r=(e=>Xr(e?"yarn":"npm",["config","get","registry"]).stdout)(t);if("简体中文"===e){const{registry:e}=await an.exports.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return"国内镜像源"===e?"https://registry.npmmirror.com/":r}return r},Ok=((e="")=>new re(e))("vuepress-theme-hope");Ok.command("[dir]","Generate a new vuepress-theme-hope project").action((async r=>{if(!r)return Ok.outputHelp();const{lang:n,message:i}=await _k();if(r.startsWith("[")&&r.endsWith("]"))return console.log(i.dirError);console.log(i.getVersion);const o=t.resolve(process.cwd(),"package.json"),u=(e=>({"docs:build":`vuepress build ${e}`,"docs:clean-dev":`vuepress dev ${e} --clean-cache`,"docs:dev":`vuepress dev ${e}`}))(r),a=await(async()=>({vuepress:`^${await hk("vuepress",bk)}`,"vuepress-theme-hope":`^${await hk("vuepress-theme-hope",bk)}`}))();if(e.existsSync(o)){console.log(i.updatePackage);const t=JSON.parse(e.readFileSync(o,{encoding:"utf-8"}));vk(t,{scripts:u,devDependencies:a}),e.writeFileSync(o,`${JSON.stringify(t,null,2)}\n`,{encoding:"utf-8"})}else{console.log(i.createPackage);const t=await an.exports.prompt([{name:"name",type:"input",message:i.nameMessage,default:"vuepress-theme-hope-template",validate:e=>!!/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u.exec(e)||i.nameError},{name:"version",type:"input",message:i.versionMessage,default:"2.0.0",validate:e=>!!/^[0-9]+\.[0-9]+\.(?:[0=9]+|[0-9]+-[a-z]+\.[0-9])$/u.exec(e)||i.versionError},{name:"description",type:"input",message:i.descriptionMessage,default:"A project of vuepress-theme-hope"},{name:"license",type:"input",message:i.licenseMessage,default:"MIT"}]),r={...t,scripts:u,devDependencies:a};e.writeFileSync(o,`${JSON.stringify(r,null,2)}\n`,{encoding:"utf-8"})}const{i18n:s,workflow:c}=await an.exports.prompt([{name:"i18n",type:"confirm",message:i.i18nMessage,default:!1},{name:"workflow",type:"confirm",message:i.workflowMessage,default:!0}]);console.log(i.template);const l=s?"i18n":"简体中文"===n?"zh-CN":"en-US";var f,d;if(f=t.resolve(__dirname,"../template",l),d=t.resolve(process.cwd(),r),e.statSync(f).isDirectory()?gk(f,d):e.statSync(f).isFile()&&mk(f,d),c){const i=t.resolve(process.cwd(),".github/workflows");yk(i),e.writeFileSync(t.resolve(i,"deploy-docs.yml"),((e,r)=>("简体中文"===r?"\nname: 部署文档\n\non:\n push:\n branches:\n # 确保这是你正在使用的分支名称\n - main\n\njobs:\n deploy-gh-pages:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: actions/checkout@v3\n with:\n fetch-depth: 0\n # 如果你文档需要 Git 子模块,取消注释下一行\n # submodules: true\n\n - uses: actions/cache@v3\n id: node-modules\n with:\n path: node_modules/\n key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}\n restore-keys: |\n ${{ runner.os }}-node-modules-\n\n - name: Install Deps\n if: steps.node-modules.outputs.cache-hit != 'true'\n run: yarn install --frozen-lockfile\n\n - name: Build Docs\n env:\n NODE_OPTIONS: --max_old_space_size=8192\n run: yarn run build:webpack\n\n - name: Deploy\n uses: JamesIves/github-pages-deploy-action@v4\n with:\n # 这是文档部署到的分支名称\n branch: gh-pages\n folder: VUEPRESS_DIST_FOLDER\n\n":"\nname: Deploy Docs\n\non:\n push:\n branches:\n # make sure this is the branch you are using\n - main\n\njobs:\n deploy-gh-pages:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: actions/checkout@v3\n with:\n fetch-depth: 0\n # if your docs needs submodules, uncomment the following line\n # submodules: true\n\n - uses: actions/cache@v3\n id: node-modules\n with:\n path: node_modules/\n key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}\n restore-keys: |\n ${{ runner.os }}-node-modules-\n\n - name: Install Deps\n if: steps.node-modules.outputs.cache-hit != 'true'\n run: yarn install --frozen-lockfile\n\n - name: Build Docs\n env:\n NODE_OPTIONS: --max_old_space_size=4096\n run: yarn run docs:build\n\n - name: Deploy\n uses: JamesIves/github-pages-deploy-action@v4\n with:\n # This is the branch where the docs are deployed to\n branch: gh-pages\n folder: VUEPRESS_DIST_FOLDER\n\n").replace("VUEPRESS_DIST_FOLDER",t.join(e,".vuepress/dist").replace(/\\/g,"/")))(r,n),{encoding:"utf-8"})}const p=t.resolve(process.cwd(),".gitignore"),h=e.existsSync(p)?e.readFileSync(p,{encoding:"utf-8"}):"";e.writeFileSync(p,`${h}${(e=>`\nnode_modules/\n${e}/.vuepress/.cache/\n${e}/.vuepress/.temp/\n${e}/.vuepress/dist/\n`)(r)}`,{encoding:"utf-8"});const b=await wk(n,bk);console.log(i.install),console.warn(i.wait),se.exports.sync(bk,["install","--registry",b],{stdout:"inherit"}),console.log(i.success);const{choise:v}=await an.exports.prompt([{name:"choise",type:"confirm",message:i.devServerAsk,default:!0}]);v?(console.log(i.devServer),await se.exports(bk,["run","docs:dev"],{stdout:"inherit"})):console.log(i.hint)})),Ok.help((()=>[{title:"yarn create vuepress-theme-hope [dir] / npm init vuepress-theme-hope [dir]",body:"Create a vuepress-theme-hope template in [dir]"}])),Ok.parse();
|
|
9
|
+
*/(),i=process.binding("constants"),o=n(),u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",a=/XXXXXX/,s=(i.O_CREAT||i.fs.O_CREAT)|(i.O_EXCL||i.fs.O_EXCL)|(i.O_RDWR||i.fs.O_RDWR),c=i.EBADF||i.os.errno.EBADF,l=i.ENOENT||i.os.errno.ENOENT,f=[];var d=!1,p=!1;function v(e){var t=[],n=null;try{n=r.randomBytes(e)}catch(t){n=r.pseudoRandomBytes(e)}for(var i=0;i<e;i++)t.push(u[n[i]%u.length]);return t.join("")}function y(e){return void 0===e}function m(e,t){return"function"==typeof e?[t||{},e]:y(e)?[{},t]:[e,t]}function g(e){if(e.name)return t.join(e.dir||o,e.name);if(e.template)return e.template.replace(a,v(6));const r=[e.prefix||"tmp-",process.pid,v(12),e.postfix||""].join("");return t.join(e.dir||o,r)}function D(t,r){var n=m(t,r),i=n[0],o=n[1],u=i.name?1:i.tries||3;return isNaN(u)||u<0?o(new Error("Invalid tries")):i.template&&!i.template.match(a)?o(new Error("Invalid template provided")):void function t(){const r=g(i);e.stat(r,(function(e){if(!e)return u-- >0?t():o(new Error("Could not get a unique tmp filename, max tries reached "+r));o(null,r)}))}()}function _(t){var r=m(t)[0],n=r.name?1:r.tries||3;if(isNaN(n)||n<0)throw new Error("Invalid tries");if(r.template&&!r.template.match(a))throw new Error("Invalid template provided");do{const t=g(r);try{e.statSync(t)}catch(e){return t}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function w(r){const n=[r];do{for(var i=n.pop(),o=!1,u=e.readdirSync(i),a=0,s=u.length;a<s;a++){var c=t.join(i,u[a]);e.lstatSync(c).isDirectory()?(o||(o=!0,n.push(i)),n.push(c)):e.unlinkSync(c)}o||e.rmdirSync(i)}while(0!==n.length)}function O(t,r,n){const i=j((function(t){try{0<=t[0]&&e.closeSync(t[0])}catch(e){if(!function(e){return P(e,-c,"EBADF")}(e)&&!C(e))throw e}try{e.unlinkSync(t[1])}catch(e){if(!C(e))throw e}}),[r,t]);return n.keep||f.unshift(i),i}function S(t,r){const n=j(r.unsafeCleanup?w:e.rmdirSync.bind(e),t);return r.keep||f.unshift(n),n}function j(e,t){var r=!1;return function n(i){if(!r){const i=f.indexOf(n);i>=0&&f.splice(i,1),r=!0,e(t)}i&&i(null)}}function x(){if(!p||d)for(;f.length;)try{f[0].call(null)}catch(e){}}function C(e){return P(e,-l,"ENOENT")}function P(e,t,r){return e.code==t||e.code==r}const F=process.versions.node.split(".").map((function(e){return parseInt(e,10)}));return 0===F[0]&&(F[1]<9||9===F[1]&&F[2]<5)&&process.addListener("uncaughtException",(function(e){throw p=!0,x(),e})),process.addListener("exit",(function(e){e&&(p=!0),x()})),ek.tmpdir=o,ek.dir=function(t,r){var n=m(t,r),i=n[0],o=n[1];D(i,(function(t,r){if(t)return o(t);e.mkdir(r,i.mode||448,(function(e){if(e)return o(e);o(null,r,S(r,i))}))}))},ek.dirSync=function(t){var r=m(t)[0];const n=_(r);return e.mkdirSync(n,r.mode||448),{name:n,removeCallback:S(n,r)}},ek.file=function(t,r){var n=m(t,r),i=n[0],o=n[1];i.postfix=y(i.postfix)?".tmp":i.postfix,D(i,(function(t,r){if(t)return o(t);e.open(r,s,i.mode||384,(function(t,n){return t?o(t):i.discardDescriptor?e.close(n,(function(t){if(t){try{e.unlinkSync(r)}catch(e){C(e)||(t=e)}return o(t)}o(null,r,void 0,O(r,-1,i))})):i.detachDescriptor?o(null,r,n,O(r,-1,i)):void o(null,r,n,O(r,n,i))}))}))},ek.fileSync=function(t){var r=m(t)[0];r.postfix=r.postfix||".tmp";const n=r.discardDescriptor||r.detachDescriptor,i=_(r);var o=e.openSync(i,s,r.mode||384);return r.discardDescriptor&&(e.closeSync(o),o=void 0),{name:i,fd:o,removeCallback:O(i,n?-1:o,r)}},ek.tmpName=D,ek.tmpNameSync=_,ek.setGracefulCleanup=function(){d=!0},ek}var rk,nk={};var ik,ok={};var uk,ak={};var sk,ck,lk,fk,dk={};function pk(){if(ck)return zA;ck=1,Object.defineProperty(zA,"__esModule",{value:!0});var e=function(){if(iT)return VA;iT=1;var e=h.default,t=KA(),r=QA(),n=ZA(),i=rT(),o=uT(),u=S,a=[new t,new r.UTF_16BE,new r.UTF_16LE,new r.UTF_32BE,new r.UTF_32LE,new n.sjis,new n.big5,new n.euc_jp,new n.euc_kr,new n.gb_18030,new o.ISO_2022_JP,new o.ISO_2022_KR,new o.ISO_2022_CN,new i.ISO_8859_1,new i.ISO_8859_2,new i.ISO_8859_5,new i.ISO_8859_6,new i.ISO_8859_7,new i.ISO_8859_8,new i.ISO_8859_9,new i.windows_1251,new i.windows_1256,new i.KOI8_R];return VA.detect=function(e,t){for(var r=[],n=0;n<256;n++)r[n]=0;for(n=e.length-1;n>=0;n--)r[255&e[n]]++;var i=!1;for(n=128;n<=159;n+=1)if(0!=r[n]){i=!0;break}var o={fByteStats:r,fC1Bytes:i,fRawInput:e,fRawLength:e.length,fInputBytes:e,fInputLen:e.length},u=a.map((function(e){return e.match(o)})).filter((function(e){return!!e})).sort((function(e,t){return t.confidence-e.confidence}));return t&&!0===t.returnAllMatches?u:u.length>0?u[0].name:null},VA.detectFile=function(t,r,n){var i;"function"==typeof r&&(n=r,r=void 0);var o=function(t,o){if(i&&e.closeSync(i),t)return n(t,null);n(null,u.detect(o,r))};if(r&&r.sampleSize)return i=e.openSync(t,"r"),sample=Buffer.allocUnsafe(r.sampleSize),void e.read(i,sample,0,r.sampleSize,null,(function(e){o(e,sample)}));e.readFile(t,o)},VA.detectFileSync=function(t,r){if(r&&r.sampleSize){var n=e.openSync(t,"r"),i=Buffer.allocUnsafe(r.sampleSize);return e.readSync(n,i,0,r.sampleSize),e.closeSync(n),u.detect(i,r)}return u.detect(e.readFileSync(t),r)},VA.detectAll=function(e,t){return"object"!=typeof t&&(t={}),t.returnAllMatches=!0,u.detect(e,t)},VA.detectFileAll=function(e,t,r){"function"==typeof t&&(r=t,t=void 0),"object"!=typeof t&&(t={}),t.returnAllMatches=!0,u.detectFile(e,t,r)},VA.detectFileAllSync=function(e,t){return"object"!=typeof t&&(t={}),t.returnAllMatches=!0,u.detectFileSync(e,t)},VA}(),t=v.default,r=h.default,n=QT(),i=tk(),o=function(){if(rk)return nk;rk=1;var e=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(nk,"__esModule",{value:!0});var t=function(t){function r(e){var r=this.constructor,n=t.call(this,"Failed to create temporary file for editor")||this;n.originalError=e;var i=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=r.prototype,n}return e(r,t),r}(Error);return nk.CreateFileError=t,nk}();zA.CreateFileError=o.CreateFileError;var u=function(){if(ik)return ok;ik=1;var e=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ok,"__esModule",{value:!0});var t=function(t){function r(e){var r=this.constructor,n=t.call(this,"Failed launch editor")||this;n.originalError=e;var i=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=r.prototype,n}return e(r,t),r}(Error);return ok.LaunchEditorError=t,ok}();zA.LaunchEditorError=u.LaunchEditorError;var a=function(){if(uk)return ak;uk=1;var e=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ak,"__esModule",{value:!0});var t=function(t){function r(e){var r=this.constructor,n=t.call(this,"Failed to read temporary file")||this;n.originalError=e;var i=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=r.prototype,n}return e(r,t),r}(Error);return ak.ReadFileError=t,ak}();zA.ReadFileError=a.ReadFileError;var s=function(){if(sk)return dk;sk=1;var e=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(dk,"__esModule",{value:!0});var t=function(t){function r(e){var r=this.constructor,n=t.call(this,"Failed to cleanup temporary file")||this;n.originalError=e;var i=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=r.prototype,n}return e(r,t),r}(Error);return dk.RemoveFileError=t,dk}();zA.RemoveFileError=s.RemoveFileError,zA.edit=function(e,t){void 0===e&&(e="");var r=new c(e,t);return r.run(),r.cleanup(),r.text},zA.editAsync=function(e,t,r){void 0===e&&(e="");var n=new c(e,r);n.runAsync((function(e,r){if(e)setImmediate(t,e,null);else try{n.cleanup(),setImmediate(t,null,r)}catch(e){setImmediate(t,e,null)}}))};var c=function(){function c(e,t){void 0===e&&(e=""),this.text="",this.fileOptions={},this.text=e,t&&(this.fileOptions=t),this.determineEditor(),this.createTemporaryFile()}return c.splitStringBySpace=function(e){for(var t=[],r="",n=0;n<e.length;n++){var i=e[n];n>0&&" "===i&&"\\"!==e[n-1]&&r.length>0?(t.push(r),r=""):r+=i}return r.length>0&&t.push(r),t},Object.defineProperty(c.prototype,"temp_file",{get:function(){return console.log("DEPRECATED: temp_file. Use tempFile moving forward."),this.tempFile},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"last_exit_status",{get:function(){return console.log("DEPRECATED: last_exit_status. Use lastExitStatus moving forward."),this.lastExitStatus},enumerable:!0,configurable:!0}),c.prototype.run=function(){return this.launchEditor(),this.readTemporaryFile(),this.text},c.prototype.runAsync=function(e){var t=this;try{this.launchEditorAsync((function(){try{t.readTemporaryFile(),setImmediate(e,null,t.text)}catch(t){setImmediate(e,t,null)}}))}catch(t){setImmediate(e,t,null)}},c.prototype.cleanup=function(){this.removeTemporaryFile()},c.prototype.determineEditor=function(){var e=process.env.VISUAL?process.env.VISUAL:process.env.EDITOR?process.env.EDITOR:/^win/.test(process.platform)?"notepad":"vim",t=c.splitStringBySpace(e).map((function(e){return e.replace("\\ "," ")})),r=t.shift();this.editor={args:t,bin:r}},c.prototype.createTemporaryFile=function(){try{this.tempFile=i.tmpNameSync(this.fileOptions);var e={encoding:"utf8"};this.fileOptions.hasOwnProperty("mode")&&(e.mode=this.fileOptions.mode),r.writeFileSync(this.tempFile,this.text,e)}catch(e){throw new o.CreateFileError(e)}},c.prototype.readTemporaryFile=function(){try{var t=r.readFileSync(this.tempFile);if(0===t.length)this.text="";else{var i=e.detect(t).toString();n.encodingExists(i)||(i="utf8"),this.text=n.decode(t,i)}}catch(e){throw new a.ReadFileError(e)}},c.prototype.removeTemporaryFile=function(){try{r.unlinkSync(this.tempFile)}catch(e){throw new s.RemoveFileError(e)}},c.prototype.launchEditor=function(){try{var e=t.spawnSync(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"});this.lastExitStatus=e.status}catch(e){throw new u.LaunchEditorError(e)}},c.prototype.launchEditorAsync=function(e){var r=this;try{t.spawn(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"}).on("exit",(function(t){r.lastExitStatus=t,setImmediate(e)}))}catch(e){throw new u.LaunchEditorError(e)}},c}();return zA.ExternalEditor=c,zA}!function(e){const t=e.exports;t.prompts={},t.Separator=Zn,t.ui={BottomBar:hi,Prompt:kE},t.createPromptModule=function(e){const r=function(n,i){let o;try{o=new t.ui.Prompt(r.prompts,e)}catch(e){return Promise.reject(e)}const u=o.run(n,i);return u.ui=o,u};return r.prompts={},r.registerPrompt=function(e,t){return r.prompts[e]=t,this},r.restoreDefaultPrompts=function(){this.registerPrompt("list",BA()),this.registerPrompt("input",IA()),this.registerPrompt("number",function(){if(cA)return sA;cA=1;const e=IA();return sA=class extends e{filterInput(e){if(e&&"string"==typeof e){const t=(e=e.trim()).match(/(^-?\d+|^\d+\.\d*|^\d*\.\d+)(e\d+)?$/);if(t)return Number(t[0])}return null==this.opt.default?NaN:this.opt.default}},sA}()),this.registerPrompt("confirm",function(){if(fA)return lA;fA=1;const e=$n,{take:t,takeUntil:r}=CO,n=AA(),i=TA();return lA=class extends n{constructor(e,t,r){super(e,t,r);let n=!0;Object.assign(this.opt,{filter(e){let t=n;return null!=e&&""!==e&&(t=/^y(es)?/i.test(e)),t}}),null!=this.opt.default&&(n=Boolean(this.opt.default)),this.opt.default=n?"Y/n":"y/N"}_run(e){this.done=e;const n=i(this.rl);return n.keypress.pipe(r(n.line)).forEach(this.onKeypress.bind(this)),n.line.pipe(t(1)).forEach(this.onEnd.bind(this)),this.render(),this}render(t){let r=this.getQuestion();return r+="boolean"==typeof t?e.cyan(t?"Yes":"No"):this.rl.line,this.screen.render(r),this}onEnd(e){this.status="answered";const t=this.opt.filter(e);this.render(t),this.screen.done(),this.done(t)}onKeypress(){this.render()}},lA}()),this.registerPrompt("rawlist",RA()),this.registerPrompt("expand",LA()),this.registerPrompt("checkbox",NA()),this.registerPrompt("password",function(){if(gA)return mA;gA=1;const e=$n,{map:t,takeUntil:r}=CO,n=AA(),i=TA();function o(e,t){return t="string"==typeof t?t:"*",0===(e=String(e)).length?"":new Array(e.length+1).join(t)}return mA=class extends n{_run(e){this.done=e;const n=i(this.rl),o=n.line.pipe(t(this.filterInput.bind(this))),u=this.handleSubmitEvents(o);return u.success.forEach(this.onEnd.bind(this)),u.error.forEach(this.onError.bind(this)),n.keypress.pipe(r(u.success)).forEach(this.onKeypress.bind(this)),this.render(),this}render(t){let r=this.getQuestion(),n="";"answered"===this.status?r+=this.getMaskedValue(this.answer):r+=this.getMaskedValue(this.rl.line||""),t&&(n="\n"+e.red(">> ")+t),this.screen.render(r,n)}getMaskedValue(t){return"answered"===this.status?this.opt.mask?e.cyan(o(t,this.opt.mask)):e.italic.dim("[hidden]"):this.opt.mask?o(t,this.opt.mask):e.italic.dim("[input is hidden] ")}getSpinningValue(e){return this.getMaskedValue(e)}filterInput(e){return e||(null==this.opt.default?"":this.opt.default)}onEnd(e){this.status="answered",this.answer=e.value,this.render(),this.screen.done(),this.done(e.value)}onError(e){this.render(e.isValid)}onKeypress(){this.opt.default&&(this.opt.default=void 0),this.render()}},mA}()),this.registerPrompt("editor",function(){if(fk)return lk;fk=1;const e=$n,{editAsync:t}=pk(),r=AA(),n=TA(),{Subject:i}=wa;return lk=class extends r{_run(e){this.done=e,this.editorResult=new i;const t=n(this.rl);this.lineSubscription=t.line.subscribe(this.startExternalEditor.bind(this));const r=this.handleSubmitEvents(this.editorResult);return r.success.forEach(this.onEnd.bind(this)),r.error.forEach(this.onError.bind(this)),this.currentText=this.opt.default,this.opt.default=null,this.render(),this}render(t){let r="",n=this.getQuestion();"answered"===this.status?n+=e.dim("Received"):n+=e.dim("Press <enter> to launch your preferred editor."),t&&(r=e.red(">> ")+t),this.screen.render(n,r)}startExternalEditor(){this.rl.pause(),t(this.currentText,this.endExternalEditor.bind(this))}endExternalEditor(e,t){this.rl.resume(),e?this.editorResult.error(e):this.editorResult.next(t)}onEnd(e){this.editorResult.unsubscribe(),this.lineSubscription.unsubscribe(),this.answer=e.value,this.status="answered",this.render(),this.screen.done(),this.done(this.answer)}onError(e){this.render(e.isValid)}},lk}())},r.restoreDefaultPrompts(),r},t.prompt=t.createPromptModule(),t.registerPrompt=function(e,r){t.prompt.registerPrompt(e,r)},t.restoreDefaultPrompts=function(){t.prompt.restoreDefaultPrompts()}}(an);const hk=(()=>{try{return 0===Xr("yarn --version",{stdio:"ignore"}).exitCode}catch(e){return!1}})()?"yarn":"npm",bk=async e=>{for(let t=1;t<=3;t++){const r=await new Promise(((t,r)=>{f.get(`${"npm"===hk?"https://registry.npmjs.org":"https://registry.yarnpkg.com"}/-/package/${e}/dist-tags`,(e=>{if(200===e.statusCode){let r="";e.on("data",(e=>r+=e)),e.on("end",(()=>{t(JSON.parse(r).next)}))}else r()})).on("error",(()=>{r()}))})).catch((()=>{console.log(`Get ${e} version failed, [${t}/3]`)}));if(r)return r}throw new Error(`Get ${e} version failed!`)},vk=(e,...t)=>{if(0===t.length)return e;const r=t.shift()||{};return Object.keys(r).forEach((t=>{"object"!=typeof e[t]||Array.isArray(e[t])||"object"!=typeof r[t]||Array.isArray(r[t])?"object"==typeof r[t]?Array.isArray(r[t])?e[t]=[...r[t]]:e[t]={...r[t]}:e[t]=r[t]:vk(e[t],r[t])})),vk(e,...t)},yk=t=>{try{e.readdirSync(t)}catch(r){e.mkdirSync(t,{recursive:!0})}},mk=(r,n)=>{const i=t.dirname(n);yk(i);const o=e.createReadStream(r),u=e.createWriteStream(n);o.pipe(u)},gk=(t,r)=>{yk(r);e.readdirSync(t,{withFileTypes:!0}).forEach((e=>{e.isFile()?mk(`${t}/${e.name}`,`${r}/${e.name}`):e.isDirectory()&&gk(`${t}/${e.name}`,`${r}/${e.name}`)}))},Dk={"简体中文":{getVersion:"获取依赖的最新版本...",createPackage:"生成 package.json...",updatePackage:"更新 package.json...",template:"生成模板...",wait:"这可能需要数分钟,请耐心等待.\n我们无法正确输出子进程的进度条,所以进程可能会看似未响应",install:"安装依赖...",success:"模板已成功生成!",devServerAsk:"是否想要现在启动 Demo 查看?",devServer:"启动开发服务器...\n启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')",hint:`提示: 请使用 "${hk} run docs:dev" 命令启动开发服务器`,nameMessage:"设置应用名称",nameError:"应用名称应只包含小写字母、数字和连接线 (-)",versionMessage:"设置应用版本号",versionError:"此版本无效,版本号应为 'x.x.x'",dirError:'"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "src", "docs" 等!\n例如: "npm init vuepress-theme-hope@next docs"',descriptionMessage:"设置应用描述",licenseMessage:"设置协议",i18nMessage:"项目需要用到多语言么?",workflowMessage:"是否需要一个自动部署文档到 GitHub Pages 的工作流?"},"english (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 "${hk} 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'",dirError:'The brackets in "[dir]" means it is an argument, you should replace it with folder name you want to use! E.g.: "src", "docs"\nFor example: "npm init vuepress-theme-hope@next docs"',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?"}},_k=async()=>{const{language:e}=await an.exports.prompt([{name:"language",type:"list",message:"Select a language to display / 选择显示语言",choices:["english (US)","简体中文"]}]);return{lang:e,message:Dk[e]}},wk=async e=>{const t=Xr(hk,["config","get","registry"]).stdout;if("简体中文"===e){const{registry:e}=await an.exports.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return"国内镜像源"===e?"https://registry.npmmirror.com/":t}return t},Ok=((e="")=>new re(e))("vuepress-theme-hope");Ok.command("[dir]","Generate a new vuepress-theme-hope project").action((async r=>{if(!r)return Ok.outputHelp();const{lang:n,message:i}=await _k();if(r.startsWith("[")&&r.endsWith("]"))return console.log(i.dirError);console.log(i.getVersion);const o=t.resolve(process.cwd(),"package.json"),u=(e=>({"docs:build":`vuepress build ${e}`,"docs:clean-dev":`vuepress dev ${e} --clean-cache`,"docs:dev":`vuepress dev ${e}`}))(r),a=await(async()=>({vuepress:`^${await bk("vuepress")}`,"vuepress-theme-hope":`^${await bk("vuepress-theme-hope")}`}))();if(e.existsSync(o)){console.log(i.updatePackage);const t=JSON.parse(e.readFileSync(o,{encoding:"utf-8"}));vk(t,{scripts:u,devDependencies:a}),e.writeFileSync(o,`${JSON.stringify(t,null,2)}\n`,{encoding:"utf-8"})}else{console.log(i.createPackage);const t=await an.exports.prompt([{name:"name",type:"input",message:i.nameMessage,default:"vuepress-theme-hope-template",validate:e=>!!/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u.exec(e)||i.nameError},{name:"version",type:"input",message:i.versionMessage,default:"2.0.0",validate:e=>!!/^[0-9]+\.[0-9]+\.(?:[0=9]+|[0-9]+-[a-z]+\.[0-9])$/u.exec(e)||i.versionError},{name:"description",type:"input",message:i.descriptionMessage,default:"A project of vuepress-theme-hope"},{name:"license",type:"input",message:i.licenseMessage,default:"MIT"}]),r={...t,scripts:u,devDependencies:a};e.writeFileSync(o,`${JSON.stringify(r,null,2)}\n`,{encoding:"utf-8"})}const{i18n:s,workflow:c}=await an.exports.prompt([{name:"i18n",type:"confirm",message:i.i18nMessage,default:!1},{name:"workflow",type:"confirm",message:i.workflowMessage,default:!0}]);console.log(i.template);const l=s?"i18n":"简体中文"===n?"zh-CN":"en-US";var f,d;if(f=t.resolve(__dirname,"../template",l),d=t.resolve(process.cwd(),r),e.statSync(f).isDirectory()?gk(f,d):e.statSync(f).isFile()&&mk(f,d),c){const i=t.resolve(process.cwd(),".github/workflows");yk(i),e.writeFileSync(t.resolve(i,"deploy-docs.yml"),((e,r)=>`\nname: ${"简体中文"===r?"部署文档":"Deploy Docs"}\n\non:\n push:\n branches:\n # ${"简体中文"===r?"确保这是你正在使用的分支名称":"make sure this is the branch you are using"}\n - main\n\njobs:\n deploy-gh-pages:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: actions/checkout@v3\n with:\n fetch-depth: 0\n # ${"简体中文"===r?"如果你文档需要 Git 子模块,取消注释下一行":"if your docs needs submodules, uncomment the following line"}\n # submodules: true\n\n - uses: actions/cache@v3\n id: node-modules\n with:\n path: node_modules/\n key: \${{ runner.os }}-node-modules-\${{ hashFiles('${"yarn"===hk?"yarn.lock":"package-lock.json"}') }}\n restore-keys: |\n \${{ runner.os }}-node-modules-\n\n - name: ${"简体中文"===r?"安装依赖":"Install Deps"}\n if: steps.node-modules.outputs.cache-hit != 'true'\n run: ${"yarn"===hk?"yarn install --frozen-lockfile":"npm install"}\n\n - name: ${"简体中文"===r?"构建文档":"Build Docs"}\n env:\n NODE_OPTIONS: --max_old_space_size=4096\n run: ${hk} run docs:build\n\n - name: ${"简体中文"===r?"部署文档":"Deploy Docs"}\n uses: JamesIves/github-pages-deploy-action@v4\n with:\n # ${"简体中文"===r?"这是文档部署到的分支名称":"This is the branch where the docs are deployed to"}\n branch: gh-pages\n folder: ${t.join(e,".vuepress/dist").replace(/\\/g,"/")}\n\n`)(r,n),{encoding:"utf-8"})}const p=t.resolve(process.cwd(),".gitignore"),h=e.existsSync(p)?e.readFileSync(p,{encoding:"utf-8"}):"";e.writeFileSync(p,`${h}${(e=>`\nnode_modules/\n${e}/.vuepress/.cache/\n${e}/.vuepress/.temp/\n${e}/.vuepress/dist/\n`)(r)}`,{encoding:"utf-8"});const b=await wk(n);console.log(i.install),console.warn(i.wait),se.exports.sync(hk,["install","--registry",b],{stdout:"inherit"}),console.log(i.success);const{choise:v}=await an.exports.prompt([{name:"choise",type:"confirm",message:i.devServerAsk,default:!0}]);v?(console.log(i.devServer),await se.exports(hk,["run","docs:dev"],{stdout:"inherit"})):console.log(i.hint)})),Ok.help((()=>[{title:"yarn create vuepress-theme-hope [dir] / npm init vuepress-theme-hope [dir]",body:"Create a vuepress-theme-hope template in [dir]"}])),Ok.parse();
|
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.35",
|
|
4
4
|
"description": "Create vuepress-theme-hope demo project helper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"execa": "^5.1.1",
|
|
42
42
|
"inquirer": "^8.2.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "289c8fda20a3cdc515f426ce2619929aa0329263"
|
|
45
45
|
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
createVNode,
|
|
4
|
+
defineComponent,
|
|
5
|
+
onMounted,
|
|
6
|
+
onUnmounted,
|
|
7
|
+
ref
|
|
8
|
+
} from "./chunk-S7KAUVUC.js";
|
|
9
|
+
import "./chunk-2WZCGDJF.js";
|
|
10
|
+
import {
|
|
11
|
+
init_define_ARTICLE_INFO_LOCALES,
|
|
12
|
+
init_define_BACK_TO_TOP_LOCALES,
|
|
13
|
+
init_define_CODE_COPY_LOCALES,
|
|
14
|
+
init_define_CODE_COPY_OPIONS,
|
|
15
|
+
init_define_CODE_DEMO_OPTIONS,
|
|
16
|
+
init_define_COMMENT_OPTIONS,
|
|
17
|
+
init_define_EXTERNAL_LINK_ICON_LOCALES,
|
|
18
|
+
init_define_MERMAID_OPTIONS,
|
|
19
|
+
init_define_PAGINATION_LOCALES,
|
|
20
|
+
init_define_PHOTO_SWIPE_LOCALES,
|
|
21
|
+
init_define_PHOTO_SWIPE_OPTIONS,
|
|
22
|
+
init_define_READING_TIME_LOCALES,
|
|
23
|
+
init_define_REVEAL_CONFIG,
|
|
24
|
+
init_define_TOC_LOCALES,
|
|
25
|
+
init_define_WALINE_LOCALES
|
|
26
|
+
} from "./chunk-JFXOXVAP.js";
|
|
27
|
+
|
|
28
|
+
// dep:@giscus_vue
|
|
29
|
+
init_define_ARTICLE_INFO_LOCALES();
|
|
30
|
+
init_define_BACK_TO_TOP_LOCALES();
|
|
31
|
+
init_define_CODE_COPY_LOCALES();
|
|
32
|
+
init_define_CODE_COPY_OPIONS();
|
|
33
|
+
init_define_CODE_DEMO_OPTIONS();
|
|
34
|
+
init_define_COMMENT_OPTIONS();
|
|
35
|
+
init_define_MERMAID_OPTIONS();
|
|
36
|
+
init_define_PAGINATION_LOCALES();
|
|
37
|
+
init_define_PHOTO_SWIPE_LOCALES();
|
|
38
|
+
init_define_PHOTO_SWIPE_OPTIONS();
|
|
39
|
+
init_define_READING_TIME_LOCALES();
|
|
40
|
+
init_define_REVEAL_CONFIG();
|
|
41
|
+
init_define_TOC_LOCALES();
|
|
42
|
+
init_define_WALINE_LOCALES();
|
|
43
|
+
init_define_EXTERNAL_LINK_ICON_LOCALES();
|
|
44
|
+
|
|
45
|
+
// ../../node_modules/@giscus/vue/dist/index.es.js
|
|
46
|
+
init_define_ARTICLE_INFO_LOCALES();
|
|
47
|
+
init_define_BACK_TO_TOP_LOCALES();
|
|
48
|
+
init_define_CODE_COPY_LOCALES();
|
|
49
|
+
init_define_CODE_COPY_OPIONS();
|
|
50
|
+
init_define_CODE_DEMO_OPTIONS();
|
|
51
|
+
init_define_COMMENT_OPTIONS();
|
|
52
|
+
init_define_MERMAID_OPTIONS();
|
|
53
|
+
init_define_PAGINATION_LOCALES();
|
|
54
|
+
init_define_PHOTO_SWIPE_LOCALES();
|
|
55
|
+
init_define_PHOTO_SWIPE_OPTIONS();
|
|
56
|
+
init_define_READING_TIME_LOCALES();
|
|
57
|
+
init_define_REVEAL_CONFIG();
|
|
58
|
+
init_define_TOC_LOCALES();
|
|
59
|
+
init_define_WALINE_LOCALES();
|
|
60
|
+
init_define_EXTERNAL_LINK_ICON_LOCALES();
|
|
61
|
+
var e = Object.defineProperty;
|
|
62
|
+
var t = Object.defineProperties;
|
|
63
|
+
var s = Object.getOwnPropertyDescriptors;
|
|
64
|
+
var r = Object.getOwnPropertySymbols;
|
|
65
|
+
var n = Object.prototype.hasOwnProperty;
|
|
66
|
+
var i = Object.prototype.propertyIsEnumerable;
|
|
67
|
+
var o = (t2, s2, r2) => s2 in t2 ? e(t2, s2, { enumerable: true, configurable: true, writable: true, value: r2 }) : t2[s2] = r2;
|
|
68
|
+
var d = "Please consider reporting this error at https://github.com/laymonage/giscus/issues/new.";
|
|
69
|
+
function p(e2) {
|
|
70
|
+
return `[giscus] An error occurred. Error message: "${e2}".`;
|
|
71
|
+
}
|
|
72
|
+
function f(e2) {
|
|
73
|
+
const t2 = document.querySelector(`meta[property='og:${e2}'],meta[name='${e2}']`);
|
|
74
|
+
return t2 ? t2.content : "";
|
|
75
|
+
}
|
|
76
|
+
function h() {
|
|
77
|
+
const e2 = document.getElementById("giscus-css") || document.createElement("style");
|
|
78
|
+
e2.id = "giscus-css", e2.textContent = "\n .giscus, .giscus-frame {\n width: 100%;\n }\n .giscus-frame {\n border: none;\n color-scheme: normal;\n }\n ", document.head.prepend(e2);
|
|
79
|
+
}
|
|
80
|
+
var y = defineComponent({ props: { repo: { type: String, required: true }, repoId: { type: String, required: true }, category: String, categoryId: String, mapping: { type: String, required: true }, term: String, lang: { type: String, default: "en" }, theme: { type: String, default: "light" }, reactionsEnabled: { type: String, default: "1" }, emitMetadata: { type: String, default: "0" }, inputPosition: { type: String, default: "bottom" } }, setup(e2) {
|
|
81
|
+
const a = ref(""), y2 = computed(() => {
|
|
82
|
+
return function({ repo: e3, repoId: t2, category: s2 = "", categoryId: r2 = "", mapping: n2, term: i2 = "", theme: o2 = "light", reactionsEnabled: a2 = "1", emitMetadata: c2 = "0", inputPosition: l2 = "bottom", lang: u = "en", session: g, origin: m }) {
|
|
83
|
+
const d2 = new URL(location.href);
|
|
84
|
+
d2.searchParams.delete("giscus");
|
|
85
|
+
const p2 = d2.toString(), h2 = { origin: m = m || p2, session: g, theme: o2, reactionsEnabled: a2, emitMetadata: c2, inputPosition: l2, repo: e3, repoId: t2, category: s2, categoryId: r2, description: f("description") };
|
|
86
|
+
switch (n2) {
|
|
87
|
+
case "url":
|
|
88
|
+
h2.term = p2;
|
|
89
|
+
break;
|
|
90
|
+
case "title":
|
|
91
|
+
h2.term = document.title;
|
|
92
|
+
break;
|
|
93
|
+
case "og:title":
|
|
94
|
+
h2.term = f("title");
|
|
95
|
+
break;
|
|
96
|
+
case "specific":
|
|
97
|
+
h2.term = i2;
|
|
98
|
+
break;
|
|
99
|
+
case "number":
|
|
100
|
+
h2.number = i2;
|
|
101
|
+
break;
|
|
102
|
+
case "pathname":
|
|
103
|
+
default:
|
|
104
|
+
h2.term = location.pathname.length < 2 ? "index" : location.pathname.substring(1).replace(/\.\w+$/, "");
|
|
105
|
+
}
|
|
106
|
+
return `https://giscus.app/${u}/widget?${new URLSearchParams(h2)}`;
|
|
107
|
+
}((c = ((e3, t2) => {
|
|
108
|
+
for (var s2 in t2 || (t2 = {}))
|
|
109
|
+
n.call(t2, s2) && o(e3, s2, t2[s2]);
|
|
110
|
+
if (r)
|
|
111
|
+
for (var s2 of r(t2))
|
|
112
|
+
i.call(t2, s2) && o(e3, s2, t2[s2]);
|
|
113
|
+
return e3;
|
|
114
|
+
})({}, e2), l = { session: a.value }, t(c, s(l))));
|
|
115
|
+
var c, l;
|
|
116
|
+
});
|
|
117
|
+
onMounted(() => {
|
|
118
|
+
const e3 = location.href, t2 = new URL(e3), s2 = localStorage.getItem("giscus-session");
|
|
119
|
+
if (a.value = t2.searchParams.get("giscus") || "", a.value)
|
|
120
|
+
localStorage.setItem("giscus-session", JSON.stringify(a.value)), t2.searchParams.delete("giscus"), history.replaceState(void 0, document.title, t2.toString());
|
|
121
|
+
else if (s2)
|
|
122
|
+
try {
|
|
123
|
+
a.value = JSON.parse(s2 || "") || "";
|
|
124
|
+
} catch (r2) {
|
|
125
|
+
a.value = "", localStorage.removeItem("giscus-session"), console.warn(`${p(r2 == null ? void 0 : r2.message)} Session has been cleared.`);
|
|
126
|
+
}
|
|
127
|
+
}), onMounted(h);
|
|
128
|
+
const b2 = ref();
|
|
129
|
+
return onMounted(() => {
|
|
130
|
+
const e3 = function(e4, t2 = null) {
|
|
131
|
+
return function(s2) {
|
|
132
|
+
if (s2.origin !== "https://giscus.app")
|
|
133
|
+
return;
|
|
134
|
+
const { data: r2 } = s2;
|
|
135
|
+
if (typeof r2 != "object" || !r2.giscus)
|
|
136
|
+
return;
|
|
137
|
+
if (t2 && r2.giscus.resizeHeight && (t2.style.height = `${r2.giscus.resizeHeight}px`), !r2.giscus.error)
|
|
138
|
+
return;
|
|
139
|
+
const n2 = r2.giscus.error;
|
|
140
|
+
if (n2.includes("Bad credentials") || n2.includes("Invalid state value")) {
|
|
141
|
+
if (localStorage.getItem("giscus-session") !== null)
|
|
142
|
+
return localStorage.removeItem("giscus-session"), e4(), void console.warn(`${p(n2)} Session has been cleared.`);
|
|
143
|
+
console.error(`${p(n2)} No session is stored initially. ${d}`);
|
|
144
|
+
}
|
|
145
|
+
n2.includes("Discussion not found") ? console.warn(`[giscus] ${n2}. A new discussion will be created if a comment/reaction is submitted.`) : console.error(`${p(n2)} ${d}`);
|
|
146
|
+
};
|
|
147
|
+
}(() => a.value = "", b2.value);
|
|
148
|
+
window.addEventListener("message", e3), onUnmounted(() => window.removeEventListener("message", e3));
|
|
149
|
+
}), () => createVNode("div", { className: "giscus" }, [createVNode("iframe", { className: "giscus-frame", title: "Comments", scrolling: "no", src: y2.value, ref: b2 }, null)]);
|
|
150
|
+
} });
|
|
151
|
+
var b = { install: (e2) => e2.component("Giscus", y) };
|
|
152
|
+
export {
|
|
153
|
+
y as Giscus,
|
|
154
|
+
b as plugin
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=@giscus_vue.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["dep:@giscus_vue", "../../../../../../node_modules/@giscus/vue/dist/index.es.js"],
|
|
4
|
+
"sourcesContent": ["\nexport * from \"../../../../../../../node_modules/@giscus/vue/dist/index.es.js\"", "var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,s,r)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[s]=r;import{defineComponent as a,ref as c,computed as l,onMounted as u,onUnmounted as g,createVNode as m}from\"vue\";const d=\"Please consider reporting this error at https://github.com/laymonage/giscus/issues/new.\";function p(e){return`[giscus] An error occurred. Error message: \"${e}\".`}function f(e){const t=document.querySelector(`meta[property='og:${e}'],meta[name='${e}']`);return t?t.content:\"\"}function h(){const e=document.getElementById(\"giscus-css\")||document.createElement(\"style\");e.id=\"giscus-css\",e.textContent=\"\\n .giscus, .giscus-frame {\\n width: 100%;\\n }\\n .giscus-frame {\\n border: none;\\n color-scheme: normal;\\n }\\n \",document.head.prepend(e)}const y=a({props:{repo:{type:String,required:!0},repoId:{type:String,required:!0},category:String,categoryId:String,mapping:{type:String,required:!0},term:String,lang:{type:String,default:\"en\"},theme:{type:String,default:\"light\"},reactionsEnabled:{type:String,default:\"1\"},emitMetadata:{type:String,default:\"0\"},inputPosition:{type:String,default:\"bottom\"}},setup(e){const a=c(\"\"),y=l((()=>{return function({repo:e,repoId:t,category:s=\"\",categoryId:r=\"\",mapping:n,term:i=\"\",theme:o=\"light\",reactionsEnabled:a=\"1\",emitMetadata:c=\"0\",inputPosition:l=\"bottom\",lang:u=\"en\",session:g,origin:m}){const d=new URL(location.href);d.searchParams.delete(\"giscus\");const p=d.toString(),h={origin:m=m||p,session:g,theme:o,reactionsEnabled:a,emitMetadata:c,inputPosition:l,repo:e,repoId:t,category:s,categoryId:r,description:f(\"description\")};switch(n){case\"url\":h.term=p;break;case\"title\":h.term=document.title;break;case\"og:title\":h.term=f(\"title\");break;case\"specific\":h.term=i;break;case\"number\":h.number=i;break;case\"pathname\":default:h.term=location.pathname.length<2?\"index\":location.pathname.substring(1).replace(/\\.\\w+$/,\"\")}return`https://giscus.app/${u}/widget?${new URLSearchParams(h)}`}((c=((e,t)=>{for(var s in t||(t={}))n.call(t,s)&&o(e,s,t[s]);if(r)for(var s of r(t))i.call(t,s)&&o(e,s,t[s]);return e})({},e),l={session:a.value},t(c,s(l))));var c,l}));u((()=>{const e=location.href,t=new URL(e),s=localStorage.getItem(\"giscus-session\");if(a.value=t.searchParams.get(\"giscus\")||\"\",a.value)localStorage.setItem(\"giscus-session\",JSON.stringify(a.value)),t.searchParams.delete(\"giscus\"),history.replaceState(void 0,document.title,t.toString());else if(s)try{a.value=JSON.parse(s||\"\")||\"\"}catch(r){a.value=\"\",localStorage.removeItem(\"giscus-session\"),console.warn(`${p(null==r?void 0:r.message)} Session has been cleared.`)}})),u(h);const b=c();return u((()=>{const e=function(e,t=null){return function(s){if(\"https://giscus.app\"!==s.origin)return;const{data:r}=s;if(\"object\"!=typeof r||!r.giscus)return;if(t&&r.giscus.resizeHeight&&(t.style.height=`${r.giscus.resizeHeight}px`),!r.giscus.error)return;const n=r.giscus.error;if(n.includes(\"Bad credentials\")||n.includes(\"Invalid state value\")){if(null!==localStorage.getItem(\"giscus-session\"))return localStorage.removeItem(\"giscus-session\"),e(),void console.warn(`${p(n)} Session has been cleared.`);console.error(`${p(n)} No session is stored initially. ${d}`)}n.includes(\"Discussion not found\")?console.warn(`[giscus] ${n}. A new discussion will be created if a comment/reaction is submitted.`):console.error(`${p(n)} ${d}`)}}((()=>a.value=\"\"),b.value);window.addEventListener(\"message\",e),g((()=>window.removeEventListener(\"message\",e)))})),()=>m(\"div\",{className:\"giscus\"},[m(\"iframe\",{className:\"giscus-frame\",title:\"Comments\",scrolling:\"no\",src:y.value,ref:b},null)])}}),b={install:e=>e.component(\"Giscus\",y)};export{y as Giscus,b as plugin};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|