diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9cc9479..0000000 --- a/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -node_modules/ -build/ -d.html -npm-debug.log -.idea/ \ No newline at end of file diff --git a/index.html b/index.html deleted file mode 100644 index dd295b1..0000000 --- a/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - -
- - --│──.gitignore # 忽略无需git控制的文件 比如 node_modules -│──package.json # 项目配置 -│──readme.md # 项目说明 -│──index.html # 首页 -│──index.tpl # 首页模板 在发布的时候 执行 PRODUCTION=1 webpack 会生成一个d.html并注入脚本,样式,达到版本控制的目的 -│──webpack.config.js # webpack 配置文件 -│ -├─node_modules -└─src - │──app.js # 启动配置,配置路由,过滤器 - │──app.vue # 主vue - │──filters.js # 过滤器 - │──routers.js # 路由 - │ - ├─components # 组件 - │ │──my-component.vue - │ - ├─css # 公用样式 - │ │──common.css - │ - └─views # 页面 - ──about.vue - ──home.vue - ──not-found.vue -- -##学习参考: -待续... - diff --git a/src/app.js b/src/app.js deleted file mode 100644 index 08bfcf2..0000000 --- a/src/app.js +++ /dev/null @@ -1,22 +0,0 @@ -//加载公共样式 -require('./css/common.css'); -require('./css/main.css'); -require('./css/animate.css'); - -const Vue = require('vue'); -const VueRouter = require('vue-router'); -const filters = require('./common/filters'); // register filters 自定义过滤器 -const _config = require('./common/config'); // API接口 可以在需要的页面引入,此页面可以不引入! - -var App = Vue.extend(require('./app.vue')); - Vue.use(VueRouter); - -var router = new VueRouter({ - hashbang: true, //为true的时候 example.com/#!/foo/bar , false的时候 example.com/#/foo/bar - //abstract:true, //地址栏不会有变化 - linkActiveClass:'custom-active-class' //全局设置连接匹配时的类名 参考http://vuejs.github.io/vue-router/en/link.html -}); - -require('./routers')(router); - -router.start(App,'#app'); \ No newline at end of file diff --git a/src/app.vue b/src/app.vue deleted file mode 100644 index 6f3c055..0000000 --- a/src/app.vue +++ /dev/null @@ -1,85 +0,0 @@ - -
{{content}}
-
-
-