1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-07 22:45:23 +02:00

Added reactions

This commit is contained in:
DorofeevMark 2019-03-14 12:55:49 +03:00
parent 93bf21fa2d
commit a2bc8a55e2
6 changed files with 1627 additions and 117 deletions

View file

@ -16,6 +16,7 @@
"editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,image,table,inline-code,marker}@latest"
},
"dependencies": {
"@codexteam/reactions": "^1.0.2",
"bcrypt": "^3.0.3",
"commander": "^2.19.0",
"cookie-parser": "~1.4.3",
@ -42,6 +43,7 @@
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.1.0",
"@codexteam/misprints": "^1.0.0",
"@editorjs/code": "^2.4.0",
"@editorjs/delimiter": "^1.1.0",
"@editorjs/editorjs": "^2.11.8",
@ -67,7 +69,6 @@
"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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,5 @@
import Misprints from '@codexteam/misprints';
import Reactions from '@codexteam/reactions';
/**
* @class Extensions
@ -12,6 +13,11 @@ export default class Extensions {
this.misprints = new Misprints({
chatId: window.config.misprintsChatId
});
}
this.reactions = new Reactions({
parent: '.page',
title: 'What do you think?',
reactions: ['👍', '👌', '👎']
});
}
}

View file

@ -603,6 +603,13 @@
resolved "https://registry.yarnpkg.com/@codexteam/misprints/-/misprints-1.0.0.tgz#e5a7dec7389fe0f176cd51a040d6dc9bdc252086"
integrity sha512-R2IO1JmcaWCuWNPFVEAyar2HqQFuJwkeQUyVF0ovY4ip7z+VnVTYWxeYhCx7eZYEQCyXmcJooICQDihtn16lOA==
"@codexteam/reactions@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@codexteam/reactions/-/reactions-1.0.2.tgz#2d0e305c9ec8692349c479c5eb807e337e16f4ba"
integrity sha512-tSo3nhSWrpkpEKQSOs976oeimW+exI0G8l2l5R+8VTkPzAgl4Zw83maYig6DaWaB0nzOnUWqr8eujD/pxbVJmQ==
dependencies:
dotenv-webpack "^1.5.7"
"@csstools/convert-colors@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
@ -2381,6 +2388,20 @@ dot-prop@^4.1.0, dot-prop@^4.1.1:
dependencies:
is-obj "^1.0.0"
dotenv-defaults@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/dotenv-defaults/-/dotenv-defaults-1.0.2.tgz#441cf5f067653fca4bbdce9dd3b803f6f84c585d"
integrity sha512-iXFvHtXl/hZPiFj++1hBg4lbKwGM+t/GlvELDnRtOFdjXyWP7mubkVr+eZGWG62kdsbulXAef6v/j6kiWc/xGA==
dependencies:
dotenv "^6.2.0"
dotenv-webpack@^1.5.7:
version "1.7.0"
resolved "https://registry.yarnpkg.com/dotenv-webpack/-/dotenv-webpack-1.7.0.tgz#4384d8c57ee6f405c296278c14a9f9167856d3a1"
integrity sha512-wwNtOBW/6gLQSkb8p43y0Wts970A3xtNiG/mpwj9MLUhtPCQG6i+/DSXXoNN7fbPCU/vQ7JjwGmgOeGZSSZnsw==
dependencies:
dotenv-defaults "^1.0.2"
dotenv@^6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064"