mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
enable more features
- enable comments - enable PWA
This commit is contained in:
BIN
docs/.vuepress/public/pwa-icon/chrome-192.png
Normal file
BIN
docs/.vuepress/public/pwa-icon/chrome-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
docs/.vuepress/public/pwa-icon/chrome-512.png
Normal file
BIN
docs/.vuepress/public/pwa-icon/chrome-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
BIN
docs/.vuepress/public/pwa-icon/ios-152.png
Normal file
BIN
docs/.vuepress/public/pwa-icon/ios-152.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
docs/.vuepress/public/pwa-icon/ios-192.png
Normal file
BIN
docs/.vuepress/public/pwa-icon/ios-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
docs/.vuepress/public/pwa-icon/ios-512.png
Normal file
BIN
docs/.vuepress/public/pwa-icon/ios-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
BIN
docs/.vuepress/public/pwa-icon/ms-256.png
Normal file
BIN
docs/.vuepress/public/pwa-icon/ms-256.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 KiB |
@@ -66,26 +66,19 @@ export default hopeTheme({
|
|||||||
// 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.
|
// 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.
|
||||||
// To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
|
// To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
|
||||||
comment: {
|
comment: {
|
||||||
/**
|
provider: "Waline",
|
||||||
* Using Giscus
|
serverURL: "https://comments.snapgenshin.com",
|
||||||
*/
|
emoji: [
|
||||||
// provider: "Giscus",
|
'//unpkg.com/@waline/emojis@1.1.0/weibo',
|
||||||
// repo: "vuepress-theme-hope/giscus-discussions",
|
'//unpkg.com/@waline/emojis@1.1.0/bilibili',
|
||||||
// repoId: "R_kgDOG_Pt2A",
|
'//unpkg.com/@waline/emojis@1.1.0/bmoji',
|
||||||
// category: "Announcements",
|
'//unpkg.com/@waline/emojis@1.1.0/qq',
|
||||||
// categoryId: "DIC_kwDOG_Pt2M4COD69",
|
'//unpkg.com/@waline/emojis@1.1.0/tieba'
|
||||||
|
],
|
||||||
/**
|
dark: "auto",
|
||||||
* Using Twikoo
|
requiredMeta: ['mail'],
|
||||||
*/
|
login: 'enable',
|
||||||
// provider: "Twikoo",
|
reaction: true
|
||||||
// envId: "https://twikoo.ccknbc.vercel.app",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Using Waline
|
|
||||||
*/
|
|
||||||
//provider: "Waline",
|
|
||||||
//serverURL: "https://vuepress-theme-hope-comment.vercel.app",
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Disable features you don't want here
|
// Disable features you don't want here
|
||||||
@@ -135,69 +128,33 @@ export default hopeTheme({
|
|||||||
"Catalog"
|
"Catalog"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
pwa: false
|
|
||||||
/**
|
|
||||||
pwa: {
|
pwa: {
|
||||||
favicon: "/favicon.ico",
|
favicon: "/favicon.ico",
|
||||||
cacheHTML: true,
|
cacheHTML: true,
|
||||||
cachePic: true,
|
cachePic: true,
|
||||||
appendBase: true,
|
appendBase: true,
|
||||||
apple: {
|
apple: {
|
||||||
icon: "/assets/icon/apple-icon-152.png",
|
icon: "/favicon.ico",
|
||||||
statusBarColor: "black",
|
statusBarColor: "black",
|
||||||
},
|
},
|
||||||
msTile: {
|
msTile: {
|
||||||
image: "/assets/icon/ms-icon-144.png",
|
image: "/favicon.ico",
|
||||||
color: "#ffffff",
|
color: "#ffffff",
|
||||||
},
|
},
|
||||||
manifest: {
|
manifest: {
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: "/assets/icon/chrome-mask-512.png",
|
src: "/pwa-icon/chrome-512.png",
|
||||||
sizes: "512x512",
|
|
||||||
purpose: "maskable",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "/assets/icon/chrome-mask-192.png",
|
|
||||||
sizes: "192x192",
|
|
||||||
purpose: "maskable",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "/assets/icon/chrome-512.png",
|
|
||||||
sizes: "512x512",
|
sizes: "512x512",
|
||||||
type: "image/png",
|
type: "image/png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "/assets/icon/chrome-192.png",
|
src: "/pwa-icon/chrome-192.png",
|
||||||
sizes: "192x192",
|
sizes: "192x192",
|
||||||
type: "image/png",
|
type: "image/png",
|
||||||
},
|
},
|
||||||
],
|
]
|
||||||
shortcuts: [
|
|
||||||
{
|
|
||||||
name: "Demo",
|
|
||||||
short_name: "Demo",
|
|
||||||
url: "/demo/",
|
|
||||||
icons: [
|
|
||||||
{
|
|
||||||
src: "/assets/icon/guide-maskable.png",
|
|
||||||
sizes: "192x192",
|
|
||||||
purpose: "maskable",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "/assets/icon/guide-monochrome.png",
|
|
||||||
sizes: "192x192",
|
|
||||||
purpose: "monochrome",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
**/
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user