code cleanup

This commit is contained in:
Davide Alberani 2017-01-19 22:21:50 +01:00
parent fb34d381e8
commit d2aa6af62f
12 changed files with 42 additions and 92 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<!-- I'll be there, 2. An oversimplified application to register attendees at a conference or event.
Copyright 2017 Davide Alberani <da@erlug.linux.it>, RaspiBO <info@raspibo.org>
Copyright 2016-2017 Davide Alberani <da@erlug.linux.it>, RaspiBO <info@raspibo.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
limitations under the License.
-->
<html>
<head>
<meta charset="utf-8">
<title>ibt2</title>
</head>
<body>
<div id="app"></div>
</body>
<head>
<meta charset="utf-8">
<title>ibt2</title>
</head>
<body>
<div id="app"></div>
</body>
</html>

View file

@ -51,10 +51,6 @@ export default {
beforeCreate: function() {
this.daysUrl = this.$resource('days{/day}');
this.attendeesUrl = this.$resource('attendees{/id}');
this.currentUserUrl = this.$resource('users/current');
this.loginUrl = this.$resource('login');
this.logoutUrl = this.$resource('logout');
},
mounted: function() {
@ -134,9 +130,10 @@ export default {
Datepicker, Group, IbtDialog
}
}
</script>
</script>
<style>
#main-attendees {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
@ -157,14 +154,4 @@ export default {
flex: 1;
}
.login-input {
width: 200px;
margin: 0px 0px 0px;
padding-top: 0px;
padding-left: 4px;
min-height: 24px;
line-height: 0px;
margin-right: 20px;
background-color: white;
}
</style>

View file

@ -88,6 +88,7 @@ export default {
</script>
<style>
.md-list-item .md-list-item-holder>.md-icon:first-child {
margin-right: 16px;
}
@ -95,4 +96,5 @@ export default {
.attendee-list-item {
min-width: 250px;
}
</style>

View file

@ -102,6 +102,7 @@ export default {
</script>
<style>
.group-layout {
padding: 10px;
}
@ -148,4 +149,5 @@ export default {
font-weight: 200;
line-height: 1;
}
</style>

View file

@ -17,6 +17,7 @@ export default {
}
}
}
</script>
<style>
</style>

View file

@ -177,8 +177,10 @@ export default {
components: { IbtDialog, IbtSnackbar }
}
</script>
<style>
#toolbar-title {
flex: 1;
}
@ -243,4 +245,5 @@ export default {
font-weight: bold;
color: white !important;
}
</style>

View file

@ -82,6 +82,7 @@ export default {
</script>
<style>
#user {
padding: 10px;
}
@ -89,4 +90,5 @@ export default {
#save-button {
margin-top: 40px;
}
</style>

View file

@ -82,11 +82,12 @@ export default {
components: { IbtDialog }
}
</script>
</script>
<style>
#users {
padding: 10px;
}
</style>
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View file

@ -1,53 +0,0 @@
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<h2>Essential Links</h2>
<ul>
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
<li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
<br>
<li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li>
</ul>
<h2>Ecosystem</h2>
<ul>
<li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>
<li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li>
<li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
</ul>
</div>
</template>
<script>
export default {
name: 'hello',
data () {
return {
msg: 'Welcome to Your Vue.js App'
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
font-weight: normal;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>

View file

@ -1,5 +1,19 @@
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
/*
* I'll be there, 2. An oversimplified application to register attendees at a conference or event.
*
* Copyright 2016-2017 Davide Alberani <da@erlug.linux.it>, RaspiBO <info@raspibo.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
@ -31,18 +45,6 @@ var routes = [
const store = new Vuex.Store(store_data);
const router = new VueRouter({routes});
const store2 = new Vuex.Store({
state: {
count: 0
},
mutations: {
increment (state) {
state.count++;
}
}
});
var vue = new Vue({
el: '#app',
store: store,

View file

@ -1,3 +1,6 @@
/*
* Shared state of the ibt2 app.
*/
export default {
state: {