作者 yanchengjie

测试提交

正在显示 100 个修改的文件 包含 560 行增加0 行删除

要显示太多修改。

为保证性能只显示 100 of 100+ 个文件。

  1 +> 1%
  2 +last 2 versions
  3 +not dead
  1 +[*.{js,jsx,ts,tsx,vue}]
  2 +indent_style = space
  3 +indent_size = 2
  4 +trim_trailing_whitespace = true
  5 +insert_final_newline = true
  1 +src/assets/js
  1 +module.exports = {
  2 + root: true,
  3 + env: {
  4 + node: true
  5 + },
  6 + extends: [
  7 + 'plugin:vue/essential',
  8 + '@vue/standard'
  9 + ],
  10 + globals: {
  11 + AMap: false
  12 + },
  13 + parserOptions: {
  14 + parser: 'babel-eslint'
  15 + },
  16 + rules: {
  17 + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  18 + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  19 + "generator-star-spacing": 'off',
  20 + "no-tabs":'off',
  21 + "no-unused-vars":'off',
  22 + "no-unused-consts":'off',
  23 + "no-console":'off',
  24 + "no-irregular-whitespace":'off',
  25 + "no-debugger": 'off'
  26 + }
  27 +}
  1 +.DS_Store
  2 +node_modules
  3 +/dist
  4 +
  5 +/tests/e2e/videos/
  6 +/tests/e2e/screenshots/
  7 +
  8 +
  9 +# local env files
  10 +.env.local
  11 +.env.*.local
  12 +
  13 +# Log files
  14 +npm-debug.log*
  15 +yarn-debug.log*
  16 +yarn-error.log*
  17 +pnpm-debug.log*
  18 +
  19 +# Editor directories and files
  20 +.idea
  21 +.vscode
  22 +*.suo
  23 +*.ntvs*
  24 +*.njsproj
  25 +*.sln
  26 +*.sw?
  1 +# trainplatform
  2 +
  3 +## Project setup
  4 +```
  5 +npm install
  6 +```
  7 +
  8 +### Compiles and hot-reloads for development
  9 +```
  10 +npm run serve
  11 +```
  12 +
  13 +### Compiles and minifies for production
  14 +```
  15 +npm run build
  16 +```
  17 +
  18 +### Run your end-to-end tests
  19 +```
  20 +npm run test:e2e
  21 +```
  22 +
  23 +### Lints and fixes files
  24 +```
  25 +npm run lint
  26 +```
  27 +
  28 +### Customize configuration
  29 +See [Configuration Reference](https://cli.vuejs.org/config/).
  1 +module.exports = {
  2 + presets: [
  3 + '@vue/cli-plugin-babel/preset'
  4 + ]
  5 +}
  1 +{
  2 + "pluginsFile": "tests/e2e/plugins/index.js"
  3 +}
此 diff 太大无法显示。
  1 +{
  2 + "name": "trainplatform",
  3 + "version": "0.1.0",
  4 + "private": true,
  5 + "scripts": {
  6 + "serve-proc": "vue-cli-service serve --mode production",
  7 + "serve-dev": "vue-cli-service serve --mode development",
  8 + "serve-test": "vue-cli-service serve --mode test",
  9 + "build-dev": "vue-cli-service build --mode development",
  10 + "build-test": "vue-cli-service build --mode test",
  11 + "build-proc": "vue-cli-service build --mode production",
  12 + "test:e2e": "vue-cli-service test:e2e",
  13 + "lint": "vue-cli-service lint"
  14 + },
  15 + "dependencies": {
  16 + "axios": "^0.21.4",
  17 + "better-scroll": "^1.15.2",
  18 + "core-js": "^3.23.5",
  19 + "element-ui": "^2.15.5",
  20 + "html2canvas": "^1.3.2",
  21 + "mux.js": "^6.2.0",
  22 + "swiper": "^5.4.1",
  23 + "vant": "^2.12.26",
  24 + "vconsole": "^3.14.6",
  25 + "video.js": "^7.20.1",
  26 + "videojs-contrib-hls": "^5.15.0",
  27 + "vue": "^2.6.11",
  28 + "vue-amap": "^0.5.10",
  29 + "vue-pdf": "^4.3.0",
  30 + "vue-router": "^3.2.0",
  31 + "vue-video-player": "^5.0.2",
  32 + "vue-wechat-title": "^2.0.7",
  33 + "vuex": "^3.4.0"
  34 + },
  35 + "devDependencies": {
  36 + "@vue/cli-plugin-babel": "~5.0.0",
  37 + "@vue/cli-plugin-e2e-cypress": "~5.0.0",
  38 + "@vue/cli-plugin-eslint": "~5.0.0",
  39 + "@vue/cli-plugin-pwa": "~5.0.0",
  40 + "@vue/cli-plugin-router": "~5.0.0",
  41 + "@vue/cli-plugin-vuex": "~5.0.0",
  42 + "@vue/cli-service": "~5.0.0",
  43 + "@vue/eslint-config-standard": "^5.1.2",
  44 + "babel-eslint": "^10.1.0",
  45 + "eslint": "^6.7.2",
  46 + "eslint-plugin-import": "^2.20.2",
  47 + "eslint-plugin-node": "^11.1.0",
  48 + "eslint-plugin-promise": "^4.2.1",
  49 + "eslint-plugin-standard": "^4.0.0",
  50 + "eslint-plugin-vue": "^6.2.2",
  51 + "lint-staged": "^9.5.0",
  52 + "node-sass": "^4.14.1",
  53 + "sass-loader": "^8.0.2",
  54 + "vue-template-compiler": "^2.6.11"
  55 + },
  56 + "gitHooks": {
  57 + "pre-commit": "lint-staged"
  58 + },
  59 + "lint-staged": {
  60 + "*.{js,jsx,vue}": [
  61 + "vue-cli-service lint",
  62 + "git add"
  63 + ]
  64 + }
  65 +}
不能预览此文件类型
  1 +<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  2 +<path d="M8.00251 14.9297L0 1.07422H6.14651L8.00251 4.27503L9.84583 1.07422H16L8.00251 14.9297Z" fill="black"/>
  3 +</svg>
  1 +<!DOCTYPE html>
  2 +<html lang="">
  3 + <head>
  4 + <meta charset="utf-8">
  5 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6 + <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
  7 + <meta name="viewport" content="width=device-width,initial-scale=1.0">
  8 + <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  9 + <title><%= htmlWebpackPlugin.options.title %></title>
  10 + <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=5YYBZ-WA266-U53SM-E3YJY-YZP7Z-IXBSB"></script>
  11 + <script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
  12 + <script src="https://web.sdk.qcloud.com/player/tcplayerlite/release/v2.4.1/TcPlayer-2.4.1.js" charset="utf-8"></script>
  13 +
  14 + </head>
  15 +
  16 + <body>
  17 + <noscript>
  18 + <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  19 + </noscript>
  20 + <div id="app"></div>
  21 + <!-- built files will be auto injected -->
  22 + </body>
  23 +
  24 +</html>
  1 +User-agent: *
  2 +Disallow:
  1 +<template>
  2 + <div id="app">
  3 + <!-- 路由占位符 -->
  4 + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0">
  5 + <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
  6 +
  7 + <keep-alive :include="arr">
  8 + <!-- include属性, 只有匹配名称的组件会被缓存 -->
  9 + <router-view v-wechat-title="$route.meta.title"></router-view>
  10 + </keep-alive>
  11 + </div>
  12 +</template>
  13 +<script>
  14 +export default {
  15 + data () {
  16 + return {
  17 + transitionName: '',
  18 + arr: ['result', 'data', 'onClass'] // 要缓存的组件名称, 组件内需要写name
  19 + }
  20 + }
  21 +}
  22 +
  23 +</script>
  24 +<style lang="scss">
  25 + *{
  26 + padding: 0;
  27 + margin: 0;
  28 + }
  29 + body{
  30 + width: 100%;
  31 + height: 100%;
  32 + background-color: #f7f8fa;
  33 + }
  34 + .noresult{
  35 + text-align: center;
  36 + color: lightgrey;
  37 + font-size: 0.32rem;
  38 + padding: 1rem 0;
  39 + }
  40 +</style>
  1 +import axios from '../src/config/index'
  2 +
  3 +export default class api {
  4 + static cardtoken (params) { // 账号密码登录
  5 + return axios('api/user/login', 'post', params)
  6 + }
  7 +
  8 + static phonetoken (params) { // 获取验证码 登录:mobilelogin 找回密码:resetpwd
  9 + return axios('api/sms/send', 'post', params)
  10 + }
  11 +
  12 + static phonecodetoken (params) { // 手机验证码登录
  13 + return axios('api/user/mobilelogin', 'post', params)
  14 + }
  15 +
  16 + static findpassword (params) { // 找回密码
  17 + return axios('api/user/resetpwd', 'post', params)
  18 + }
  19 +
  20 + static sever () { // 客服
  21 + return axios('api/user/contact', 'post')
  22 + }
  23 +
  24 + static suggest (params) { // 投诉与建议
  25 + return axios('api/user/feedback_m', 'post', params)
  26 + }
  27 +
  28 + static edituserinfo (params) { // 修改个人信息
  29 + return axios('api/user/profile', 'post', params)
  30 + }
  31 +
  32 + static edituserphone (params) { // 修改手机号
  33 + return axios('api/user/changemobile', 'post', params)
  34 + }
  35 +
  36 + static edituserpass (params) { // 修改密码
  37 + return axios('api/user/changepwd', 'post', params)
  38 + }
  39 +
  40 + static userinfo () { // 获取用户信息
  41 + return axios('api/user/index', 'get')
  42 + }
  43 +
  44 + static banner () { // 轮播图接口
  45 + return axios('api/index/banner', 'post')
  46 + }
  47 +
  48 + static notice () { // 公告
  49 + return axios('api/index/notice', 'post')
  50 + }
  51 +
  52 + static pos () { // 工种列表
  53 + return axios('api/item/pos', 'post')
  54 + }
  55 +
  56 + static practice (params) { // 专项练习
  57 + return axios('api/item/paper_list', 'post', params)
  58 + }
  59 +
  60 + // static practiceItem (params) { // 专项练习题目
  61 + // return axios('api/item/paper_item_list', 'post', params)
  62 + // }
  63 +
  64 + static rule () { // 规则
  65 + return axios('api/item/item_about', 'post')
  66 + }
  67 +
  68 + static startAnswer (params) { // 开始答题
  69 + return axios('api/item/start_item', 'post', params)
  70 + }
  71 +
  72 + static subject (params) { // 专项训练题目列表
  73 + return axios('api/item/item_list', 'post', params)
  74 + }
  75 +
  76 + static submitTopic (params) { // 提交答题(整套试卷)
  77 + return axios('api/item/item_sub', 'post', params)
  78 + }
  79 +
  80 + static submitTopicone (params) { // 提交答题(挑战答题单题)
  81 + return axios('api/item/item_sub_single', 'post', params)
  82 + }
  83 +
  84 + static challengetop (params) { // 交卷(挑战答题)
  85 + return axios('api/item/item_sub_paper', 'post', params)
  86 + }
  87 +
  88 + static getchallinfo (params) { // 弹板信息(挑战答题)
  89 + return axios('api/item/get_challenge_info', 'post', params)
  90 + }
  91 +
  92 + static practiceList () { // 推荐资料
  93 + return axios('api/index/material_rec', 'post')
  94 + }
  95 +
  96 + static textList (params) { // 文本课程列表
  97 + return axios('api/lesson/lesson_word', 'post', params)
  98 + }
  99 +
  100 + static details (params) { // 文本课程详情
  101 + return axios('api/lesson/lesson_word_detail', 'post', params)
  102 + }
  103 +
  104 + static videoCourse (params) { // 视频课程列表
  105 + return axios('api/lesson/lesson', 'post', params)
  106 + }
  107 +
  108 + static videoDetails (params) { // 视频课程详情
  109 + return axios('api/lesson/lesson_detail', 'post', params)
  110 + }
  111 +
  112 + static videodetail (params) { // 视频详情
  113 + return axios('api/lesson/lesson_class_detail', 'post', params)
  114 + }
  115 +
  116 + static liveBroadcast (params) { // 直播课程列表
  117 + return axios('api/lesson/lesson_live', 'post', params)
  118 + }
  119 +
  120 + static lineclassdetail (params) { // 直播课程详情
  121 + return axios('api/lesson/lesson_live_detail', 'post', params)
  122 + }
  123 +
  124 + static checkplayer (params) { // 直播推流验证
  125 + return axios('api/lesson/check_lesson_live_player_signtoken', 'post', params)
  126 + }
  127 +
  128 + static searchHistory () { // 历史搜索记录
  129 + return axios('api/common/search_log', 'post')
  130 + }
  131 +
  132 + static clearSearch () { // 清除历史记录
  133 + return axios('api/common/search_log_clear', 'post')
  134 + }
  135 +
  136 + static getwrong (params) { // 错题列表
  137 + return axios('api/item/user_error_list', 'post', params)
  138 + }
  139 +
  140 + static wrongdetail (params) { // 错题详情
  141 + return axios('api/item/user_error_detail', 'post', params)
  142 + }
  143 +
  144 + static wrongtop (params) { // 错题详情
  145 + return axios('api/item/item_sub_error', 'post', params)
  146 + }
  147 +
  148 + static delwrong (params) { // 删除错题
  149 + return axios('api/item/item_del_error', 'post', params)
  150 + }
  151 +
  152 + static getrecord (params) { // 答题记录
  153 + return axios('api/item/user_item_list', 'post', params)
  154 + }
  155 +
  156 + static getrecorddetail (params) { // 答题记录
  157 + return axios('api/item/user_item_list_detail', 'post', params)
  158 + }
  159 +
  160 + static certificate (params) { // 我的证件
  161 + return axios('api/user/my_cert', 'post', params)
  162 + }
  163 +
  164 + static certificateDetail (params) { // 我的证件
  165 + return axios('api/user/my_cert_detail', 'post', params)
  166 + }
  167 +
  168 + static certificatetype () { // 证件类型
  169 + return axios('api/user/cert_list', 'post')
  170 + }
  171 +
  172 + static uploadcertificatetype (params) { // 上传证件
  173 + return axios('api/user/my_cert_add', 'post', params)
  174 + }
  175 +
  176 + static collection (params) { // 我的收藏
  177 + return axios('api/user/my_favorite_lesson_word', 'post', params)
  178 + }
  179 +
  180 + static train (params) { // 线下培训列表
  181 + return axios('api/lesson/lesson_offline', 'post', params)
  182 + }
  183 +
  184 + static deletelist (params) { // 删除收藏
  185 + return axios('api/user/favorite', 'post', params)
  186 + }
  187 +
  188 + static myclass (params) { // 班级任务 我的班级
  189 + return axios('api/train/train_class_list', 'post', params)
  190 + }
  191 +
  192 + static renclass (params) { // 班级任务 课程
  193 + return axios('api/train/train_lesson_list', 'post', params)
  194 + }
  195 +
  196 + static pracclass (params) { // 班级任务 练习
  197 + return axios('api/train/train_practise_list', 'post', params)
  198 + }
  199 +
  200 + static monilist (params) { // 专项练习 模拟考试列表
  201 + return axios('api/item/paper_list', 'post', params)
  202 + }
  203 +
  204 + static kaoclass (params) { // 班级任务 考试
  205 + return axios('api/train/train_exam_list', 'post', params)
  206 + }
  207 +
  208 + static daylist (params) { // 每日一练列表
  209 + return axios('api/item/test_daily_list', 'post', params)
  210 + }
  211 +
  212 + static rank (params) { // 排行榜
  213 + return axios('api/item/rank_list', 'post', params)
  214 + }
  215 +
  216 + static chatlist (params) { // 聊天列表
  217 + return axios('api/teachermessage/msg_list', 'post', params)
  218 + }
  219 +
  220 + static chatdetail (params) { // 聊天详情
  221 + return axios('api/teachermessage/msg_detail', 'post', params)
  222 + }
  223 +
  224 + static chatsend (params) { // 聊天回复
  225 + return axios('api/teachermessage/return_msg', 'post', params)
  226 + }
  227 +
  228 + static getnotice (params) { // 消息列表
  229 + return axios('api/message/msg_list', 'post', params)
  230 + }
  231 +
  232 + static getnoticedetail (params) { // 消息详情
  233 + return axios('api/message/msg_detail', 'post', params)
  234 + }
  235 +
  236 + static sign (params) { // 签到
  237 + return axios('api/lesson/lesson_offline_signup', 'post', params)
  238 + }
  239 +
  240 + static renpractice (params) { // 班级任务练习
  241 + return axios('api/train/start_practise', 'post', params)
  242 + }
  243 +
  244 + static kaopractice (params) { // 班级任务考试
  245 + return axios('api/train/start_exam', 'post', params)
  246 + }
  247 +
  248 + static kaoexppractice (params) { // 模拟考试答题
  249 + return axios('api/train/start_exam_exp', 'post', params)
  250 + }
  251 +
  252 + static feedback (params) { // 学情反馈
  253 + return axios('api/train/train_chat_list', 'post', params)
  254 + }
  255 +
  256 + static evaluate (params) { // 观看学情反馈
  257 + return axios('api/train/train_chat_read', 'post', params)
  258 + }
  259 +
  260 + static scorereport (params) { // 积分记录
  261 + return axios('api/user/score_log', 'post', params)
  262 + }
  263 +
  264 + static report () { // 学习报告
  265 + return axios('api/train/train_report', 'post')
  266 + }
  267 +
  268 + static monidetail (params) { // 模拟考试详情
  269 + return axios('api/item/paper_list_detail', 'post', params)
  270 + }
  271 +
  272 + static datacate (params) { // 资料分类
  273 + return axios('api/material/material_sort_list', 'post', params)
  274 + }
  275 +
  276 + static datalist (params) { // 资料列表
  277 + return axios('api/material/material_list', 'post', params)
  278 + }
  279 +
  280 + static datadetail (params) { // 资料详情
  281 + return axios('api/material/material_detail', 'post', params)
  282 + }
  283 +
  284 + static datahome () { // 资料首页
  285 + return axios('api/index/material_rec', 'post')
  286 + }
  287 +
  288 + static datafaved (params) { // 资料收藏
  289 + return axios('api/user/my_favorite_material', 'post', params)
  290 + }
  291 +
  292 + static recordvideo (params) { // 班级任务课程记录积分
  293 + return axios('api/lesson/user_class_log', 'post', params)
  294 + }
  295 +
  296 + static recordvideo2 (params) { // 非班级任务课程记录积分
  297 + return axios('api/lesson/lesson_log_record', 'post', params)
  298 + }
  299 +
  300 + static unreadCount (params) { // 未读消息数量
  301 + return axios('api/message/msg_unread_count', 'post', params)
  302 + }
  303 +
  304 + static logout (params) { // 退出登录
  305 + return axios('api/user/logout', 'post', params)
  306 + }
  307 +
  308 + static unloadfile (params) { // 上传文件
  309 + return axios('api/common/upload', 'post', params)
  310 + }
  311 +
  312 + static unloadfacefile (params) { // 上传人脸文件
  313 + return axios('api/common/uploadToThumbImage', 'post', params)
  314 + }
  315 +
  316 + static unloadpic (params) { // 上传人脸
  317 + return axios('api/check_face/createPerson', 'post', params)
  318 + }
  319 +
  320 + static delpeoplepic (params) { // 删除人脸
  321 + return axios('api/check_face/deletePerson', 'post', params)
  322 + }
  323 +
  324 + static yanpeoplepic (params) { // 验证人脸
  325 + return axios('api/check_face/checkFace', 'post', params)
  326 + }
  327 +}