feat: content license notice option
This commit is contained in:
		| @@ -42,6 +42,8 @@ defaults: | ||||
|       clientId: '' | ||||
|       isEnabled: false | ||||
|     title: Wiki.js | ||||
|     company: '' | ||||
|     contentLicense: '' | ||||
|     logoUrl: https://static.requarks.io/logo/wikijs-butterfly.svg | ||||
|     theming: | ||||
|       theme: 'default' | ||||
|   | ||||
| @@ -15,6 +15,7 @@ module.exports = { | ||||
|         host: WIKI.config.host, | ||||
|         title: WIKI.config.title, | ||||
|         company: WIKI.config.company, | ||||
|         contentLicense: WIKI.config.contentLicense, | ||||
|         logoUrl: WIKI.config.logoUrl, | ||||
|         ...WIKI.config.seo, | ||||
|         ...WIKI.config.features, | ||||
| @@ -28,6 +29,7 @@ module.exports = { | ||||
|         WIKI.config.host = args.host | ||||
|         WIKI.config.title = args.title | ||||
|         WIKI.config.company = args.company | ||||
|         WIKI.config.contentLicense = args.contentLicense | ||||
|         WIKI.config.seo = { | ||||
|           description: args.description, | ||||
|           robots: args.robots, | ||||
| @@ -50,7 +52,7 @@ module.exports = { | ||||
|           securityCSP: args.securityCSP, | ||||
|           securityCSPDirectives: args.securityCSPDirectives | ||||
|         } | ||||
|         await WIKI.configSvc.saveToDb(['host', 'title', 'company', 'seo', 'logoUrl', 'features', 'security']) | ||||
|         await WIKI.configSvc.saveToDb(['host', 'title', 'company', 'contentLicense', 'seo', 'logoUrl', 'features', 'security']) | ||||
|  | ||||
|         if (WIKI.config.security.securityTrustProxy) { | ||||
|           WIKI.app.enable('trust proxy') | ||||
|   | ||||
| @@ -31,6 +31,7 @@ type SiteMutation { | ||||
|     analyticsService: String! | ||||
|     analyticsId: String! | ||||
|     company: String! | ||||
|     contentLicense: String! | ||||
|     logoUrl: String! | ||||
|     featurePageRatings: Boolean! | ||||
|     featurePageComments: Boolean! | ||||
| @@ -58,6 +59,7 @@ type SiteConfig { | ||||
|   analyticsService: String! | ||||
|   analyticsId: String! | ||||
|   company: String! | ||||
|   contentLicense: String! | ||||
|   logoUrl: String! | ||||
|   featurePageRatings: Boolean! | ||||
|   featurePageComments: Boolean! | ||||
|   | ||||
| @@ -145,6 +145,7 @@ module.exports = async () => { | ||||
|       lang: WIKI.config.lang.code, | ||||
|       rtl: WIKI.config.lang.rtl, | ||||
|       company: WIKI.config.company, | ||||
|       contentLicense: WIKI.config.contentLicense, | ||||
|       logoUrl: WIKI.config.logoUrl | ||||
|     } | ||||
|     res.locals.langs = await WIKI.models.locales.getNavLocales({ cache: true }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user