Commit 18c42e67 authored by chenxl's avatar chenxl
Browse files

Initial commit

parents
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
#
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Run your unit tests
```
npm run test:unit
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
declare module '*.js' {
const config: {
apiUrl: string;
port:number;
};
export { config };
}
\ No newline at end of file
module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/typescript'
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "",
"version": "",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@types/pdfjs-dist": "^2.10.378",
"@types/websocket": "^1.0.10",
"@vue/cli": "^5.0.8",
"ant-design-vue": "^4.2.1",
"apexcharts": "^3.49.1",
"axios": "^1.7.0",
"axios-extensions": "^3.1.6",
"better-scroll": "^2.5.1",
"element-plus": "^2.7.3",
"marked": "^12.0.2",
"marked-highlight": "^2.1.1",
"pdf-lib": "^1.17.1",
"pdfobject": "^2.3.0",
"v-clipboard": "^3.0.0-next.1",
"vue": "^3.4.27",
"vue-i18n": "^9.13.1",
"vue-pdf": "^4.3.0",
"vue-router": "^4.0.3",
"vue3-apexcharts": "^1.5.3",
"vuex": "^4.0.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"websocket": "^1.0.35"
},
"devDependencies": {
"@types/jest": "^27.0.1",
"@types/pdfobject": "^2.2.5",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
"@vue/cli-plugin-typescript": "~5.0.0",
"@vue/cli-plugin-unit-jest": "~5.0.0",
"@vue/cli-plugin-vuex": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"@vue/eslint-config-typescript": "^9.1.0",
"@vue/test-utils": "^2.0.0-0",
"@vue/vue3-jest": "^27.0.0-alpha.1",
"babel-jest": "^27.0.6",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"jest": "^27.0.5",
"stylus": "^0.55.0",
"stylus-loader": "^6.1.0",
"ts-jest": "^27.0.4",
"typescript": "~4.5.5"
},
"_id": "@",
"readme": "ERROR: No README data found!"
}
window.configWeb = {
apiUrl: 'http://119.255.238.12:15670/v1',
port: 8080,
};
\ No newline at end of file
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,textarea,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
*font: inherit;
font-family: Arial, Microsoft YaHei, SimHei, Tahoma, sans-serif !important;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
-webkit-text-size-adjust: 100%!important;
margin: 0;
}
html,body {
height: 100%;
width: 100%;
overflow: hidden;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
.clearfix:before,
.clearfix:after {
content:"";
display:table
}
.clearfix:after {
clear:both
}
/*显示省略号*/
.ellipsis{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<script src="./config.js"></script>
<link rel="icon" href="./balck.ico" />
<link type="text/css" rel="stylesheet" href="<%= BASE_URL %>/css/reset.css">
<title>KTransformers</title>
</head>
<body onselectstart='return false' onselect='return false'>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
<template>
<div class="app-container" @contextmenu.prevent.stop="">
<keep-alive>
<router-view/>
</keep-alive>
</div>
</template>
<script setup lang="ts">
</script>
<style lang="stylus">
@import "assets/iconfont/iconfont.css"
#app
.app-container
width: 100%
height: 100%
position: relative
</style>
\ No newline at end of file
import axios, { AxiosInstance } from 'axios';
import {baseURL} from '@/conf/config';
const apiClient: AxiosInstance = axios.create({
baseURL: baseURL,
// baseURL: '/api',
headers: {
'Content-Type': 'application/json',
},
withCredentials: true,
});
export default apiClient;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment