This repository was archived by the owner on Mar 13, 2020. It is now read-only.
File tree 13 files changed +85
-43
lines changed
13 files changed +85
-43
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,3 @@ trim_trailing_whitespace = true
9
9
[* .{js, json} ]
10
10
indent_style = space
11
11
indent_size = 2
12
-
13
- [* .php ]
14
- indent_style = tab
15
- indent_size = 4
Original file line number Diff line number Diff line change 1
1
src /assets /js /
2
2
build /* .js
3
3
config /* .js
4
+ static /** /* .js
Original file line number Diff line number Diff line change 1
1
## 更新记录
2
2
-------
3
+ #### v0.1.5 ( 2016-7-30 ) ####
4
+ - 目录重构
5
+ - 修改README.md
6
+ - 添加线上访问地址[ vue-sui-demo] ( https://eteplus.github.io/vue-sui-demo )
7
+ -
8
+
9
+ ------
10
+
11
+ #### v0.1.4 ( 2016-7-11 ) ####
12
+ - 修改README.md
13
+ - 升级node版本 - v5.12.0 (推荐使用cnpm)
14
+ - .gitignore 添加 .idea
15
+ - 修复BrowserSync代理端口问题
16
+
17
+ ------
18
+
19
+ #### v0.1.3 ( 2016-3-28 ) ####
20
+ - 修改静态资源目录
21
+ - 修改vue-resource的root设置
22
+ - 修复代码发布后, 无法运行服务的问题
23
+
24
+ ------
3
25
4
26
#### v0.1.2 ( 2016-3-22 ) ####
5
27
- 更新依赖文件
15
37
- 按需加载组件
16
38
17
39
-------
18
-
19
- #### v0.1.3 ( 2016-3-28 ) ####
20
- - 修改静态资源目录
21
- - 修改vue-resource的root设置
22
- - 修复代码发布后, 无法运行服务的问题
23
-
24
- ------
25
-
26
- #### v0.1.4 ( 2016-7-11 ) ####
27
- - 修改README.md
28
- - 升级node版本 - v5.12.0 (推荐使用cnpm)
29
- - .gitignore 添加 .idea
30
- - 修复BrowserSync代理端口问题
31
-
32
- ------
Original file line number Diff line number Diff line change @@ -59,9 +59,6 @@ npm run dev
59
59
# 发布代码
60
60
npm run build
61
61
62
- # 发布后启动服务
63
- npm run main
64
-
65
62
```
66
63
67
64
### 开发
@@ -76,7 +73,6 @@ npm run main
76
73
│ ├── webpack-dev-conf.js // 开发的Webpack 配置文件
77
74
│ ├── webpack-prod-conf.js // 生产的Webpack 配置文件
78
75
│ ├── webpack-base-conf.js // 基本的Webpack 配置文件
79
- ├── index.js // 项目发布后的启动文件
80
76
├── package.json // 项目配置文件
81
77
├── src // 生产目录
82
78
│ ├── assets // css js 和图片资源
@@ -87,8 +83,8 @@ npm run main
87
83
│ ├── filters.js // 各种过滤器
88
84
│ ├── router.js // 路由配置
89
85
│ └── main.vue // 根组件
90
- │ └── app.js // Webpack 预编译入口
91
- │ └ ── index.html // 项目入口文件
86
+ │ └── app.js // Webpack 预编译入口
87
+ ├ ── index.html // 项目入口文件
92
88
.
93
89
</pre >
94
90
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module.exports = {
8
8
assetsRoot : path . resolve ( __dirname , '../dist' ) ,
9
9
assetsSubDirectory : 'static' ,
10
10
assetsPublicPath : '/' ,
11
- productionSourceMap : true ,
11
+ productionSourceMap : false ,
12
12
// Gzip off by default as many popular static hosts such as
13
13
// Surge or Netlify already gzip all static assets for you.
14
14
// Before setting to `true`, make sure to:
Original file line number Diff line number Diff line change 2
2
"name" : " vue-sui-demo" ,
3
3
"description" : " vue combine with sui-mobile" ,
4
4
"author" :
" eteplus <[email protected] >" ,
5
- "version" : " 0.1.4 " ,
5
+ "version" : " 0.1.5 " ,
6
6
"repository" : {
7
7
"type" : " git" ,
8
8
"url" : " https://github.com/eteplus/vue-sui-demo.git"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import infiniteScroll from './directives/infiniteScroll'
7
7
import * as filters from './filters'
8
8
import app from './main'
9
9
10
+
10
11
// Router
11
12
Vue . use ( VueRouter )
12
13
@@ -22,7 +23,7 @@ routerConfig(router)
22
23
// Resource
23
24
Vue . use ( VueResource )
24
25
25
- Vue . http . options . root = '/ data/ '
26
+ Vue . http . options . root = process . env . NODE_ENV === 'development' ? 'src/assets/ data' : '/static/data '
26
27
Vue . http . options . emulateJSON = true
27
28
28
29
// Directive
Original file line number Diff line number Diff line change
1
+ {
2
+ "code" : 200 ,
3
+ "message" : " 获取成功" ,
4
+ "data" : [
5
+ {
6
+ "content" : " /static/img/1.jpg"
7
+ },
8
+ {
9
+ "content" : " /static/img/1.jpg"
10
+ },
11
+ {
12
+ "content" : " /static/img/1.jpg"
13
+ }
14
+ ]
15
+ }
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {
2
+ "code" : 200 ,
3
+ "message" : " 获取成功" ,
4
+ "data" : [
5
+ {
6
+ "content" : " /static/img/1.jpg"
7
+ },
8
+ {
9
+ "content" : " /static/img/1.jpg"
10
+ },
11
+ {
12
+ "content" : " /static/img/1.jpg"
13
+ }
14
+ ]
15
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "code" : 200 ,
3
+ "message" : " 获取成功" ,
4
+ "data" : [
5
+ {
6
+ "tid" : " 1" ,
7
+ "title" : " 哈哈哈?你傻逼吗?" ,
8
+ "thumbnail" : " adv.jpg" ,
9
+ "advertiser" : " abc1" ,
10
+ "read_profit" : " 8" ,
11
+ "type" : " 0" ,
12
+ "status" : " 1" ,
13
+ "created" : " 1452139945"
14
+ },
15
+ {
16
+ "tid" : " 2" ,
17
+ "title" : " 看看你到底有多污?" ,
18
+ "thumbnail" : " adv.jpg" ,
19
+ "advertiser" : " abc2" ,
20
+ "status" : " 0" ,
21
+ "type" : " 1" ,
22
+ "read_profit" : " 5" ,
23
+ "created" : " 1452094126"
24
+ }
25
+ ]
26
+ }
You can’t perform that action at this time.
0 commit comments