mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-19 13:19:42 +02:00
Misprints fix (#72)
* Added misprints * Rebuilt bundle in prod mode * Added config from .codexdocsrc * Updated .sample * Removed chatId type conversion * Renamed chatId to misprintsChatId * Removed duplicate package * Moved misprintsChatId initialization
This commit is contained in:
parent
98cb88f3af
commit
93bf21fa2d
5 changed files with 6 additions and 7 deletions
|
@ -7,5 +7,5 @@
|
||||||
{"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"
|
"misprintsChatId": "12344564"
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
"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",
|
||||||
|
@ -68,6 +67,7 @@
|
||||||
"eslint-plugin-standard": "^4.0.0",
|
"eslint-plugin-standard": "^4.0.0",
|
||||||
"highlight.js": "^9.13.1",
|
"highlight.js": "^9.13.1",
|
||||||
"husky": "^1.1.2",
|
"husky": "^1.1.2",
|
||||||
|
"@codexteam/misprints": "^1.0.0",
|
||||||
"mini-css-extract-plugin": "^0.4.3",
|
"mini-css-extract-plugin": "^0.4.3",
|
||||||
"mocha": "^5.2.0",
|
"mocha": "^5.2.0",
|
||||||
"mocha-sinon": "^2.1.0",
|
"mocha-sinon": "^2.1.0",
|
||||||
|
|
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
|
@ -10,7 +10,7 @@ export default class Extensions {
|
||||||
*/
|
*/
|
||||||
constructor() {
|
constructor() {
|
||||||
this.misprints = new Misprints({
|
this.misprints = new Misprints({
|
||||||
chatId: window.config.chatId
|
chatId: window.config.misprintsChatId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,8 @@
|
||||||
</head>
|
</head>
|
||||||
<script>
|
<script>
|
||||||
window.config = {
|
window.config = {
|
||||||
chatId: ''
|
misprintsChatId: "{{ config.misprintsChatId }}"
|
||||||
};
|
};
|
||||||
window.config.chatId = Number("{{ config.chatId }}");
|
|
||||||
</script>
|
</script>
|
||||||
<body>
|
<body>
|
||||||
{% include "components/header.twig" with res.locals.isAuthorized %}
|
{% include "components/header.twig" with res.locals.isAuthorized %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue