Permalink
Browse files

初始化项目工程,示例

  • Loading branch information...
zhaoyuu
zhaoyuu committed Dec 4, 2017
1 parent d04754c commit 41e5ec356ab1a54bf173b5fc058405517261b6bb
View
@@ -0,0 +1,17 @@
{
"presets": [
"es2015",
"stage-2",
"react"
],
"plugins": [
["transform-runtime", {
"helpers": false,
"polyfill": false,
"regenerator": true
}],
[
"syntax-dynamic-import"
]
]
}
View
@@ -0,0 +1,38 @@
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
},
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true,
"jest": true
},
"rules": {
"indent": [2, 2, {
"SwitchCase": 1
}],
"linebreak-style": [2, "unix"],
"no-multi-spaces": 2,
"no-trailing-spaces": 2,
"quotes": [2, "single", {
"allowTemplateLiterals": true
}],
"semi": [2, "never"],
"space-before-blocks": 2,
"spaced-comment": [2, "always"],
"object-curly-spacing": [2, "always"],
},
"plugins": [
"react"
]
}
View
@@ -1,4 +1,20 @@
de_modules
**/node_modules
node_modules
npm-debug.log.*
dist
lib
coverage
.nyc_output
.idea
**/dist
**/build
.tmp
*.swo
*.swp
*.diff
*.log
*.patch
.DS_STORE
.idea
View
@@ -0,0 +1,227 @@
{
"error_code": null,
"string": null,
"error_message": null,
"stack": null,
"status": "1",
"message": "操作成功!",
"data": [
{
"id": "dashboard",
"name": "Dashboard",
"location": "/dashboard",
"menustatus": "Y",
"parentid": null,
"icon": "uf uf-9square-2",
"target": "",
"urltype": "url",
"children": [
{
"id": "analysis",
"name": "分析页",
"location": "analysis",
"menustatus": "Y",
"parentid": null,
"icon": "iconfont cl cl-filebox yellow-700",
"target": "",
"urltype": "url",
"children": [],
"sort": 2,
"openview": "curpage",
"category": "pass"
}
],
"sort": 1,
"openview": "curpage",
"category": "engine"
},
{
"id": "myReleasePool",
"name": "表单页",
"location": "/fe/MyRP/index.html",
"menustatus": "Y",
"parentid": null,
"icon": "uf uf-pencil-s",
"target": "",
"urltype": "url",
"children": [
{
"id": "analysis",
"name": "分析页",
"location": "analysis",
"menustatus": "Y",
"parentid": null,
"icon": "iconfont cl cl-filebox yellow-700",
"target": "",
"urltype": "url",
"children": [],
"sort": 2,
"openview": "curpage",
"category": "pass"
}
],
"sort": 2,
"openview": "curpage",
"category": "pass"
},
{
"id": "continuous",
"name": "列表页",
"location": "/fe/continuous/index.html",
"menustatus": "Y",
"parentid": null,
"icon": "uf uf-table",
"target": "",
"urltype": "url",
"children": [
{
"id": "analysis",
"name": "分析页",
"location": "analysis",
"menustatus": "Y",
"parentid": null,
"icon": "iconfont cl cl-filebox yellow-700",
"target": "",
"urltype": "url",
"children": [],
"sort": 2,
"openview": "curpage",
"category": "pass"
}
],
"sort": 2,
"openview": "curpage",
"category": "engine"
},
{
"id": "appmgr",
"name": "详情页",
"location": "/fe/appManager/index.html",
"menustatus": "Y",
"parentid": null,
"icon": "uf uf-listsearch",
"target": "",
"urltype": "url",
"children": [
{
"id": "analysis",
"name": "分析页",
"location": "analysis",
"menustatus": "Y",
"parentid": null,
"icon": "iconfont cl cl-filebox yellow-700",
"target": "",
"urltype": "url",
"children": [],
"sort": 2,
"openview": "curpage",
"category": "pass"
}
],
"sort": 2,
"openview": "curpage",
"category": "engine"
},
{
"id": "mirrorRes",
"name": "结果",
"location": "/fe/imagesCata/index.html",
"menustatus": "Y",
"parentid": null,
"icon": "uf uf-correct",
"target": "",
"urltype": "url",
"children": [
{
"id": "analysis",
"name": "分析页",
"location": "analysis",
"menustatus": "Y",
"parentid": null,
"icon": "iconfont cl cl-filebox yellow-700",
"target": "",
"urltype": "url",
"children": [],
"sort": 2,
"openview": "curpage",
"category": "pass"
}
],
"sort": 3,
"openview": "curpage",
"category": "engine"
},
{
"id": "middleware",
"name": "异常",
"location": "/fe/md-service/index.html",
"menustatus": "Y",
"parentid": null,
"icon": "uf uf-exc-t",
"target": "",
"urltype": "url",
"children": [
{
"id": "analysis",
"name": "分析页",
"location": "analysis",
"menustatus": "Y",
"parentid": null,
"icon": "iconfont cl cl-filebox yellow-700",
"target": "",
"urltype": "url",
"children": [],
"sort": 2,
"openview": "curpage",
"category": "pass"
}
],
"sort": 4,
"openview": "curpage",
"category": "pass"
},
{
"id": "confcenter",
"name": "账户",
"location": "/confcenter",
"menustatus": "Y",
"parentid": null,
"icon": "uf uf-users-o",
"target": "",
"urltype": "view",
"children": [
{
"id": "analysis",
"name": "分析页",
"location": "analysis",
"menustatus": "Y",
"parentid": null,
"icon": "iconfont cl cl-filebox yellow-700",
"target": "",
"urltype": "url",
"children": [],
"sort": 2,
"openview": "curpage",
"category": "pass"
}
],
"sort": 5,
"openview": "curpage",
"category": "paas"
},
{
"id": "yunw",
"name": "使用文档",
"location": "/fe/dataObs/index.html",
"menustatus": "Y",
"parentid": null,
"icon": "uf uf-book",
"target": "",
"urltype": "url",
"children": [],
"sort": 6,
"openview": "curpage",
"category": "engine"
}
]
}
View
@@ -0,0 +1,19 @@
var path = require('path')
// See http://expressjs.com/en/4x/api.html#res
module.exports = function(router) {
router.get("/Mock/Login.do", function(req, res, next) {
res.send("Hello Mock " + new Date());
});
router.get('/user/:uid/photos/:file', function(req, res) {
var uid = req.params.uid,
file = req.params.file;
res.send(`${uid} ${file}`);
});
// router.get('/md-build/*',function(req,res){
// const url = req.url.replace('.md','.html');
// const absurl = path.join(__dirname, '../', 'src', url)
// res.sendFile(absurl);
// })
return router;
}
View
@@ -0,0 +1,60 @@
{
"name": "tinper-bee-honeycomb",
"version": "0.0.1",
"description": "An out-of-box UI solution for enterprise applications",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tinper-bee/tinper-bee-honeycomb.git"
},
"keywords": [
"tinper",
"bee"
],
"author": "Yonyou FED",
"license": "MIT",
"bugs": {
"url": "https://github.com/tinper-bee/tinper-bee-honeycomb/issues"
},
"homepage": "https://github.com/tinper-bee/tinper-bee-honeycomb#readme",
"devDependencies": {
"autoprefixer": "^7.1.1",
"babel-core": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.0.0",
"babel-plugin-import": "^1.2.1",
"babel-plugin-transform-class-properties": "^6.23.0",
"babel-plugin-transform-runtime": "6.x",
"babel-preset-es2015": "^6.14.1",
"babel-preset-react": "^6.14.1",
"babel-preset-stage-2": "^6.14.1",
"css-loader": "^0.28.3",
"eslint": "^4.9.0",
"eslint-plugin-react": "^7.4.0",
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^0.11.1",
"glob": "^7.1.2",
"html-webpack-plugin": "^2.30.1",
"less": "^2.7.2",
"less-loader": "^4.0.4",
"marked": "^0.3.6",
"mirrorx": "^0.2.10",
"open-browser-webpack-plugin": "0.0.5",
"postcss-loader": "^2.0.5",
"prop-types": ">=15",
"react": "^16.0.0",
"react-custom-scrollbars": "^4.2.1",
"react-dom": "^16.0.0",
"react-loadable": "^5.3.1",
"style-loader": "^0.18.1",
"svg-url-loader": "^2.0.2",
"tinper-bee": "^1.1.1",
"uba": "^2.2.2",
"url-loader": "^0.5.8",
"webpack": "^2.6.1",
"webpack-hot-middleware": "^2.21.0"
}
}
Oops, something went wrong.

0 comments on commit 41e5ec3

Please sign in to comment.