commit 8fae9e2b067331d18e00744942fffb5e1cd7bad7 Author: caolc <572275724@qq.com> Date: Mon Sep 18 10:10:22 2023 +0800 第一次提交 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..403adbc --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +.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? diff --git a/README.md b/README.md new file mode 100644 index 0000000..01a0211 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# api_test + +## Project setup +``` +npm install +``` + +### Compiles and hot-reloads for development +``` +npm run serve +``` + +### Compiles and minifies for production +``` +npm run build +``` + +### Lints and fixes files +``` +npm run lint +``` + +### Customize configuration +See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..e955840 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,5 @@ +module.exports = { + presets: [ + '@vue/cli-plugin-babel/preset' + ] +} diff --git a/npminstall-debug.log b/npminstall-debug.log new file mode 100644 index 0000000..7c63a61 --- /dev/null +++ b/npminstall-debug.log @@ -0,0 +1,202 @@ +{ + root: 'C:\\Users\\lenovo\\Desktop\\接口测试\\api_test', + registry: 'https://registry.npmmirror.com', + pkgs: [ + { + name: '', + version: 'element-plus/icons-vue', + type: 'git', + alias: undefined, + arg: [Result] + } + ], + production: false, + cacheStrict: false, + cacheDir: 'C:\\Users\\lenovo\\.npminstall_tarball', + env: { + npm_config_registry: 'https://registry.npmmirror.com', + npm_config_argv: '{"remain":[],"cooked":["--fix-bug-versions","--china","--userconfig=C:\\\\Users\\\\lenovo\\\\.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","element-plus/icons-vue"],"original":["--fix-bug-versions","--china","--userconfig=C:\\\\Users\\\\lenovo\\\\.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","element-plus/icons-vue"]}', + npm_config_user_agent: 'npminstall/7.9.0 npm/? node/v18.16.0 win32 x64', + npm_config_cache: 'C:\\Users\\lenovo\\.npminstall_tarball', + NODE: 'D:\\nodejs\\node.exe', + npm_node_execpath: 'D:\\nodejs\\node.exe', + npm_execpath: 'C:\\Users\\nvm\\v18.16.0\\node_modules\\cnpm\\node_modules\\npminstall\\bin\\install.js', + npm_config_userconfig: 'C:\\Users\\lenovo\\.cnpmrc', + npm_config_disturl: 'https://cdn.npmmirror.com/binaries/node', + npm_config_r: 'https://registry.npmmirror.com', + COREPACK_NPM_REGISTRY: 'https://registry.npmmirror.com', + NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node', + NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node', + PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs', + CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver', + OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver', + CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip', + ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/', + ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/', + SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass', + SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc', + NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v', + PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing', + PUPPETEER_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing', + PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright', + SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli', + SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl', + RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2', + RE2_DOWNLOAD_SKIP_PATH: 'true', + PRISMA_ENGINES_MIRROR: 'https://cdn.npmmirror.com/binaries/prisma', + npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3', + npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar', + npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp', + npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips', + npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs', + npm_rootpath: 'C:\\Users\\lenovo\\Desktop\\接口测试\\api_test', + INIT_CWD: 'C:\\Users\\lenovo\\Desktop\\接口测试\\api_test' + }, + binaryMirrors: { + ENVS: { + COREPACK_NPM_REGISTRY: 'https://registry.npmmirror.com', + NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node', + NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node', + PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs', + CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver', + OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver', + CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip', + ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/', + ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/', + SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass', + SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc', + NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v', + PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing', + PUPPETEER_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing', + PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright', + SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli', + SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl', + RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2', + RE2_DOWNLOAD_SKIP_PATH: 'true', + PRISMA_ENGINES_MIRROR: 'https://cdn.npmmirror.com/binaries/prisma', + npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3', + npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar', + npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp', + npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips', + npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs' + }, + '@ali/s2': { host: 'https://cdn.npmmirror.com/binaries/looksgood-s2' }, + sharp: { replaceHostFiles: [Array], replaceHostMap: [Object] }, + '@tensorflow/tfjs-node': { + replaceHostFiles: [Array], + replaceHostRegExpMap: [Object], + replaceHostMap: [Object] + }, + cypress: { + host: 'https://cdn.npmmirror.com/binaries/cypress', + newPlatforms: [Object] + }, + 'utf-8-validate': { + host: 'https://cdn.npmmirror.com/binaries/utf-8-validate/v{version}' + }, + xprofiler: { + remote_path: './xprofiler/v{version}/', + host: 'https://cdn.npmmirror.com/binaries' + }, + leveldown: { host: 'https://cdn.npmmirror.com/binaries/leveldown/v{version}' }, + couchbase: { host: 'https://cdn.npmmirror.com/binaries/couchbase/v{version}' }, + gl: { host: 'https://cdn.npmmirror.com/binaries/gl/v{version}' }, + sqlite3: { + host: 'https://cdn.npmmirror.com/binaries/sqlite3', + remote_path: 'v{version}' + }, + '@journeyapps/sqlcipher': { host: 'https://cdn.npmmirror.com/binaries' }, + grpc: { + host: 'https://cdn.npmmirror.com/binaries', + remote_path: '{name}/v{version}' + }, + 'grpc-tools': { host: 'https://cdn.npmmirror.com/binaries' }, + wrtc: { + host: 'https://cdn.npmmirror.com/binaries', + remote_path: '{name}/v{version}' + }, + fsevents: { host: 'https://cdn.npmmirror.com/binaries/fsevents' }, + nodejieba: { host: 'https://cdn.npmmirror.com/binaries/nodejieba' }, + canvas: { host: 'https://cdn.npmmirror.com/binaries/canvas' }, + 'skia-canvas': { host: 'https://cdn.npmmirror.com/binaries/skia-canvas' }, + 'flow-bin': { + replaceHost: 'https://github.com/facebook/flow/releases/download/v', + host: 'https://cdn.npmmirror.com/binaries/flow/v' + }, + 'jpegtran-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/jpegtran-bin' + }, + 'cwebp-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/cwebp-bin' + }, + 'zopflipng-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/zopflipng-bin' + }, + 'optipng-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/optipng-bin' + }, + mozjpeg: { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/mozjpeg-bin' + }, + gifsicle: { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/gifsicle-bin' + }, + 'pngquant-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/pngquant-bin', + replaceHostMap: [Object] + }, + 'pngcrush-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/pngcrush-bin' + }, + 'jpeg-recompress-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/jpeg-recompress-bin' + }, + 'advpng-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/advpng-bin' + }, + 'pngout-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/pngout-bin' + }, + 'jpegoptim-bin': { + replaceHost: [Array], + host: 'https://cdn.npmmirror.com/binaries/jpegoptim-bin' + }, + argon2: { host: 'https://cdn.npmmirror.com/binaries/argon2' }, + 'ali-zeromq': { host: 'https://cdn.npmmirror.com/binaries/ali-zeromq' }, + 'ali-usb_ctl': { host: 'https://cdn.npmmirror.com/binaries/ali-usb_ctl' }, + 'gdal-async': { host: 'https://cdn.npmmirror.com/binaries/node-gdal-async' } + }, + forbiddenLicenses: null, + flatten: false, + proxy: undefined, + prune: false, + disableFallbackStore: false, + workspacesMap: Map(0) {}, + enableWorkspace: false, + workspaceRoot: 'C:\\Users\\lenovo\\Desktop\\接口测试\\api_test', + isWorkspaceRoot: true, + isWorkspacePackage: false, + offline: false, + strictSSL: true, + ignoreScripts: false, + foregroundScripts: false, + ignoreOptionalDependencies: false, + detail: false, + forceLinkLatest: false, + trace: false, + engineStrict: false, + registryOnly: false, + client: false, + autoFixVersion: [Function: autoFixVersion] +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..5af7e21 --- /dev/null +++ b/package.json @@ -0,0 +1,50 @@ +{ + "name": "api_test", + "version": "0.1.0", + "private": true, + "scripts": { + "serve": "vue-cli-service serve", + "build": "vue-cli-service build", + "lint": "vue-cli-service lint" + }, + "dependencies": { + "@element-plus/icons": "^0.0.11", + "@element-plus/icons-vue": "^2.1.0", + "axios": "^1.4.0", + "core-js": "^3.8.3", + "element-plus": "^1.0.2-beta.28", + "vue": "^3.2.13" + }, + "devDependencies": { + "@babel/core": "^7.12.16", + "@babel/eslint-parser": "^7.12.16", + "@vue/cli-plugin-babel": "~5.0.0", + "@vue/cli-plugin-eslint": "~5.0.0", + "@vue/cli-service": "~5.0.0", + "eslint": "^7.32.0", + "eslint-plugin-vue": "^8.0.3", + "sass": "1.55.0", + "sass-loader": "13.2.0", + "vue-cli-plugin-element-plus": "~0.0.13" + }, + "eslintConfig": { + "root": true, + "env": { + "node": true + }, + "extends": [ + "plugin:vue/vue3-essential", + "eslint:recommended" + ], + "parserOptions": { + "parser": "@babel/eslint-parser" + }, + "rules": {} + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not dead", + "not ie 11" + ] +} diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..019b7d7 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..4378aa2 --- /dev/null +++ b/public/index.html @@ -0,0 +1,17 @@ + + + + + + + + 星卡系统服务监控服务平台 + + + +
+ + + diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..e38d21b --- /dev/null +++ b/src/App.vue @@ -0,0 +1,264 @@ + + + + + + diff --git a/src/assets/bg.mp4 b/src/assets/bg.mp4 new file mode 100644 index 0000000..7be3f7d Binary files /dev/null and b/src/assets/bg.mp4 differ diff --git a/src/assets/logo.png b/src/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/src/assets/logo.png differ diff --git a/src/assets/poster.png b/src/assets/poster.png new file mode 100644 index 0000000..eca15d7 Binary files /dev/null and b/src/assets/poster.png differ diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue new file mode 100644 index 0000000..879051a --- /dev/null +++ b/src/components/HelloWorld.vue @@ -0,0 +1,58 @@ + + + + + + diff --git a/src/element-variables.scss b/src/element-variables.scss new file mode 100644 index 0000000..1ace298 --- /dev/null +++ b/src/element-variables.scss @@ -0,0 +1,11 @@ +/* +Write your variables here. All available variables can be +found in element-plus/packages/theme-chalk/src/common/var.scss. +For example, to overwrite the theme color: +*/ +$--color-primary: hotpink; + +/* icon font path, required */ +$--font-path: '~element-plus/lib/theme-chalk/fonts'; + +@import "~element-plus/packages/theme-chalk/src/index"; diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..a9b8c2a --- /dev/null +++ b/src/main.js @@ -0,0 +1,11 @@ +import { createApp } from 'vue' +import App from './App.vue' +import installElementPlus from './plugins/element' +// 如果您正在使用CDN引入,请删除下面一行。 +import * as ElementPlusIconsVue from '@element-plus/icons-vue' +const app = createApp(App) +for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component) + } +installElementPlus(app) +app.mount('#app') \ No newline at end of file diff --git a/src/plugins/element.js b/src/plugins/element.js new file mode 100644 index 0000000..6f487ff --- /dev/null +++ b/src/plugins/element.js @@ -0,0 +1,7 @@ +import ElementPlus from 'element-plus' +import '../element-variables.scss' +import locale from 'element-plus/lib/locale/lang/zh-cn' + +export default (app) => { + app.use(ElementPlus, { locale }) +} diff --git a/src/static/apiList.json b/src/static/apiList.json new file mode 100644 index 0000000..093e28d --- /dev/null +++ b/src/static/apiList.json @@ -0,0 +1,74 @@ +[ + { + "serverName": "用户服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-user/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "油站服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-site/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "open-api", + "requestAddress": "http://www.xingoil.com/openapi/oil-open-api/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "字典服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-electric-energy/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "权限服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-identity/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "日志服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-mongo-log/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "oss服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-oss/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "三方支付服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-pay/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "油批服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-refinery/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "短信服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-sms/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "task服务", + "requestAddress": "http://www.xingoil.com/adminapi/oil-task/exploringActivity/success", + "requestTime": "", + "status": "" + }, + { + "serverName": "官网服务", + "requestAddress": "http://www.xingoil.com/api/oil-website/exploringActivity/success", + "requestTime": "", + "status": "" + } + ] \ No newline at end of file diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..c49a127 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,8 @@ +const { defineConfig } = require('@vue/cli-service') +module.exports = defineConfig({ + transpileDependencies: true, + publicPath: '/monitor', + devServer: { + proxy: 'http://uat.xingoil.com' + } +})