├── .gitattributes
├── .gitignore
├── static
└── _redirects
├── index.js
├── .editorconfig
├── router.js
├── poi.config.js
├── circle.yml
├── README.md
├── package.json
├── LICENSE
└── Editor.vue
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 |
--------------------------------------------------------------------------------
/static/_redirects:
--------------------------------------------------------------------------------
1 | /* /index.html 200
2 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import router from './router'
3 |
4 | new Vue({
5 | el: '#app',
6 | router,
7 | render: h => h('router-view')
8 | })
9 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
--------------------------------------------------------------------------------
/router.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Router from 'vue-router'
3 |
4 | Vue.use(Router)
5 |
6 | const Editor = () => import('./Editor.vue')
7 |
8 | export default new Router({
9 | mode: 'history',
10 | routes: [{
11 | path: '/',
12 | component: Editor,
13 | name: 'home'
14 | }]
15 | })
16 |
--------------------------------------------------------------------------------
/poi.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | VERSION: require('vue-template-compiler/package').version
4 | },
5 | transformModules: ['vue-template-es2015-compiler'],
6 | presets: [
7 | require('poi-preset-offline')({
8 | pluginOptions: {
9 | excludes: ['_redirects']
10 | }
11 | })
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/circle.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | jobs:
3 | build:
4 | docker:
5 | - image: circleci/node:latest
6 | branches:
7 | ignore:
8 | - gh-pages # list of branches to ignore
9 | - /release\/.*/ # or ignore regexes
10 | steps:
11 | - checkout
12 | - restore_cache:
13 | key: dependency-cache-{{ checksum "yarn.lock" }}
14 | - run:
15 | name: install dependences
16 | command: yarn
17 | - save_cache:
18 | key: dependency-cache-{{ checksum "yarn.lock" }}
19 | paths:
20 | - ./node_modules
21 | - run:
22 | name: test
23 | command: yarn test
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # vue-template-editor
3 |
4 | https://vue-template.egoist.moe
5 |
6 | ## Contributing
7 |
8 | 1. Fork it!
9 | 2. Create your feature branch: `git checkout -b my-new-feature`
10 | 3. Commit your changes: `git commit -am 'Add some feature'`
11 | 4. Push to the branch: `git push origin my-new-feature`
12 | 5. Submit a pull request :D
13 |
14 |
15 | ## Author
16 |
17 | **vue-template-editor** © [EGOIST](https://github.com/egoist), Released under the [MIT](./LICENSE) License.
18 | Authored and maintained by EGOIST with help from contributors ([list](https://github.com/egoist/vue-template-editor/contributors)).
19 |
20 | > [github.com/egoist](https://github.com/egoist) · GitHub [@EGOIST](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)
21 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-template-live-editor",
3 | "productName": "Vue Template Live Editor",
4 | "version": "0.0.0",
5 | "description": "Explore your Vue template!",
6 | "repository": {
7 | "url": "egoist/vue-template-editor",
8 | "type": "git"
9 | },
10 | "scripts": {
11 | "dev": "poi",
12 | "build": "poi build"
13 | },
14 | "author": "egoist <0x142857@gmail.com>",
15 | "license": "MIT",
16 | "dependencies": {
17 | "cm-highlight": "^0.1.1",
18 | "codemirror": "^5.33.0",
19 | "codemirror-emmet": "^1.0.0",
20 | "js-beautify": "^1.7.5",
21 | "lz-string": "^1.4.4",
22 | "nprogress": "^0.2.0",
23 | "vue-cm": "^1.1.0",
24 | "vue-router": "^3.0.1",
25 | "vue-template-es2015-compiler": "^1.6.0"
26 | },
27 | "devDependencies": {
28 | "offline-plugin": "^4.8.5",
29 | "poi": "^9.6.13",
30 | "poi-preset-offline": "^9.0.3",
31 | "vue-template-compiler": "^2.5.13"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) EGOIST <0x142857@gmail.com> (https://github.com/egoist)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Editor.vue:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
110 |
111 |
112 |
113 |
114 |
115 |
148 |
149 |
183 |
--------------------------------------------------------------------------------