some changes

This commit is contained in:
Timo Volkmann 2019-03-25 19:22:48 +01:00
parent 3721b4986c
commit 7db636b01a
9 changed files with 110 additions and 55 deletions

5
.gitignore vendored
View File

@ -24,10 +24,7 @@ labswp_2019_sose_geocaching.iml
# public folder # public folder
src/main/resources/public/ src/main/resources/public/
# .idea/ .idea/
# nicht notwendig. alle problematischen files sind draußen.
# wenns trotzdem noch probleme macht muss man die entsprechenden
# files noch mit "git rm --cached <file> untracken.
# Gradle # Gradle

10
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/de.hhn.labsw.labswp_2019_sose_geocaching.iml" filepath="$PROJECT_DIR$/.idea/modules/de.hhn.labsw.labswp_2019_sose_geocaching.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/de.hhn.labsw.labswp_2019_sose_geocaching.main.iml" filepath="$PROJECT_DIR$/.idea/modules/de.hhn.labsw.labswp_2019_sose_geocaching.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/de.hhn.labsw.labswp_2019_sose_geocaching.test.iml" filepath="$PROJECT_DIR$/.idea/modules/de.hhn.labsw.labswp_2019_sose_geocaching.test.iml" />
</modules>
</component>
</project>

View File

@ -14,7 +14,7 @@ module.exports = {
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
extends: [ extends: [
'plugin:vue/essential', 'plugin:vue/essential',
'@vue/prettier' // '@vue/prettier'
], ],
// required to lint *.vue files // required to lint *.vue files

View File

@ -47,7 +47,6 @@ module.exports = function (ctx) {
'QCardActions', 'QCardActions',
'QCheckbox', 'QCheckbox',
'QSeparator', 'QSeparator',
'QInput',
'QImg', 'QImg',
'QTabs', 'QTabs',
'QTab', 'QTab',

View File

@ -1,7 +1,7 @@
<template> <template>
<q-layout view="hhh Lpr lFf"> <q-layout view="hhh Lpr lFf">
<q-header elevated class="bg-white text-green-8 shadow-2"> <q-header elevated class="bg-white text-green-8">
<q-toolbar class=""> <q-toolbar class="q-pa-md">
<q-btn <q-btn
flat flat
dense dense
@ -13,7 +13,7 @@
</q-btn> </q-btn>
<q-toolbar-title> <q-toolbar-title>
BuGa Geocaching SPA BuGa Geocaching
</q-toolbar-title> </q-toolbar-title>
<!--<div>Quasar v{{ $q.version }}</div>--> <!--<div>Quasar v{{ $q.version }}</div>-->

View File

@ -1,14 +1,4 @@
<template> <template>
<div class="q-pa-md"> <div class="q-pa-md">
<q-table
title="Treats"
:data="data"
:columns="columns"
row-key="name"
selection="single"
:selected.sync="selected"
/>
<div class="q-mt-md">Selected: {{ JSON.stringify(selected) }}</div>
</div> </div>
</template> </template>

View File

@ -0,0 +1,54 @@
<template>
<div class="q-pa-md row items-start q-gutter-md">
<q-card class="my-card">
<q-card-section>
{{ lorem }}
</q-card-section>
</q-card>
<q-card
class="my-card text-white"
style="background: radial-gradient(circle, #35a2ff 0%, #014a88 100%)"
>
<q-card-section>
<div class="text-h6">Our Changing Planet</div>
<div class="text-subtitle2">by John Doe</div>
</q-card-section>
<q-card-section>
{{ lorem }}
</q-card-section>
</q-card>
<q-card dark bordered class="bg-grey-9 my-card">
<q-card-section>
<div class="text-h6">Our Changing Planet</div>
<div class="text-subtitle2">by John Doe</div>
</q-card-section>
<q-separator dark inset />
<q-card-section>
{{ lorem }}
</q-card-section>
</q-card>
<q-card flat bordered class="my-card">
<q-card-section>
<div class="text-h6">Our Changing Planet</div>
</q-card-section>
<q-card-section>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
</q-card-section>
<q-separator inset />
<q-card-section>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
</q-card-section>
</q-card>
</div>
</template>

View File

@ -1,43 +1,45 @@
<template> <template>
<div class="q-pa-md"> <div class="q-pa-md">
<q-layout view="lhh LpR lff" container style="height: 350px" class="shadow-2 rounded-borders"> <!-- header und toolbar dürfen nur im Layout sein -->
<!--
<q-header reveal class="bg-white" text="green-8"> <q-header reveal class="bg-white" text="green-8">
<q-toolbar> <q-toolbar>
<q-toolbar-title class="bg-white text-green-8">Login</q-toolbar-title> <q-toolbar-title class="bg-white text-green-8">Login</q-toolbar-title>
</q-toolbar> </q-toolbar>
</q-header> </q-header>
<q-page-container> -->
<q-page padding>
<template>
<div class="q-pa-md"> <div class="q-pa-md">
<div class="column" style="height: 150px"> <div class="column" style="">
<div class="col"> <div class="col">
<template>
<div class="q-pa-md"> <div class="q-pa-md">
<div class="q-gutter-md" style="max-width: 300px"> <div class="q-gutter-md" style="max-width: 300px">
<q-input v-model="text" label="Benutzername"/> <q-input v-model="text" label="Benutzername"/>
</div> </div>
</div> </div>
</template>
</div> </div>
<div class="col"> <div class="col">
<template>
<div class="q-pa-md"> <div class="q-pa-md">
<div class="q-gutter-md" style="max-width: 300px"> <div class="q-gutter-md" style="max-width: 300px">
<q-input v-model="text" label="Passwort"/> <q-input v-model="text" label="Passwort"/>
</div> </div>
</div> </div>
</template> </div>
<div class="col">
<div class="q-pa-md">
<div class="q-gutter-md" style="max-width: 300px">
<q-btn
fab
color="bg-white"
text-color="green-8"
icon="keyboard_arrow_right"
/>
</div> </div>
</div> </div>
</div> </div>
</template> </div>
<q-page-sticky position="bottom-right" :offset="[18, 18]"> </div>
<q-btn fab color="bg-white" text-color="green-8" @click="onClick" icon="keyboard_arrow_right"/> <!--<q-page-sticky position="bottom-right" :offset="[18, 18]">-->
</q-page-sticky> <!--</q-page-sticky>-->
</q-page>
</q-page-container>
</q-layout>
</div> </div>
</template> </template>
@ -45,8 +47,8 @@
export default { export default {
data() { data() {
return { return {
text: '' text: ""
} };
}
} }
};
</script> </script>

View File

@ -23,6 +23,7 @@
</q-card> </q-card>
</div> </div>
<a href="/">Hallo</a>
</div> </div>
</template> </template>
@ -68,6 +69,7 @@ export default {
}, },
created: function() { created: function() {
console.log("created(): " + this.caches);
this.fetchTodos(); this.fetchTodos();
}, },
@ -75,6 +77,7 @@ export default {
fetchTodos () { fetchTodos () {
this.$axios.get('http://localhost:8080/allCaches') this.$axios.get('http://localhost:8080/allCaches')
.then((response) => { .then((response) => {
console.log("Caches: " + this.caches);
this.caches = response.data; this.caches = response.data;
}) })
} }