Skip to content

Commit

Permalink
Merge pull request #538 from webitel/refactor/vite
Browse files Browse the repository at this point in the history
Refactor/vite
  • Loading branch information
dlohvinov authored Oct 17, 2023
2 parents 87eca57 + 77d0a1d commit 93cc338
Show file tree
Hide file tree
Showing 57 changed files with 8,931 additions and 26,558 deletions.
24 changes: 12 additions & 12 deletions .env
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
VUE_APP_API_URL = '/api'
VUE_APP_CHAT_URL = '/chat'
VITE_API_URL = '/api'
VITE_CHAT_URL = '/chat'

VUE_APP_AUTH_MODULE_URL = '/app/auth'
VITE_AUTH_MODULE_URL = '/app/auth'

VUE_APP_ADMIN_URL = '/admin'
VUE_APP_AGENT_URL = '/workspace'
VUE_APP_SUPERVISOR_URL = '/supervisor'
VUE_APP_AUDIT_URL = '/audit'
VUE_APP_HISTORY_URL = '/history'
VUE_APP_GRAFANA_URL = '/grafana'
VUE_APP_CRM_URL = '/crm'
VUE_APP_OMNI_WIDGET_URL = '/omni-widget'
VUE_APP_FLOW_DIAGRAM_URL = '/flow-diagram'
VITE_ADMIN_URL = '/admin'
VITE_AGENT_URL = '/workspace'
VITE_SUPERVISOR_URL = '/supervisor'
VITE_AUDIT_URL = '/audit'
VITE_HISTORY_URL = '/history'
VITE_GRAFANA_URL = '/grafana'
VITE_CRM_URL = '/crm'
VITE_OMNI_WIDGET_URL = '/omni-widget'
VITE_FLOW_DIAGRAM_URL = '/flow-diagram'
24 changes: 12 additions & 12 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
VUE_APP_API_URL = 'https://dev.webitel.com/api'
VUE_APP_CHAT_URL = 'chat'
VITE_API_URL = 'https://dev.webitel.com/api'
VITE_CHAT_URL = 'chat'

VUE_APP_AUTH_MODULE_URL = 'http://dev.webitel.com/app/auth'
VITE_AUTH_MODULE_URL = 'http://dev.webitel.com/app/auth'

VUE_APP_ADMIN_URL = 'https://dev.webitel.com/admin'
VUE_APP_AGENT_URL = 'https://dev.webitel.com/workspace'
VUE_APP_SUPERVISOR_URL ='https://dev.webitel.com/supervisor'
VUE_APP_AUDIT_URL = 'https://dev.webitel.com/audit'
VUE_APP_HISTORY_URL = 'https://dev.webitel.com/history'
VUE_APP_GRAFANA_URL = 'https://dev.webitel.com/grafana'
VUE_APP_CRM_URL = 'https://dev.webitel.com/crm'
VUE_APP_OMNI_WIDGET_URL = 'https://dev.webitel.com/omni-widget'
VUE_APP_FLOW_DIAGRAM_URL = 'https://dev.webitel.com/flow-diagram'
VITE_ADMIN_URL = 'https://dev.webitel.com/admin'
VITE_AGENT_URL = 'https://dev.webitel.com/workspace'
VITE_SUPERVISOR_URL ='https://dev.webitel.com/supervisor'
VITE_AUDIT_URL = 'https://dev.webitel.com/audit'
VITE_HISTORY_URL = 'https://dev.webitel.com/history'
VITE_GRAFANA_URL = 'https://dev.webitel.com/grafana'
VITE_CRM_URL = 'https://dev.webitel.com/crm'
VITE_OMNI_WIDGET_URL = 'https://dev.webitel.com/omni-widget'
VITE_FLOW_DIAGRAM_URL = 'https://dev.webitel.com/flow-diagram'
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
src/router
src/store
src/assets/js/loginAnimation.js
vue.config.js
11 changes: 4 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ module.exports = {
root: true,
env: {
node: true,
es2022: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
'plugin:vue/vue3-recommended',
],
parserOptions: {
parser: '@babel/eslint-parser',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': 'off',
'no-debugger': 'off',
'no-useless-catch': 'off',
'no-shadow': 'off',
'no-empty': 'off',
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ unused
/dist
/coverage
.eslintignore
jest.json

# local env files
.env.local
Expand Down
5 changes: 0 additions & 5 deletions babel.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="icon" href="/favicon.ico">
<title>web-client</title>
</head>
<body>
<noscript>
<strong>We're sorry but web-client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="module" src="/src/main.js"></script>
</body>
</html>
48 changes: 0 additions & 48 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 93cc338

Please sign in to comment.