feat: admin comments page
This commit is contained in:
15
server/modules/comments/disqus/code.yml
Normal file
15
server/modules/comments/disqus/code.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
main: |
|
||||
<div id="disqus_thread"></div>
|
||||
bodyEnd: |
|
||||
<script>
|
||||
var disqus_config = function () {
|
||||
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.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
16
server/modules/comments/disqus/definition.yml
Normal file
16
server/modules/comments/disqus/definition.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
key: disqus
|
||||
title: Disqus
|
||||
description: Disqus help publishers power online discussions with comments.
|
||||
author: requarks.io
|
||||
logo: https://static.requarks.io/logo/disqus.svg
|
||||
website: https://disqus.com/
|
||||
displayMode: footer
|
||||
codeTemplate: true
|
||||
isAvailable: true
|
||||
props:
|
||||
accountName:
|
||||
type: String
|
||||
title: Shortname
|
||||
default: ''
|
||||
hint: Unique identifier from Disqus to identify your website
|
||||
order: 1
|
Reference in New Issue
Block a user