diff --git a/.eslint-baseline.json b/.eslint-baseline.json new file mode 100644 index 000000000..8d7f9cd8f --- /dev/null +++ b/.eslint-baseline.json @@ -0,0 +1,1986 @@ +[ + { + "path": "docs/source/development/user-interface/js-functions/show_hide.js", + "line": 12, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "6d66a79b37a676e44177f5e22c83250315d23c96" + }, + { + "path": "docs/source/development/user-interface/js-functions/show_hide.js", + "line": 29, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "ecfe1d9da55e96316b21de60db959be5f9e20f59" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue", + "line": 136, + "column": 39, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "4faa92668b8548e3b747568ef9a3671708c0fbf9" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue", + "line": 211, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "d1fd4d809f01ecad48418336edca270335fccff9" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/index.js", + "line": 18, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "f8c2979921289906e3baabae31ba101ead91504f" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/index.js", + "line": 57, + "column": 23, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "cf0cf378f71403f62a6425f384ccbbdec433d1f2" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/store.js", + "line": 90, + "column": 13, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'resources' is assigned a value but never used.", + "hash": "342d8aad3e080ba262239e5f5c6fc419f388ca33" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/module/Invite/answer.js", + "line": 7, + "column": 57, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "7930b2e3b44140e5058b66710ecdccdb81871c1a" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/Components/CalendarActive.vue", + "line": 19, + "column": 30, + "ruleId": "vue/valid-v-else", + "message": "'v-else' directives require no attribute value.", + "hash": "505f99b24500a684eec3c6bf870426fcd841c20b" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/Components/CalendarActive.vue", + "line": 54, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'mapGetters' is defined but never used.", + "hash": "01e3928f7d9be0accb6db3894b158dd683a685ff" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/index.js", + "line": 10, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "4dae6f8a4aa0fabbbd88aabc983cf03da6f3b7fd" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/actions.js", + "line": 29, + "column": 32, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'getters' is defined but never used.", + "hash": "5ac92a47d5c8de02a33eef97b27a75e68841ab04" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/actions.js", + "line": 238, + "column": 35, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'state' is defined but never used.", + "hash": "8d8cdf4931f8b803539d67ef603fc5011a439ad0" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/getters.js", + "line": 30, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'getters' is defined but never used.", + "hash": "790488f2c65040f92bb02cb31c35e9a9fff907ec" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/getters.js", + "line": 279, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'resources' is assigned a value but never used.", + "hash": "950151f3e4a25489310590e6137cfe2c155bd579" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/index.js", + "line": 3, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'postLocation' is defined but never used.", + "hash": "c4fc4177d62914f827e7a5c2cd0cb974b947e3f7" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Invite/Answer.vue", + "line": 95, + "column": 13, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'payload' is defined but never used.", + "hash": "66c545917093ba30f1d6ca10ddaa676140e749bd" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 224, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reactive' is defined but never used.", + "hash": "96ed76a9828138fb125fc36c4b55e900bbfe87c2" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 230, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'DropArg' is defined but never used.", + "hash": "bd405399a4091d65e8391404bfb0c4611816c8e0" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 251, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'t' is assigned a value but never used.", + "hash": "bc09207a496405f7a71c178e522b89aeb1f7ebd3" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 356, + "column": 32, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'arg' is defined but never used.", + "hash": "aeae152f0669b946a1ad681dd52b0ef03393ae79" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 434, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'changedEvent' is assigned a value but never used.", + "hash": "a7a81a6bf09d00c0364e3aa8207ffad853f0547b" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 444, + "column": 5, + "ruleId": "@typescript-eslint/ban-ts-comment", + "message": "Use \"@ts-expect-error\" instead of \"@ts-ignore\", as \"@ts-ignore\" will do nothing if the following line is error-free.", + "hash": "1b8a1b6b081d3f14ed319619e6031039668cd736" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/Components/EditLocation.vue", + "line": 77, + "column": 16, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_' is defined but never used.", + "hash": "d29fb2fc9299c48082167b2fa4c427c569716bd6" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/Components/EditLocation.vue", + "line": 82, + "column": 30, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_' is defined but never used.", + "hash": "bd8f0e9bb24ec4486579bfac87c52db7ebb9f182" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/Components/EditLocation.vue", + "line": 82, + "column": 33, + "ruleId": "@typescript-eslint/no-explicit-any", + "message": "Unexpected any. Specify a different type.", + "hash": "991397a66bbda97bd596a67f11e8caa98b53e517" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 108, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "1a771f9f65375cac2002ed7d706184355685d378" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 148, + "column": 29, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"users\" prop.", + "hash": "d9f7e517892b6588be17516fd077c3149ccbefd9" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 151, + "column": 29, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "hash": "47c270d8c0bcda67ea04a83ba267eca3e70fa7fb" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 154, + "column": 59, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "7cf30f0d2dc567ea0dfb44dadfc9ecf4977e7b95" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 155, + "column": 41, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"users\" prop.", + "hash": "7876348a3eee16be7effd3e992a6aaa2334cfd24" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 164, + "column": 63, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "0f308d7417bfc294b28eea6890666a2d91e31ecd" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 185, + "column": 57, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "hash": "5a021a581a33d3aeea21c65e023902f2123bb562" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 218, + "column": 17, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "655811d4dad8de23b3d37dfbf02f7fca18b6d8f2" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 235, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "hash": "19317d9a564b8b10355cac1eeb9308c7d49c0dd1" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 240, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"users\" prop.", + "hash": "95e478eca53a2acfa8edd0aa5747e73b0da01d0c" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 246, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"users\" prop.", + "hash": "0b66e38f0c0bbe17aa7c548dc127be033133ce06" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 8, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "bc5721039a242f9d275fcd6879ebfcdfea2a5eb1" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 30, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'decryptError' is assigned a value but never used.", + "hash": "fed5b83c3c3d5d1fc6912801b7fbf33659284552" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 31, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'fetchError' is assigned a value but never used.", + "hash": "b5719b526776f763e4c3edc948400c6e41d6b299" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 32, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'key' is defined but never used.", + "hash": "369b13ffbe97104d3b2c984678c8f00fbfc31a35" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 33, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'url' is defined but never used.", + "hash": "6b5067617eb3c8a563d70dca46e756314a2f81d5" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 87, + "column": 13, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'error' is defined but never used.", + "hash": "e26e5e101e90d2b7ee84d6f5de8c819e52129c17" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 39, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "7cbec23eb581a6e7090acffbcb3efc0bf4de260e" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 44, + "column": 40, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'files' is defined but never used.", + "hash": "6907608aafd5b95a7beda9647b214705545569ba" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 103, + "column": 34, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'zoneData' is defined but never used.", + "hash": "aabe2ba3b3f0aff817c64f5e5002dd18e16f77da" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 141, + "column": 27, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'file' is defined but never used.", + "hash": "fa4c56a1614fa1342a10c54d8587b6ce8ee32ca8" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 154, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'response' is defined but never used.", + "hash": "341a9ef745481a5cc1fa94db48c8f16cbbe836c4" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 159, + "column": 39, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'file' is defined but never used.", + "hash": "c222ff822f41535c2ec8d0c1e504caa65259066e" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 165, + "column": 41, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'file' is defined but never used.", + "hash": "1ac09121d7d8725c70d7d7f58010212c031759dc" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 239, + "column": 30, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'zoneData' is defined but never used.", + "hash": "6e72d62f9f6031a09d5d39f751bd2fcbc500ee55" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 301, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'removeDownloadButton' is assigned a value but never used.", + "hash": "a91a8e7065fec4c015bfc155ebfcb2820db71242" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 301, + "column": 37, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'zoneData' is defined but never used.", + "hash": "60bfad4fe297c635f2f2c1b132754946480f4454" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 348, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "27fd905f7750f1ee727f8c8fa5bbc12493a37c54" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentActionButtonsGroup.vue", + "line": 80, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'StoredObjectVersion' is defined but never used.", + "hash": "2fadbe9e331a66f44b54782acc1420c4b487e1f6" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue", + "line": 336, + "column": 20, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reactive' is defined but never used.", + "hash": "433bed446eb37784c380d5c82bb364221af80969" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue", + "line": 354, + "column": 1, + "ruleId": "@typescript-eslint/ban-ts-comment", + "message": "Use \"@ts-expect-error\" instead of \"@ts-ignore\", as \"@ts-ignore\" will do nothing if the following line is error-free.", + "hash": "b104a4e3ccf06c4a16fd83076e2b3f2dc27b2d91" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue", + "line": 363, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'download_and_decrypt_doc' is defined but never used.", + "hash": "77340aab22ce01c7ed6518a96586f4219299dd36" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue", + "line": 757, + "column": 16, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'r' is defined but never used.", + "hash": "c4cc95fa4538bfd3a61bdc2d5ffcae8c96178af6" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue", + "line": 779, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "c5f5d0e73bd179d79b60b53a3dc1c6d676bee287" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFileWidget.vue", + "line": 3, + "column": 20, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'ref' is defined but never used.", + "hash": "11fba46b19890b0af973dc69d26d0c1101ca67e6" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFileWidget.vue", + "line": 3, + "column": 25, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'Ref' is defined but never used.", + "hash": "51180c9c7d852650d0b930900cee3d9aca10c4c3" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/ConvertButton.vue", + "line": 11, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'download_and_decrypt_doc' is defined but never used.", + "hash": "9a803f1fe608ec60ab065aa8f76e50e2ef1fa4c2" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/ConvertButton.vue", + "line": 14, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'mime' is defined but never used.", + "hash": "13520522261b138600d6ec9028ee02eb9cd06180" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/ConvertButton.vue", + "line": 50, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reset_pending' is assigned a value but never used.", + "hash": "96fde3634a150f1253fac2f2f2bdcfe6e0daf82a" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/HistoryButton.vue", + "line": 7, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'computed' is defined but never used.", + "hash": "a3a0749af7945b37eccd14da930d3426ab51d199" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/HistoryButton.vue", + "line": 7, + "column": 30, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'ref' is defined but never used.", + "hash": "2a27cd6d06a26e1326654c929068e3704137e24b" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/HistoryButton/HistoryButtonList.vue", + "line": 57, + "column": 17, + "ruleId": "vue/valid-v-for", + "message": "Custom elements in iteration require 'v-bind:key' directives.", + "hash": "cce787939524e83dd135869e13738ef332d7156c" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/WopiEditButton.vue", + "line": 15, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'WopiEditButton' is defined but never used.", + "hash": "80cb06a18ac4db47e8d120103704ec6988696b79" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/cv_edit/index.js", + "line": 7, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'a' is assigned a value but never used.", + "hash": "46d2235305e750a202849fb47836fb72efb23a05" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/cv_edit/index.js", + "line": 11, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "d10364cc7a78ac507fcdc72faad1e6c53b33d756" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/cv_edit/index.js", + "line": 32, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_e' is defined but never used.", + "hash": "464451b9cf747ada3d7b960bdbec52fa83470ac0" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "line": 15, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "a502c4bb96318eab29957a19c21ca2dae860a736" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "line": 30, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "a18e483f334f58f4202744bb7690131e79accbe3" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "line": 47, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "7f049438577bc91505d4f53f96117401ed09685a" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "line": 59, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "ba32878c1dd4f851b70b128aaa81910d398002cb" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/immersion_edit/index.js", + "line": 8, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "3e8d716f29c9281b10dd453dd4a72eadd4a58525" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 3, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'moment' is defined but never used.", + "hash": "50b0cc2383baff6bba176e52d2516605b1cac04a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 241, + "column": 17, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "1a01f297aa8e16086c60374ec293ff2f1ccd4f62" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 282, + "column": 21, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "b194f742a3a8c4af5919ecd77c10f52c61537425" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 315, + "column": 7, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "5b6badc602a6175fa4dccc529b3a45239461eb2e" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 319, + "column": 7, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "6bda13d299b7f93955b9197391c071e16ac28b0c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 352, + "column": 5, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "ccc46215d423bf1815b495bdb4dc2e10b7834017" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/counter.js", + "line": 28, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "a78b1ecd6fe7ca192d7f00aee8b270d435a9042a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/download-report/download-report.js", + "line": 18, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'mime' is defined but never used.", + "hash": "c8ef5b1aa8983aec00f188234be22c77a9a77425" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/select_interactive_loading/index.js", + "line": 1, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "a3317069459ea66c96501bd9cfb77ea42813ca94" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/select_interactive_loading/index.js", + "line": 5, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "d43728b51f59dc4bea30de30b1090d76ccdd5faf" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/tabs/tabs.js", + "line": 19, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "d62839e33722008a8888ec8397584c9e15ef4974" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/tabs/tabs.js", + "line": 51, + "column": 30, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'pane' is defined but never used.", + "hash": "2c53f99e3ff670ca2d695b7da3106e49c0d0ae0d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/tabs/tabs.js", + "line": 77, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'tabs' is assigned a value but never used.", + "hash": "750c361cd41b0d42baa186d7e505dde80db12dd3" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/blur/index.js", + "line": 9, + "column": 32, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "2a0ad2a99642951ded06c75a14b668fb6c56129d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 8, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'Dropdown' is defined but never used.", + "hash": "03f2e6cddba6e332840742e3826b59018087c97c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 9, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'Modal' is defined but never used.", + "hash": "b68c78d1b28da96ca9eade0b083ef986a82bc81f" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 10, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'Collapse' is defined but never used.", + "hash": "daa0e8fded9a2a5fc6288a0fcf09509e2e13a661" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 27, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'carousel' is assigned a value but never used.", + "hash": "7c700d60868641fee4b9b1925a70bf1aea1c59c3" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 34, + "column": 50, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "e534f5b90d9d78f819b788579c6dc97cc96ab4f4" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 62, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'popoverList' is assigned a value but never used.", + "hash": "2fd1da06ffc0a1025552cd02b7838cb5ee70006c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js", + "line": 9, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "1c04bebef0448105f6d455da4eb89bbbc299f7fc" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js", + "line": 10, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "aac391029a9094c0024acd4748728d0345d43d62" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js", + "line": 4, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'NotificationReadAllToggle' is defined but never used.", + "hash": "85b91b57af8f355c4da6175f0cd10543e8c21298" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js", + "line": 8, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "07f4feb1fc536257245672cadc5e4a6eff3dfd11" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js", + "line": 26, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "ade0f5ef31462024600ac17130a26e0429e27039" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js", + "line": 176, + "column": 57, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "733b101d5fc60b4b4d0539d772cec69590baae19" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-postal-code/index.js", + "line": 10, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "b12c35e669c0ad8af41fe1dc3ffe994cf53198fa" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-postal-code/index.js", + "line": 26, + "column": 21, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'city' is defined but never used.", + "hash": "e892975b07863cec84647ba00d93ba913776e433" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-postal-code/index.js", + "line": 55, + "column": 57, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "4f3f46e4b736f4325e869cffbecbe1427939eae4" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-rolling-date/index.js", + "line": 3, + "column": 57, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_e' is defined but never used.", + "hash": "1d6448401778e8c56554020fe5abd47851ed33f3" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/wopi-link/index.js", + "line": 21, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "eae499e4f6e9f43a9d17f9cd917cb6d3d97be25c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/export/download-export.js", + "line": 3, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "088fd383e7807e484aefc9825209bc7c8942bd22" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/homepage_widget/index.js", + "line": 9, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "2b4f1b7b1ec87616e72a89871f91845c16200435" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/location/index.js", + "line": 63, + "column": 48, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_e' is defined but never used.", + "hash": "2cafe722e433827869f1d0c381e2da4f9433d6a7" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 25, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "18c8d3c84a2d185f0ccacdbf9369dae0a873af82" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 61, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "8c9f34e3dc525681be29e2d7f4fbc5f9625707ac" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 81, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "621b61792a977fd46a013dbb78632897ca097d3c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 103, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "7778a0a6f7163fe5fd1875faf20d77a9261172ee" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 115, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "fd85d6b471a593de3170bc227db6c33ad3408a11" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 128, + "column": 29, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'arg2' is defined but never used.", + "hash": "c58527d970320b92295ffdc435ffdc9466bfbd60" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 128, + "column": 35, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'arg3' is defined but never used.", + "hash": "f4587bddf906e9d3e7cfdc6476d6d41baf906087" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/App.vue", + "line": 79, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "29ea9ef3f1b2cb970e8103383bcde12a4ab66c25" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/App.vue", + "line": 101, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "b81ee6947049c6876f81410cfbb499dc43da4374" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 247, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'postAddressToPerson' is defined but never used.", + "hash": "8a41c437cf2b5554cbbe1704cd51f3102b3d5994" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 248, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'postAddressToHousehold' is defined but never used.", + "hash": "66dec84b2ece299daf21308e5e60d497ba442b27" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 490, + "column": 21, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"context\" prop.", + "hash": "0d3f40c47974a4371072b3b9ee04b197c830162d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 491, + "column": 21, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"context\" prop.", + "hash": "8e877b7e588c30e182f7b572bdb9685360f9cf99" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 508, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "5a3e3401bc3c765d91faaf4cfde57697af1262b7" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 525, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "35a741d90379574b9323279f5802193d0c98a9dc" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 553, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "c23d1ddf6c0d10ae97948e74aee9c14b9320b86c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 572, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "4322e81c6ea9d9734c680633a724d5bd4fabacb2" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 803, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "7928a6461b9d394c7d97f048933553936f7d8963" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 852, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "e5afdb8efccb5470a08dde48f755b1268fa947b5" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 93, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "68f5e1cf5c03f9ada59c9e0afca0b74c7f3fca4b" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 101, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "50d730f6109092baff2db66adc44dc1315e2bda2" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 109, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "573e4c041ce663f28b933d7a675c2a525aba644c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 117, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "293f845eeab515b1df4649d136c2d8219ed59c4d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 125, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "792310bc5def2c7b45f50da97cd8818d82862e8a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 133, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "a69e5335393f67a83d89720af34a4385a7d7e665" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 141, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "2d5a5e680ff207ad97c7e7b7d999064b561dfd8a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 106, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "d52356f2af31d0167c02330ec22d09fbfa6b2b9f" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 114, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "c8e8e06f370f93bf05867e93b5f037dfa46937b1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 128, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "9abaf71ca4b4f292b3b01e724d0a7733365e71f1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 129, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "0b0743959778a9e3d93089b132608816ee4e6646" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 132, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "9759da7b7859b8ee8efaf74876430658ac6b6fe2" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 133, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "dba8be9a27ab74ec743b7d9e07c05d857b407dd3" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 134, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "9b1f5bce779aafc46b19d7a5d266eaa29f8f9be9" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 139, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "fe6fc4aea0994ba9da15b7c09d308842b67958cb" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 153, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "bd0e024fcad2e3f4566f15293e3c25c840f6dd3e" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 154, + "column": 37, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "596c4b180b926b7829f987384328bf5636cd367a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 171, + "column": 59, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "5b41d5f9b45da074fb7bbbbd45e0da501da72071" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 172, + "column": 41, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "d92b92a25043244cca809bd129633b7e024e26b4" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 190, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "dd9a85ea740742d620e864796f67c5bff834486d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 191, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "e3e59960d0d50709a57b336f66b586710b774892" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 192, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "fe11b0e54396511e7b3b08615a78d22fc27e2fad" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 222, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "63c14c2150c33ec701bc4a0ff94efde69537d490" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 96, + "column": 20, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "d2a9fdaeef0e2810f480022d4c6f99e4f76a818e" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 96, + "column": 20, + "ruleId": "vue/no-side-effects-in-computed-properties", + "message": "Unexpected side effect in \"cities\" computed property.", + "hash": "dd92a60a9b1ebefeb9a90941d45326fbfa483733" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 102, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "04be01ab638ce01f568fb0216929e65e1175ca23" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 110, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "8619c8e0b63e87d09268832f90e4fba06b87e41f" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 124, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "281f918da00635079501418b1e6b2c05b62eb4a7" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 125, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "c131b09fa67ab1d069f1d04a54582d6b0f206153" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 126, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "3d3a2a4add64c291b8f5f1cddd90a173cd6a819d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 131, + "column": 21, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "ed48f4988914d7897018a2e06830a97e6740b3e8" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 145, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "744f3a7610d4d6015e50e25149bceffd6c6e2763" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 146, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "eaaaaee5fb2e324ffe0a68eefe340dabdf162324" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 147, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "2de47b4a4ddbe546b3fce9898af48b72853364bf" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 149, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "1e7b1ad55866f708baaca72dfa4ff26d6f8e5d21" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 152, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "84779331536ffceec8d4a8c5ca4307310b882549" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 161, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "0789999841be671a4d8ab080d6fdb679f843eb52" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 170, + "column": 51, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "bbb17afa114f016e2058d90aa32d2a625804f0d1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 171, + "column": 33, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "5fbe407ceceb37bff2ac800ceddd7942540132f1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 190, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "e2af91def877befbabef8e93deba4c58a3ee2ded" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 191, + "column": 37, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "ee8544ee45681a650ed7d4918ae979685cdd8f0f" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 210, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "5d9d2217c8c7e6571bc9f72a98ea5b370edb4968" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 211, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "6e04619b373c23c91f6c36c2aad314ac16cdb697" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 212, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "39df045639a62f64ccdb03a80e286bc3ad772587" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 213, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "c399a43fa797a8ce61c9d96a644a39cc84a387b7" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 245, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "04337a07944caaa4819cfebcf29e1a7cbfdf248b" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CountrySelection.vue", + "line": 75, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "f2e288dcddf773ed3a79b238327af8a48961e861" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CountrySelection.vue", + "line": 80, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "836965dc8fa085f98d31f3ce261dcdf27d1ef6a4" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/DatePane.vue", + "line": 95, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "84e13d1fdc79f4568634a78df281adbe81739cbd" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/DatePane.vue", + "line": 103, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "1eed832462e52537402a2825655733f0f2d391d9" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/EditPane.vue", + "line": 155, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "b3a822914fcb5e2fcf28efc331a45b9205002eeb" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/EditPane.vue", + "line": 164, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "72c7d850f6cdeaf65b373a33234222f9766ee30b" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/index.js", + "line": 10, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "e39c8efb64c15a67efdd894e74c51129ca30cf09" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js", + "line": 22, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "c0178faf1e0af01e6445c761e083df5f19e314c8" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js", + "line": 86, + "column": 48, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_e' is defined but never used.", + "hash": "52a2051aee948783e053f102a066d4c51155cc54" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/DashboardWidgets/NewsItem.vue", + "line": 142, + "column": 57, + "ruleId": "@typescript-eslint/no-explicit-any", + "message": "Unexpected any. Specify a different type.", + "hash": "a68eeba7b2e1e603d83da0946c94cd221134aa99" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue", + "line": 204, + "column": 22, + "ruleId": "vue/return-in-computed-property", + "message": "Expected to return a value in \"buttonMessage\" computed property.", + "hash": "b101c861dc11bc7024857fa2977118cb9f99c02c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/index.js", + "line": 12, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "9e6125f4fc387dc362c69cc6e3ce360eb2851f1b" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/PickEntity/PickEntity.vue", + "line": 60, + "column": 22, + "ruleId": "vue/require-valid-default-prop", + "message": "Type of the default value for 'suggested' prop must be a function.", + "hash": "d30212820bc2e97fa02d75dbc3a014558693f169" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/AddressDetails/Parts/AddressDetailsMap.vue", + "line": 24, + "column": 13, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'LatLngExpression' is defined but never used.", + "hash": "78f5a83dddf05b38aa9472ab93871e976719ef30" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Entity/GenderIconRenderBox.vue", + "line": 6, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'props' is assigned a value but never used.", + "hash": "29fe0a5d52e46c479aa2e7bb23fb55c53df7b22e" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue", + "line": 142, + "column": 32, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'w' is defined but never used.", + "hash": "ad12fc3b08dbfc9c24ae65d2a59c7bd5cecb39f2" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue", + "line": 146, + "column": 33, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'w' is defined but never used.", + "hash": "d28435fe2f60f5d3c22ab2b4cb59a6bd2cd0f947" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue", + "line": 155, + "column": 15, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'popoverList' is assigned a value but never used.", + "hash": "933d1a8c7c3d9321347218a08588cdf4c352f422" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue", + "line": 114, + "column": 34, + "ruleId": "vue/require-valid-default-prop", + "message": "Type of the default value for 'goToGenerateWorkflowPayload' prop must be a function.", + "hash": "d686fa87cfdc801aaaa08b24e827e503e81e86be" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue", + "line": 170, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'goToDuplicateRelatedEntity' is assigned a value but never used.", + "hash": "224ddf3abcff96e3e20a0facc7493883958d5a80" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue", + "line": 171, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "aa87fd5511528b5a45713fe1eaeda9ae0a8c0975" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue", + "line": 172, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'workflowName' is defined but never used.", + "hash": "e34bbcf245552e9329efdf7bd64ea3a56f0d4538" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/PickWorkflow.vue", + "line": 173, + "column": 12, + "ruleId": "@typescript-eslint/no-empty-function", + "message": "Unexpected empty arrow function.", + "hash": "8bdff7a5b3a7ac1506966a6066a1deb556d30efe" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue", + "line": 3, + "column": 9, + "ruleId": "vue/require-toggle-inside-transition", + "message": "The element inside `` is expected to have a `v-if` or `v-show` directive.", + "hash": "0594fb9d0984f4dd1612671aca21b571087ab8ee" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue", + "line": 59, + "column": 22, + "ruleId": "vue/require-valid-default-prop", + "message": "Type of the default value for 'modalDialogClass' prop must be a function.", + "hash": "51033a0b54bc839ce532e609bc58a2686818c895" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/page/accompanying_course_index/masonry.js", + "line": 4, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'msnry' is assigned a value but never used.", + "hash": "37c52c5d1360a9339ba377f65e7f5671bcecb82a" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/page/person/suggest-names.js", + "line": 47, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'tags' is assigned a value but never used.", + "hash": "ae9bb2e0651c118ed9efd227e88b86cc83f5d80d" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StickyNav.vue", + "line": 116, + "column": 18, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "201f182769c6dfb87148b841e7d9b592be429669" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js", + "line": 19, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "45a24a5a25333d674e2e8de8715e011c44d520fc" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js", + "line": 42, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "80ace30483979a840c9f6cbe0e8481bafe77708b" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkCreate/index.js", + "line": 12, + "column": 7, + "ruleId": "no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "812c02cd516013d189322ca62677793aadb99edf" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkCreate/index.js", + "line": 12, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "aaaaa63e7a60443b8cbf8191feb9142852ebdf1c" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue", + "line": 436, + "column": 3, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'dateToISO' is defined but never used.", + "hash": "2ec2e571f3e30aa4c2be2d27bb2e8e0911f2b73f" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue", + "line": 437, + "column": 3, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'ISOToDate' is defined but never used.", + "hash": "e798ef13db37e7acb223e3df29da4ce8dbbd3ae6" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue", + "line": 438, + "column": 3, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'ISOToDatetime' is defined but never used.", + "hash": "76ca9c82007f9040643d2a8cf2689ebe1110823e" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue", + "line": 451, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'buildLinkCreate' is defined but never used.", + "hash": "0dbad8bda4c2da8b4489288fdaf8e4e42583c399" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue", + "line": 512, + "column": 5, + "ruleId": "vue/no-unused-components", + "message": "The \"AddressRenderBox\" component has been registered but not used.", + "hash": "1fa5e8a5a2e917188fd4b5f5d215601e1be5ea9a" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue", + "line": 514, + "column": 5, + "ruleId": "vue/no-unused-components", + "message": "The \"PickTemplate\" component has been registered but not used.", + "hash": "b68269999f017d4125854ca86a09f355f046c5fb" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue", + "line": 699, + "column": 25, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'data' is defined but never used.", + "hash": "66ec68e084b27a818062ebf5d612bdd4598f1cc6" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue", + "line": 710, + "column": 25, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'data' is defined but never used.", + "hash": "fed92eac022439396e7c1a7dd5f00cf9b958c1e2" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/AddEvaluation.vue", + "line": 136, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "d762b8ac0404258c3f69a602e838c141e7260af0" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/AddEvaluation.vue", + "line": 142, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "49bc6a911e9dd1170d487d095920c519784a84bc" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/AddEvaluation.vue", + "line": 142, + "column": 35, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'link' is defined but never used.", + "hash": "537ba2743fe9b6894692e6a481d82557f533b75f" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "line": 79, + "column": 13, + "ruleId": "vue/require-v-for-key", + "message": "Elements in iteration expect to have 'v-bind:key' directives.", + "hash": "422f53925922e59655d0f71624c19af75d41628c" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "line": 275, + "column": 3, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'dateToISO' is defined but never used.", + "hash": "1fb4dee6397e578ac9e4587fcf81b35ce1bfe3d9" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "line": 276, + "column": 3, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'ISOToDate' is defined but never used.", + "hash": "ea360950c17604fe63003333c7a5a9c303887ca6" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "line": 281, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'mapGetters' is defined but never used.", + "hash": "ec02e9573e9ee7cc13e25fda951b748ba8ae8f93" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "line": 600, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "b7f25f6178570c873ffb8eefd349b967bb9afb17" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "line": 601, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'link' is defined but never used.", + "hash": "b60571c99af4afc2933bedef97fa6f745ce45a0f" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/index.js", + "line": 12, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "138abd46734ddf8fe1ebdb530a2119b9052143b6" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js", + "line": 6, + "column": 3, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'ISOToDatetime' is defined but never used.", + "hash": "04da431c5998791e27a587762af6efb87382dd35" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js", + "line": 10, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'findSocialActionsBySocialIssue' is defined but never used.", + "hash": "e332ac8d07d5801f0591fc5197504f88300199dc" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js", + "line": 11, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'create' is defined but never used.", + "hash": "49a7ec9b72de87036e05882d92bea39a7d6595f4" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js", + "line": 17, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'evalFQDN' is assigned a value but never used.", + "hash": "7fc32caafa23addddf44f3acbc5045b4523a0271" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js", + "line": 611, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'errors' is assigned a value but never used.", + "hash": "c41cf979fc1626c38328dbf1028800c3395496bd" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/ExportFormActionGoalResult/App.vue", + "line": 282, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "de3a6e2bb10a80a2bacba665be74266c7efc7d64" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/ExportFormActionGoalResult/index.js", + "line": 16, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "b025959acb471750c92952656e7a60ba28f5da0a" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/components/Positioning.vue", + "line": 82, + "column": 31, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is defined but never used.", + "hash": "aad0b0d7e4bc2ea9f0a0dd7b6c696a82da14f25a" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/index.js", + "line": 13, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "2f161e663689e3e4dfe2c53b0d64c91a4d2b1a60" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "line": 263, + "column": 19, + "ruleId": "vue/return-in-computed-property", + "message": "Expected to return a value in \"refreshNetwork\" computed property.", + "hash": "2c1b08a49098c83b09058cedc0a962126e91e544" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "line": 270, + "column": 7, + "ruleId": "vue/no-side-effects-in-computed-properties", + "message": "Unexpected side effect in \"legendLayers\" computed property.", + "hash": "760948d2187c853f17ac9a1bd7107e883092d4f4" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "line": 281, + "column": 5, + "ruleId": "vue/no-dupe-keys", + "message": "Duplicate key 'checkedLayers'. May cause name collision in script or template tag.", + "hash": "447edb461e15e3ff5c60c8ecba88131e442539aa" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "line": 353, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "9cf656cbf1eb3d7cc0082e63adcd320b6093d14f" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/index.js", + "line": 20, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "9e94e6412b8a44e47bfe8e66218cad09cff5bed4" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AccompanyingPeriod/SetReferrer.vue", + "line": 42, + "column": 16, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'response' is defined but never used.", + "hash": "62de07b13c662e32332bb062038acee23978ea70" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons.vue", + "line": 356, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_response' is defined but never used.", + "hash": "097e7788a2b5dea500b80b8a3cf968e57063a66a" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeUserGroup.vue", + "line": 6, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'BadgeEntity' is defined but never used.", + "hash": "951a1b012bdec10c4b859af8b34dd894f63add23" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeUserGroup.vue", + "line": 7, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'UserRenderBoxBadge' is defined but never used.", + "hash": "99eba0d8633b2c9497417f4f61ec4194dbb2a96b" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue", + "line": 430, + "column": 17, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "e48c11f9011de90dab15b426baf77030ffae7e22" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue", + "line": 448, + "column": 33, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "dfd37ec320e99059374135a72bfd53978e7e66ae" + }, + { + "path": "src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue", + "line": 371, + "column": 21, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "ed6f5ae90514bf9fc967f2eb7a3ce06344a5f8af" + }, + { + "path": "webpack.config.js", + "line": 77, + "column": 28, + "ruleId": "@typescript-eslint/no-empty-function", + "message": "Unexpected empty arrow function.", + "hash": "a8e433351f1c8bc89a95c8570dd0781d59e26103" + } +] \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8628a521f..a632f8f18 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ cache: paths: - /vendor/ - .cache + - node_modules/ # Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service # See http://docs.gitlab.com/ee/ci/services/README.html for examples. @@ -103,6 +104,32 @@ rector_tests: paths: - vendor/ +lint: + stage: Tests + image: node:20-alpine + before_script: + - apk add --no-cache python3 make g++ py3-setuptools + - export PYTHON="$(which python3)" + - export PATH="./node_modules/.bin:$PATH" + script: + - yarn install --ignore-optional + - npx eslint-baseline "**/*.{js,vue}" + cache: + paths: + - node_modules/ + +# psalm_tests: +# stage: Tests +# image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 +# script: +# - bin/psalm +# allow_failure: true +# artifacts: +# expire_in: 30 min +# paths: +# - bin +# - tests/app/vendor/ + unit_tests: stage: Tests image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 diff --git a/docs/source/development/es-lint.rst b/docs/source/development/es-lint.rst new file mode 100644 index 000000000..e5d470515 --- /dev/null +++ b/docs/source/development/es-lint.rst @@ -0,0 +1,53 @@ +ESLint +====== + +To improve the quality of our JS and VueJS code, ESLint and eslint-plugin-vue are implemented within the chill-bundles project. + +Commands +-------- + +To run ESLint, you can simply use the ``eslint`` command within the chill-bundles directory. + +Interesting options are: + +- ``--quiet`` to only get errors and silence the warnings +- ``--fix`` to have ESLint fix what it can, automatically. This will not fix everything. + +Rules +----- + +We use Vue 3, so the rules can be configured as follows within the ``eslint.config.mjs`` file: + +- ``.configs["flat/base"]`` ... Settings and rules to enable correct ESLint parsing. + +Configurations for using Vue.js 3.x: + +- ``.configs["flat/essential"]`` : Base rules plus rules to prevent errors or unintended behavior. +- ``.configs["flat/strongly-recommended"]`` ... Above, plus rules to considerably improve code readability and/or dev experience. +- ``.configs["flat/recommended"]`` ... Above, plus rules to enforce subjective community defaults to ensure consistency. + +Detailed information about which rules each set includes can be found here: +`https://eslint.vuejs.org/rules/ `_ + +Manual Rule Configuration +------------------------- + +We can also manually configure certain rules or override rules that are part of the ruleset specified above. + +For example, if we want to turn off a certain rule, we can do so as follows: + +.. code-block:: javascript + + rules: { + 'vue/multi-word-component': 'off' + } + +We could also change the severity of a certain rule from 'error' to 'warning', for example. + +Within specific ``.js`` or ``.vue`` files, we can also override a certain rule only for that specific file by adding a comment: + +.. code-block:: javascript + + /* eslint multi-word-component: "off", no-child-content: "error" + -------- + Here's a description about why this configuration is necessary. */ diff --git a/docs/source/development/index.rst b/docs/source/development/index.rst index d48f92890..d3aefc1b0 100644 --- a/docs/source/development/index.rst +++ b/docs/source/development/index.rst @@ -31,6 +31,7 @@ As Chill relies on the `symfony `_ framework, reading the fr Exports Embeddable comments Run tests + ESLint Useful snippets manual/index.rst Assets diff --git a/docs/source/development/user-interface/js-functions/show_hide.js b/docs/source/development/user-interface/js-functions/show_hide.js index 5e6b66eb8..63845a90e 100644 --- a/docs/source/development/user-interface/js-functions/show_hide.js +++ b/docs/source/development/user-interface/js-functions/show_hide.js @@ -1,39 +1,37 @@ -import { ShowHide } from 'ShowHide/show_hide.js'; - -var - div_accompagnement = document.getElementById("form_accompagnement"), - div_accompagnement_comment = document.getElementById("form_accompagnement_comment"), - div_caf_id = document.getElementById("cafId"), - div_caf_inscription_date = document.getElementById("cafInscriptionDate"), - ; +import { ShowHide } from "ShowHide/show_hide.js"; +var div_accompagnement = document.getElementById("form_accompagnement"), + div_accompagnement_comment = document.getElementById( + "form_accompagnement_comment", + ), + div_caf_id = document.getElementById("cafId"), + div_caf_inscription_date = document.getElementById("cafInscriptionDate"); // let show/hide the div_accompagnement_comment if the input with value `'autre'` is checked new ShowHide({ - "froms": [div_accompagnement], - "test": function(froms, event) { - for (let el of froms.values()) { - for (let input of el.querySelectorAll('input').values()) { - if (input.value === 'autre') { - return input.checked; - } - } + froms: [div_accompagnement], + test: function (froms, event) { + for (let el of froms.values()) { + for (let input of el.querySelectorAll("input").values()) { + if (input.value === "autre") { + return input.checked; } - - return false; - }, - "container": [div_accompagnement_comment] + } + } + + return false; + }, + container: [div_accompagnement_comment], }); -// let show the date input only if the the id is filled +// let show the date input only if the the id is filled new ShowHide({ - froms: [ div_caf_id ], - test: function(froms, event) { - for (let el of froms.values()) { - return el.querySelector("input").value !== ""; - } - }, - container: [ div_caf_inscription_date ], - // using this option, we use the event `input` instead of `change` - event_name: 'input' + froms: [div_caf_id], + test: function (froms, event) { + for (let el of froms.values()) { + return el.querySelector("input").value !== ""; + } + }, + container: [div_caf_inscription_date], + // using this option, we use the event `input` instead of `change` + event_name: "input", }); - diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 000000000..6b6cd7439 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,35 @@ +import eslintPluginVue from "eslint-plugin-vue"; +import ts from "typescript-eslint"; +import eslintPluginPrettier from "eslint-plugin-prettier"; + +export default ts.config( + ...ts.configs.recommended, + ...ts.configs.stylistic, + ...eslintPluginVue.configs["flat/essential"], + { + files: ["**/*.vue"], + languageOptions: { + parserOptions: { + parser: "@typescript-eslint/parser", + }, + }, + }, + { + ignores: [ + "**/vendor/*", + "**/import-png.d.ts", + "**/chill.webpack.config.js", + ], + }, + { + plugins: { + prettier: eslintPluginPrettier, + }, + rules: { + "prettier/prettier": "error", + // override/add rules settings here, such as: + "vue/multi-word-component-names": "off", + "@typescript-eslint/no-require-imports": "off", + }, + }, +); diff --git a/package.json b/package.json index d4537d59b..f0dbfa3b3 100644 --- a/package.json +++ b/package.json @@ -13,26 +13,36 @@ "@ckeditor/ckeditor5-markdown-gfm": "^41.4.2", "@ckeditor/ckeditor5-theme-lark": "^41.4.2", "@ckeditor/ckeditor5-vue": "^5.1.0", + "@eslint/js": "^9.14.0", + "@luminateone/eslint-baseline": "^1.0.9", "@symfony/webpack-encore": "^4.1.0", "@tsconfig/node14": "^1.0.1", "@types/dompurify": "^3.0.5", + "@types/eslint__js": "^8.42.3", + "@typescript-eslint/parser": "^8.12.2", "bindings": "^1.5.0", "bootstrap": "5.2.3", "chokidar": "^3.5.1", "dompurify": "^3.1.0", + "eslint": "^9.14.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-vue": "^9.30.0", "fork-awesome": "^1.1.7", "jquery": "^3.6.0", "marked": "^12.0.1", "node-sass": "^8.0.0", "popper.js": "^1.16.1", "postcss-loader": "^7.0.2", + "prettier": "^3.3.3", "raw-loader": "^4.0.2", "sass-loader": "^14.0.0", "select2": "^4.0.13", "select2-bootstrap-theme": "0.1.0-beta.10", "style-loader": "^3.3.1", "ts-loader": "^9.3.1", - "typescript": "^5.4.5", + "typescript": "^5.6.3", + "typescript-eslint": "^8.13.0", "vue-loader": "^17.0.0", "webpack": "^5.75.0", "webpack-cli": "^5.0.1" @@ -68,6 +78,7 @@ "scripts": { "dev-server": "encore dev-server", "dev": "encore dev", + "prettier": "prettier --write \"**/*.{js,ts,vue}\"", "watch": "encore dev --watch", "build": "encore production --progress" }, diff --git a/src/Bundle/ChillActivityBundle/Resources/public/chill/index.js b/src/Bundle/ChillActivityBundle/Resources/public/chill/index.js index 3028d6f5c..0f36c2c8d 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/chill/index.js +++ b/src/Bundle/ChillActivityBundle/Resources/public/chill/index.js @@ -1 +1 @@ -require('./chillactivity.scss'); +require("./chillactivity.scss"); diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/App.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/App.vue index 4809a5fae..f17e42842 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/App.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/App.vue @@ -1,21 +1,21 @@ diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/api.js b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/api.js index a520f22c4..1d6075dee 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/api.js +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/api.js @@ -1,38 +1,39 @@ -import { getSocialIssues } from 'ChillPersonAssets/vuejs/AccompanyingCourse/api.js'; -import { fetchResults } from 'ChillMainAssets/lib/api/apiMethods'; +import { getSocialIssues } from "ChillPersonAssets/vuejs/AccompanyingCourse/api.js"; +import { fetchResults } from "ChillMainAssets/lib/api/apiMethods"; /* -* Load socialActions by socialIssue (id) -*/ + * Load socialActions by socialIssue (id) + */ const getSocialActionByIssue = (id) => { - const url = `/api/1.0/person/social/social-action/by-social-issue/${id}.json`; - return fetch(url) - .then(response => { - if (response.ok) { return response.json(); } - throw Error('Error with request resource response'); - }); + const url = `/api/1.0/person/social/social-action/by-social-issue/${id}.json`; + return fetch(url).then((response) => { + if (response.ok) { + return response.json(); + } + throw Error("Error with request resource response"); + }); }; -const getLocations = () => fetchResults('/api/1.0/main/location.json'); +const getLocations = () => fetchResults("/api/1.0/main/location.json"); -const getLocationTypes = () => fetchResults('/api/1.0/main/location-type.json'); - -const getUserCurrentLocation = - () => fetch('/api/1.0/main/user-current-location.json') - .then(response => { - if (response.ok) { return response.json(); } - throw Error('Error with request resource response'); - }); +const getLocationTypes = () => fetchResults("/api/1.0/main/location-type.json"); +const getUserCurrentLocation = () => + fetch("/api/1.0/main/user-current-location.json").then((response) => { + if (response.ok) { + return response.json(); + } + throw Error("Error with request resource response"); + }); /* -* Load Location Type by defaultFor -* @param {string} entity - can be "person" or "thirdparty" + * Load Location Type by defaultFor + * @param {string} entity - can be "person" or "thirdparty" */ const getLocationTypeByDefaultFor = (entity) => { - return getLocationTypes().then(results => - results.filter(t => t.defaultFor === entity)[0] - ); + return getLocationTypes().then( + (results) => results.filter((t) => t.defaultFor === entity)[0], + ); }; /** @@ -43,26 +44,27 @@ const getLocationTypeByDefaultFor = (entity) => { * @returns {Promise} */ const postLocation = (body) => { - const url = `/api/1.0/main/location.json`; - return fetch(url, { - method: 'POST', - headers: { - 'Content-Type': 'application/json;charset=utf-8' - }, - body: JSON.stringify(body) - }) - .then(response => { - if (response.ok) { return response.json(); } - throw Error('Error with request resource response'); - }); + const url = `/api/1.0/main/location.json`; + return fetch(url, { + method: "POST", + headers: { + "Content-Type": "application/json;charset=utf-8", + }, + body: JSON.stringify(body), + }).then((response) => { + if (response.ok) { + return response.json(); + } + throw Error("Error with request resource response"); + }); }; export { - getSocialIssues, - getSocialActionByIssue, - getLocations, - getLocationTypes, - getLocationTypeByDefaultFor, - postLocation, - getUserCurrentLocation + getSocialIssues, + getSocialActionByIssue, + getLocations, + getLocationTypes, + getLocationTypeByDefaultFor, + postLocation, + getUserCurrentLocation, }; diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups.vue index 7ec62d07d..8437a1524 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups.vue @@ -1,219 +1,242 @@ - + diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonBadge.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonBadge.vue index 11b8063a3..7e839168e 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonBadge.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonBadge.vue @@ -1,32 +1,30 @@ - + diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonsBloc.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonsBloc.vue index 13ad54027..c09e122a9 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonsBloc.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonsBloc.vue @@ -1,41 +1,39 @@ - + diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location.vue index 42a69e4c5..efa1ca9e5 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location.vue @@ -22,9 +22,8 @@ group-values="locations" group-label="locationGroup" v-model="location" - > - - + /> + @@ -43,9 +42,8 @@ export default { }, data() { return { - locationClassList: - `col-form-label col-sm-4 ${document.querySelector('input#chill_activitybundle_activity_location').getAttribute('required') ? 'required' : ''}`, - } + locationClassList: `col-form-label col-sm-4 ${document.querySelector("input#chill_activitybundle_activity_location").getAttribute("required") ? "required" : ""}`, + }; }, computed: { ...mapState(["activity", "availableLocations"]), @@ -61,16 +59,16 @@ export default { }, methods: { labelAccompanyingCourseLocation(value) { - return `${value.address.text} (${value.locationType.title.fr})` + return `${value.address.text} (${value.locationType.title.fr})`; }, customLabel(value) { return value.locationType ? value.name - ? value.name === '__AccompanyingCourseLocation__' + ? value.name === "__AccompanyingCourseLocation__" ? this.labelAccompanyingCourseLocation(value) : `${value.name} (${value.locationType.title.fr})` : value.locationType.title.fr - : ''; + : ""; }, }, }; diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue index 568c8747a..da3e471ef 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue @@ -3,84 +3,129 @@ - - - - + diff --git a/src/Bundle/ChillDocGeneratorBundle/chill.webpack.config.js b/src/Bundle/ChillDocGeneratorBundle/chill.webpack.config.js index 9017c7e08..f97e33019 100644 --- a/src/Bundle/ChillDocGeneratorBundle/chill.webpack.config.js +++ b/src/Bundle/ChillDocGeneratorBundle/chill.webpack.config.js @@ -1,8 +1,11 @@ // this file loads all assets from the Chill DocGenerator bundle -module.exports = function(encore, entries) { - encore.addAliases({ - ChillDocGeneratorAssets: __dirname + '/Resources/public' - }); +module.exports = function (encore, entries) { + encore.addAliases({ + ChillDocGeneratorAssets: __dirname + "/Resources/public", + }); - encore.addEntry('mod_docgen_picktemplate', __dirname + '/Resources/public/module/PickTemplate/index.js'); + encore.addEntry( + "mod_docgen_picktemplate", + __dirname + "/Resources/public/module/PickTemplate/index.js", + ); }; diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js b/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js index 2b6a1b8ae..9f0cfe1a6 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js @@ -1,96 +1,99 @@ -var mime = require('mime'); +var mime = require("mime"); -var algo = 'AES-CBC'; +var algo = "AES-CBC"; var initializeButtons = (root) => { - var - buttons = root.querySelectorAll('a[data-download-button]'); + var buttons = root.querySelectorAll("a[data-download-button]"); - for (let i = 0; i < buttons.length; i ++) { - initialize(buttons[i]); - } + for (let i = 0; i < buttons.length; i++) { + initialize(buttons[i]); + } }; var initialize = (button) => { - button.addEventListener('click', onClick); + button.addEventListener("click", onClick); }; -var onClick = e => download(e.target); +var onClick = (e) => download(e.target); var download = (button) => { - var - keyData = JSON.parse(button.dataset.key), - ivData = JSON.parse(button.dataset.iv), - iv = new Uint8Array(ivData), - urlGenerator = button.dataset.tempUrlGetGenerator, - hasFilename = 'filename' in button.dataset, - filename = button.dataset.filename, - labelPreparing = button.dataset.labelPreparing, - labelReady = button.dataset.labelReady, - mimeType = button.dataset.mimeType, - extension = mime.getExtension(mimeType), - decryptError = "Error while decrypting file", - fetchError = "Error while fetching file", - key, url - ; + var keyData = JSON.parse(button.dataset.key), + ivData = JSON.parse(button.dataset.iv), + iv = new Uint8Array(ivData), + urlGenerator = button.dataset.tempUrlGetGenerator, + hasFilename = "filename" in button.dataset, + filename = button.dataset.filename, + labelPreparing = button.dataset.labelPreparing, + labelReady = button.dataset.labelReady, + mimeType = button.dataset.mimeType, + extension = mime.getExtension(mimeType), + decryptError = "Error while decrypting file", + fetchError = "Error while fetching file", + key, + url; - button.textContent = labelPreparing; + button.textContent = labelPreparing; - window.fetch(urlGenerator) - .then((r) => { - if (r.ok) { - return r.json(); - } else { - throw new Error("error while downloading url " + r.status + " " + r.statusText); - } - }) - .then(data => { - return window.fetch(data.url); - }) - .then(response => { - if (response.ok) { - return response.arrayBuffer(); - } - throw new Error(response.status + response.statusText); - }) - .then(buffer => { - if (keyData.alg !== undefined) { - return window.crypto.subtle - .importKey('jwk', keyData, { name: algo, iv: iv}, false, ['decrypt']) - .then(key => { - return window.crypto.subtle.decrypt({ name: algo, iv: iv }, key, buffer); - }); - } - return Promise.resolve(buffer); - }) - .then(decrypted => { - var - blob = new Blob([decrypted], { type: mimeType }), - url = window.URL.createObjectURL(blob) - ; - button.href = url; - button.target = '_blank'; - button.type = mimeType; - button.textContent = labelReady; - if (hasFilename) { - - button.download = filename; - if (extension !== false) { - button.download = button.download + '.' + extension; - } - } - button.removeEventListener('click', onClick); - button.click(); - }) - .catch(error => { - button.textContent = ""; - button.appendChild(document.createTextNode("error while handling decrypted file")); - }) - ; + window + .fetch(urlGenerator) + .then((r) => { + if (r.ok) { + return r.json(); + } else { + throw new Error( + "error while downloading url " + r.status + " " + r.statusText, + ); + } + }) + .then((data) => { + return window.fetch(data.url); + }) + .then((response) => { + if (response.ok) { + return response.arrayBuffer(); + } + throw new Error(response.status + response.statusText); + }) + .then((buffer) => { + if (keyData.alg !== undefined) { + return window.crypto.subtle + .importKey("jwk", keyData, { name: algo, iv: iv }, false, ["decrypt"]) + .then((key) => { + return window.crypto.subtle.decrypt( + { name: algo, iv: iv }, + key, + buffer, + ); + }); + } + return Promise.resolve(buffer); + }) + .then((decrypted) => { + var blob = new Blob([decrypted], { type: mimeType }), + url = window.URL.createObjectURL(blob); + button.href = url; + button.target = "_blank"; + button.type = mimeType; + button.textContent = labelReady; + if (hasFilename) { + button.download = filename; + if (extension !== false) { + button.download = button.download + "." + extension; + } + } + button.removeEventListener("click", onClick); + button.click(); + }) + .catch((error) => { + button.textContent = ""; + button.appendChild( + document.createTextNode("error while handling decrypted file"), + ); + }); }; -window.addEventListener('load', function(e) { - initializeButtons(e.target); +window.addEventListener("load", function (e) { + initializeButtons(e.target); }); export { initializeButtons, download }; diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/index-old.js b/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/index-old.js index 9fa7deeeb..e89a18869 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/index-old.js +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/index-old.js @@ -1,2 +1,2 @@ -require('./uploader.js'); -require('./downloader.js'); \ No newline at end of file +require("./uploader.js"); +require("./downloader.js"); diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js b/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js index 5def6a0b2..12201e9f2 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js @@ -1,7 +1,6 @@ -var algo = 'AES-CBC'; -import Dropzone from 'dropzone'; -import { initializeButtons } from './downloader.js'; - +var algo = "AES-CBC"; +import Dropzone from "dropzone"; +import { initializeButtons } from "./downloader.js"; /** * @@ -23,351 +22,335 @@ import { initializeButtons } from './downloader.js'; // load css //require('dropzone/dist/basic.css'); -require('dropzone/dist/dropzone.css'); -require('./index.scss'); +require("dropzone/dist/dropzone.css"); +require("./index.scss"); // // disable dropzone autodiscover Dropzone.autoDiscover = false; var keyDefinition = { - name: algo, - length: 256 + name: algo, + length: 256, }; -var searchForZones = function(root) { - var zones = root.querySelectorAll('div[data-stored-object]'); - for(let i=0; i < zones.length; i++) { - initialize(zones[i]); - } +var searchForZones = function (root) { + var zones = root.querySelectorAll("div[data-stored-object]"); + for (let i = 0; i < zones.length; i++) { + initialize(zones[i]); + } }; -var getUploadUrl = function(zoneData, files) { - var - generateTempUrlPost = zoneData.zone.querySelector('input[data-async-file-upload]').dataset.generateTempUrlPost, - oReq = new XMLHttpRequest() - ; +var getUploadUrl = function (zoneData, files) { + var generateTempUrlPost = zoneData.zone.querySelector( + "input[data-async-file-upload]", + ).dataset.generateTempUrlPost, + oReq = new XMLHttpRequest(); + // arg, dropzone, you cannot handle async upload... + oReq.open("GET", generateTempUrlPost, false); + oReq.send(); - // arg, dropzone, you cannot handle async upload... - oReq.open("GET", generateTempUrlPost, false); - oReq.send(); + if (oReq.readyState !== XMLHttpRequest.DONE) { + throw new Error("Error while fetching url to upload"); + } - if (oReq.readyState !== XMLHttpRequest.DONE) { - throw new Error("Error while fetching url to upload"); - } + zoneData.params = JSON.parse(oReq.responseText); - zoneData.params = JSON.parse(oReq.responseText); - - return zoneData.params.url; + return zoneData.params.url; }; -var encryptFile = function(originalFile, zoneData, done) { - var - iv = crypto.getRandomValues(new Uint8Array(16)), - reader = new FileReader(), - jsKey, rawKey - ; +var encryptFile = function (originalFile, zoneData, done) { + var iv = crypto.getRandomValues(new Uint8Array(16)), + reader = new FileReader(), + jsKey, + rawKey; - zoneData.originalType = originalFile.type; + zoneData.originalType = originalFile.type; - reader.onload = e => { - window.crypto.subtle.generateKey(keyDefinition, true, [ "encrypt", "decrypt" ]) - .then(key => { - jsKey = key; + reader.onload = (e) => { + window.crypto.subtle + .generateKey(keyDefinition, true, ["encrypt", "decrypt"]) + .then((key) => { + jsKey = key; - // we register the key somwhere - return window.crypto.subtle.exportKey('jwk', key); - }).then(exportedKey => { - rawKey = exportedKey; + // we register the key somwhere + return window.crypto.subtle.exportKey("jwk", key); + }) + .then((exportedKey) => { + rawKey = exportedKey; - // we start encryption - return window.crypto.subtle.encrypt({ name: algo, iv: iv}, jsKey, e.target.result); - }) - .then(encrypted => { - zoneData.crypto = { - jsKey: jsKey, - rawKey: rawKey, - iv: iv - }; + // we start encryption + return window.crypto.subtle.encrypt( + { name: algo, iv: iv }, + jsKey, + e.target.result, + ); + }) + .then((encrypted) => { + zoneData.crypto = { + jsKey: jsKey, + rawKey: rawKey, + iv: iv, + }; - done(new File( [ encrypted ], zoneData.suffix)); - }); - }; + done(new File([encrypted], zoneData.suffix)); + }); + }; - reader.readAsArrayBuffer(originalFile); + reader.readAsArrayBuffer(originalFile); }; var addBelowButton = (btn, zone, zoneData) => { - let - belowZone = zone.querySelector('.chill-dropzone__below-zone'); + let belowZone = zone.querySelector(".chill-dropzone__below-zone"); - if (belowZone === null) { - belowZone = document.createElement('div'); - belowZone.classList.add('chill-dropzone__below-zone'); - zone.appendChild(belowZone); - } + if (belowZone === null) { + belowZone = document.createElement("div"); + belowZone.classList.add("chill-dropzone__below-zone"); + zone.appendChild(belowZone); + } - belowZone.appendChild(btn); + belowZone.appendChild(btn); }; var createZone = (zone, zoneData) => { - var - created = document.createElement('div'), - initMessage = document.createElement('div'), - initContent = zone.dataset.labelInitMessage, - dropzoneI; + var created = document.createElement("div"), + initMessage = document.createElement("div"), + initContent = zone.dataset.labelInitMessage, + dropzoneI; - created.classList.add('dropzone'); - initMessage.classList.add('dz-message'); - initMessage.appendChild(document.createTextNode(initContent)); - console.log(Dropzone); - dropzoneI = new Dropzone(created, { - url: function(files) { - return getUploadUrl(zoneData, files); - }, - dictDefaultMessage: zone.dataset.dictDefaultMessage, - dictFileTooBig: zone.dataset.dictFileTooBig, - dictRemoveFile: zone.dataset.dictRemoveFile, - dictMaxFilesExceeded: zone.dataset.dictMaxFilesExceeded, - dictCancelUpload: zone.dataset.dictCancelUpload, - dictCancelUploadConfirm: zone.dataset.dictCancelUploadConfirm, - dictUploadCanceled: zone.dataset.dictUploadCanceled, - maxFiles: 1, - addRemoveLinks: true, - transformFile: function(file, done) { - encryptFile(file, zoneData, done); - }, - renameFile: function(file) { - return zoneData.suffix; - } - }); + created.classList.add("dropzone"); + initMessage.classList.add("dz-message"); + initMessage.appendChild(document.createTextNode(initContent)); + console.log(Dropzone); + dropzoneI = new Dropzone(created, { + url: function (files) { + return getUploadUrl(zoneData, files); + }, + dictDefaultMessage: zone.dataset.dictDefaultMessage, + dictFileTooBig: zone.dataset.dictFileTooBig, + dictRemoveFile: zone.dataset.dictRemoveFile, + dictMaxFilesExceeded: zone.dataset.dictMaxFilesExceeded, + dictCancelUpload: zone.dataset.dictCancelUpload, + dictCancelUploadConfirm: zone.dataset.dictCancelUploadConfirm, + dictUploadCanceled: zone.dataset.dictUploadCanceled, + maxFiles: 1, + addRemoveLinks: true, + transformFile: function (file, done) { + encryptFile(file, zoneData, done); + }, + renameFile: function (file) { + return zoneData.suffix; + }, + }); - dropzoneI.on("sending", function(file, xhr, formData) { - formData.append("redirect", zoneData.params.redirect); - formData.append("max_file_size", zoneData.params.max_file_size); - formData.append("max_file_count", zoneData.params.max_file_count); - formData.append("expires", zoneData.params.expires); - formData.append("signature", zoneData.params.signature); - }); + dropzoneI.on("sending", function (file, xhr, formData) { + formData.append("redirect", zoneData.params.redirect); + formData.append("max_file_size", zoneData.params.max_file_size); + formData.append("max_file_count", zoneData.params.max_file_count); + formData.append("expires", zoneData.params.expires); + formData.append("signature", zoneData.params.signature); + }); - dropzoneI.on("success", function(file, response) { - zoneData.currentFile = file; - storeDataInForm(zone, zoneData); - }); + dropzoneI.on("success", function (file, response) { + zoneData.currentFile = file; + storeDataInForm(zone, zoneData); + }); - dropzoneI.on("addedfile", function(file) { - if (zoneData.hasOwnProperty('currentFile')) { - dropzoneI.removeFile(zoneData.currentFile); - } - }); + dropzoneI.on("addedfile", function (file) { + if (zoneData.hasOwnProperty("currentFile")) { + dropzoneI.removeFile(zoneData.currentFile); + } + }); - dropzoneI.on("removedfile", function(file) { - removeDataInForm(zone, zoneData); - }); + dropzoneI.on("removedfile", function (file) { + removeDataInForm(zone, zoneData); + }); - zone.insertBefore(created, zone.firstChild); + zone.insertBefore(created, zone.firstChild); - let event = new CustomEvent("chill_dropzone_initialized", { - detail: { - dropzone: dropzoneI, - zoneData: zoneData - } - }); - window.dispatchEvent(event); + let event = new CustomEvent("chill_dropzone_initialized", { + detail: { + dropzone: dropzoneI, + zoneData: zoneData, + }, + }); + window.dispatchEvent(event); }; - -var initialize = function(zone) { - var - allowRemove = zone.dataset.allowRemove, - zoneData = { zone: zone, suffix: createFilename(), allowRemove: allowRemove, old: null } - ; - - if (hasDataInForm(zone, zoneData)) { - insertRemoveButton(zone, zoneData); - insertDownloadButton(zone, zoneData); - } else { - createZone(zone, zoneData); - } +var initialize = function (zone) { + var allowRemove = zone.dataset.allowRemove, + zoneData = { + zone: zone, + suffix: createFilename(), + allowRemove: allowRemove, + old: null, + }; + if (hasDataInForm(zone, zoneData)) { + insertRemoveButton(zone, zoneData); + insertDownloadButton(zone, zoneData); + } else { + createZone(zone, zoneData); + } }; var createFilename = () => { - var text = ""; - var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; + var text = ""; + var possible = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - for (let i = 0; i < 7; i++) { - text += possible.charAt(Math.floor(Math.random() * possible.length)); - } + for (let i = 0; i < 7; i++) { + text += possible.charAt(Math.floor(Math.random() * possible.length)); + } - return text; + return text; }; var storeDataInForm = (zone, zoneData) => { - var - inputKey = zone.querySelector('input[data-stored-object-key]'), - inputIv = zone.querySelector('input[data-stored-object-iv]'), - inputObject = zone.querySelector('input[data-async-file-upload]'), - inputType = zone.querySelector('input[data-async-file-type]') - ; + var inputKey = zone.querySelector("input[data-stored-object-key]"), + inputIv = zone.querySelector("input[data-stored-object-iv]"), + inputObject = zone.querySelector("input[data-async-file-upload]"), + inputType = zone.querySelector("input[data-async-file-type]"); + inputKey.value = JSON.stringify(zoneData.crypto.rawKey); + inputIv.value = JSON.stringify(Array.from(zoneData.crypto.iv)); + inputType.value = zoneData.originalType; + inputObject.value = zoneData.params.prefix + zoneData.suffix; - inputKey.value = JSON.stringify(zoneData.crypto.rawKey); - inputIv.value = JSON.stringify(Array.from(zoneData.crypto.iv)); - inputType.value = zoneData.originalType; - inputObject.value = zoneData.params.prefix + zoneData.suffix; - - insertDownloadButton(zone); + insertDownloadButton(zone); }; const restoreDataInForm = (zone, zoneData) => { - var - inputKey = zone.querySelector('input[data-stored-object-key]'), - inputIv = zone.querySelector('input[data-stored-object-iv]'), - inputObject = zone.querySelector('input[data-async-file-upload]'), - inputType = zone.querySelector('input[data-async-file-type]') - ; + var inputKey = zone.querySelector("input[data-stored-object-key]"), + inputIv = zone.querySelector("input[data-stored-object-iv]"), + inputObject = zone.querySelector("input[data-async-file-upload]"), + inputType = zone.querySelector("input[data-async-file-type]"); + if (zoneData.old === null) { + console.log("should not have restored data"); + return; + } - if (zoneData.old === null) { - console.log('should not have restored data'); - return; - } + inputKey.value = zoneData.old.key; + inputIv.value = zoneData.old.iv; + inputType.value = zoneData.old.type; + inputObject.value = zoneData.old.obj; - inputKey.value = zoneData.old.key; - inputIv.value = zoneData.old.iv; - inputType.value = zoneData.old.type; - inputObject.value = zoneData.old.obj; - - insertDownloadButton(zone); + insertDownloadButton(zone); }; const hasDataInForm = (zone, zoneData) => { - var - inputObject = zone.querySelector('input[data-async-file-upload]') - ; - - return inputObject.value.length > 0; + var inputObject = zone.querySelector("input[data-async-file-upload]"); + return inputObject.value.length > 0; }; var removeDataInForm = (zone, zoneData) => { - var - inputKey = zone.querySelector('input[data-stored-object-key]'), - inputIv = zone.querySelector('input[data-stored-object-iv]'), - inputObject = zone.querySelector('input[data-async-file-upload]'), - inputType = zone.querySelector('input[data-async-file-type]') - ; + var inputKey = zone.querySelector("input[data-stored-object-key]"), + inputIv = zone.querySelector("input[data-stored-object-iv]"), + inputObject = zone.querySelector("input[data-async-file-upload]"), + inputType = zone.querySelector("input[data-async-file-type]"); + // store data for future usage + zoneData.old = { + key: inputKey.value, + iv: inputIv.value, + obj: inputObject.value, + type: inputType.value, + }; + // set blank values + inputKey.value = ""; + inputIv.value = ""; + inputType.value = ""; + inputObject.value = ""; - // store data for future usage - zoneData.old = { - key: inputKey.value, - iv: inputIv.value, - obj: inputObject.value, - type: inputType.value - }; - // set blank values - inputKey.value = ""; - inputIv.value = ""; - inputType.value = ""; - inputObject.value = ""; - - insertDownloadButton(zone); + insertDownloadButton(zone); }; var insertRemoveButton = (zone, zoneData) => { - var - removeButton = document.createElement('a'), - cancelButton = document.createElement('a'), - labelRemove = zone.dataset.dictRemove, - labelCancel = 'Restaurer' - ; + var removeButton = document.createElement("a"), + cancelButton = document.createElement("a"), + labelRemove = zone.dataset.dictRemove, + labelCancel = "Restaurer"; + removeButton.classList.add("btn", "btn-delete"); + removeButton.textContent = labelRemove; - removeButton.classList.add('btn', 'btn-delete'); - removeButton.textContent = labelRemove; + cancelButton.classList.add("btn", "btn-cancel"); + cancelButton.textContent = labelCancel; - cancelButton.classList.add('btn', 'btn-cancel'); - cancelButton.textContent = labelCancel; - - removeButton.addEventListener('click', (e) => { + removeButton.addEventListener("click", (e) => { + e.preventDefault(); + if (zoneData.allowRemove === "true") { + removeDataInForm(zone, zoneData); + cancelButton.addEventListener("click", (e) => { e.preventDefault(); - if (zoneData.allowRemove === 'true') { - removeDataInForm(zone, zoneData); - cancelButton.addEventListener('click', (e) => { - e.preventDefault(); - restoreDataInForm(zone, zoneData); + restoreDataInForm(zone, zoneData); - cancelButton.remove(); - zone.querySelector('.dropzone').remove(); + cancelButton.remove(); + zone.querySelector(".dropzone").remove(); - initialize(zone); - }); - } - addBelowButton(cancelButton, zone, zoneData); - //zone.appendChild(cancelButton); - removeButton.remove(); - createZone(zone, zoneData); - }); + initialize(zone); + }); + } + addBelowButton(cancelButton, zone, zoneData); + //zone.appendChild(cancelButton); + removeButton.remove(); + createZone(zone, zoneData); + }); - addBelowButton(removeButton, zone, zoneData); - // zone.appendChild(removeButton); + addBelowButton(removeButton, zone, zoneData); + // zone.appendChild(removeButton); }; const removeDownloadButton = (zone, zoneData) => { - var - existingButtons = zone.querySelectorAll('a[data-download-button]') - ; - - // remove existing - existingButtons.forEach(function(b) { - b.remove(); - }); + var existingButtons = zone.querySelectorAll("a[data-download-button]"); + // remove existing + existingButtons.forEach(function (b) { + b.remove(); + }); }; var insertDownloadButton = (zone, zoneData) => { - var - existingButtons = zone.querySelectorAll('a[data-download-button]'), - newButton = document.createElement('a'), - inputKey = zone.querySelector('input[data-stored-object-key]'), - inputIv = zone.querySelector('input[data-stored-object-iv]'), - inputObject = zone.querySelector('input[data-async-file-upload]'), - inputType = zone.querySelector('input[data-async-file-type]'), - labelPreparing = zone.dataset.labelPreparing, - labelQuietButton = zone.dataset.labelQuietButton, - labelReady = zone.dataset.labelReady, - tempUrlGenerator = zone.dataset.tempUrlGenerator, - tempUrlGeneratorParams = new URLSearchParams() - ; + var existingButtons = zone.querySelectorAll("a[data-download-button]"), + newButton = document.createElement("a"), + inputKey = zone.querySelector("input[data-stored-object-key]"), + inputIv = zone.querySelector("input[data-stored-object-iv]"), + inputObject = zone.querySelector("input[data-async-file-upload]"), + inputType = zone.querySelector("input[data-async-file-type]"), + labelPreparing = zone.dataset.labelPreparing, + labelQuietButton = zone.dataset.labelQuietButton, + labelReady = zone.dataset.labelReady, + tempUrlGenerator = zone.dataset.tempUrlGenerator, + tempUrlGeneratorParams = new URLSearchParams(); + // remove existing + existingButtons.forEach(function (b) { + b.remove(); + }); - // remove existing - existingButtons.forEach(function(b) { - b.remove(); - }); + if (inputObject.value === "") { + return; + } - if (inputObject.value === '') { - return; - } + tempUrlGeneratorParams.append("object_name", inputObject.value); - tempUrlGeneratorParams.append('object_name', inputObject.value); + newButton.dataset.downloadButton = true; + newButton.dataset.key = inputKey.value; + newButton.dataset.iv = inputIv.value; + newButton.dataset.mimeType = inputType.value; + newButton.dataset.labelPreparing = labelPreparing; + newButton.dataset.labelReady = labelReady; + newButton.dataset.tempUrlGetGenerator = + tempUrlGenerator + "?" + tempUrlGeneratorParams.toString(); + newButton.classList.add("btn", "btn-download", "dz-bt-below-dropzone"); + newButton.textContent = labelQuietButton; - newButton.dataset.downloadButton = true; - newButton.dataset.key = inputKey.value; - newButton.dataset.iv = inputIv.value; - newButton.dataset.mimeType = inputType.value; - newButton.dataset.labelPreparing = labelPreparing; - newButton.dataset.labelReady = labelReady; - newButton.dataset.tempUrlGetGenerator = tempUrlGenerator + '?' + tempUrlGeneratorParams.toString(); - newButton.classList.add('btn', 'btn-download', 'dz-bt-below-dropzone'); - newButton.textContent = labelQuietButton; - - addBelowButton(newButton, zone, zoneData); - //zone.appendChild(newButton); - initializeButtons(zone); + addBelowButton(newButton, zone, zoneData); + //zone.appendChild(newButton); + initializeButtons(zone); }; -window.addEventListener('load', function(e) { - searchForZones(document); +window.addEventListener("load", function (e) { + searchForZones(document); }); -window.addEventListener('collection-add-entry', function(e) { - searchForZones(e.detail.entry); +window.addEventListener("collection-add-entry", function (e) { + searchForZones(e.detail.entry); }); export { searchForZones }; diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentActionButtonsGroup.vue b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentActionButtonsGroup.vue index 9c7dac095..85548f6d3 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentActionButtonsGroup.vue +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentActionButtonsGroup.vue @@ -1,92 +1,137 @@ - + diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue index fb3b82459..b47a6bce0 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue @@ -1,312 +1,335 @@ - diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFile.vue b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFile.vue index 99fc31524..cfeb6c66b 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFile.vue +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFile.vue @@ -1,23 +1,35 @@