Remove temporary test directory.
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"presets": ["es2015", "stage-2"],
|
|
||||||
"plugins": ["transform-runtime"],
|
|
||||||
"comments": false
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
charset = utf-8
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
end_of_line = lf
|
|
||||||
insert_final_newline = true
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
root: true,
|
|
||||||
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
|
|
||||||
extends: 'standard',
|
|
||||||
// required to lint *.vue files
|
|
||||||
plugins: [
|
|
||||||
'html'
|
|
||||||
],
|
|
||||||
// add your custom rules here
|
|
||||||
'rules': {
|
|
||||||
// allow paren-less arrow functions
|
|
||||||
'arrow-parens': 0,
|
|
||||||
// allow debugger during development
|
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
7
src/ui/Domo.tmp/.gitignore
vendored
@@ -1,7 +0,0 @@
|
|||||||
.DS_Store
|
|
||||||
node_modules/
|
|
||||||
dist/
|
|
||||||
npm-debug.log
|
|
||||||
selenium-debug.log
|
|
||||||
test/unit/coverage
|
|
||||||
test/e2e/reports
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
# Domo
|
|
||||||
|
|
||||||
> Domotic
|
|
||||||
|
|
||||||
## Build Setup
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
# install dependencies
|
|
||||||
npm install
|
|
||||||
|
|
||||||
# serve with hot reload at localhost:8080
|
|
||||||
npm run dev
|
|
||||||
|
|
||||||
# build for production with minification
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
# run unit tests
|
|
||||||
npm run unit
|
|
||||||
|
|
||||||
# run e2e tests
|
|
||||||
npm run e2e
|
|
||||||
|
|
||||||
# run all tests
|
|
||||||
npm test
|
|
||||||
```
|
|
||||||
|
|
||||||
For detailed explanation on how things work, checkout the [guide](https://github.com/vuejs-templates/webpack#vue-webpack-boilerplate) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset='utf-8' />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
|
|
||||||
<meta name="description" content="Domo controller" />
|
|
||||||
<meta name="author" content="NADAL Jean-Baptiste" />
|
|
||||||
|
|
||||||
<meta name="viewport"
|
|
||||||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
|
||||||
|
|
||||||
<!-- Add to homescreen for Chrome on Android -->
|
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
|
||||||
<link rel="icon" sizes="192x192" href="/static/android-desktop.png" />
|
|
||||||
|
|
||||||
<!-- Add to homescreen for Safari on iOS -->
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
||||||
<meta name="apple-mobile-web-app-title" content="Domo" />
|
|
||||||
<link rel="apple-touch-icon-precomposed" href="/static/ios-desktop.png" />
|
|
||||||
|
|
||||||
<link rel="shortcut icon" href="/static/favicon.png" />
|
|
||||||
|
|
||||||
<link rel="stylesheet"
|
|
||||||
href="node_modules/roboto-fontface/css/roboto-fontface.css" />
|
|
||||||
<link rel="stylesheet" media="all" type="text/css"
|
|
||||||
href="node_modules/material-design-icons/iconfont/material-icons.css" />
|
|
||||||
<link rel="stylesheet"
|
|
||||||
href="node_modules/material-design-lite/dist/material.min.css" />
|
|
||||||
<!--
|
|
||||||
<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="apple-touch-icon" href="/static/favicon.png">
|
|
||||||
-->
|
|
||||||
<style>
|
|
||||||
#view-source {
|
|
||||||
position: fixed;
|
|
||||||
display: block;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
margin-right: 40px;
|
|
||||||
margin-bottom: 40px;
|
|
||||||
z-index: 900;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<title>Domo</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<app></app>
|
|
||||||
<!-- built files will be auto injected -->
|
|
||||||
<script src="dist/build.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Domo",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"description": "Domotic",
|
|
||||||
"author": "NADAL Jean-Baptiste",
|
|
||||||
"private": true,
|
|
||||||
"scripts": {
|
|
||||||
"dev": "webpack-dev-server --inline --hot",
|
|
||||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"vue": "^1.0.21",
|
|
||||||
"vue-router": "^0.7.13",
|
|
||||||
"vue-mdl": "^0.7.4",
|
|
||||||
"material-design-lite": "^1.1.3",
|
|
||||||
"roboto-fontface": "^0.4.5",
|
|
||||||
"material-design-icons": "^2.2.3"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"babel-core": "^6.0.0",
|
|
||||||
"babel-loader": "^6.0.0",
|
|
||||||
"babel-plugin-transform-runtime": "^6.0.0",
|
|
||||||
"babel-preset-es2015": "^6.0.0",
|
|
||||||
"babel-preset-stage-2": "^6.0.0",
|
|
||||||
"cross-env": "^1.0.6",
|
|
||||||
"css-loader": "^0.23.0",
|
|
||||||
"file-loader": "^0.8.4",
|
|
||||||
"json-loader": "^0.5.4",
|
|
||||||
"url-loader": "^0.5.7",
|
|
||||||
"vue-hot-reload-api": "^1.2.0",
|
|
||||||
"vue-html-loader": "^1.0.0",
|
|
||||||
"vue-loader": "^8.2.1",
|
|
||||||
"vue-style-loader": "^1.0.0",
|
|
||||||
"webpack": "^1.12.2",
|
|
||||||
"webpack-dev-server": "^1.12.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div id="app">
|
|
||||||
<p>
|
|
||||||
<!-- use v-link directive for navigation. -->
|
|
||||||
<a v-link="{ path: '/foo' }">Go to Foo</a>
|
|
||||||
<a v-link="{ path: '/bar' }">Go to Bar</a>
|
|
||||||
</p>
|
|
||||||
<!-- use router-view element as route outlet -->
|
|
||||||
<router-view class="test" transition="test" transition-mode="out-in"></router-view>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import Hello from './components/Hello'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
Hello
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
html {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#app {
|
|
||||||
margin-top: -100px;
|
|
||||||
max-width: 600px;
|
|
||||||
font-family: Helvetica, sans-serif;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
width: 100px;
|
|
||||||
height: 100px
|
|
||||||
}
|
|
||||||
|
|
||||||
.test {
|
|
||||||
transition: all .5s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.test-enter, .test-leave {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translate3d(10px, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="demo-drawer mdl-layout__drawer mdl-color--blue-grey-900 mdl-color-text--blue-grey-50">
|
|
||||||
<header class="demo-drawer-header">
|
|
||||||
<img src="/static/user.jpg" class="demo-avatar">
|
|
||||||
<div class="demo-avatar-dropdown">
|
|
||||||
<span>hello@example.com</span>
|
|
||||||
<div class="mdl-layout-spacer"></div>
|
|
||||||
<button id="accbtn"
|
|
||||||
class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon">
|
|
||||||
<i class="material-icons" role="presentation">arrow_drop_down</i>
|
|
||||||
<span class="visuallyhidden">Accounts</span>
|
|
||||||
</button>
|
|
||||||
<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect" for="accbtn">
|
|
||||||
<li class="mdl-menu__item">hello@example.com</li>
|
|
||||||
<li class="mdl-menu__item">info@example.com</li>
|
|
||||||
<li class="mdl-menu__item"><i class="material-icons">add</i>Add another account...</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
<nav class="demo-navigation mdl-navigation mdl-color--blue-grey-800">
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">home</i>Home</a>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">inbox</i>Inbox</a>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">delete</i>Trash</a>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">report</i>Spam</a>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">forum</i>Forums</a>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">flag</i>Updates</a>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">local_offer</i>Promos</a>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">shopping_cart</i>Purchases</a>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">people</i>Social</a>
|
|
||||||
<div class="mdl-layout-spacer"></div>
|
|
||||||
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">help_outline</i><span class="visuallyhidden">Help</span></a>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
<main class="mdl-layout__content mdl-color--grey-100">
|
|
||||||
<div id="app" class="mdl-grid demo-content">
|
|
||||||
<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="test" transition="test" transition-mode="out-in">
|
|
||||||
</router-view>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<style>
|
|
||||||
.test {
|
|
||||||
transition: all .5s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.test-enter, .test-leave {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translate3d(10px, 0, 0);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<!--
|
|
||||||
<style src="./assets/css/mui.css"></style>
|
|
||||||
<style src="./assets/css/app-base.css"></style>
|
|
||||||
<style src="./assets/css/app-index.css"></style>
|
|
||||||
-->
|
|
||||||
|
Before Width: | Height: | Size: 6.7 KiB |
@@ -1,20 +0,0 @@
|
|||||||
<template>
|
|
||||||
|
|
||||||
<h1> Index </h1>
|
|
||||||
<mdl-checkbox :checked.sync='checked'>Checkbox</mdl-checkbox>
|
|
||||||
<mdl-button>Button</mdl-button>
|
|
||||||
<mdl-button v-mdl-ripple-effect>Ripple Effect</mdl-button>
|
|
||||||
<mdl-button disabled>Disabled</mdl-button>
|
|
||||||
<mdl-button icon>
|
|
||||||
<i class="material-icons">star</i>
|
|
||||||
</mdl-button>
|
|
||||||
|
|
||||||
<mdl-switch :checked.sync="checked">Switch</mdl-switch>
|
|
||||||
<mdl-switch :checked.sync="checked" class="mdl-js-ripple-effect">Ripple Effect</mdl-switch>
|
|
||||||
<mdl-switch :checked.sync="checked" disabled>Disabled</mdl-switch>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
|
|
||||||
</script>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<template>
|
|
||||||
|
|
||||||
<h1> Lights </h1>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<template>
|
|
||||||
|
|
||||||
<h1> Shutters </h1>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<template>
|
|
||||||
|
|
||||||
<h1> Sprinklers </h1>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
var Vue = require('vue')
|
|
||||||
var VueRouter = require('vue-router')
|
|
||||||
var VueMdl = require('vue-mdl')
|
|
||||||
var Material = require('material-design-lite')
|
|
||||||
|
|
||||||
Vue.use(VueMdl.default)
|
|
||||||
|
|
||||||
var App = require('./app.vue')
|
|
||||||
var routerMap = require('./router')
|
|
||||||
|
|
||||||
Vue.use(VueRouter);
|
|
||||||
|
|
||||||
var router = new VueRouter()
|
|
||||||
|
|
||||||
routerMap(router)
|
|
||||||
|
|
||||||
router.start(App, 'app')
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
module.exports = function(router){
|
|
||||||
router.map({
|
|
||||||
'*': {
|
|
||||||
component: require('./components/index.vue')
|
|
||||||
},
|
|
||||||
'/': {
|
|
||||||
component: require('./components/index.vue')
|
|
||||||
},
|
|
||||||
'/lights': {
|
|
||||||
component: require('./components/lights.vue')
|
|
||||||
},
|
|
||||||
'/shutters': {
|
|
||||||
component: require('./components/shutters.vue')
|
|
||||||
},
|
|
||||||
'/sprinklers': {
|
|
||||||
component: require('./components/sprinklers.vue')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 905 B |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 6.8 KiB |
@@ -1,66 +0,0 @@
|
|||||||
var path = require('path')
|
|
||||||
var webpack = require('webpack')
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: './src/main.js',
|
|
||||||
output: {
|
|
||||||
path: path.resolve(__dirname, './dist'),
|
|
||||||
publicPath: '/dist/',
|
|
||||||
filename: 'build.js'
|
|
||||||
},
|
|
||||||
resolveLoader: {
|
|
||||||
root: path.join(__dirname, 'node_modules'),
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
loaders: [
|
|
||||||
{
|
|
||||||
test: /\.vue$/,
|
|
||||||
loader: 'vue'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.js$/,
|
|
||||||
loader: 'babel',
|
|
||||||
exclude: /node_modules/
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.json$/,
|
|
||||||
loader: 'json'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.html$/,
|
|
||||||
loader: 'vue-html'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(png|jpg|gif|svg)$/,
|
|
||||||
loader: 'url',
|
|
||||||
query: {
|
|
||||||
limit: 10000,
|
|
||||||
name: '[name].[ext]?[hash]'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
devServer: {
|
|
||||||
historyApiFallback: true,
|
|
||||||
noInfo: true
|
|
||||||
},
|
|
||||||
devtool: 'eval-source-map'
|
|
||||||
}
|
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'production') {
|
|
||||||
module.exports.devtool = 'source-map'
|
|
||||||
// http://vuejs.github.io/vue-loader/workflow/production.html
|
|
||||||
module.exports.plugins = (module.exports.plugins || []).concat([
|
|
||||||
new webpack.DefinePlugin({
|
|
||||||
'process.env': {
|
|
||||||
NODE_ENV: '"production"'
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
|
||||||
compress: {
|
|
||||||
warnings: false
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
new webpack.optimize.OccurenceOrderPlugin()
|
|
||||||
])
|
|
||||||
}
|
|
||||||