enable more features

- enable comments
- enable PWA
This commit is contained in:
Masterain
2023-01-11 18:46:46 -08:00
parent d96f0101b0
commit 6057207628
7 changed files with 18 additions and 61 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

View File

@@ -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",
},
],
},
],
}, },
}, },
**/
}, },
}); });