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
}
This diff is collapsed.
<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: {
required,
sameAsPassword: sameAs('password')
}
},
terms: {
type: 'checkbox',
label: 'labels.accept_terms',
initial: false,
validators: {
termsAccepted (val) {
return val === true
}
}
}
},
submit: {
handler () {
context.$store.dispatch('users/create', context.payload)
.then(() => context.$router.replace({ name: 'users.login' }))
},
label: 'buttons.create_account',
message: 'messages.registration_success'
}
}
}
}
}
</script>
<style></style>
<template lang="pug">
center-card-three-quarter
span(slot="form-title") {{ $t('routes.users.forgot.title') }}
p.caption(slot="form-caption") {{ $t('routes.users.forgot.caption') }}
form-main(v-model="payload", :schema="schema")
q-btn(flat, color="light", slot="form-buttons-add",
@click="$router.push({ name: 'users.login' })"
) {{ $t('buttons.login') }}
</template>
<script>
import CenterCardThreeQuarter from '../../../components/shared/layouts/CenterCardThreeQuarter'
import { FormMain } from '../../../components/shared/forms'
import { required, email } from 'vuelidate/lib/validators'
export default {
components: {
CenterCardThreeQuarter,
FormMain
},
data () {
return {
schema: {
fields: {
email: {
fullWidth: true,
type: 'text',
label: 'labels.email',
errorLabel: 'errors.invalid_email',
validators: {
required,
email
}
}
},
submit: {
handler () {
throw new Error('not implemented')
},
label: 'buttons.request_reset_pass',
message: 'messages.request_reset_success'
}
},
payload: undefined
}
}
}
</script>
<style></style>
import callback from './callback'
import create from './create'
import forgot from './forgot'
import login from './login'
import manage from './manage'
export default {
callback,
create,
forgot,
login,
manage
}
<template lang="pug">
center-card-three-quarter(v-if="showLogin")
span(slot="form-title") {{ $t('routes.users.login.title') }}
p.caption(slot="form-caption")
| {{ $t('routes.users.login.caption') }}
br
router-link(:to="{ name: 'users.create' }") {{ $t('links.click_to_register') }}
form-main(v-model="payload", :schema="schema")
q-btn(flat, color="light", slot="form-buttons-add",
@click="$router.push({ name: 'users.forgot' })") {{ $t('buttons.forgot_password') }}
</template>
<script>
import CenterCardThreeQuarter from '../../../components/shared/layouts/CenterCardThreeQuarter'
import { FormMain } from '../../../components/shared/forms'
import { required, minLength, email } from 'vuelidate/lib/validators'
export default {
components: {
CenterCardThreeQuarter,
FormMain
},
props: ['auth'],
beforeMount () {
const _this = this
this.$mbAuth()
.checkSession(this.$store)
.then(res => {
if (res) {
_this.$router.replace(_this.redirect || { name: 'users.edit', params: { uuid: 'me' } })
}
else {
_this.showLogin = true
}
})
.catch(() => {
_this.showLogin = true
})
},
data () {
const _this = this
const schema = {
fields: {
email: {
type: 'text',
label: 'labels.email',
errorLabel: 'errors.invalid_email',
attributes: { autocomplete: 'section-login current-email' },
validators: { required, email }
},
password: {
type: 'password',
label: 'labels.password',
errorLabel: 'errors.invalid_password',
attributes: { autocomplete: 'section-login current-password' },
validators: { required, minLength: minLength(6) }
}
},
submit: {
handler () {
return _this.$mbAuth()
.handleAuthentication(
_this.payload,
{
store: _this.$store,
redirect: _this.redirect
})
}
}
}
return {
/**
* Save the original destination when redirected from a private route
*/
showLogin: false,
redirect: _this.$route.query.redirect,
label: 'buttons.login',
message: 'messages.login_success',
payload: undefined,
schema
}
}
}
</script>
<style></style>
......@@ -6,25 +6,24 @@ export default {
path: '',
name: 'site.welcome',
component: () => import('pages/shared/site/welcome')
}, {
path: '/account',
component: () => import('pages/shared/site/account'),
name: 'site.account',
meta: {private: true}
}, {
},
{
path: '/help',
component: () => import('pages/shared/site/help'),
name: 'site.help',
meta: {private: true}
}, {
},
{
path: '/imprint',
component: () => import('pages/shared/site/imprint'),
name: 'site.imprint'
}, {
},
{
path: '/contact',
component: () => import('pages/shared/site/contact'),
name: 'site.contact'
}, {
},
{
path: '/terms',
component: () => import('pages/shared/site/terms'),
name: 'site.terms'
......
......@@ -17,21 +17,6 @@ export default {
name: 'users.resetpass',
component: () => import('pages/shared/users/auth0-action')
},
{
path: 'create',
name: 'users.create',
component: () => import('pages/shared/users/create')
},
{
path: 'forgot',
name: 'users.forgot',
component: () => import('pages/shared/users/forgot')
},
{
path: 'login',
name: 'users.login',
component: () => import('pages/shared/users/login')
},
{
path: 'manage',
name: 'users.manage',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment