From bc73d75a9b6eb11938ac3e4f2ebff1e068ee7cd1 Mon Sep 17 00:00:00 2001 From: renovate Date: Sun, 4 Jul 2021 13:10:30 +0000 Subject: [PATCH 01/40] Update dependency eslint to v7.30.0 (#571) Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/571 Co-authored-by: renovate Co-committed-by: renovate --- package.json | 2 +- yarn.lock | 23 +++++++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index fa5c94185..567385edb 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "babel-eslint": "10.1.0", "cypress": "7.6.0", "cypress-file-upload": "5.0.8", - "eslint": "7.29.0", + "eslint": "7.30.0", "eslint-plugin-vue": "7.12.1", "faker": "5.5.3", "jest": "27.0.6", diff --git a/yarn.lock b/yarn.lock index f6680fe7f..f3d43357c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1796,6 +1796,20 @@ dependencies: "@hapi/hoek" "^9.0.0" +"@humanwhocodes/config-array@^0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" + integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== + dependencies: + "@humanwhocodes/object-schema" "^1.2.0" + debug "^4.1.1" + minimatch "^3.0.4" + +"@humanwhocodes/object-schema@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz#87de7af9c231826fdd68ac7258f77c429e0e5fcf" + integrity sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w== + "@intervolga/optimize-cssnano-plugin@^1.0.5": version "1.0.6" resolved "https://registry.yarnpkg.com/@intervolga/optimize-cssnano-plugin/-/optimize-cssnano-plugin-1.0.6.tgz#be7c7846128b88f6a9b1d1261a0ad06eb5c0fdf8" @@ -6215,13 +6229,14 @@ eslint-visitor-keys@^2.0.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8" integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== -eslint@7.29.0: - version "7.29.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.29.0.tgz#ee2a7648f2e729485e4d0bd6383ec1deabc8b3c0" - integrity sha512-82G/JToB9qIy/ArBzIWG9xvvwL3R86AlCjtGw+A29OMZDqhTybz/MByORSukGxeI+YPCR4coYyITKk8BFH9nDA== +eslint@7.30.0: + version "7.30.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.30.0.tgz#6d34ab51aaa56112fd97166226c9a97f505474f8" + integrity sha512-VLqz80i3as3NdloY44BQSJpFw534L9Oh+6zJOUaViV4JPd+DaHwutqP7tcpkW3YiXbK6s05RZl7yl7cQn+lijg== dependencies: "@babel/code-frame" "7.12.11" "@eslint/eslintrc" "^0.4.2" + "@humanwhocodes/config-array" "^0.5.0" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" From c8209c6c104e96a1b45776ba3a3e2582d903c9ad Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 5 Jul 2021 10:29:04 +0000 Subject: [PATCH 02/40] Quick add magic for tasks (#570) Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/570 Co-authored-by: konrad Co-committed-by: konrad --- src/components/misc/keyboard-shortcuts.vue | 2 +- src/components/modal/modal.vue | 4 +- .../quick-actions/quick-actions.vue | 22 +- src/components/tasks/mixins/createTask.js | 124 ++++++ .../tasks/partials/quick-add-magic.vue | 82 ++++ src/helpers/parseDateOrNull.js | 4 + src/helpers/parseTaskText.js | 103 +++++ src/helpers/parseTaskText.test.js | 409 ++++++++++++++++++ src/helpers/replaceAll.js | 15 + src/helpers/time/parseDate.js | 290 +++++++++++++ src/i18n/lang/en.json | 22 + src/store/modules/lists.js | 6 + src/styles/components/_all.scss | 1 + src/styles/components/hint-modal.scss | 43 ++ src/styles/components/keyboard-shortcuts.scss | 39 -- src/views/filters/CreateSavedFilter.vue | 2 +- src/views/list/views/Kanban.vue | 32 +- src/views/list/views/List.vue | 156 +------ 18 files changed, 1136 insertions(+), 220 deletions(-) create mode 100644 src/components/tasks/mixins/createTask.js create mode 100644 src/components/tasks/partials/quick-add-magic.vue create mode 100644 src/helpers/parseTaskText.js create mode 100644 src/helpers/parseTaskText.test.js create mode 100644 src/helpers/replaceAll.js create mode 100644 src/helpers/time/parseDate.js create mode 100644 src/styles/components/hint-modal.scss diff --git a/src/components/misc/keyboard-shortcuts.vue b/src/components/misc/keyboard-shortcuts.vue index d0fb9d447..d87a005df 100644 --- a/src/components/misc/keyboard-shortcuts.vue +++ b/src/components/misc/keyboard-shortcuts.vue @@ -1,5 +1,5 @@