Skip to content

Commit ac74e80

Browse files
committed
change vuepress for ssr
1 parent c1157a7 commit ac74e80

31 files changed

+10332
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# shamefully-hoist=true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import clientAppEnhance0 from '/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/plugin-external-link-icon/lib/client/clientAppEnhance.js'
2+
import clientAppEnhance1 from '/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/plugin-medium-zoom/lib/client/clientAppEnhance.js'
3+
import clientAppEnhance2 from '/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/plugin-theme-data/lib/client/clientAppEnhance.js'
4+
import clientAppEnhance3 from '/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/theme-default/lib/client/clientAppEnhance.js'
5+
6+
export const clientAppEnhances = [
7+
clientAppEnhance0,
8+
clientAppEnhance1,
9+
clientAppEnhance2,
10+
clientAppEnhance3,
11+
]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import clientAppRootComponent0 from '/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/plugin-back-to-top/lib/client/components/BackToTop.js'
2+
3+
export const clientAppRootComponents = [
4+
clientAppRootComponent0,
5+
]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import clientAppSetup0 from '/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/plugin-active-header-links/lib/client/clientAppSetup.js'
2+
import clientAppSetup1 from '/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/plugin-nprogress/lib/client/clientAppSetup.js'
3+
import clientAppSetup2 from '/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/theme-default/lib/client/clientAppSetup.js'
4+
5+
export const clientAppSetups = [
6+
clientAppSetup0,
7+
clientAppSetup1,
8+
clientAppSetup2,
9+
]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineAsyncComponent } from 'vue'
2+
3+
export const layoutComponents = {
4+
"404": defineAsyncComponent(() => import("/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/theme-default/lib/client/layouts/404.vue")),
5+
"Layout": defineAsyncComponent(() => import("/Users/mmdapl/Desktop/github/JavaScriptCollection/node_modules/@vuepress/theme-default/lib/client/layouts/Layout.vue")),
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineAsyncComponent } from 'vue'
2+
3+
export const pagesComponents = {
4+
// path: /
5+
"v-8daa1a0e": defineAsyncComponent(() => import(/* webpackChunkName: "v-8daa1a0e" */"/Users/mmdapl/Desktop/github/JavaScriptCollection/docs/.vuepress/.temp/pages/index.html.vue")),
6+
// path: /read_books/
7+
"v-1b38ae16": defineAsyncComponent(() => import(/* webpackChunkName: "v-1b38ae16" */"/Users/mmdapl/Desktop/github/JavaScriptCollection/docs/.vuepress/.temp/pages/read_books/index.html.vue")),
8+
// path: /read_books/cs_books/%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BA%E7%9A%84Node.js/
9+
"v-4450f016": defineAsyncComponent(() => import(/* webpackChunkName: "v-4450f016" */"/Users/mmdapl/Desktop/github/JavaScriptCollection/docs/.vuepress/.temp/pages/read_books/cs_books/深入浅出的Node.js/index.html.vue")),
10+
// path: /404.html
11+
"v-3706649a": defineAsyncComponent(() => import(/* webpackChunkName: "v-3706649a" */"/Users/mmdapl/Desktop/github/JavaScriptCollection/docs/.vuepress/.temp/pages/404.html.vue")),
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const pagesData = {
2+
// path: /
3+
"v-8daa1a0e": () => import(/* webpackChunkName: "v-8daa1a0e" */"/Users/mmdapl/Desktop/github/JavaScriptCollection/docs/.vuepress/.temp/pages/index.html.js").then(({ data }) => data),
4+
// path: /read_books/
5+
"v-1b38ae16": () => import(/* webpackChunkName: "v-1b38ae16" */"/Users/mmdapl/Desktop/github/JavaScriptCollection/docs/.vuepress/.temp/pages/read_books/index.html.js").then(({ data }) => data),
6+
// path: /read_books/cs_books/%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BA%E7%9A%84Node.js/
7+
"v-4450f016": () => import(/* webpackChunkName: "v-4450f016" */"/Users/mmdapl/Desktop/github/JavaScriptCollection/docs/.vuepress/.temp/pages/read_books/cs_books/深入浅出的Node.js/index.html.js").then(({ data }) => data),
8+
// path: /404.html
9+
"v-3706649a": () => import(/* webpackChunkName: "v-3706649a" */"/Users/mmdapl/Desktop/github/JavaScriptCollection/docs/.vuepress/.temp/pages/404.html.js").then(({ data }) => data),
10+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { Vuepress } from '@vuepress/client/lib/components/Vuepress'
2+
3+
const routeItems = [
4+
["v-8daa1a0e","/",{"title":""},["/index.html","/README.md"]],
5+
["v-1b38ae16","/read_books/",{"title":""},["/read_books/index.html","/read_books/Readme.md"]],
6+
["v-4450f016","/read_books/cs_books/%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BA%E7%9A%84Node.js/",{"title":""},["/read_books/cs_books/深入浅出的Node.js/","/read_books/cs_books/%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BA%E7%9A%84Node.js/index.html","/read_books/cs_books/深入浅出的Node.js/readme.md","/read_books/cs_books/%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BA%E7%9A%84Node.js/readme.md"]],
7+
["v-3706649a","/404.html",{"title":""},["/404"]],
8+
]
9+
10+
export const pagesRoutes = routeItems.reduce(
11+
(result, [name, path, meta, redirects]) => {
12+
result.push(
13+
{
14+
name,
15+
path,
16+
component: Vuepress,
17+
meta,
18+
},
19+
...redirects.map((item) => ({
20+
path: item,
21+
redirect: path,
22+
}))
23+
)
24+
return result
25+
},
26+
[
27+
{
28+
name: "404",
29+
path: "/:catchAll(.*)",
30+
component: Vuepress,
31+
}
32+
]
33+
)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
export const siteData = {
2+
"base": "/",
3+
"lang": "en-US",
4+
"title": "JavaScriptCollection",
5+
"description": "A lightweight creator for VuePress project.",
6+
"head": [
7+
[
8+
"link",
9+
{
10+
"rel": "icon",
11+
"href": "/assets/logo.png"
12+
}
13+
]
14+
],
15+
"locales": {}
16+
}
17+
18+
if (import.meta.webpackHot) {
19+
import.meta.webpackHot.accept()
20+
if (__VUE_HMR_RUNTIME__.updateSiteData) {
21+
__VUE_HMR_RUNTIME__.updateSiteData(siteData)
22+
}
23+
}
24+
25+
if (import.meta.hot) {
26+
import.meta.hot.accept(({ siteData }) => {
27+
__VUE_HMR_RUNTIME__.updateSiteData(siteData)
28+
})
29+
}

0 commit comments

Comments
 (0)