Commit 2a76c3bb authored by Adam Procter's avatar Adam Procter 💩

added in router views

parent 47184799
Pipeline #43 failed with stage
in 7 seconds
{"remainingRequest":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/babel-loader/lib/index.js!/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/eslint-loader/index.js??ref--13-0!/Users/adamprocter/Documents/GitKraken/nodenoggin/src/main.js","dependencies":[{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/src/main.js","mtime":1534160785805},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/babel-loader/lib/index.js","mtime":1534157848390},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/eslint-loader/index.js","mtime":1534157852415}],"contextDependencies":[],"result":["import \"core-js/modules/es6.array.iterator\";\nimport \"core-js/modules/es6.promise\";\nimport \"core-js/modules/es7.promise.finally\";\nimport Vue from 'vue';\nimport App from './App.vue';\nimport router from './router';\nVue.config.productionTip = false;\nnew Vue({\n router: router,\n render: function render(h) {\n return h(App);\n }\n}).$mount('#app');\n\nmounted: {\n require('@/assets/js/test');\n\n require('@/assets/js/svg');\n\n require('@/assets/js/draggy');\n\n require('@/assets/js/connectable'); // require('@/assets/js/mysvg')\n\n}",{"version":3,"sources":["src/main.js"],"names":["Vue","App","router","config","productionTip","render","h","$mount","mounted","require"],"mappings":";;;AAAA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,GAAP,MAAgB,WAAhB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEAF,IAAIG,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEA,IAAIJ,GAAJ,CAAQ;AACNE,gBADM;AAENG,UAAQ;AAAA,WAAKC,EAAEL,GAAF,CAAL;AAAA;AAFF,CAAR,EAGGM,MAHH,CAGU,MAHV;;AAKAC,SAAQ;AACRC,UAAQ,kBAAR;;AACAA,UAAQ,iBAAR;;AACAA,UAAQ,oBAAR;;AACAA,UAAQ,yBAAR,EAJQ,CAKR;;AACC","sourceRoot":"/Users/adamprocter/Documents/GitKraken/nodenoggin","sourcesContent":["import Vue from 'vue'\nimport App from './App.vue'\nimport router from './router'\n\nVue.config.productionTip = false\n\nnew Vue({\n router,\n render: h => h(App)\n}).$mount('#app')\n\nmounted:{\nrequire('@/assets/js/test')\nrequire('@/assets/js/svg')\nrequire('@/assets/js/draggy')\nrequire('@/assets/js/connectable')\n// require('@/assets/js/mysvg')\n}"]}]}
\ No newline at end of file
{"remainingRequest":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/babel-loader/lib/index.js!/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/eslint-loader/index.js??ref--13-0!/Users/adamprocter/Documents/GitKraken/nodenoggin/src/main.js","dependencies":[{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/src/main.js","mtime":1534161785761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/babel-loader/lib/index.js","mtime":1534157848390},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/eslint-loader/index.js","mtime":1534157852415}],"contextDependencies":[],"result":["import \"core-js/modules/es6.array.iterator\";\nimport \"core-js/modules/es6.promise\";\nimport \"core-js/modules/es7.promise.finally\";\nimport Vue from 'vue';\nimport App from './App.vue';\nimport router from './router';\nVue.config.productionTip = false;\nnew Vue({\n router: router,\n render: function render(h) {\n return h(App);\n }\n}).$mount('#app');\n\nmounted: {\n require('@/assets/js/test'); // require('@/assets/js/draggy')\n // require('@/assets/js/connectable')\n\n}",{"version":3,"sources":["src/main.js"],"names":["Vue","App","router","config","productionTip","render","h","$mount","mounted","require"],"mappings":";;;AAAA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,GAAP,MAAgB,WAAhB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEAF,IAAIG,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEA,IAAIJ,GAAJ,CAAQ;AACNE,gBADM;AAENG,UAAQ;AAAA,WAAKC,EAAEL,GAAF,CAAL;AAAA;AAFF,CAAR,EAGGM,MAHH,CAGU,MAHV;;AAKAC,SAAQ;AACRC,UAAQ,kBAAR,EADQ,CAER;AACA;;AACC","sourceRoot":"/Users/adamprocter/Documents/GitKraken/nodenoggin","sourcesContent":["import Vue from 'vue'\nimport App from './App.vue'\nimport router from './router'\n\nVue.config.productionTip = false\n\nnew Vue({\n router,\n render: h => h(App)\n}).$mount('#app')\n\nmounted:{\nrequire('@/assets/js/test')\n// require('@/assets/js/draggy')\n// require('@/assets/js/connectable')\n}"]}]}
\ No newline at end of file
{"remainingRequest":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue?vue&type=template&id=7ba5bd90&","dependencies":[{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue","mtime":1534160843824},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":1534157857478},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js","mtime":1534157857478}],"contextDependencies":[],"result":["\n<div id=\"app\">\n <h1>nodenoggin</h1>\n <instance :name=\"name\" :human=\"human\" :allobjects=\"allobjects\">\n </instance>\n</div>\n",null]}
\ No newline at end of file
{"remainingRequest":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue?vue&type=template&id=7ba5bd90&","dependencies":[{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue","mtime":1534164062663},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":1534157857478},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js","mtime":1534157857478}],"contextDependencies":[],"result":["\n<div id=\"app\">\n <div id=\"nav\">\n <router-link to=\"/\">Home</router-link> |\n <router-link to=\"/about\">About</router-link>\n </div>\n <router-view/>\n\n </div>\n",null]}
\ No newline at end of file
{"remainingRequest":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue?vue&type=template&id=7ba5bd90&","dependencies":[{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue","mtime":1534160843824},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":1534157857478},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js","mtime":1534157857478}],"contextDependencies":[],"result":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"app\" } },\n [\n _c(\"h1\", [_vm._v(\"nodenoggin\")]),\n _c(\"instance\", {\n attrs: { name: _vm.name, human: _vm.human, allobjects: _vm.allobjects }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"]}
\ No newline at end of file
{"remainingRequest":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue?vue&type=template&id=7ba5bd90&","dependencies":[{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue","mtime":1534164062663},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":1534157857478},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js","mtime":1534157857478}],"contextDependencies":[],"result":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"app\" } },\n [\n _c(\n \"div\",\n { attrs: { id: \"nav\" } },\n [\n _c(\"router-link\", { attrs: { to: \"/\" } }, [_vm._v(\"Home\")]),\n _vm._v(\" |\\n \"),\n _c(\"router-link\", { attrs: { to: \"/about\" } }, [_vm._v(\"About\")])\n ],\n 1\n ),\n _c(\"router-view\")\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"]}
\ No newline at end of file
{"remainingRequest":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/eslint-loader/index.js??ref--13-0!/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue","dependencies":[{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue","mtime":1534160843824},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js","mtime":1534157857478},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/eslint-loader/index.js","mtime":1534157852415}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=7ba5bd90&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./assets/css/normalize.min.css?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./assets/css/main.css?vue&type=style&index=1&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!module.hot.data) {\n api.createRecord('7ba5bd90', component.options)\n } else {\n api.reload('7ba5bd90', component.options)\n }\n module.hot.accept(\"./App.vue?vue&type=template&id=7ba5bd90&\", function () {\n api.rerender('7ba5bd90', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/App.vue\"\nexport default component.exports"]}
\ No newline at end of file
{"remainingRequest":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/eslint-loader/index.js??ref--13-0!/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue","dependencies":[{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/src/App.vue","mtime":1534164062663},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/cache-loader/dist/cjs.js","mtime":1534157856761},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-loader/lib/index.js","mtime":1534157857478},{"path":"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/eslint-loader/index.js","mtime":1534157852415}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=7ba5bd90&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/Users/adamprocter/Documents/GitKraken/nodenoggin/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!module.hot.data) {\n api.createRecord('7ba5bd90', component.options)\n } else {\n api.reload('7ba5bd90', component.options)\n }\n module.hot.accept(\"./App.vue?vue&type=template&id=7ba5bd90&\", function () {\n api.rerender('7ba5bd90', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/App.vue\"\nexport default component.exports"]}
\ No newline at end of file
This diff is collapsed.
<template>
<div id="app">
<h1>nodenoggin</h1>
<instance :name="name" :human="human" :allobjects="allobjects">
</instance>
</div>
<template>
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
<router-view/>
</div>
</template>
<script>
import instance from './components/instance.vue'
export default {
name: 'app',
components: {
instance: instance
},
data () {
return {
name:'mozfest',
human:'adam procter',
email:'yay@yay.com',
permissions: 1,
allobjects: [
{
id:1,
type:'sheet',
owner:'adam procter',
connections:[],
metadata:{}
},
{
id:2,
type:'slide deck',
owner:'adam procter',
connections:[],
metadata:{}
}
],
}
}
}
</script>
<style src="./assets/css/normalize.min.css">
......
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<p>
For guide and recipes on how to configure / customize this project,<br>
check out the
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
</p>
<h3>Installed CLI Plugins</h3>
<ul>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
</ul>
<h3>Essential Links</h3>
<ul>
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
</ul>
<h3>Ecosystem</h3>
<ul>
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
</ul>
</div>
</template>
<script>
export default {
name: "HelloWorld",
props: {
msg: String
}
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
......@@ -11,8 +11,6 @@ new Vue({
mounted:{
require('@/assets/js/test')
// require('@/assets/js/svg')
// require('@/assets/js/draggy')
// require('@/assets/js/connectable')
// require('@/assets/js/mysvg')
}
\ No newline at end of file
import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/instance.vue'
import home from './views/home.vue'
Vue.use(Router)
......@@ -8,11 +8,14 @@ export default new Router({
routes: [
{
path: '/',
name: 'instance',
component: instance
name: 'home',
component: home
},
{
path: '/about',
name: 'about',
component: () =>
import(/* webpackChunkName: "about" */ "./views/about.vue")
}
]
})
<template>
<div>
<p>Made by Procter &amp; Parker</p>
</div>
</template>
<script>
</script>
<template>
<div>
<h1>nodenoggin</h1>
<instance :name="name" :human="human" :allobjects="allobjects">
</instance>
</div>
</template>
<script>
// @ is an alias to /src
import instance from "@/components/instance.vue";
export default {
name: 'app',
components: {
instance: instance
},
data () {
return {
name:'mozfest',
human:'adam procter',
email:'yay@yay.com',
permissions: 1,
allobjects: [
{
id:1,
type:'sheet',
owner:'adam procter',
connections:[],
metadata:{}
},
{
id:2,
type:'slide deck',
owner:'adam procter',
connections:[],
metadata:{}
}
],
}
}
}
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment