mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-19 13:19:42 +02:00
Added misprints (#69)
* Added misprints * Rebuilt bundle in prod mode * Added config from .codexdocsrc * Updated .sample
This commit is contained in:
parent
09abc25c48
commit
98cb88f3af
9 changed files with 42 additions and 10 deletions
|
@ -6,5 +6,6 @@
|
||||||
"Plugins",
|
"Plugins",
|
||||||
{"title": "Support Project", "uri": "/support"}
|
{"title": "Support Project", "uri": "/support"}
|
||||||
],
|
],
|
||||||
"landingFrameSrc": "https://codex.so/editor?frame=1"
|
"landingFrameSrc": "https://codex.so/editor?frame=1",
|
||||||
|
"chatId": "12344564"
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
"editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,image,table,inline-code,marker}@latest"
|
"editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,image,table,inline-code,marker}@latest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@codexteam/misprints": "^1.0.0",
|
||||||
"bcrypt": "^3.0.3",
|
"bcrypt": "^3.0.3",
|
||||||
"commander": "^2.19.0",
|
"commander": "^2.19.0",
|
||||||
"cookie-parser": "~1.4.3",
|
"cookie-parser": "~1.4.3",
|
||||||
|
|
2
public/dist/code-styling.bundle.js
vendored
2
public/dist/code-styling.bundle.js
vendored
File diff suppressed because one or more lines are too long
12
public/dist/editor.bundle.js
vendored
12
public/dist/editor.bundle.js
vendored
File diff suppressed because one or more lines are too long
4
public/dist/main.bundle.js
vendored
4
public/dist/main.bundle.js
vendored
File diff suppressed because one or more lines are too long
|
@ -14,6 +14,7 @@ import ModuleDispatcher from 'module-dispatcher';
|
||||||
*/
|
*/
|
||||||
import Writing from './modules/writing';
|
import Writing from './modules/writing';
|
||||||
import Page from './modules/page';
|
import Page from './modules/page';
|
||||||
|
import Extensions from './modules/extensions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main app class
|
* Main app class
|
||||||
|
@ -25,6 +26,7 @@ class Docs {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.writing = new Writing();
|
this.writing = new Writing();
|
||||||
this.page = new Page();
|
this.page = new Page();
|
||||||
|
this.extensions = new Extensions();
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', (event) => {
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
this.docReady();
|
this.docReady();
|
||||||
|
|
17
src/frontend/js/modules/extensions.js
Normal file
17
src/frontend/js/modules/extensions.js
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import Misprints from '@codexteam/misprints';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @class Extensions
|
||||||
|
* @classdesc Class for extensions module
|
||||||
|
*/
|
||||||
|
export default class Extensions {
|
||||||
|
/**
|
||||||
|
* Initialize extensions
|
||||||
|
*/
|
||||||
|
constructor() {
|
||||||
|
this.misprints = new Misprints({
|
||||||
|
chatId: window.config.chatId
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -8,6 +8,12 @@
|
||||||
<meta property="article:modified_time" content="{{ (page.body.time / 1000) | date("c") }}" />
|
<meta property="article:modified_time" content="{{ (page.body.time / 1000) | date("c") }}" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
</head>
|
</head>
|
||||||
|
<script>
|
||||||
|
window.config = {
|
||||||
|
chatId: ''
|
||||||
|
};
|
||||||
|
window.config.chatId = Number("{{ config.chatId }}");
|
||||||
|
</script>
|
||||||
<body>
|
<body>
|
||||||
{% include "components/header.twig" with res.locals.isAuthorized %}
|
{% include "components/header.twig" with res.locals.isAuthorized %}
|
||||||
<div class="docs">
|
<div class="docs">
|
||||||
|
|
|
@ -598,6 +598,11 @@
|
||||||
lodash "^4.17.10"
|
lodash "^4.17.10"
|
||||||
to-fast-properties "^2.0.0"
|
to-fast-properties "^2.0.0"
|
||||||
|
|
||||||
|
"@codexteam/misprints@^1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@codexteam/misprints/-/misprints-1.0.0.tgz#e5a7dec7389fe0f176cd51a040d6dc9bdc252086"
|
||||||
|
integrity sha512-R2IO1JmcaWCuWNPFVEAyar2HqQFuJwkeQUyVF0ovY4ip7z+VnVTYWxeYhCx7eZYEQCyXmcJooICQDihtn16lOA==
|
||||||
|
|
||||||
"@csstools/convert-colors@^1.4.0":
|
"@csstools/convert-colors@^1.4.0":
|
||||||
version "1.4.0"
|
version "1.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
|
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue