找不到页面
++
你看到了这个界面?
+那就是我的问题或者是Sola的问题了
+不要惊讶,因为....
+念念不忘,必有回响。
+有一口气,点一盏灯。
+From 08fc06ebe685394b845d7146398a6ab6b0277b42 Mon Sep 17 00:00:00 2001
From: Jay <592291560@qq.com>
Date: Sat, 11 Sep 2021 14:48:55 +0800
Subject: [PATCH] Upload Source Code
---
build_config.js | 43 +
field_config.js | 7 +
fix-dependencies.sh | 16 +
gulpfile.js | 240 ++
package.json | 23 +
src/404.html | 37 +
src/cdn/common.css | 48 +
src/cdn/cryptico.min.js | 107 +
src/cdn/functions.js | 130 ++
src/cdn/lyTableAll.min.js | 1 +
src/cdn/lytable.min.css | 38 +
src/cdn/mycomponent.min.js | 1 +
src/cdn/userfield.js | 125 ++
src/cdn/weui.min.css | 1 +
src/cdn/zepto.min.js | 2 +
src/egg/doge.css | 7 +
src/egg/doge.jpg | Bin 0 -> 180772 bytes
src/egg/doge.js | 15 +
src/egg/tail.gif | Bin 0 -> 148751 bytes
src/fbi.html | 51 +
src/index.html | 53 +
src/man/add.html | 39 +
src/man/css/log.sub.css | 94 +
src/man/css/track.sub.css | 66 +
src/man/home.html | 36 +
src/man/js/add.js | 126 ++
src/man/js/home.js | 21 +
src/man/js/list.js | 182 ++
src/man/js/lists.js | 204 ++
src/man/js/log.js | 68 +
src/man/js/log.sub.js | 136 ++
src/man/js/track.sub.js | 80 +
src/man/list.html | 45 +
src/man/lists.html | 41 +
src/man/log.html | 35 +
src/man/log.sub.html | 31 +
src/man/login.html | 57 +
src/man/part/add/actionsheet_isp.part.html | 18 +
src/man/part/add/body.part.html | 69 +
src/man/part/add/dlg_fail.part.html | 14 +
src/man/part/add/toast_loading.part.html | 21 +
src/man/part/home/body.part.html | 43 +
src/man/part/list/body.part.html | 27 +
.../part/list/dlg_browser_history.part.html | 18 +
src/man/part/list/dlg_operation.part.html | 58 +
src/man/part/list/dlg_query.part.html | 52 +
src/man/part/list/toast_loading.part.html | 21 +
src/man/part/lists/body.part.html | 68 +
.../part/lists/dlg_browser_history.part.html | 18 +
src/man/part/lists/dlg_operation.part.html | 52 +
src/man/part/lists/dlg_query.part.html | 42 +
src/man/part/lists/toast_loading.part.html | 21 +
src/man/part/log.sub/body.part.html | 30 +
src/man/part/log/body.part.html | 46 +
.../part/log/dlg_browser_history.part.html | 21 +
src/man/part/track.sub/body.part.html | 21 +
src/man/track.sub.html | 31 +
src/page_result/egg_loader.part.html | 9 +
src/page_result/result.js | 96 +
src/part/_tail_info.part.html | 16 +
src/part/common_head_meta.part.html | 3 +
src/part/common_head_style.part.html | 2 +
src/part/common_js_loader.part.html | 27 +
src/part/common_tail_info.part.html | 3 +
src/part/common_tail_info_fixed.part.html | 3 +
src/part/man_backhome.part.html | 4 +
src/part/man_tail_script.part.html | 13 +
src/part/result_tail_script.part.html | 12 +
src/part/usr_tail_script.part.html | 13 +
src/part/wrap/body_desc.part.html | 2 +
src/part/wrap/body_head.part.html | 2 +
src/part/wrap/head.part.html | 7 +
src/part/wrap/headbody.part.html | 4 +
src/part/wrap/headbody_man.part.html | 4 +
src/part/wrap/headbody_result.part.html | 6 +
src/part/wrap/headbody_sub.part.html | 3 +
src/part/wrap/tail.part.html | 5 +
src/part/wrap/tail_fixed.part.html | 5 +
src/result.html | 42 +
src/tmpl/ajax/index.ajax.html | 3 +
src/tmpl/index.html | 20 +
src/user/js/list.js | 71 +
src/user/js/modi.js | 169 ++
src/user/js/reg.js | 185 ++
src/user/js/rrepair.js | 75 +
src/user/list.html | 56 +
src/user/modi.html | 133 ++
src/user/part/list/dlg_info.part.html | 32 +
src/user/part/list/toast_loading.part.html | 22 +
src/user/part/reg/dlg_binderror.part.html | 16 +
src/user/part/reg/select_block.part.html | 37 +
src/user/part/reg/toast_loading.part.html | 21 +
src/user/part/rrepair/dlg_fail.part.html | 15 +
src/user/part/rrepair/toast_loading.part.html | 21 +
src/user/reg.html | 141 ++
src/user/rrepair.html | 104 +
url_config.js | 31 +
yarn.lock | 1961 +++++++++++++++++
98 files changed, 6291 insertions(+)
create mode 100644 build_config.js
create mode 100644 field_config.js
create mode 100644 fix-dependencies.sh
create mode 100644 gulpfile.js
create mode 100644 package.json
create mode 100644 src/404.html
create mode 100644 src/cdn/common.css
create mode 100644 src/cdn/cryptico.min.js
create mode 100644 src/cdn/functions.js
create mode 100644 src/cdn/lyTableAll.min.js
create mode 100644 src/cdn/lytable.min.css
create mode 100644 src/cdn/mycomponent.min.js
create mode 100644 src/cdn/userfield.js
create mode 100644 src/cdn/weui.min.css
create mode 100644 src/cdn/zepto.min.js
create mode 100644 src/egg/doge.css
create mode 100644 src/egg/doge.jpg
create mode 100644 src/egg/doge.js
create mode 100644 src/egg/tail.gif
create mode 100644 src/fbi.html
create mode 100644 src/index.html
create mode 100644 src/man/add.html
create mode 100644 src/man/css/log.sub.css
create mode 100644 src/man/css/track.sub.css
create mode 100644 src/man/home.html
create mode 100644 src/man/js/add.js
create mode 100644 src/man/js/home.js
create mode 100644 src/man/js/list.js
create mode 100644 src/man/js/lists.js
create mode 100644 src/man/js/log.js
create mode 100644 src/man/js/log.sub.js
create mode 100644 src/man/js/track.sub.js
create mode 100644 src/man/list.html
create mode 100644 src/man/lists.html
create mode 100644 src/man/log.html
create mode 100644 src/man/log.sub.html
create mode 100644 src/man/login.html
create mode 100644 src/man/part/add/actionsheet_isp.part.html
create mode 100644 src/man/part/add/body.part.html
create mode 100644 src/man/part/add/dlg_fail.part.html
create mode 100644 src/man/part/add/toast_loading.part.html
create mode 100644 src/man/part/home/body.part.html
create mode 100644 src/man/part/list/body.part.html
create mode 100644 src/man/part/list/dlg_browser_history.part.html
create mode 100644 src/man/part/list/dlg_operation.part.html
create mode 100644 src/man/part/list/dlg_query.part.html
create mode 100644 src/man/part/list/toast_loading.part.html
create mode 100644 src/man/part/lists/body.part.html
create mode 100644 src/man/part/lists/dlg_browser_history.part.html
create mode 100644 src/man/part/lists/dlg_operation.part.html
create mode 100644 src/man/part/lists/dlg_query.part.html
create mode 100644 src/man/part/lists/toast_loading.part.html
create mode 100644 src/man/part/log.sub/body.part.html
create mode 100644 src/man/part/log/body.part.html
create mode 100644 src/man/part/log/dlg_browser_history.part.html
create mode 100644 src/man/part/track.sub/body.part.html
create mode 100644 src/man/track.sub.html
create mode 100644 src/page_result/egg_loader.part.html
create mode 100644 src/page_result/result.js
create mode 100644 src/part/_tail_info.part.html
create mode 100644 src/part/common_head_meta.part.html
create mode 100644 src/part/common_head_style.part.html
create mode 100644 src/part/common_js_loader.part.html
create mode 100644 src/part/common_tail_info.part.html
create mode 100644 src/part/common_tail_info_fixed.part.html
create mode 100644 src/part/man_backhome.part.html
create mode 100644 src/part/man_tail_script.part.html
create mode 100644 src/part/result_tail_script.part.html
create mode 100644 src/part/usr_tail_script.part.html
create mode 100644 src/part/wrap/body_desc.part.html
create mode 100644 src/part/wrap/body_head.part.html
create mode 100644 src/part/wrap/head.part.html
create mode 100644 src/part/wrap/headbody.part.html
create mode 100644 src/part/wrap/headbody_man.part.html
create mode 100644 src/part/wrap/headbody_result.part.html
create mode 100644 src/part/wrap/headbody_sub.part.html
create mode 100644 src/part/wrap/tail.part.html
create mode 100644 src/part/wrap/tail_fixed.part.html
create mode 100644 src/result.html
create mode 100644 src/tmpl/ajax/index.ajax.html
create mode 100644 src/tmpl/index.html
create mode 100644 src/user/js/list.js
create mode 100644 src/user/js/modi.js
create mode 100644 src/user/js/reg.js
create mode 100644 src/user/js/rrepair.js
create mode 100644 src/user/list.html
create mode 100644 src/user/modi.html
create mode 100644 src/user/part/list/dlg_info.part.html
create mode 100644 src/user/part/list/toast_loading.part.html
create mode 100644 src/user/part/reg/dlg_binderror.part.html
create mode 100644 src/user/part/reg/select_block.part.html
create mode 100644 src/user/part/reg/toast_loading.part.html
create mode 100644 src/user/part/rrepair/dlg_fail.part.html
create mode 100644 src/user/part/rrepair/toast_loading.part.html
create mode 100644 src/user/reg.html
create mode 100644 src/user/rrepair.html
create mode 100644 url_config.js
create mode 100644 yarn.lock
diff --git a/build_config.js b/build_config.js
new file mode 100644
index 0000000..83ca00b
--- /dev/null
+++ b/build_config.js
@@ -0,0 +1,43 @@
+//代码构建配置文件
+var build_config = {
+ //调试版
+ debug : {
+ comment : '非主线调试',
+ dest : 'dist/debug',
+ version : 'debug',
+ compress : [true,false,false],
+ },
+ //v2调试版
+ v2d : {
+ comment : 'v2调试版',
+ dest : 'dist/v2',
+ version : 'v2 debug',
+ compress : [false,false,false],//js,css,html
+ },
+
+ //v2发布版
+ v2 : {
+ comment : 'v2发布版',
+ dest : 'dist/v2',
+ version : 'v2 prod',
+ compress : [true,true,true],//js,css,html
+ },
+
+
+ //源文件目录
+ _src : 'src',
+ //清理选项
+ _clean_cfg : {},
+ //HTML压缩选项
+ _html_compress_cfg : {
+ removeComments : true,//去除注释
+ collapseWhitespace : true,//去掉空格
+ conservativeCollapse : true,//去掉空格但保留一个空格
+ collapseBooleanAttributes : true,//去掉布尔值HTML属性的值
+ removeAttributeQuotes : false,//不去掉可以去掉的HTML属性值的引号
+ minifyJS : true,
+ minifyCSS : true,
+ },
+
+};
+module.exports = build_config;
\ No newline at end of file
diff --git a/field_config.js b/field_config.js
new file mode 100644
index 0000000..0c8aebf
--- /dev/null
+++ b/field_config.js
@@ -0,0 +1,7 @@
+//页面字段
+module.exports = {
+'release_fields':{
+ 'BAD_SOLA' : 'Sola端出问题了,无法回应你的查询请求',
+ 'BAD_TOKEN' : '页面已失效\\n请关闭页面后重新发送指令',
+}
+};
diff --git a/fix-dependencies.sh b/fix-dependencies.sh
new file mode 100644
index 0000000..f08ac07
--- /dev/null
+++ b/fix-dependencies.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+#
+# Fix old dependencies caused bug "ReferenceError: primordials is not defined"
+#
+# > You're using node 12 and gulp 3. That combination does not work:
+# > https://github.com/gulpjs/gulp/issues/2324
+#
+
+cd "$( dirname "${BASH_SOURCE[0]}" )" || exit 1;
+
+set -x;
+rm -rf node_modules/vinyl-fs/node_modules/graceful-fs || exit 1;
+cp -r node_modules/graceful-fs node_modules/vinyl-fs/node_modules/graceful-fs || exit 1;
+
+echo "Boom!";
diff --git a/gulpfile.js b/gulpfile.js
new file mode 100644
index 0000000..0c46917
--- /dev/null
+++ b/gulpfile.js
@@ -0,0 +1,240 @@
+/*
+ * A gulpfile created by LiuYue(hangxingliu)
+ * 2016/03/26 Version 3.0
+ * A Gulp Scipt To Quickly Build NetMaintain Platform)
+ */
+//允许了Js文件中使用preprocess
+/*
+ * 构建源码说明:
+ * *.part.html 会当作HTML部件,在最终的发布版中会被删除(但是可以被include到其他html文件中)
+ * *.min.js/*.min.css 会被当作已压缩过了的文件,不予与压缩处理
+ */
+
+//加载构建选项版本
+var builder = require('./build_config.js');
+
+//源代码目录
+var SRC = builder._src;
+//生成目录
+var DEST = 'dist/tmp';
+//版本名称
+var VERSION = 'temp version';
+//注释信息
+var COMMENT = '临时测试版本';
+//是否压缩CSS和JS
+var MINI_JS = false;
+var MINI_CSS = false;
+var MINI_HTML = false;
+//默认的清理参数
+var OPT_CLEAN = builder._clean_cfg;
+//默认的HTML压缩参数
+var OPT_HTML_COMPRESS = builder._html_compress_cfg;
+
+//装载指定的构建配置
+var buildCfgName = process.argv[process.argv.length - 1];
+if (buildCfgName && buildCfgName[0] == '-') {
+ buildCfgName = buildCfgName.slice(1);
+ if(builder[buildCfgName]){
+ var buildCfg = builder[buildCfgName];
+ DEST = buildCfg.dest;
+ COMMENT = buildCfg.comment;
+ VERSION = buildCfg.version;
+ MINI_JS = buildCfg.compress[0];
+ MINI_CSS = buildCfg.compress[1];
+ MINI_HTML = buildCfg.compress[2];
+
+ console.log('--------------------------');
+ console.log('构建配置 "' + COMMENT + '" 加载成功!');
+ console.log('--------------------------');
+ }else{
+ console.log('"' + buildCfgName + '" (指定构建配置不存在!)');
+ process.exit();
+ }
+}
+
+
+//默认的Preprocess参数
+var PREPROCESS_PARAMS = {
+ context: {
+ //时间参数更新引入文件
+ TIME: (new Date()).getTime(),
+ //版本
+ VERSION: VERSION
+ }
+};
+
+//加载URL参数
+var urls_obj = require('./url_config.js');
+var urls = urls_obj.release_urls;
+for (var url_key in urls) {
+ eval("PREPROCESS_PARAMS.context.URL_" + url_key.toUpperCase() + " = urls." + url_key + ";");
+}
+
+//加载字段
+var fields_obj = require('./field_config.js');
+var fields = fields_obj.release_fields;
+for (var field_key in fields) {
+ eval("PREPROCESS_PARAMS.context.MSG_" + field_key.toUpperCase() + " = fields." + field_key + ";");
+}
+
+//console.log(JSON.stringify(PREPROCESS_PARAMS.context,null,4));
+
+var HELP = [
+ '', '',
+ '----------------------',
+ 'gulp [help]: 查看脚本帮助',
+ 'gulp (go|build): 编译优化源代码',
+ 'gulp (watch|live|edit) : 实时编译优化源代码(首先会编译优化一次)',
+ '----------',
+ '在 (go/watch/live/edit)参数后面可带参数:',
+ '\t-XX :表示以XX构建配置构建编译',
+ '----------------------',
+ '刘越,16/03/26', ''
+];
+
+
+var DEST_PATH = DEST + '/';
+var SRC_PATH = SRC + '/';
+
+//-------------____引入一些必要的Gulp外挂____-------------------
+var g = require("gulp");
+var cleaner = require("gulp-clean");
+var minijs = require('gulp-uglify');
+var minicss = require('gulp-clean-css');
+var minihtml = require('gulp-htmlmin');
+var pp = require('gulp-preprocess');
+var runSeq = require('gulp-sequence');
+
+
+g.task('default', ['help']);
+g.task('help', function () {
+ for (var i = 0; i < HELP.length; i++)
+ console.log(HELP[i]);
+});
+
+//编译构建
+g.task('build',['go']);
+
+g.task('go', runSeq('copy_all_files', ['handler_all_css', 'handler_all_js', 'handler_html']));
+
+g.task('live', ['watch']);
+g.task('edit', ['watch']);
+
+//监视文件变动
+g.task('watch', ['go'], function () {
+ g.watch(SRC_PATH + '**/*', function (event) {
+ console.log(event.type + ': ' + event.path);
+ if (event.type == 'deleted' || event.type == 'added') return;
+ var path = event.path;
+ var index = path.lastIndexOf('.');
+ var suffix = index == -1 ? '' : path.slice(index + 1);
+ var isMin = index == -1 ? false : (path.slice(index - 4, index) == '.min');
+ switch (suffix) {
+ case 'js':
+ g.start(isMin ? 'handler_min_js' : 'handler_js');
+ break;
+ case 'css':
+ g.start(isMin ? 'handler_min_css' : 'handler_css');
+ break;
+ case 'html':
+ g.start('handler_html');
+ break;
+ default:
+ g.start('default');
+ }
+ });
+});
+
+/*--------------------------CSS------------------------------*/
+g.task('handler_all_css', ['handler_css', 'handler_min_css']);
+g.task('handler_css', ['clean_css'], function () {
+ var s = g.src([SRC_PATH + '**/*.css', '!' + SRC_PATH + '**/*.min.css']);
+ if (MINI_CSS) s = s.pipe(minicss());
+ s = s.pipe(g.dest(DEST_PATH));
+ return s;
+});
+g.task('clean_css', function () {
+ var s = g.src([DEST_PATH + '**/*.css', '!' + DEST_PATH + '**/*.min.css'], {
+ 'read': false
+ }).pipe(cleaner(OPT_CLEAN));
+ return s;
+});
+g.task('handler_min_css', ['clean_min_css'], function () {
+ var s = g.src(SRC_PATH + '**/*.min.css').pipe(g.dest(DEST_PATH));
+ return s;
+});
+g.task('clean_min_css', function () {
+ var s = g.src(DEST_PATH + '**/*.min.css', {
+ 'read': false
+ }).pipe(cleaner(OPT_CLEAN));
+ return s;
+});
+
+/*-------------------Javascript-----------------------------*/
+g.task('handler_all_js', ['handler_js', 'handler_min_js']);
+g.task('handler_js', ['clean_js'], function () {
+ var s = g.src([SRC_PATH + '**/*.js', '!' + SRC_PATH + '**/*.min.js']);
+ s = s.pipe(pp(PREPROCESS_PARAMS))
+ .on('error', function (err) {
+ console.error(err);
+ this.emit('end');
+ });
+ if (MINI_JS) s = s.pipe(minijs());
+ s = s.pipe(g.dest(DEST_PATH));
+ return s;
+});
+g.task('clean_js', function () {
+ var s = g.src([DEST_PATH + '**/*.js', '!' + DEST_PATH + '**/*.min.js'], {
+ 'read': false
+ }).pipe(cleaner(OPT_CLEAN));
+ return s;
+});
+g.task('handler_min_js', ['clean_min_js'], function () {
+ var s = g.src(SRC_PATH + '**/*.min.js').pipe(g.dest(DEST_PATH));
+ return s;
+});
+g.task('clean_min_js', function () {
+ var s = g.src(DEST_PATH + '**/*.min.js', {
+ 'read': false
+ }).pipe(cleaner(OPT_CLEAN));
+ return s;
+});
+
+
+/*-------------------HTML-----------------------------*/
+g.task('handler_html', ['clean_html'], function () {
+ var s = g.src(['./' + SRC_PATH + '**/*.html', '!./' + SRC_PATH + '**/*.part.html'])
+ .pipe(pp(PREPROCESS_PARAMS))
+ .on('error', function (err) {
+ console.error(err);
+ this.emit('end');
+ });
+ if (MINI_HTML) s = s.pipe(minihtml(OPT_HTML_COMPRESS));
+ s = s.pipe(g.dest(DEST_PATH));
+ return s;
+});
+g.task('clean_html', function () {
+ var s = g.src([
+ './' + DEST_PATH + '**/*.html', './' + DEST_PATH + '**/*.html'
+ ], {
+ 'read': false
+ }).pipe(cleaner(OPT_CLEAN));
+ return s;
+});
+
+
+/*-------------------ALL-----------------------------*/
+g.task('copy_all_files', ['clean_all'], function () {
+ var s = g.src('./' + SRC_PATH + '**', {
+ 'base': ''
+ })
+ .pipe(g.dest(DEST_PATH));
+ return s;
+});
+//清空dist目录
+g.task('clean_all', function () {
+ var s = g.src([DEST_PATH + '*'], {
+ 'read': false
+ }).pipe(cleaner(OPT_CLEAN));
+ return s;
+});
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..9071bad
--- /dev/null
+++ b/package.json
@@ -0,0 +1,23 @@
+{
+ "name": "netsupport",
+ "version": "0.0.1",
+ "description": "网络维护科在线报修平台-前端",
+ "main": "index.js",
+ "devDependencies": {
+ "graceful-fs": "^4.2.4",
+ "gulp": "^3.9.1",
+ "gulp-clean": "^0.4.0",
+ "gulp-clean-css": "^4.0.0",
+ "gulp-htmlmin": "^5.0.1",
+ "gulp-preprocess": "^3.0.1",
+ "gulp-sequence": "^1.0.0",
+ "gulp-uglify": "^3.0.1"
+ },
+ "scripts": {
+ "build": "gulp build -v2",
+ "build:dev": "gulp build -v2d",
+ "start": "gulp live",
+ "test": "gulp"
+ },
+ "author": "Liu Yue"
+}
diff --git a/src/404.html b/src/404.html
new file mode 100644
index 0000000..dd97b45
--- /dev/null
+++ b/src/404.html
@@ -0,0 +1,37 @@
+404
+
你看到了这个界面?
+那就是我的问题或者是Sola的问题了
+不要惊讶,因为....
+念念不忘,必有回响。
+有一口气,点一盏灯。
+