Added emoji picker to card description edit and card comment edit.

Removed Summernote wysiwyg editor, package-lock.json etc.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2021-03-28 06:56:05 +03:00
parent 3ddfe7c1fd
commit 84fde1ecfc
9 changed files with 13 additions and 15811 deletions

1
.gitignore vendored
View file

@ -32,3 +32,4 @@ ehthumbs.db
.eslintcache
.meteor/local
.devcontainer/docker-compose.extend.yml
package-lock.json

View file

@ -66,7 +66,6 @@ templates:tabs
verron:autosize
simple:json-routes
rajit:bootstrap3-datepicker
shell-server@0.5.0
simple:rest-accounts-password
useraccounts:core
email@2.0.0
@ -90,7 +89,6 @@ meteorhacks:aggregate@1.3.0
wekan-markdown
konecty:mongo-counter
percolate:synced-cron
easylogic:summernote
cfs:filesystem
tmeasday:check-npm-versions
steffo:meteor-accounts-saml
@ -145,3 +143,4 @@ rajit:bootstrap3-datepicker-zh-tw
staringatlights:fast-render
spacebars
jkuester:http
georgemccann:meteor-emoji-picker

View file

@ -56,7 +56,6 @@ ddp-server@2.3.2
deps@1.0.12
diff-sequence@1.1.1
dynamic-import@0.6.0
easylogic:summernote@0.8.8
ecmascript@0.15.0
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.11.0
@ -68,6 +67,7 @@ fastclick@1.0.13
fetch@0.1.1
fortawesome:fontawesome@4.7.0
geojson-utils@1.0.10
georgemccann:meteor-emoji-picker@0.1.74
horka:swipebox@1.0.2
hot-code-push@1.0.4
html-tools@1.0.11
@ -203,7 +203,6 @@ server-render@0.3.1
service-configuration@1.0.11
session@1.2.0
sha@1.0.9
shell-server@0.5.0
simple:authenticate-user-by-token@1.0.1
simple:json-routes@2.1.0
simple:rest-accounts-password@1.1.2
@ -227,7 +226,6 @@ templating-runtime@1.3.2
templating-tools@1.1.2
tmeasday:check-npm-versions@0.3.2
tracker@1.2.0
twbs:bootstrap@3.3.6
ui@1.0.13
underscore@1.0.10
url@1.3.1

1
.npmrc Normal file
View file

@ -0,0 +1 @@
package-lock=false

View file

@ -3,5 +3,5 @@ template(name="descriptionForm")
.new-description.js-new-description(
class="{{#if descriptionFormIsOpen}}is-open{{/if}}")
form.js-new-description-form
+editor(class="js-new-description-input" data-meteor-emoji-large="true" autofocus="autofocus")
+editor(class="js-new-description-input" autofocus="autofocus")
| {{getUnsavedValue 'cardDescription' _id getDescription}}

View file

@ -4,6 +4,7 @@ template(name="editor")
class="{{class}}"
id=id
autofocus=autofocus
data-meteor-emoji="true"
placeholder="{{_ 'comment-placeholder'}}")
+Template.contentBlock

View file

@ -1,4 +1,5 @@
Template.editor.onRendered(() => {
new MeteorEmoji();
const textareaSelector = 'textarea';
const mentions = [
// User mentions
@ -99,7 +100,9 @@ Template.editor.onRendered(() => {
if (inputs.length === 0) {
// only enable richereditor to new comment or edit comment no others
enableTextarea();
} else {
}
/*
else {
const placeholder = inputs.attr('placeholder') || '';
const mSummernotes = [];
const getSummernote = function(input) {
@ -258,6 +261,7 @@ Template.editor.onRendered(() => {
});
});
}
*/
} else {
enableTextarea();
}

15782
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -4,21 +4,16 @@
"description": "Open-Source kanban",
"private": true,
"scripts": {
"lint": "eslint --cache --ext .js --ignore-path .eslintignore .",
"lint:eslint:fix": "eslint --ext .js --ignore-path .eslintignore --fix .",
"lint:staged": "lint-staged",
"prettify": "prettier --write '**/*.js' '**/*.jsx'",
"test": "npm run lint"
"prettify": "prettier --write '**/*.js' '**/*.jsx'"
},
"lint-staged": {
"*.js": [
"meteor npm run prettify",
"meteor npm run lint:eslint:fix",
"git add --force"
],
"*.jsx": [
"meteor npm run prettify",
"meteor npm run lint:eslint:fix",
"git add --force"
],
"*.json": [
@ -27,9 +22,6 @@
]
},
"pre-commit": "lint:staged",
"eslintConfig": {
"extends": "@meteorjs/eslint-config-meteor"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wekan/wekan.git"
@ -40,23 +32,14 @@
},
"homepage": "https://wekan.github.io",
"devDependencies": {
"eslint": "^7.19.0",
"eslint-config-meteor": "0.0.9",
"eslint-config-prettier": "^3.6.0",
"eslint-import-resolver-meteor": "^0.4.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-meteor": "^7.2.2",
"eslint-plugin-prettier": "^3.3.1",
"lint-staged": "^7.3.0",
"pre-commit": "^1.2.2",
"prettier": "^1.19.1",
"prettier-eslint": "^9.0.2"
"prettier": "^1.19.1"
},
"dependencies": {
"@babel/core": "^7.12.10",
"@babel/eslint-parser": "^7.12.13",
"@babel/runtime": "^7.12.5",
"@typescript-eslint/parser": "^4.14.2",
"ajv": "^7.0.4",
"babel-runtime": "^6.26.0",
"bcrypt": "^5.0.0",
@ -78,9 +61,6 @@
"page": "^1.11.5",
"papaparse": "^5.3.0",
"qs": "^6.9.6",
"source-map-resolve": "^0.6.0",
"source-map-support": "^0.5.19",
"typescript": "^4.1.3",
"xss": "^1.0.8"
}
}