From 591c1489182c5d05360db1338aac4667202e15b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Thu, 7 Jun 2018 14:59:05 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=88=86=E9=A1=B5=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=202.=20=E6=96=B0=E5=A2=9Elicense?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 17 + .postcssrc.js | 17 + build/build.js | 19 +- build/check-versions.js | 19 +- build/setup-dev-server.js | 17 + build/utils.js | 19 +- build/vue-loader.conf.js | 19 +- build/webpack.base.conf.js | 186 +++--- build/webpack.client.conf.js | 17 + build/webpack.dev.conf.js | 17 + build/webpack.prod.conf.js | 19 +- build/webpack.server.conf.js | 17 + config/dev.env.js | 17 + config/index.js | 17 + config/prod.env.js | 17 + index.html | 17 + server.js | 19 +- src/App.vue | 21 +- src/api/admin.js | 19 +- src/api/client.js | 17 + src/api/dept.js | 17 + src/api/dict.js | 17 + src/api/log.js | 17 + src/api/login.js | 17 + src/api/menu.js | 31 +- src/api/qiniu.js | 17 + src/api/role.js | 17 + src/api/route.js | 17 + src/api/user.js | 17 + src/components/error-page/403.vue | 17 + src/components/error-page/404.vue | 17 + src/components/error-page/500.vue | 17 + src/components/iframe/main.vue | 19 +- src/config/env.js | 17 + src/const/crud/client.js | 17 + src/const/crud/data.js | 17 + src/const/crud/option.js | 17 + src/const/crud/route.js | 17 + src/const/errorCode.js | 17 + src/const/website.js | 17 + src/directive/clipboard/clipboard.js | 17 + src/directive/clipboard/index.js | 17 + src/directive/sticky.js | 17 + src/directive/waves/index.js | 17 + src/directive/waves/waves.css | 19 +- src/directive/waves/waves.js | 17 + src/entry-client.js | 19 +- src/entry-server.js | 17 + src/errorLog.js | 17 + src/filters/index.js | 17 + src/main.js | 17 + src/mixins/theme.js | 17 + src/mock/admin.js | 17 + src/mock/menu.js | 17 + src/mock/user.js | 17 + src/page/index/index.vue | 19 +- src/page/index/sidebar/index.vue | 17 + src/page/index/sidebar/logo.vue | 19 +- src/page/index/sidebar/sidebarItem.vue | 17 + src/page/index/tags.vue | 17 + src/page/index/top/index.vue | 17 + src/page/index/top/top-breadcrumb.vue | 17 + src/page/index/top/top-lock.vue | 17 + src/page/index/top/top-menu.vue | 19 +- src/page/index/top/top-theme.vue | 17 + src/page/lock/index.vue | 17 + src/page/login/codelogin.vue | 17 + src/page/login/index.vue | 19 +- src/page/login/thirdlogin.vue | 17 + src/page/login/userlogin.vue | 17 + src/page/wel.vue | 17 + src/permission.js | 17 + src/router/_import.js | 17 + src/router/_router.js | 17 + src/router/axios.js | 17 + src/router/router.js | 17 + src/store/getters.js | 17 + src/store/index.js | 17 + src/store/modules/common.js | 17 + src/store/modules/errLog.js | 19 +- src/store/modules/tags.js | 19 +- src/store/modules/user.js | 17 + src/styles/btn.scss | 17 + src/styles/common.scss | 17 + src/styles/element-ui.scss | 17 + src/styles/mixin.scss | 27 +- src/styles/sidebar.scss | 17 + src/styles/tags.scss | 17 + src/styles/top.scss | 17 + src/styles/variables.scss | 17 + src/util/auth.js | 17 + src/util/store.js | 17 + src/util/util.js | 17 + src/util/validate.js | 19 +- src/vendor/Blob.js | 19 +- src/vendor/Export2Excel.js | 19 +- src/views/admin/client/index.vue | 27 +- src/views/admin/dept/index.vue | 19 +- src/views/admin/dict/index.vue | 17 + src/views/admin/log/index.vue | 17 + src/views/admin/menu/index.vue | 17 + src/views/admin/role/index.vue | 17 + src/views/admin/route/index.vue | 25 +- src/views/admin/user/index.vue | 17 + src/views/admin/user/info.vue | 17 + src/views/crud/index.vue | 17 + src/views/dashboard/index.vue | 17 + static/aes.js | 19 +- static/cdn/animate/3.5.2/animate.css | 19 +- static/cdn/iconfont/1.0.0/index.css | 17 + static/cdn/store/1.3.20/store.js | 23 +- static/cdn/vue-router/3.0.1/vue-router.js | 747 +++++++++++----------- static/util/screen.js | 29 + test/unit/karma.conf.js | 19 +- test/unit/specs/Hello.spec.js | 21 +- tools/app.js | 17 + tools/temp/api.js | 17 + tools/temp/index.vue | 17 + tools/temp/option.js | 17 + tools/util/validate.js | 17 + 120 files changed, 2552 insertions(+), 501 deletions(-) create mode 100644 static/util/screen.js diff --git a/.eslintrc.js b/.eslintrc.js index 006e9824..e9aa2168 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + module.exports = { root: true, parser: 'babel-eslint', diff --git a/.postcssrc.js b/.postcssrc.js index 09948d63..cd116f61 100644 --- a/.postcssrc.js +++ b/.postcssrc.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + // https://github.com/michael-ciniawsky/postcss-load-config module.exports = { diff --git a/build/build.js b/build/build.js index 5a42f5a4..76c6f44b 100644 --- a/build/build.js +++ b/build/build.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + 'use strict' require('./check-versions')() @@ -38,4 +55,4 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { ' Opening index.html over file:// won\'t work.\n' )) }) -}) \ No newline at end of file +}) diff --git a/build/check-versions.js b/build/check-versions.js index 6eec9db2..bacaee30 100644 --- a/build/check-versions.js +++ b/build/check-versions.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + 'use strict' const chalk = require('chalk') const semver = require('semver') @@ -51,4 +68,4 @@ module.exports = function () { console.log() process.exit(1) } -} \ No newline at end of file +} diff --git a/build/setup-dev-server.js b/build/setup-dev-server.js index f77652a9..13ae3b18 100644 --- a/build/setup-dev-server.js +++ b/build/setup-dev-server.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + const fs = require('fs') const path = require('path') const MFS = require('memory-fs') diff --git a/build/utils.js b/build/utils.js index cf5b8940..557fd989 100644 --- a/build/utils.js +++ b/build/utils.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + 'use strict' const path = require('path') const config = require('../config') @@ -98,4 +115,4 @@ exports.createNotifierCallback = () => { icon: path.join(__dirname, 'logo.png') }) } -} \ No newline at end of file +} diff --git a/build/vue-loader.conf.js b/build/vue-loader.conf.js index 63fa483e..3cf0aed9 100644 --- a/build/vue-loader.conf.js +++ b/build/vue-loader.conf.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + 'use strict' const utils = require('./utils') const config = require('../config') @@ -19,4 +36,4 @@ module.exports = { img: 'src', image: 'xlink:href' } -} \ No newline at end of file +} diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cc994525..5fcaa24e 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + 'use strict' const path = require('path') const utils = require('./utils') @@ -5,96 +22,97 @@ const config = require('../config') const vueLoaderConfig = require('./vue-loader.conf') function resolve(dir) { - return path.join(__dirname, '..', dir) + return path.join(__dirname, '..', dir) } const createLintingRule = () => ({ - test: /\.(js|vue)$/, - loader: 'eslint-loader', - enforce: 'pre', - include: [resolve('src'), resolve('test')], - options: { - formatter: require('eslint-friendly-formatter'), - emitWarning: !config.dev.showEslintErrorsInOverlay - } + test: /\.(js|vue)$/, + loader: 'eslint-loader', + enforce: 'pre', + include: [resolve('src'), resolve('test')], + options: { + formatter: require('eslint-friendly-formatter'), + emitWarning: !config.dev.showEslintErrorsInOverlay + } }) module.exports = { - context: path.resolve(__dirname, '../'), - entry: { - app: './src/entry-client.js' - }, - output: { - path: config.build.assetsRoot, - filename: '[name].js', - publicPath: process.env.NODE_ENV === 'production' ? - config.build.assetsPublicPath : config.dev.assetsPublicPath - }, - externals: { - 'vue': 'Vue', - 'vue-router': 'VueRouter', - 'vuex': 'Vuex', - 'axios': 'axios', - 'element-ui': 'ELEMENT', - }, - resolve: { - extensions: ['.js', '.vue', '.json'], - alias: { - 'vue$': 'vue/dist/vue.esm.js', - '@': resolve('src'), - } - }, - module: { - rules: [ + context: path.resolve(__dirname, '../'), + entry: { + app: './src/entry-client.js' + }, + output: { + path: config.build.assetsRoot, + filename: '[name].js', + publicPath: process.env.NODE_ENV === 'production' + ? config.build.assetsPublicPath + : config.dev.assetsPublicPath + }, + externals: { + 'vue': 'Vue', + 'vue-router': 'VueRouter', + 'vuex': 'Vuex', + 'axios': 'axios', + 'element-ui': 'ELEMENT', + }, + resolve: { + extensions: ['.js', '.vue', '.json'], + alias: { + 'vue$': 'vue/dist/vue.esm.js', + '@': resolve('src'), + } + }, + module: { + rules: [ - ...(config.dev.useEslint ? [createLintingRule()] : []), + ...(config.dev.useEslint ? [createLintingRule()] : []), - { - test: /\.vue$/, - loader: 'vue-loader', - options: vueLoaderConfig - }, - { - test: /\.js$/, - loader: 'babel-loader', - include: [resolve('src'), resolve('test'), resolve('./node_modules/vue-moment'), resolve('/node_modules/element-ui/src'), resolve('/node_modules/element-ui/packages')] - }, - { - test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('img/[name].[hash:7].[ext]') - } - }, - { - test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('media/[name].[hash:7].[ext]') - } - }, - { - test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('fonts/[name].[hash:7].[ext]') - } - } - ] - }, - node: { - // prevent webpack from injecting useless setImmediate polyfill because Vue - // source contains it (although only uses it if it's native). - setImmediate: false, - // prevent webpack from injecting mocks to Node native modules - // that does not make sense for the client - dgram: 'empty', - fs: 'empty', - net: 'empty', - tls: 'empty', - child_process: 'empty' - } + { + test: /\.vue$/, + loader: 'vue-loader', + options: vueLoaderConfig + }, + { + test: /\.js$/, + loader: 'babel-loader', + include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] + }, + { + test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('img/[name].[hash:7].[ext]') + } + }, + { + test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('media/[name].[hash:7].[ext]') + } + }, + { + test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('fonts/[name].[hash:7].[ext]') + } + } + ] + }, + node: { + // prevent webpack from injecting useless setImmediate polyfill because Vue + // source contains it (although only uses it if it's native). + setImmediate: false, + // prevent webpack from injecting mocks to Node native modules + // that does not make sense for the client + dgram: 'empty', + fs: 'empty', + net: 'empty', + tls: 'empty', + child_process: 'empty' + } } diff --git a/build/webpack.client.conf.js b/build/webpack.client.conf.js index 5b195c05..d501afea 100644 --- a/build/webpack.client.conf.js +++ b/build/webpack.client.conf.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + const webpack = require('webpack') const merge = require('webpack-merge') const base = require('./webpack.prod.conf') diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 18b9b653..2a62199d 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + 'use strict' const utils = require('./utils') const webpack = require('webpack') diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 66be496c..845dde8c 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + 'use strict' const path = require('path') const utils = require('./utils') @@ -48,7 +65,7 @@ const webpackConfig = merge(baseWebpackConfig, { filename: utils.assetsPath('css/[name].[contenthash].css'), // Setting the following option to `false` will not extract CSS from codesplit chunks. // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. - // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, + // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 allChunks: true, }), diff --git a/build/webpack.server.conf.js b/build/webpack.server.conf.js index 50d3d848..57d1720e 100644 --- a/build/webpack.server.conf.js +++ b/build/webpack.server.conf.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + const webpack = require('webpack') const merge = require('webpack-merge') var config = require('../config') diff --git a/config/dev.env.js b/config/dev.env.js index efead7c8..b86f7de1 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + var merge = require('webpack-merge') var prodEnv = require('./prod.env') diff --git a/config/index.js b/config/index.js index fa648265..64d35f0b 100644 --- a/config/index.js +++ b/config/index.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + // see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') var baseUrl = 'http://127.0.0.1:9999'; diff --git a/config/prod.env.js b/config/prod.env.js index 773d263d..bd2dbdc0 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + module.exports = { NODE_ENV: '"production"' } diff --git a/index.html b/index.html index a55610ea..469a0fbc 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,21 @@ + + diff --git a/server.js b/server.js index d7b31dab..3c0e04f9 100644 --- a/server.js +++ b/server.js @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + const fs = require('fs') const path = require('path') const LRU = require('lru-cache') @@ -115,4 +132,4 @@ app.get('*', isProd ? render : (req, res) => { const port = process.env.PORT || 8080 app.listen(port, () => { console.log(`server started at localhost:${port}`) -}) \ No newline at end of file +}) diff --git a/src/App.vue b/src/App.vue index ed185194..7b40a851 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,3 +1,20 @@ + +