作者 yanchengjie

测试提交

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

要显示太多修改。

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

> 1%
last 2 versions
not dead
... ...
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
... ...
src/assets/js
\ No newline at end of file
... ...
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
globals: {
AMap: false
},
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
"generator-star-spacing": 'off',
"no-tabs":'off',
"no-unused-vars":'off',
"no-unused-consts":'off',
"no-console":'off',
"no-irregular-whitespace":'off',
"no-debugger": 'off'
}
}
... ...
.DS_Store
node_modules
/dist
/tests/e2e/videos/
/tests/e2e/screenshots/
# 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?
... ...
# trainplatform
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Run your end-to-end tests
```
npm run test:e2e
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
... ...
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
... ...
{
"pluginsFile": "tests/e2e/plugins/index.js"
}
... ...
此 diff 太大无法显示。
{
"name": "trainplatform",
"version": "0.1.0",
"private": true,
"scripts": {
"serve-proc": "vue-cli-service serve --mode production",
"serve-dev": "vue-cli-service serve --mode development",
"serve-test": "vue-cli-service serve --mode test",
"build-dev": "vue-cli-service build --mode development",
"build-test": "vue-cli-service build --mode test",
"build-proc": "vue-cli-service build --mode production",
"test:e2e": "vue-cli-service test:e2e",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.21.4",
"better-scroll": "^1.15.2",
"core-js": "^3.23.5",
"element-ui": "^2.15.5",
"html2canvas": "^1.3.2",
"mux.js": "^6.2.0",
"swiper": "^5.4.1",
"vant": "^2.12.26",
"vconsole": "^3.14.6",
"video.js": "^7.20.1",
"videojs-contrib-hls": "^5.15.0",
"vue": "^2.6.11",
"vue-amap": "^0.5.10",
"vue-pdf": "^4.3.0",
"vue-router": "^3.2.0",
"vue-video-player": "^5.0.2",
"vue-wechat-title": "^2.0.7",
"vuex": "^3.4.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-e2e-cypress": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-plugin-pwa": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
"@vue/cli-plugin-vuex": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"@vue/eslint-config-standard": "^5.1.2",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.2.2",
"lint-staged": "^9.5.0",
"node-sass": "^4.14.1",
"sass-loader": "^8.0.2",
"vue-template-compiler": "^2.6.11"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,vue}": [
"vue-cli-service lint",
"git add"
]
}
}
... ...
不能预览此文件类型
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.00251 14.9297L0 1.07422H6.14651L8.00251 4.27503L9.84583 1.07422H16L8.00251 14.9297Z" fill="black"/>
</svg>
... ...
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=5YYBZ-WA266-U53SM-E3YJY-YZP7Z-IXBSB"></script>
<script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
<script src="https://web.sdk.qcloud.com/player/tcplayerlite/release/v2.4.1/TcPlayer-2.4.1.js" charset="utf-8"></script>
</head>
<body>
<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>
... ...
User-agent: *
Disallow:
... ...
<template>
<div id="app">
<!-- 路由占位符 -->
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0">
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
<keep-alive :include="arr">
<!-- include属性, 只有匹配名称的组件会被缓存 -->
<router-view v-wechat-title="$route.meta.title"></router-view>
</keep-alive>
</div>
</template>
<script>
export default {
data () {
return {
transitionName: '',
arr: ['result', 'data', 'onClass'] // 要缓存的组件名称, 组件内需要写name
}
}
}
</script>
<style lang="scss">
*{
padding: 0;
margin: 0;
}
body{
width: 100%;
height: 100%;
background-color: #f7f8fa;
}
.noresult{
text-align: center;
color: lightgrey;
font-size: 0.32rem;
padding: 1rem 0;
}
</style>
... ...
import axios from '../src/config/index'
export default class api {
static cardtoken (params) { // 账号密码登录
return axios('api/user/login', 'post', params)
}
static phonetoken (params) { // 获取验证码 登录:mobilelogin 找回密码:resetpwd
return axios('api/sms/send', 'post', params)
}
static phonecodetoken (params) { // 手机验证码登录
return axios('api/user/mobilelogin', 'post', params)
}
static findpassword (params) { // 找回密码
return axios('api/user/resetpwd', 'post', params)
}
static sever () { // 客服
return axios('api/user/contact', 'post')
}
static suggest (params) { // 投诉与建议
return axios('api/user/feedback_m', 'post', params)
}
static edituserinfo (params) { // 修改个人信息
return axios('api/user/profile', 'post', params)
}
static edituserphone (params) { // 修改手机号
return axios('api/user/changemobile', 'post', params)
}
static edituserpass (params) { // 修改密码
return axios('api/user/changepwd', 'post', params)
}
static userinfo () { // 获取用户信息
return axios('api/user/index', 'get')
}
static banner () { // 轮播图接口
return axios('api/index/banner', 'post')
}
static notice () { // 公告
return axios('api/index/notice', 'post')
}
static pos () { // 工种列表
return axios('api/item/pos', 'post')
}
static practice (params) { // 专项练习
return axios('api/item/paper_list', 'post', params)
}
// static practiceItem (params) { // 专项练习题目
// return axios('api/item/paper_item_list', 'post', params)
// }
static rule () { // 规则
return axios('api/item/item_about', 'post')
}
static startAnswer (params) { // 开始答题
return axios('api/item/start_item', 'post', params)
}
static subject (params) { // 专项训练题目列表
return axios('api/item/item_list', 'post', params)
}
static submitTopic (params) { // 提交答题(整套试卷)
return axios('api/item/item_sub', 'post', params)
}
static submitTopicone (params) { // 提交答题(挑战答题单题)
return axios('api/item/item_sub_single', 'post', params)
}
static challengetop (params) { // 交卷(挑战答题)
return axios('api/item/item_sub_paper', 'post', params)
}
static getchallinfo (params) { // 弹板信息(挑战答题)
return axios('api/item/get_challenge_info', 'post', params)
}
static practiceList () { // 推荐资料
return axios('api/index/material_rec', 'post')
}
static textList (params) { // 文本课程列表
return axios('api/lesson/lesson_word', 'post', params)
}
static details (params) { // 文本课程详情
return axios('api/lesson/lesson_word_detail', 'post', params)
}
static videoCourse (params) { // 视频课程列表
return axios('api/lesson/lesson', 'post', params)
}
static videoDetails (params) { // 视频课程详情
return axios('api/lesson/lesson_detail', 'post', params)
}
static videodetail (params) { // 视频详情
return axios('api/lesson/lesson_class_detail', 'post', params)
}
static liveBroadcast (params) { // 直播课程列表
return axios('api/lesson/lesson_live', 'post', params)
}
static lineclassdetail (params) { // 直播课程详情
return axios('api/lesson/lesson_live_detail', 'post', params)
}
static checkplayer (params) { // 直播推流验证
return axios('api/lesson/check_lesson_live_player_signtoken', 'post', params)
}
static searchHistory () { // 历史搜索记录
return axios('api/common/search_log', 'post')
}
static clearSearch () { // 清除历史记录
return axios('api/common/search_log_clear', 'post')
}
static getwrong (params) { // 错题列表
return axios('api/item/user_error_list', 'post', params)
}
static wrongdetail (params) { // 错题详情
return axios('api/item/user_error_detail', 'post', params)
}
static wrongtop (params) { // 错题详情
return axios('api/item/item_sub_error', 'post', params)
}
static delwrong (params) { // 删除错题
return axios('api/item/item_del_error', 'post', params)
}
static getrecord (params) { // 答题记录
return axios('api/item/user_item_list', 'post', params)
}
static getrecorddetail (params) { // 答题记录
return axios('api/item/user_item_list_detail', 'post', params)
}
static certificate (params) { // 我的证件
return axios('api/user/my_cert', 'post', params)
}
static certificateDetail (params) { // 我的证件
return axios('api/user/my_cert_detail', 'post', params)
}
static certificatetype () { // 证件类型
return axios('api/user/cert_list', 'post')
}
static uploadcertificatetype (params) { // 上传证件
return axios('api/user/my_cert_add', 'post', params)
}
static collection (params) { // 我的收藏
return axios('api/user/my_favorite_lesson_word', 'post', params)
}
static train (params) { // 线下培训列表
return axios('api/lesson/lesson_offline', 'post', params)
}
static deletelist (params) { // 删除收藏
return axios('api/user/favorite', 'post', params)
}
static myclass (params) { // 班级任务 我的班级
return axios('api/train/train_class_list', 'post', params)
}
static renclass (params) { // 班级任务 课程
return axios('api/train/train_lesson_list', 'post', params)
}
static pracclass (params) { // 班级任务 练习
return axios('api/train/train_practise_list', 'post', params)
}
static monilist (params) { // 专项练习 模拟考试列表
return axios('api/item/paper_list', 'post', params)
}
static kaoclass (params) { // 班级任务 考试
return axios('api/train/train_exam_list', 'post', params)
}
static daylist (params) { // 每日一练列表
return axios('api/item/test_daily_list', 'post', params)
}
static rank (params) { // 排行榜
return axios('api/item/rank_list', 'post', params)
}
static chatlist (params) { // 聊天列表
return axios('api/teachermessage/msg_list', 'post', params)
}
static chatdetail (params) { // 聊天详情
return axios('api/teachermessage/msg_detail', 'post', params)
}
static chatsend (params) { // 聊天回复
return axios('api/teachermessage/return_msg', 'post', params)
}
static getnotice (params) { // 消息列表
return axios('api/message/msg_list', 'post', params)
}
static getnoticedetail (params) { // 消息详情
return axios('api/message/msg_detail', 'post', params)
}
static sign (params) { // 签到
return axios('api/lesson/lesson_offline_signup', 'post', params)
}
static renpractice (params) { // 班级任务练习
return axios('api/train/start_practise', 'post', params)
}
static kaopractice (params) { // 班级任务考试
return axios('api/train/start_exam', 'post', params)
}
static kaoexppractice (params) { // 模拟考试答题
return axios('api/train/start_exam_exp', 'post', params)
}
static feedback (params) { // 学情反馈
return axios('api/train/train_chat_list', 'post', params)
}
static evaluate (params) { // 观看学情反馈
return axios('api/train/train_chat_read', 'post', params)
}
static scorereport (params) { // 积分记录
return axios('api/user/score_log', 'post', params)
}
static report () { // 学习报告
return axios('api/train/train_report', 'post')
}
static monidetail (params) { // 模拟考试详情
return axios('api/item/paper_list_detail', 'post', params)
}
static datacate (params) { // 资料分类
return axios('api/material/material_sort_list', 'post', params)
}
static datalist (params) { // 资料列表
return axios('api/material/material_list', 'post', params)
}
static datadetail (params) { // 资料详情
return axios('api/material/material_detail', 'post', params)
}
static datahome () { // 资料首页
return axios('api/index/material_rec', 'post')
}
static datafaved (params) { // 资料收藏
return axios('api/user/my_favorite_material', 'post', params)
}
static recordvideo (params) { // 班级任务课程记录积分
return axios('api/lesson/user_class_log', 'post', params)
}
static recordvideo2 (params) { // 非班级任务课程记录积分
return axios('api/lesson/lesson_log_record', 'post', params)
}
static unreadCount (params) { // 未读消息数量
return axios('api/message/msg_unread_count', 'post', params)
}
static logout (params) { // 退出登录
return axios('api/user/logout', 'post', params)
}
static unloadfile (params) { // 上传文件
return axios('api/common/upload', 'post', params)
}
static unloadfacefile (params) { // 上传人脸文件
return axios('api/common/uploadToThumbImage', 'post', params)
}
static unloadpic (params) { // 上传人脸
return axios('api/check_face/createPerson', 'post', params)
}
static delpeoplepic (params) { // 删除人脸
return axios('api/check_face/deletePerson', 'post', params)
}
static yanpeoplepic (params) { // 验证人脸
return axios('api/check_face/checkFace', 'post', params)
}
}
... ...