Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
beclass committed Sep 5, 2019
0 parents commit 02f999f
Show file tree
Hide file tree
Showing 137 changed files with 19,351 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@vue/app"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VUE_APP_SRC = '/Users/test/fsadmin-cms/src'
VUE_APP_UPLOAD_URL = 'http://127.0.0.1:9004/api/file'
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_UPLOAD_URL = 'http://120.55.160.92:9005/api/file'
Empty file added .eslintignore
Empty file.
21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
root: true,
'extends': [
'plugin:vue/essential',
'@vue/standard'
],
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/no-parsing-error': [2, {
'x-invalid-end-tag': false
}],
'no-undef': 'off',
'camelcase': 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
5 changes: 5 additions & 0 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {}
}
}
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js: stable
script: npm run lint
notifications:
email: false
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# fsadmin-cms
> 简化繁琐重复的工作,全套restful风格, 实现前端orm,关联查询,自动生成基础页面的实用,易扩展的admin-cms
#### 例子

[http://120.55.160.92:8082](http://120.55.160.92:8082)

```
用户:test
密码:111111
```

#### 服务端框架

优化中...


# 环境配置
- `vue^2.5.10`
- `vue-cli3`
- `iview^3.2.2`

## 命令
```bash
# 下载代码
$ git clone https://github.com/beclass/fsadmin-cms.git

# 安装依赖
$ npm i 建议 cnpm i

# 开发调试
$ npm run dev

# 构建
$ npm run build
```

## 约定:
- `filter.search$$title$$all` - 模糊查询title
```bash
all:模糊查询
> :大于
< :小于
>= :大于等于
<= :小于等于
```
- `belongsTo` - 属于,{ name: 'article_type', fkey: 'article_type_id', attrs: ['name->typeName'] } },
- name:主表名
- fkey:外键字段,关联主表的主键
- attrs:需要关联查询出来的字段, ->表示取别名


## 参考

#### 网址

- [Vue.js 中文网](https://cn.vuejs.org/)
- [iView - 一套基于 Vue.js 的高质量 UI 组件库](https://www.iviewui.com/)
- [iview-admin](https://github.com/iview/iview-admin)




## 未完待续...



Loading

0 comments on commit 02f999f

Please sign in to comment.