mirror of https://github.com/Requarks/wiki.git
committed by
Nicolas Giard
20 changed files with 1301 additions and 1076 deletions
Split View
Diff Options
-
23client/components/admin/admin-comments.vue
-
2client/components/admin/admin-extensions.vue
-
2client/components/admin/admin-general.vue
-
2client/components/editor/editor-markdown.vue
-
17client/themes/default/components/page.vue
-
10client/themes/default/scss/app.scss
-
86package.json
-
33server/controllers/common.js
-
1server/core/kernel.js
-
3server/graph/resolvers/comment.js
-
65server/models/commentProviders.js
-
12server/modules/comments/commento/code.yml
-
3server/modules/comments/commento/definition.yml
-
11server/modules/comments/default/comment.js
-
1server/modules/comments/default/definition.yml
-
8server/modules/comments/disqus/code.yml
-
3server/modules/comments/disqus/definition.yml
-
2server/modules/rendering/markdown-emoji/renderer.js
-
9server/views/page.pug
-
2084yarn.lock
@ -1,4 +1,12 @@ |
|||
main: | |
|||
<div id="commento"></div> |
|||
bodyEnd: | |
|||
<script defer src="{{instanceUrl}}/js/commento.js"></script> |
|||
body: | |
|||
<script> |
|||
window.onload = function() { |
|||
var d = document, s = d.createElement('script'); |
|||
s.src = '{{instanceUrl}}/js/commento.js'; |
|||
s.defer = true |
|||
s.setAttribute('data-auto-init', true); |
|||
(d.head || d.body).appendChild(s); |
|||
}; |
|||
</script> |
@ -0,0 +1,11 @@ |
|||
/* global WIKI */ |
|||
|
|||
// ------------------------------------
|
|||
// Default Comment Provider
|
|||
// ------------------------------------
|
|||
|
|||
module.exports = { |
|||
add (args) { |
|||
|
|||
} |
|||
} |
@ -1,14 +1,14 @@ |
|||
main: | |
|||
<div id="disqus_thread"></div> |
|||
bodyEnd: | |
|||
body: | |
|||
<script> |
|||
var disqus_config = function () { |
|||
this.page.url = {{pageUrl}}; |
|||
this.page.identifier = {{pageId}}; |
|||
this.page.url = '{{pageUrl}}'; |
|||
this.page.identifier = '{{pageId}}'; |
|||
}; |
|||
(function() { |
|||
var d = document, s = d.createElement('script'); |
|||
s.src = 'https://{{shortName}}.disqus.com/embed.js'; |
|||
s.src = 'https://{{accountName}}.disqus.com/embed.js'; |
|||
s.setAttribute('data-timestamp', +new Date()); |
|||
(d.head || d.body).appendChild(s); |
|||
})(); |
|||
|
2084
yarn.lock
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save