From 40bddcfcdd2b6cd0b8a8aab2e916e2e6e9ab9239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BD=B6?= Date: Wed, 25 Jan 2017 00:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A5=E6=A0=BCESlint=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 1 - src/config.js | 32 ++++++++++++++++---------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.eslintignore b/.eslintignore index 0923132..9dcad46 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,2 @@ build/*.js -src/config.js assets/*.js diff --git a/src/config.js b/src/config.js index bfcbf38..b3384a5 100644 --- a/src/config.js +++ b/src/config.js @@ -1,23 +1,23 @@ import path from 'path' export let SystemConfig = { - HTTP_server_type: 'http://', // HTTP服务器地址,包含"http://"或"https://" - HTTP_server_host: 'localhost', // HTTP服务器地址,请勿添加"http://" - HTTP_server_port: '3000', // HTTP服务器端口号 - System_country: 'zh-cn', // 所在国家的国家代码 - System_plugin_path: path.join(__dirname, "../src/plugins"), // 插件路径 - Session_Key: 'RESTfulAPI', // 生产环境务必随机设置一个值 - mysql_host: 'localhost', // MySQL服务器地址 - mysql_user: 'root', // 数据库用户名 - mysql_password: 'root', // 数据库密码 - mysql_database: 'test', // 数据库名称 - mysql_port: 3306, // 数据库端口号 - mysql_prefix: 'api_' // 默认"api_" + HTTP_server_type: 'http://', // HTTP服务器地址,包含"http://"或"https://" + HTTP_server_host: 'localhost', // HTTP服务器地址,请勿添加"http://" + HTTP_server_port: '3000', // HTTP服务器端口号 + System_country: 'zh-cn', // 所在国家的国家代码 + System_plugin_path: path.join(__dirname, '../src/plugins'), // 插件路径 + Session_Key: 'RESTfulAPI', // 生产环境务必随机设置一个值 + mysql_host: 'localhost', // MySQL服务器地址 + mysql_user: 'root', // 数据库用户名 + mysql_password: 'root', // 数据库密码 + mysql_database: 'test', // 数据库名称 + mysql_port: 3306, // 数据库端口号 + mysql_prefix: 'api_' // 默认"api_" } export let SendEmail = { - service: 'smtp.abcd.com', // SMTP服务提供商域名 - username: 'postmaster%40abcd.com', // 用户名/用户邮箱 - password: 'password', // 邮箱密码 - sender_address: '"XX平台 👥" ' + service: 'smtp.abcd.com', // SMTP服务提供商域名 + username: 'postmaster%40abcd.com', // 用户名/用户邮箱 + password: 'password', // 邮箱密码 + sender_address: '"XX平台 👥" ' }