Commit 32e5ffe9 authored by Anton's avatar Anton

Remove unused routes

parent 0b04a607
Pipeline #14249 passed with stage
in 55 seconds
......@@ -2,12 +2,10 @@ import annotate from './annotate'
import create from './create'
import edit from './edit'
import list from './list'
import session from './session'
export {
annotate,
create,
edit,
list,
session
list
}
<template lang="pug">
card-full
q-btn(slot="backButton", @click="$router.push({ name: 'piecemaker.timelines.list' })", icon="keyboard_backspace", round, small)
span(slot="form-logo")
// span(slot="form-title") {{ $t('routes.piecemaker.videos.list.title') }}
span(slot="form-title")
.text-grey-6 Session
//
// timeline test
//
div
//
// info window – dev only
//
.fixed(
v-model="previewLine",
v-if="previewLine.visibility",
style="top: 50px; left: 0;"
) {{ previewLine.positionY }}
//
// sessions – wrap
//
div
//
// top area
//
.row.q-mb-sm.text-grey-5
//
// titel
// calendar
//
.col-6
div.q-mb-sm Titel: Session von dann und dann
div
q-btn(
icon="arrow_left"
size="sm",
flat, round
)
q-btn.q-mx-xs(
label="27.7.2016",
size="sm"
)
q-btn(
icon="arrow_right"
size="sm",
flat, round
)
//
// information – dev only
//
.col-6.text-right
span(v-model="numberRandomAnnotations") randomly added annotations: {{ numberRandomAnnotations }}
// br
span(v-model="annotations") inlcuding hard coded annotations: {{ annotations.length }}
//
// diagramm wrap
//
.row.col-12(
style="border-top: 1px solid #333; border-bottom: 1px solid #333;"
)
//
// svg wrap
//
svg.col-6(
v-model="svgHeight",
:height="svgHeight"
)
//
// swimlanes – wrap
//
svg
//
// vertical lines
//
svg(
x="15"
)
rect.moba-swimlane(
v-for="(video, i) in videos",
width="30",
:height="video.duration",
:x="(30 + 10) * i",
:y="video.referencetime"
)
//
// horizontal lines
//
g
rect.moba-svg-entry(
v-for="annotation in filteredAnnotations",
width="180",
height="1",
:y="annotation.referencetime"
style="fill: rgba(255,255,255, .4)!important;"
)
rect(
v-if="previewLine.visibility",
width="180",
height="1",
:y="previewLine.positionY"
style="fill: rgba(255,0,0, 1)!important;"
)
//
// dots – ALL
//
svg(
x="200"
)
line(
x1="3",
y1="0",
x2="3",
y2="100%",
style="stroke: rgba(255,255,255,.1); stroke-width: 1;"
)
g
circle.moba-svg-entry.moba-hover-test(
v-for="annotation in annotations",
@mouseenter="hoverVal = annotation.referencetime, previewLine.positionY = annotation.referencetime, previewLine.visibility = true",
@mouseleave="hoverVal = '', previewLine.visibility = false",
r="3",
cx="3",
:cy="annotation.referencetime",
style="fill: rgb(255,255,255);"
)
//
// dots – FILTERED
//
svg(
v-for="(n, i) in arrFilter",
:x="250 + ((30 + 10) * i)"
)
rect(
width="30",
height="100%",
fill="rgba(255, 255, 255, .025)"
)
line(
x1="15",
y1="0",
x2="15",
y2="100%",
style="stroke: rgba(255,255,255,.1); stroke-width: 1;"
)
g
circle.moba-svg-entry.moba-hover-test(
v-for="annotation in annotationsBlocks[i]",
@mouseenter="hoverVal = annotation.referencetime, previewLine.positionY = annotation.referencetime, previewLine.visibility = true",
@mouseleave="hoverVal = '', previewLine.visibility = false",
r="3",
cx="15",
:cy="annotation.referencetime"
style="fill: rgb(255,255,255);"
)
//
// auswahl – wrap
//
q-list.col-6.no-border.no-padding(
style="width: 20vw; min-height: 10vh; display: inline-block;"
)
.q-item.text-grey-6
| Annotation sessions
//
// select – ALL
//
.q-item
q-btn.q-mx-sm.q-mb-md(
@click="filterAnnotations(0, 100000000)",
label="all",
no-ripple, no-caps
)
//
// select – FILTERED
//
.q-item.text-grey-6(
v-for="(n, i) in arrFilter"
)
q-btn.q-mx-sm.q-mb-md(
@click="filterAnnotations(arrFilter[i].rangebegin, arrFilter[i].rangeend)",
no-ripple, no-caps
) {{ arrFilter[i].rangebegin }}{{ arrFilter[i].rangeend }}
</template>
<script>
import CardFull from '../../../components/shared/layouts/CardFull'
export default {
components: {
CardFull
},
mounted () {
this.getSvgHeight(this.videos)
this.appendRandomAnnotations()
this.divideInBlocks(this.annotations)
this.filterAnnotations(0, this.numberRandomAnnotations)
},
methods: {
filterAnnotations (valFrom, valTo) {
this.filteredAnnotations = this.annotations.filter(annotation => annotation.created > valFrom && annotation.created <= valTo)
// console.log(this.filteredAnnotations)
// console.log(this.arrFilter)
let i = 0
for (i = 0; i < this.arrFilter.length; i++) {
this.annotationsBlocks.push(this.annotations.filter(annotation => annotation.created > this.arrFilter[i]['rangebegin'] && annotation.created <= this.arrFilter[i]['rangeend']))
}
},
appendRandomAnnotations () {
let i = 0
let arrAnnotations = this.annotations
for (i = 0; i < this.numberRandomAnnotations; i++) {
arrAnnotations.push({referencetime: Math.floor(Math.random() * this.svgHeight), created: i, text: 'Hier steht der Text. (' + i + ')'})
}
},
getSvgHeight (arr) {
let newArr = []
let arrLength = arr.length
let i = 0
for (i = 0; i < arrLength; i++) {
newArr.push(parseInt(arr[i].referencetime) + parseInt(arr[i].duration))
}
newArr.sort(function (a, b) {
return a - b
})
// console.log(newArr)
this.svgHeight = newArr[arrLength - 1]
},
divideInBlocks (arr) {
// let ab = this.annotationsBlocks
// console.log(ab)
var byReferencetime = arr.slice(0)
byReferencetime.sort(function (a, b) {
return a.byReferencetime - b.byReferencetime
})
// console.log(byReferencetime)
// console.log(arr)
},
setPrevCreated (val, valPrev) {
// console.log(val)
console.log(valPrev)
this.prevCreated = parseInt(val) + parseInt(50)
},
onAction (type, data) {
const _this = this
switch (type) {
case 'annotate':
return _this.$router.push(`/piecemaker/videos/${data.row._uuid}/annotate`)
}
}
},
data () {
const _this = this
return {
annotations: [],
annotationsBlocks: [],
arrFilter: [{
rangebegin: 0,
rangeend: 30
}, {
rangebegin: 31,
rangeend: 120
}, {
rangebegin: 121,
rangeend: 150
}, {
rangebegin: 151,
rangeend: 200
}],
byReferencetime: [],
filteredAnnotations: [],
hoverVal: '',
// maps: [],
numberRandomAnnotations: 200,
prevCreated: '100',
previewLine: {
visibility: false,
positionY: ''
},
svgHeight: '100',
columns: [
{
label: _this.$t('labels.video_title'),
field: 'title',
type: 'string',
sort: true,
filter: true
},
{
label: _this.$t('labels.created'),
field: 'created',
type: 'date',
sort: true
},
{
label: _this.$t('labels.updated'),
field: 'updated',
type: 'date',
sort: true
},
{
label: _this.$t('labels.author'),
field: 'author'
}
],
actions: [
{ type: 'annotate', title: 'buttons.annotate', color: 'primary' },
{ type: 'edit', title: 'buttons.edit' },
{ type: 'synchronize', title: 'buttons.synchronize' },
{ type: 'delete', title: 'buttons.delete', icon: 'highlight off' }
],
videos: [{
created: '1',
duration: '1000',
id: '',
referencetime: '0',
title: 'video 1'
}, {
created: '20',
duration: '1100',
id: '',
referencetime: '20',
title: 'video 1'
}, {
created: '25',
duration: '500',
id: '',
referencetime: '270',
title: 'video 1'
}, {
created: '300',
duration: '1282',
id: '',
referencetime: '12',
title: 'video 1'
}]
/* annotations: [{
created: '1',
id: '',
referencetime: '110',
text: 'blablabla'
}, {
created: '2',
id: '',
referencetime: '111',
text: 'blablabla'
}, {
created: '24',
id: '',
referencetime: '321',
text: 'blablabla'
}, {
created: '10',
id: '',
referencetime: '130',
text: 'lnkjlfvsdvdsa'
}, {
created: '18',
id: '',
referencetime: '30',
text: 'fgbd'
}, {
created: '22',
id: '',
referencetime: '150',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '34',
id: '',
referencetime: '1000',
text: 'qwekbö vfbsöfdbjdföb jvfödjsölvsfn vdsfv'
}, {
created: '200',
id: '',
referencetime: '203',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '201',
id: '',
referencetime: '500',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '207',
id: '',
referencetime: '130',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '210',
id: '',
referencetime: '111',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '410',
id: '',
referencetime: '110',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '440',
id: '',
referencetime: '220',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '450',
id: '',
referencetime: '182',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '458',
id: '',
referencetime: '120',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '460',
id: '',
referencetime: '191',
text: 'öoij adfdsv bfdsvdf'
}, {
created: '800',
id: '',
referencetime: '500',
text: 'öoij adfdsv bfdsvdf'
}] */
}
}
}
</script>
<style>
/*
.moba-calendar-item {
opacity: .2;
}
.moba-calendar-item:hover {
opacity: 1;
}
*/
.moba-swimlane {
fill: rgba( 255, 255, 255, .1 );
transition: fill ease 200ms;
}
.moba-swimlane:hover {
fill: rgba( 0, 0, 0, 1 );
}
.moba-svg-entry {
opacity: .2;
}
.moba-svg-entry:hover {
fill: red!important;
opacity: 1;
}
text {
opacity: 0;
transition: opacity ease 50ms;
}
circle:hover + text {
opacity: 1!important;
}
</style>
<template lang="pug">
card-full
| {{ $t('routes.site.account.title') }}
span(slot="form-title") {{ $t('routes.site.account.title') }}
p.caption(slot="form-caption") {{ $t('routes.site.account.caption') }}
div(slot="form-logo")
</template>
<script>
import CardFull from '../../../components/shared/layouts/CardFull'
export default {
components: {
CardFull
}
}
</script>
<style></style>
<template lang='pug'>
div
div.splitscreen
h1 Piecemaker
p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum est fugit id libero minus molestiae molestias nesciunt nobis optio, quae quasi quibusdam, rem tempora unde veritatis. Animi exercitationem maxime possimus.
// q-btn(big, flat, @click="$router.push({ name: 'piecemaker.dashboard' })") Piecemaker
q-btn(big, flat, @click="$router.push({ name: 'stash.dashboard' })") Piecemaker
div.splitscreen
h1 Mosys
p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium assumenda dicta minima non sit. Accusamus architecto asperiores, assumenda autem ea impedit nesciunt non repudiandae soluta. Cum mollitia officia sint vel?
q-btn(big, flat, @click="$router.push({ name: 'mosys.dashboard' })") Mosys
</template>
<script>
import { openURL } from 'quasar-framework'
export default {
data: function () {
return {
openURL
}
}
}
</script>
<style scoped>
.splitscreen {
width: 50vw;
display: inline-block;
}
</style>
import account from './account'
import apps from './apps'
import help from './help'
import imprint from './imprint'
import terms from './terms'
import welcome from './welcome'
export default {
account,
apps,
help,
imprint,
terms,
......
<template lang="pug">
// center-card-three-quarter
card-full
span(slot="form-title") {{ $t('routes.users.create.title') }}
p.caption(slot="form-caption") {{ $t('routes.users.create.caption') }}
form-main(v-model="payload", :schema="schema")
</template>
<script>
import CenterCardThreeQuarter from '../../../components/shared/layouts/CenterCardThreeQuarter'
import CardFull from '../../../components/shared/layouts/CardFull'
import { FormMain } from '../../../components/shared/forms'
import { required, sameAs, minLength, email } from 'vuelidate/lib/validators'
export default {
components: {
CardFull,
CenterCardThreeQuarter,
FormMain
},
data () {
const context = this
return {
/**
* Store this form's contents in the VueX store (in memory)
*/
state: 'registration',
payload: undefined,
schema: {
fields: {
name: {
type: 'text',
label: 'labels.name',
errorLabel: 'errors.field_required',
validators: {
required,
minLength: minLength(2)
}
},
email: {
type: 'text',
label: 'labels.email',
errorLabel: 'errors.invalid_email',
validators: {
required,
email
}
},
location: {
type: 'text',
label: 'labels.location'
},
organisation: {
type: 'text',
label: 'labels.organisation'
},
password: {
type: 'password',
label: 'labels.password',
errorLabel: 'errors.invalid_password',
attributes: { autocomplete: 'section-login new-password' },
validators: {
required,
minLength: minLength(6)
}
},
password_confirmation: {
type: 'password',
label: 'labels.password_confirmation',
errorLabel: 'errors.invalid_password_confirmation',
attributes: { autocomplete: 'section-login current-password-confirmation' },
validators: {