make indentation consistent
This commit is contained in:
parent
d52575aa42
commit
9f63414ba2
27 changed files with 858 additions and 804 deletions
|
@ -1,7 +1,7 @@
|
|||
root = true
|
||||
|
||||
[*.js]
|
||||
indent_size = 2
|
||||
indent_size = 4
|
||||
|
||||
[*.vue]
|
||||
indent_size = 2
|
||||
indent_size = 4
|
|
@ -17,8 +17,7 @@ module.exports = {
|
|||
'rules': {
|
||||
"no-console": "off",
|
||||
'indent': [
|
||||
'error',
|
||||
2
|
||||
'error', 4
|
||||
],
|
||||
'linebreak-style': [
|
||||
'off',
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but c3cloc doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
<strong>We're sorry but c3cloc doesn't work properly without JavaScript enabled. Please enable it to
|
||||
continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
<div aria-live="polite" aria-atomic="true"
|
||||
class="d-flex justify-content-end align-items-start fixed-top mx-1 my-5 py-3"
|
||||
style="min-height: 200px; z-index: 100000; pointer-events: none">
|
||||
<Toast v-for="toast in toasts" :key="toast" :title="toast.title" :message="toast.message" :color="toast.color"
|
||||
<Toast v-for="toast in toasts" :key="toast" :title="toast.title" :message="toast.message"
|
||||
:color="toast.color"
|
||||
@close="removeToast(toast.key)" style="pointer-events: auto"/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -55,12 +55,18 @@ export default {
|
|||
name: 'Cards',
|
||||
mixins: [DataContainer],
|
||||
created() {
|
||||
this.columns.map(e => ({k: e, v: this.$store.getters.getFilters[e]})).filter(e => e.v).forEach(e => this.setFilter(e.k, e.v));
|
||||
this.columns.map(e => ({
|
||||
k: e,
|
||||
v: this.$store.getters.getFilters[e]
|
||||
})).filter(e => e.v).forEach(e => this.setFilter(e.k, e.v));
|
||||
},
|
||||
methods: {
|
||||
changeFilter(col, val) {
|
||||
this.setFilter(col, val);
|
||||
let newquery = Object.entries({...this.$store.getters.getFilters, [col]: val}).reduce((a,[k,v]) => (v ? {...a, [k]:v} : a), {});
|
||||
let newquery = Object.entries({
|
||||
...this.$store.getters.getFilters,
|
||||
[col]: val
|
||||
}).reduce((a, [k, v]) => (v ? {...a, [k]: v} : a), {});
|
||||
router.push({query: newquery});
|
||||
},
|
||||
},
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
|
||||
<div class="custom-control-inline mr-1">
|
||||
<button type="button" class="btn mx-1 text-nowrap btn-success" @click="$emit('addClicked')">
|
||||
<font-awesome-icon icon="plus"/><span class="d-none d-md-inline"> Add</span>
|
||||
<font-awesome-icon icon="plus"/>
|
||||
<span class="d-none d-md-inline"> Add</span>
|
||||
</button>
|
||||
<div class="btn-group btn-group-toggle">
|
||||
<button :class="['btn', 'btn-info', { active: layout === 'cards' }]" @click="setLayout('cards')">
|
||||
|
@ -50,7 +51,8 @@
|
|||
{{ getActiveView }}
|
||||
</button>
|
||||
<ul class="dropdown-menu bg-dark" aria-labelledby="dropdownMenuButton2">
|
||||
<li class="" v-for="(link, index) in views" v-bind:key="index" :class="{ active: link.path === getActiveView }">
|
||||
<li class="" v-for="(link, index) in views" v-bind:key="index"
|
||||
:class="{ active: link.path === getActiveView }">
|
||||
<a class="nav-link text-nowrap" href="#" @click="changeView(link)">{{ link.title }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -46,12 +46,18 @@ export default {
|
|||
name: 'Table',
|
||||
mixins: [DataContainer],
|
||||
created() {
|
||||
this.columns.map(e => ({k: e, v: this.$store.getters.getFilters[e]})).filter(e => e.v).forEach(e => this.setFilter(e.k, e.v));
|
||||
this.columns.map(e => ({
|
||||
k: e,
|
||||
v: this.$store.getters.getFilters[e]
|
||||
})).filter(e => e.v).forEach(e => this.setFilter(e.k, e.v));
|
||||
},
|
||||
methods: {
|
||||
changeFilter(col, val) {
|
||||
this.setFilter(col, val);
|
||||
let newquery = Object.entries({...this.$store.getters.getFilters, [col]: val}).reduce((a,[k,v]) => (v ? {...a, [k]:v} : a), {});
|
||||
let newquery = Object.entries({
|
||||
...this.$store.getters.getFilters,
|
||||
[col]: val
|
||||
}).reduce((a, [k, v]) => (v ? {...a, [k]: v} : a), {});
|
||||
router.push({query: newquery});
|
||||
},
|
||||
},
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
class="btn btn-outline-secondary dropdown-toggle"
|
||||
type="button"
|
||||
data-toggle="dropdown"
|
||||
>Search</button>
|
||||
>Search
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a
|
||||
v-for="(option, index) in sortedOptions"
|
||||
|
@ -50,7 +51,10 @@ export default {
|
|||
}),
|
||||
computed: {
|
||||
isValid: ({options, nameKey, internalName}) => options.some(e => e[nameKey] == internalName),
|
||||
sortedOptions: ({options, nameKey}) => options.sort((a, b) => a[nameKey].localeCompare(b[nameKey], 'en', { numeric: true })),
|
||||
sortedOptions: ({
|
||||
options,
|
||||
nameKey
|
||||
}) => options.sort((a, b) => a[nameKey].localeCompare(b[nameKey], 'en', {numeric: true})),
|
||||
},
|
||||
watch: {
|
||||
internalName(newValue) {
|
||||
|
|
|
@ -101,7 +101,11 @@ export default {
|
|||
self.closeStream();
|
||||
};
|
||||
reader.onerror = function (error) {
|
||||
this.createToast({ title: 'Error: Failed to parse image file', message: error.toString(), color: 'danger' });
|
||||
this.createToast({
|
||||
title: 'Error: Failed to parse image file',
|
||||
message: error.toString(),
|
||||
color: 'danger'
|
||||
});
|
||||
console.log('Error: ', error);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,26 @@ import 'bootstrap/dist/js/bootstrap.min.js';
|
|||
|
||||
// fontawesome
|
||||
import {library} from '@fortawesome/fontawesome-svg-core';
|
||||
import { faPlus, faCheckCircle, faEdit, faTrash, faCat, faSyncAlt, faSort, faSortUp, faSortDown, faTh, faList, faWindowClose, faCamera, faStop, faPen, faCheck, faTimes, faSave } from '@fortawesome/free-solid-svg-icons';
|
||||
import {
|
||||
faPlus,
|
||||
faCheckCircle,
|
||||
faEdit,
|
||||
faTrash,
|
||||
faCat,
|
||||
faSyncAlt,
|
||||
faSort,
|
||||
faSortUp,
|
||||
faSortDown,
|
||||
faTh,
|
||||
faList,
|
||||
faWindowClose,
|
||||
faCamera,
|
||||
faStop,
|
||||
faPen,
|
||||
faCheck,
|
||||
faTimes,
|
||||
faSave
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome';
|
||||
|
||||
import vueDebounce from 'vue-debounce';
|
||||
|
|
|
@ -8,7 +8,6 @@ import VueRouter from 'vue-router';
|
|||
import Vue from 'vue';
|
||||
|
||||
|
||||
|
||||
Vue.use(VueRouter);
|
||||
|
||||
const routes = [
|
||||
|
|
|
@ -10,10 +10,12 @@
|
|||
>
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-secondary" @click.stop="changeEvent(item)">
|
||||
<font-awesome-icon icon="archive"/> use
|
||||
<font-awesome-icon icon="archive"/>
|
||||
use
|
||||
</button>
|
||||
<button class="btn btn-danger" @click.stop="">
|
||||
<font-awesome-icon icon="trash"/> delete
|
||||
<font-awesome-icon icon="trash"/>
|
||||
delete
|
||||
</button>
|
||||
</div>
|
||||
</Table>
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
>
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-danger" @click.stop="">
|
||||
<font-awesome-icon icon="trash"/> delete
|
||||
<font-awesome-icon icon="trash"/>
|
||||
delete
|
||||
</button>
|
||||
</div>
|
||||
</Table>
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
<li>Der Gegenstand wird in das c3lf-System eingetragen
|
||||
<ul>
|
||||
<li>Foto vom Gegenstand mit der Webcam machen</li>
|
||||
<li>Beschreibung des Gegenstands eintragen (gerne wie Tags behandeln die durch Leerzeichen getrennt
|
||||
<li>Beschreibung des Gegenstands eintragen (gerne wie Tags behandeln die durch Leerzeichen
|
||||
getrennt
|
||||
sind)
|
||||
</li>
|
||||
<li>Nummer der Box eintragen in die der Gegenstand gelegt wird</li>
|
||||
|
@ -31,7 +32,9 @@
|
|||
<h3>Lost (Jemand versucht einen Gegenstand wiederzufinden)</h3>
|
||||
<ul>
|
||||
<li>Jemand möchte einen Gegenstand wiederfinden</li>
|
||||
<li>Die Person soll möglichst genau beschreiben was sie sucht (insbesondere bei wertvolleren Dingen)</li>
|
||||
<li>Die Person soll möglichst genau beschreiben was sie sucht (insbesondere bei wertvolleren
|
||||
Dingen)
|
||||
</li>
|
||||
<li>Du schaust im System nach ob der Gegenstand vorhanden ist</li>
|
||||
<li>Wenn ein passender Gegenstand gefunden ist:
|
||||
<ul>
|
||||
|
@ -42,9 +45,12 @@
|
|||
<li>Wenn kein passender Gegenstand existiert:
|
||||
<ul>
|
||||
<li>Sagen, dass es den Gegenstand nicht gibt</li>
|
||||
<li>Darauf verweisen dass die Person entweder zu späterem Zeitpunkt wiederkommt, oder ein Ticket bei <a
|
||||
href="mailto:camp23@c3lf.de" target="_blank" rel="noopener">camp23@c3lf.de</a> aufmacht. Außerdem ist es
|
||||
gut möglich dass der Himmel und andere Villages eigene, kleinere Lost+Founds während des Events
|
||||
<li>Darauf verweisen dass die Person entweder zu späterem Zeitpunkt wiederkommt, oder ein
|
||||
Ticket bei <a
|
||||
href="mailto:camp23@c3lf.de" target="_blank" rel="noopener">camp23@c3lf.de</a>
|
||||
aufmacht. Außerdem ist es
|
||||
gut möglich dass der Himmel und andere Villages eigene, kleinere Lost+Founds während des
|
||||
Events
|
||||
aufgemacht haben. Rumfragen lohnt sich also.
|
||||
<ul>
|
||||
<li><b>Achtung: Tickets werden erst nach Ende des Events bearbeitet.</b></li>
|
||||
|
@ -62,7 +68,8 @@
|
|||
<h2>Lost&Found (English version)</h2>
|
||||
<p>Welcome to Lost&Found of $Event!</p>
|
||||
<p>Your tasks are to accept and register lost items, as well as to return items to their owners.</p>
|
||||
<p><b>Please do not leave the contents of the Lost+Found lying around or show them around. Ask for a description of the item first, then show them (if the description seems correct).</b></p>
|
||||
<p><b>Please do not leave the contents of the Lost+Found lying around or show them around. Ask for a
|
||||
description of the item first, then show them (if the description seems correct).</b></p>
|
||||
<h3>Found (Someone brings a lost item)</h3>
|
||||
<ul>
|
||||
<li>Get as much information as possible about the circumstances
|
||||
|
@ -83,7 +90,8 @@
|
|||
<h3>Lost (Someone tries to find an item)</h3>
|
||||
<ul>
|
||||
<li>Someone wants to find an item</li>
|
||||
<li>The person should describe as precisely as possible what they are looking for (especially for more
|
||||
<li>The person should describe as precisely as possible what they are looking for (especially for
|
||||
more
|
||||
valuable things)
|
||||
</li>
|
||||
<li>You check the system to see if the item is available</li>
|
||||
|
@ -97,8 +105,10 @@
|
|||
<ul>
|
||||
<li>Say that the item does not exist</li>
|
||||
<li>Point out that the person either comes back at a later time, or opens a ticket at <a
|
||||
href="mailto:camp23@c3lf.de" target="_blank" rel="noopener">camp23@c3lf.de</a>. It is also possible that
|
||||
the Himmel and other Villages have their own, smaller Lost+Founds during the event. So it's worth asking
|
||||
href="mailto:camp23@c3lf.de" target="_blank" rel="noopener">camp23@c3lf.de</a>. It is
|
||||
also possible that
|
||||
the Himmel and other Villages have their own, smaller Lost+Founds during the event. So
|
||||
it's worth asking
|
||||
around.
|
||||
<ul>
|
||||
<li><b>Attention: Tickets will not be processed until after the event.</b></li>
|
||||
|
|
Loading…
Reference in a new issue