1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 05:09:41 +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:
DorofeevMark 2019-03-14 12:36:25 +03:00 committed by GitHub
parent 98cb88f3af
commit 93bf21fa2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 7 deletions

View file

@ -7,5 +7,5 @@
{"title": "Support Project", "uri": "/support"}
],
"landingFrameSrc": "https://codex.so/editor?frame=1",
"chatId": "12344564"
"misprintsChatId": "12344564"
}

View file

@ -16,7 +16,6 @@
"editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,image,table,inline-code,marker}@latest"
},
"dependencies": {
"@codexteam/misprints": "^1.0.0",
"bcrypt": "^3.0.3",
"commander": "^2.19.0",
"cookie-parser": "~1.4.3",
@ -68,6 +67,7 @@
"eslint-plugin-standard": "^4.0.0",
"highlight.js": "^9.13.1",
"husky": "^1.1.2",
"@codexteam/misprints": "^1.0.0",
"mini-css-extract-plugin": "^0.4.3",
"mocha": "^5.2.0",
"mocha-sinon": "^2.1.0",

File diff suppressed because one or more lines are too long

View file

@ -10,7 +10,7 @@ export default class Extensions {
*/
constructor() {
this.misprints = new Misprints({
chatId: window.config.chatId
chatId: window.config.misprintsChatId
});
}

View file

@ -10,9 +10,8 @@
</head>
<script>
window.config = {
chatId: ''
misprintsChatId: "{{ config.misprintsChatId }}"
};
window.config.chatId = Number("{{ config.chatId }}");
</script>
<body>
{% include "components/header.twig" with res.locals.isAuthorized %}