mirror of https://github.com/Requarks/wiki.git
10 changed files with 127 additions and 85 deletions
Unified View
Diff Options
-
2client/components/admin.vue
-
118client/components/admin/admin-general.vue
-
52client/graph/admin/site/site-mutation-save-config.gql
-
25client/graph/admin/site/site-query-config.gql
-
1client/store/site.js
-
5client/themes/default/components/nav-footer.vue
-
2server/app/data.yml
-
4server/graph/resolvers/site.js
-
2server/graph/schemas/site.graphql
-
1server/master.js
@ -1,52 +0,0 @@ |
|||||
mutation ( |
|
||||
$host: String! |
|
||||
$title: String! |
|
||||
$description: String! |
|
||||
$robots: [String]! |
|
||||
$analyticsService: String! |
|
||||
$analyticsId: String! |
|
||||
$company: String! |
|
||||
$logoUrl: String! |
|
||||
$featurePageRatings: Boolean! |
|
||||
$featurePageComments: Boolean! |
|
||||
$featurePersonalWikis: Boolean! |
|
||||
$securityIframe: Boolean! |
|
||||
$securityReferrerPolicy: Boolean! |
|
||||
$securityTrustProxy: Boolean! |
|
||||
$securitySRI: Boolean! |
|
||||
$securityHSTS: Boolean! |
|
||||
$securityHSTSDuration: Int! |
|
||||
$securityCSP: Boolean! |
|
||||
$securityCSPDirectives: String! |
|
||||
) { |
|
||||
site { |
|
||||
updateConfig( |
|
||||
host: $host, |
|
||||
title: $title, |
|
||||
description: $description, |
|
||||
robots: $robots, |
|
||||
analyticsService: $analyticsService, |
|
||||
analyticsId: $analyticsId, |
|
||||
company: $company, |
|
||||
logoUrl: $logoUrl, |
|
||||
featurePageRatings: $featurePageRatings, |
|
||||
featurePageComments: $featurePageComments, |
|
||||
featurePersonalWikis: $featurePersonalWikis, |
|
||||
securityIframe: $securityIframe, |
|
||||
securityReferrerPolicy: $securityReferrerPolicy, |
|
||||
securityTrustProxy: $securityTrustProxy, |
|
||||
securitySRI: $securitySRI, |
|
||||
securityHSTS: $securityHSTS, |
|
||||
securityHSTSDuration: $securityHSTSDuration, |
|
||||
securityCSP: $securityCSP, |
|
||||
securityCSPDirectives: $securityCSPDirectives |
|
||||
) { |
|
||||
responseResult { |
|
||||
succeeded |
|
||||
errorCode |
|
||||
slug |
|
||||
message |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,25 +0,0 @@ |
|||||
{ |
|
||||
site { |
|
||||
config { |
|
||||
host |
|
||||
title |
|
||||
description |
|
||||
robots |
|
||||
analyticsService |
|
||||
analyticsId |
|
||||
company |
|
||||
logoUrl |
|
||||
featurePageRatings |
|
||||
featurePageComments |
|
||||
featurePersonalWikis |
|
||||
securityIframe |
|
||||
securityReferrerPolicy |
|
||||
securityTrustProxy |
|
||||
securitySRI |
|
||||
securityHSTS |
|
||||
securityHSTSDuration |
|
||||
securityCSP |
|
||||
securityCSPDirectives |
|
||||
} |
|
||||
} |
|
||||
} |
|
xxxxxxxxxx