diff --git a/package.json b/package.json index f41090e3c..43ae7eabd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "vite", "build": "vite build", "test:unit": "vitest", - "prepare": "husky install" + "prepare": "husky install", + "lint:fix": "eslint --fix --ext .js,.vue src" }, "dependencies": { "@vue/compat": "^3.2.47", diff --git a/src/app/api/old/PermissionsAPIService/APIPermissionsGetter.js b/src/app/api/old/PermissionsAPIService/APIPermissionsGetter.js index 55e84eb62..f2281f7ff 100644 --- a/src/app/api/old/PermissionsAPIService/APIPermissionsGetter.js +++ b/src/app/api/old/PermissionsAPIService/APIPermissionsGetter.js @@ -8,7 +8,10 @@ export default class APIPermissionsGetter { constructor(url) { this.baseUrl = url; - this.listGetter = new EndpointListGetterApiConsumer({ baseUrl: this.baseUrl, instance }, { + this.listGetter = new EndpointListGetterApiConsumer({ + baseUrl: this.baseUrl, + instance, + }, { defaultListObject: { user: false }, listResponseHandler: APIPermissionsGetter.handlePermissionsListResponse, nestedUrl: this._nestedUrl, diff --git a/src/app/api/old/PermissionsAPIService/APIPermissionsPatcher.js b/src/app/api/old/PermissionsAPIService/APIPermissionsPatcher.js index 92205a75e..9cf64c464 100644 --- a/src/app/api/old/PermissionsAPIService/APIPermissionsPatcher.js +++ b/src/app/api/old/PermissionsAPIService/APIPermissionsPatcher.js @@ -1,12 +1,13 @@ -import { - EndpointPatcherApiConsumer, -} from 'webitel-sdk/esm2015/api-consumers'; +import { EndpointPatcherApiConsumer } from 'webitel-sdk/esm2015/api-consumers'; import instance from '../instance'; export default class APIPermissionsPatcher { constructor(baseUrl) { this.baseUrl = baseUrl; - this.patcher = new EndpointPatcherApiConsumer({ baseUrl: this.baseUrl, instance }); + this.patcher = new EndpointPatcherApiConsumer({ + baseUrl: this.baseUrl, + instance, + }); } async patchItem({ id, changes }) { diff --git a/src/app/api/old/instance.js b/src/app/api/old/instance.js index 8efd2941b..5d7bd61d6 100644 --- a/src/app/api/old/instance.js +++ b/src/app/api/old/instance.js @@ -1,8 +1,8 @@ -import axios from 'axios'; import updateTokenInterceptor from '@webitel/ui-sdk/src/api/interceptors/request/updateToken.interceptor'; import handleUnauthorizedInterceptor from '@webitel/ui-sdk/src/api/interceptors/response/handleUnauthorized.interceptor'; +import axios from 'axios'; import defaultInterceptorsSetup from './interceptors/defaultInterceptorsSetup'; // config with specific properties which doesn't fit to axios config diff --git a/src/app/api/old/interceptors/InterceptorType.enum.js b/src/app/api/old/interceptors/InterceptorType.enum.js index ca379cd74..a801b3596 100644 --- a/src/app/api/old/interceptors/InterceptorType.enum.js +++ b/src/app/api/old/interceptors/InterceptorType.enum.js @@ -1,6 +1,6 @@ const InterceptorType = Object.freeze({ - REQUEST: 'request', - RESPONSE: 'response', - }); + REQUEST: 'request', + RESPONSE: 'response', +}); export default InterceptorType; diff --git a/src/app/api/old/interceptors/defaultInterceptorsSetup.js b/src/app/api/old/interceptors/defaultInterceptorsSetup.js index 3787e558b..cfcd49755 100644 --- a/src/app/api/old/interceptors/defaultInterceptorsSetup.js +++ b/src/app/api/old/interceptors/defaultInterceptorsSetup.js @@ -2,10 +2,12 @@ import applyInterceptors from './apply'; import InterceptorType from './InterceptorType.enum'; import attachStarToRequestUrlSearchQuery from './request/attachStarToRequestUrlSearchQuery.interceptor'; -import camelToSnakeRequestData from './request/camelToSnakeRequestData.interceptor'; +import camelToSnakeRequestData + from './request/camelToSnakeRequestData.interceptor'; import errorEventBusNotificationResponse from './response/errorEventBusNotificationResponse.interceptor'; -import snakeToCamelResponseData from './response/snakeToCamelResponseData.interceptor'; +import snakeToCamelResponseData + from './response/snakeToCamelResponseData.interceptor'; import unauthorizedResponse from './response/unauthorizedResponse.interceptor'; const DO_NOT_CONVERT_KEYS = [ diff --git a/src/app/api/old/interceptors/request/camelToSnakeRequestData.interceptor.js b/src/app/api/old/interceptors/request/camelToSnakeRequestData.interceptor.js index c5f640150..f0a15640a 100644 --- a/src/app/api/old/interceptors/request/camelToSnakeRequestData.interceptor.js +++ b/src/app/api/old/interceptors/request/camelToSnakeRequestData.interceptor.js @@ -7,7 +7,7 @@ const onFulfilled = (DO_NOT_CONVERT_KEYS = []) => (request) => { || request.method === 'patch') { if (typeof request.data === 'string') { request.data = JSON - .stringify(objCamelToSnake(JSON.parse(request.data), DO_NOT_CONVERT_KEYS)); + .stringify(objCamelToSnake(JSON.parse(request.data), DO_NOT_CONVERT_KEYS)); } else { request.data = objCamelToSnake(request.data, DO_NOT_CONVERT_KEYS); } diff --git a/src/app/assets/dummy/adm-dummy-after-search.svg b/src/app/assets/dummy/adm-dummy-after-search.svg index e44ea0677..8da70491a 100644 --- a/src/app/assets/dummy/adm-dummy-after-search.svg +++ b/src/app/assets/dummy/adm-dummy-after-search.svg @@ -1,108 +1,143 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/app/assets/icons/sprite/adm-contact-center.svg b/src/app/assets/icons/sprite/adm-contact-center.svg index 1d3fe7b85..41d292f51 100644 --- a/src/app/assets/icons/sprite/adm-contact-center.svg +++ b/src/app/assets/icons/sprite/adm-contact-center.svg @@ -1,3 +1,4 @@ - + diff --git a/src/app/assets/icons/sprite/adm-directory.svg b/src/app/assets/icons/sprite/adm-directory.svg index b66c250ed..24fcfcef0 100644 --- a/src/app/assets/icons/sprite/adm-directory.svg +++ b/src/app/assets/icons/sprite/adm-directory.svg @@ -1,5 +1,6 @@ - - - + + + diff --git a/src/app/assets/icons/sprite/adm-integrations.svg b/src/app/assets/icons/sprite/adm-integrations.svg index b5a5c2bb7..ae1822791 100644 --- a/src/app/assets/icons/sprite/adm-integrations.svg +++ b/src/app/assets/icons/sprite/adm-integrations.svg @@ -1,3 +1,4 @@ - + diff --git a/src/app/assets/icons/sprite/adm-license-users.svg b/src/app/assets/icons/sprite/adm-license-users.svg index f8d3b6767..049e87e5f 100644 --- a/src/app/assets/icons/sprite/adm-license-users.svg +++ b/src/app/assets/icons/sprite/adm-license-users.svg @@ -1,3 +1,4 @@ - + diff --git a/src/app/assets/icons/sprite/adm-license.svg b/src/app/assets/icons/sprite/adm-license.svg index 168f1bed6..38d0587b5 100644 --- a/src/app/assets/icons/sprite/adm-license.svg +++ b/src/app/assets/icons/sprite/adm-license.svg @@ -1,52 +1,64 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/app/assets/icons/sprite/adm-lookups.svg b/src/app/assets/icons/sprite/adm-lookups.svg index 61c5169d2..9d195c17c 100644 --- a/src/app/assets/icons/sprite/adm-lookups.svg +++ b/src/app/assets/icons/sprite/adm-lookups.svg @@ -1,4 +1,6 @@ - - + + diff --git a/src/app/assets/icons/sprite/adm-member-reset.svg b/src/app/assets/icons/sprite/adm-member-reset.svg index ac5032ba8..c83761eb8 100644 --- a/src/app/assets/icons/sprite/adm-member-reset.svg +++ b/src/app/assets/icons/sprite/adm-member-reset.svg @@ -1,6 +1,7 @@ - - - - + + + + diff --git a/src/app/assets/icons/sprite/adm-permissions.svg b/src/app/assets/icons/sprite/adm-permissions.svg index 06997f37c..1f90e60de 100644 --- a/src/app/assets/icons/sprite/adm-permissions.svg +++ b/src/app/assets/icons/sprite/adm-permissions.svg @@ -1,3 +1,4 @@ - + diff --git a/src/app/assets/icons/sprite/adm-routing.svg b/src/app/assets/icons/sprite/adm-routing.svg index 7804af3cf..ba2c4be2b 100644 --- a/src/app/assets/icons/sprite/adm-routing.svg +++ b/src/app/assets/icons/sprite/adm-routing.svg @@ -1,3 +1,4 @@ - + diff --git a/src/app/assets/icons/sprite/adm-system.svg b/src/app/assets/icons/sprite/adm-system.svg index 08c96d020..5efbe2e07 100644 --- a/src/app/assets/icons/sprite/adm-system.svg +++ b/src/app/assets/icons/sprite/adm-system.svg @@ -1,5 +1,6 @@ - - - + + + diff --git a/src/app/assets/icons/sprite/adm-trigger-start.svg b/src/app/assets/icons/sprite/adm-trigger-start.svg index 0c269d9cd..f239aafb4 100644 --- a/src/app/assets/icons/sprite/adm-trigger-start.svg +++ b/src/app/assets/icons/sprite/adm-trigger-start.svg @@ -1,14 +1,14 @@ - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/src/app/assets/icons/sprite/index.js b/src/app/assets/icons/sprite/index.js index 0cd3368af..2ca05f05a 100644 --- a/src/app/assets/icons/sprite/index.js +++ b/src/app/assets/icons/sprite/index.js @@ -1,11 +1,11 @@ import './adm-contact-center.svg'; import './adm-directory.svg'; import './adm-integrations.svg'; -import './adm-license.svg'; import './adm-license-users.svg'; +import './adm-license.svg'; import './adm-lookups.svg'; +import './adm-member-reset.svg'; import './adm-permissions.svg'; import './adm-routing.svg'; -import './adm-member-reset.svg'; -import './adm-trigger-start.svg'; import './adm-system.svg'; +import './adm-trigger-start.svg'; diff --git a/src/app/assets/icons/sprite/readme.md b/src/app/assets/icons/sprite/readme.md index b4d266782..e0f6f20ef 100644 --- a/src/app/assets/icons/sprite/readme.md +++ b/src/app/assets/icons/sprite/readme.md @@ -1,4 +1,5 @@ # Sprite Icons + Specific History app icons should have `adm-` preffix in their names, -so that `wt-icons` would be used as `` \ No newline at end of file +so that `wt-icons` would be used as `` diff --git a/src/app/components/actions/delete-all-action.vue b/src/app/components/actions/delete-all-action.vue index d3a2a59a8..c5f79f856 100644 --- a/src/app/components/actions/delete-all-action.vue +++ b/src/app/components/actions/delete-all-action.vue @@ -1,22 +1,22 @@ @@ -180,11 +180,11 @@ $line-current: rgba(255, 193, 7, 0.2); &--fullscreen { position: fixed; + z-index: 1000; top: 0; right: 0; bottom: 0; left: 0; - z-index: 1000; width: auto; height: auto; } @@ -219,15 +219,15 @@ $line-current: rgba(255, 193, 7, 0.2); // collaps arrow .cldr { - height: 16px !important; left: 34px !important; + height: 16px !important; } } } .view-overlays .current-line { - background: $line-current; border: none !important; + background: $line-current; } // scrollbar hints canvas @@ -236,13 +236,13 @@ $line-current: rgba(255, 193, 7, 0.2); } .minimap { - left: auto !important; right: 10px; + left: auto !important; } .slider { - background-color: $srollbar-thumb-color; border-radius: var(--border-radius); + background-color: $srollbar-thumb-color; } // scrollbar @@ -250,8 +250,8 @@ $line-current: rgba(255, 193, 7, 0.2); background: #fff; &.fade { - opacity: 1; visibility: visible !important; + opacity: 1; .slider { opacity: 0; @@ -259,16 +259,16 @@ $line-current: rgba(255, 193, 7, 0.2); } .slider { - width: 10px !important; - left: auto !important; right: 0; + left: auto !important; + width: 10px !important; } } // scrollbar .horizontal { - background: #fff; opacity: 1; + background: #fff; .slider { height: 10px !important; diff --git a/src/app/components/utils/copy-input.vue b/src/app/components/utils/copy-input.vue index 4f83d1922..1f74a79d7 100644 --- a/src/app/components/utils/copy-input.vue +++ b/src/app/components/utils/copy-input.vue @@ -1,14 +1,14 @@