Update WIP.

This commit is contained in:
2016-05-02 18:12:17 +02:00
parent bf7ac10498
commit 7ea19f1095
5 changed files with 26 additions and 3 deletions

View File

@@ -10,12 +10,15 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black- translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black- translucent">
<meta name="description" content="Domo controller"> <meta name="description" content="Domo controller">
<meta name="author" content="NADAL Jean-Baptiste"> <meta name="author" content="NADAL Jean-Baptiste">
<link href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css">
<link rel="icon" href="/static/favicon.ico"> <link rel="icon" href="/static/favicon.ico">
<link rel="apple-touch-icon" href="/static/favicon.png"> <link rel="apple-touch-icon" href="/static/favicon.png">
<title>Domo</title> <title>Domo</title>
</head> </head>
<body> <body>
<h1>pouet</h1>
<app></app> <app></app>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script src="dist/build.js"></script> <script src="dist/build.js"></script>

View File

@@ -10,7 +10,8 @@
}, },
"dependencies": { "dependencies": {
"vue": "^1.0.17", "vue": "^1.0.17",
"vue-router": "^0.7.7" "vue-router": "^0.7.11",
"vue-mdl": "^0.5.0"
}, },
"devDependencies": { "devDependencies": {
"babel-core": "^6.0.0", "babel-core": "^6.0.0",

View File

@@ -1,5 +1,10 @@
<template> <template>
<router-view></router-view> <a v-link="{ path: '/' }">Go to Home</a>
<a v-link="{ path: '/lights' }">Go to Lights</a>
<a v-link="{ path: '/shutters' }">Go to Shutters</a>
<a v-link="{ path: '/sprinklers' }">Go to Sprinklers</a>
<router-view class="bounce">
</router-view>
</template> </template>
<!-- <!--

View File

@@ -2,4 +2,6 @@
<h1> Lights </h1> <h1> Lights </h1>
<mdl-checkbox :checked='check'>Checkbox</mdl-checkbox>
</template> </template>

View File

@@ -1,6 +1,18 @@
var vmdl = require('vue-mdl');
var Vue = require('vue') var Vue = require('vue')
var VueRouter = require('vue-router') var VueRouter = require('vue-router')
// Globally register the checkbox
vmdl.register(Vue, 'mdl-checkbox');
// Shorthand
vmdl.register(Vue, 'checkbox');
// Globally register all components and directives
vmdl.registerAll(Vue);
// Access any component or directive
var checkbox = vmdl.components['mdl-checkbox'];
var badge = vmdl.directives['mdl-badge'];
var App = require('./app.vue') var App = require('./app.vue')
var routerMap = require('./router') var routerMap = require('./router')