mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove switch, bradcrump in router meta.pageTitle
This commit is contained in:
parent
5aba0a8c35
commit
7d171ccf60
@ -49,7 +49,6 @@
|
||||
"prettier": "^2.2.1",
|
||||
"qrcanvas-vue": "2.1.1",
|
||||
"regenerator-runtime": "^0.13.7",
|
||||
"v-switch-case": "^1.0.3",
|
||||
"vee-validate": "^3.4.5",
|
||||
"vue": "2.6.12",
|
||||
"vue-apollo": "^3.0.7",
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<div class="breadcrumb bg-transparent">
|
||||
<div v-switch="path">
|
||||
<!-- eslint-disable-next-line @intlify/vue-i18n/no-dynamic-keys -->
|
||||
<h1>{{ pageTitle }}</h1>
|
||||
<!-- <div v-switch="path">
|
||||
<h2 v-case="'/overview'">overview</h2>
|
||||
<h2 v-case="'/send'">send</h2>
|
||||
<h2 v-case="'/transactions'">transactions</h2>
|
||||
@ -10,15 +12,17 @@
|
||||
<h2 v-case="'/settings'">settings</h2>
|
||||
<h2 v-default>Default</h2>
|
||||
</div>
|
||||
{{ this.$route.bread }}
|
||||
{{ this.$route.bread }} -->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'Breadcrumb',
|
||||
computed: {
|
||||
path() {
|
||||
return this.$route.path
|
||||
pageTitle() {
|
||||
const options = { name: this.$store.state.firstName }
|
||||
// eslint-disable-next-line @intlify/vue-i18n/no-dynamic-keys
|
||||
return this.$t(`pageTitle.${this.$route.meta.pageTitle}`, options)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -50,7 +50,6 @@
|
||||
<b-col>
|
||||
<b-row>
|
||||
<b-col cols="12">
|
||||
::{{ recipientEmail }}
|
||||
<div v-if="radioSelected === sendTypes.send">
|
||||
<input-email
|
||||
:name="$t('form.recipient')"
|
||||
@ -168,6 +167,14 @@ export default {
|
||||
this.emailFocused = false
|
||||
this.form.email = this.form.email.trim()
|
||||
},
|
||||
setNewRecipientEmail() {
|
||||
this.form.email = this.recipientEmail ? this.recipientEmail : this.form.email
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
recipientEmail() {
|
||||
this.setNewRecipientEmail()
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
isBalanceDisabled() {
|
||||
@ -181,7 +188,7 @@ export default {
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.form.email = this.recipientEmail ? this.recipientEmail : this.form.email
|
||||
this.setNewRecipientEmail()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
</b-col>
|
||||
<b-col>
|
||||
<div class="align-items-center small">
|
||||
<name :linkedUser="transaction.linkedUser" @set-tunneled-email="setTunneledEmail" />
|
||||
<name :linkedUser="transaction.linkedUser" v-on="$listeners" />
|
||||
</div>
|
||||
</b-col>
|
||||
<b-col cols="auto">
|
||||
@ -78,11 +78,5 @@ export default {
|
||||
transactionCount: { type: Number, default: 0 },
|
||||
transactionLinkCount: { type: Number, default: 0 },
|
||||
},
|
||||
methods: {
|
||||
setTunneledEmail(email) {
|
||||
console.log('setTunneledEmail LastTransaction', email)
|
||||
this.$emit('set-tunneled-email', email)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -83,6 +83,7 @@
|
||||
:transactions="transactions"
|
||||
:transactionCount="transactionCount"
|
||||
:transactionLinkCount="transactionLinkCount"
|
||||
@set-tunneled-email="setTunneledEmail"
|
||||
/>
|
||||
</b-col>
|
||||
</b-row>
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
:transactions="transactions"
|
||||
:transactionCount="transactionCount"
|
||||
:transactionLinkCount="transactionLinkCount"
|
||||
@set-tunneled-email="setTunneledEmail"
|
||||
v-on="$listeners"
|
||||
/>
|
||||
</div>
|
||||
</b-col>
|
||||
@ -154,11 +154,5 @@ export default {
|
||||
return this.$route.path
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
setTunneledEmail(email) {
|
||||
console.log('setTunneledEmail rightside', email)
|
||||
this.$emit('set-tunneled-email', email)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -330,5 +330,14 @@
|
||||
"send_you": "sendet dir"
|
||||
},
|
||||
"via_link": "über einen Link",
|
||||
"welcome": "Willkommen in der Gemeinschaft"
|
||||
"welcome": "Willkommen in der Gemeinschaft",
|
||||
"pageTitle": {
|
||||
"overview":"Guten Morgen {name}",
|
||||
"send":"Sende Gradidos",
|
||||
"transactions":"Deine Transaktionen",
|
||||
"gdt":"Deine GDT Transaktionen",
|
||||
"community":"Meine Gemeinschaft",
|
||||
"information":"Gemeinschaft Info",
|
||||
"settings":"Einstellungen"
|
||||
}
|
||||
}
|
||||
|
||||
@ -330,5 +330,12 @@
|
||||
"send_you": "wants to send you"
|
||||
},
|
||||
"via_link": "via Link",
|
||||
"welcome": "Welcome to the community"
|
||||
"welcome": "Welcome to the community",
|
||||
"overview": "Good morning {name}",
|
||||
"send": "Send Gradidos",
|
||||
"transactions": "Your transactions",
|
||||
"gdt": "Your GDT transactions",
|
||||
"community": "My community",
|
||||
"information": "Community Info",
|
||||
"settings": "Settings"
|
||||
}
|
||||
|
||||
@ -20,8 +20,6 @@ import VueApollo from 'vue-apollo'
|
||||
|
||||
import VueTimers from 'vue-timers'
|
||||
|
||||
import VSwitch from 'v-switch-case'
|
||||
|
||||
export default {
|
||||
install(Vue) {
|
||||
Vue.use(GlobalComponents)
|
||||
@ -34,6 +32,5 @@ export default {
|
||||
Vue.use(Loading)
|
||||
Vue.use(VueApollo)
|
||||
Vue.use(VueTimers)
|
||||
Vue.use(VSwitch)
|
||||
},
|
||||
}
|
||||
|
||||
@ -15,14 +15,15 @@ const routes = [
|
||||
component: () => import('@/pages/Overview.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
pageTitle: 'overview',
|
||||
},
|
||||
bread: 'overview xxx'
|
||||
},
|
||||
{
|
||||
path: '/send',
|
||||
component: () => import('@/pages/Send.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
pageTitle: 'send',
|
||||
},
|
||||
},
|
||||
// {
|
||||
@ -38,6 +39,7 @@ const routes = [
|
||||
props: { gdt: false },
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
pageTitle: 'transactions',
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -46,6 +48,7 @@ const routes = [
|
||||
props: { gdt: true },
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
pageTitle: 'gdt',
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -53,6 +56,7 @@ const routes = [
|
||||
component: () => import('@/pages/Community.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
pageTitle: 'community',
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -60,6 +64,7 @@ const routes = [
|
||||
component: () => import('@/pages/InfoStatistic.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
pageTitle: 'information',
|
||||
},
|
||||
},
|
||||
// {
|
||||
@ -81,6 +86,7 @@ const routes = [
|
||||
component: () => import('@/pages/Settings.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
pageTitle: 'settings',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@ -744,11 +744,6 @@
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.12.tgz#9474794f9a650cf5e2f892444227f98e28cdf8b6"
|
||||
integrity sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A==
|
||||
|
||||
"@babel/parser@^7.18.4":
|
||||
version "7.20.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.5.tgz#7f3c7335fe417665d929f34ae5dceae4c04015e8"
|
||||
integrity sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==
|
||||
|
||||
"@babel/parser@^7.7.0":
|
||||
version "7.13.4"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.4.tgz#340211b0da94a351a6f10e63671fa727333d13ab"
|
||||
@ -2967,15 +2962,6 @@
|
||||
semver "^6.1.0"
|
||||
strip-ansi "^6.0.0"
|
||||
|
||||
"@vue/compiler-sfc@2.7.14":
|
||||
version "2.7.14"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-2.7.14.tgz#3446fd2fbb670d709277fc3ffa88efc5e10284fd"
|
||||
integrity sha512-aNmNHyLPsw+sVvlQFQ2/8sjNuLtK54TC6cuKnVzAY93ks4ZBrvwQSnkkIh7bsbNhum5hJBS00wSDipQ937f5DA==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.18.4"
|
||||
postcss "^8.4.14"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/component-compiler-utils@^3.0.0", "@vue/component-compiler-utils@^3.1.0":
|
||||
version "3.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-3.2.0.tgz#8f85182ceed28e9b3c75313de669f83166d11e5d"
|
||||
@ -3006,15 +2992,6 @@
|
||||
resolved "https://registry.yarnpkg.com/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz#ceb924b4ecb3b9c43871c7a429a02f8423e621ab"
|
||||
integrity sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ==
|
||||
|
||||
"@vue/test-utils@^1.0.0-beta.16":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.3.3.tgz#4fbd38587b0ec091dfaa355ac38ce3d888273285"
|
||||
integrity sha512-DmZkKrH5/MSkrU0hhHhv5+aOXcEJSaOhutKMOh2viuiLiMaFeOLPiTEvtegLunO3rXBagzHO681qW1sNMaB1sQ==
|
||||
dependencies:
|
||||
dom-event-types "^1.0.0"
|
||||
lodash "^4.17.15"
|
||||
pretty "^2.0.0"
|
||||
|
||||
"@vue/test-utils@^1.1.3":
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.1.3.tgz#747f5683d8d4633c85a385fe2e02c1bb35bec153"
|
||||
@ -5500,11 +5477,6 @@ cssstyle@^2.0.0, cssstyle@^2.3.0:
|
||||
dependencies:
|
||||
cssom "~0.3.6"
|
||||
|
||||
csstype@^3.1.0:
|
||||
version "3.1.1"
|
||||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9"
|
||||
integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==
|
||||
|
||||
current-script-polyfill@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/current-script-polyfill/-/current-script-polyfill-1.0.0.tgz#f31cf7e4f3e218b0726e738ca92a02d3488ef615"
|
||||
@ -7640,7 +7612,7 @@ hash.js@^1.0.0, hash.js@^1.0.3:
|
||||
inherits "^2.0.3"
|
||||
minimalistic-assert "^1.0.1"
|
||||
|
||||
he@1.2.x, he@^1.1.0, he@^1.2.0:
|
||||
he@1.2.x, he@^1.1.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
|
||||
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
|
||||
@ -10369,11 +10341,6 @@ nanoid@^3.3.1:
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.1.tgz#6347a18cac88af88f58af0b3594b723d5e99bb35"
|
||||
integrity sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==
|
||||
|
||||
nanoid@^3.3.4:
|
||||
version "3.3.4"
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
|
||||
integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
|
||||
|
||||
nanomatch@^1.2.9:
|
||||
version "1.2.13"
|
||||
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
|
||||
@ -11657,15 +11624,6 @@ postcss@^8.4.0, postcss@^8.4.6, postcss@^8.4.8:
|
||||
picocolors "^1.0.0"
|
||||
source-map-js "^1.0.2"
|
||||
|
||||
postcss@^8.4.14:
|
||||
version "8.4.20"
|
||||
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.20.tgz#64c52f509644cecad8567e949f4081d98349dc56"
|
||||
integrity sha512-6Q04AXR1212bXr5fh03u8aAwbLxAQNGQ/Q1LNa0VfOI06ZAlhPHtQvE4OIdpj4kLThXilalPnmDSOD65DcHt+g==
|
||||
dependencies:
|
||||
nanoid "^3.3.4"
|
||||
picocolors "^1.0.0"
|
||||
source-map-js "^1.0.2"
|
||||
|
||||
prelude-ls@^1.2.1:
|
||||
version "1.2.1"
|
||||
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
|
||||
@ -14115,15 +14073,6 @@ uuid@^8.3.0:
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
|
||||
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
|
||||
|
||||
v-switch-case@^1.0.3:
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/v-switch-case/-/v-switch-case-1.0.3.tgz#5e69ad22aa6c2f1e8d48723b9585ae96c34b969e"
|
||||
integrity sha512-58ec5JytRk7scZAZtpRs0RTJV4iu4DevhCmryha1SPswTtBymmkp/0T2r7U63OgKYEQ1zdhocKbGOKHXOFlKfg==
|
||||
dependencies:
|
||||
"@vue/test-utils" "^1.0.0-beta.16"
|
||||
vue "^2.5.16"
|
||||
vue-template-compiler "^2.5.16"
|
||||
|
||||
v8-compile-cache@^2.0.3, v8-compile-cache@^2.3.0:
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
|
||||
@ -14354,14 +14303,6 @@ vue-style-loader@^4.1.0:
|
||||
hash-sum "^1.0.2"
|
||||
loader-utils "^1.0.2"
|
||||
|
||||
vue-template-compiler@^2.5.16:
|
||||
version "2.7.14"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz#4545b7dfb88090744c1577ae5ac3f964e61634b1"
|
||||
integrity sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==
|
||||
dependencies:
|
||||
de-indent "^1.0.2"
|
||||
he "^1.2.0"
|
||||
|
||||
vue-template-compiler@^2.6.11:
|
||||
version "2.6.12"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.12.tgz#947ed7196744c8a5285ebe1233fe960437fcc57e"
|
||||
@ -14390,14 +14331,6 @@ vue@2.6.12, vue@^2.6.11:
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.12.tgz#f5ebd4fa6bd2869403e29a896aed4904456c9123"
|
||||
integrity sha512-uhmLFETqPPNyuLLbsKz6ioJ4q7AZHzD8ZVFNATNyICSZouqP2Sz0rotWQC8UNBF6VGSCs5abnKJoStA6JbCbfg==
|
||||
|
||||
vue@^2.5.16:
|
||||
version "2.7.14"
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-2.7.14.tgz#3743dcd248fd3a34d421ae456b864a0246bafb17"
|
||||
integrity sha512-b2qkFyOM0kwqWFuQmgd4o+uHGU7T+2z3T+WQp8UBjADfEv2n4FEMffzBmCKNP0IGzOEEfYjvtcC62xaSKeQDrQ==
|
||||
dependencies:
|
||||
"@vue/compiler-sfc" "2.7.14"
|
||||
csstype "^3.1.0"
|
||||
|
||||
vuex-persistedstate@^4.0.0-beta.3:
|
||||
version "4.0.0-beta.3"
|
||||
resolved "https://registry.yarnpkg.com/vuex-persistedstate/-/vuex-persistedstate-4.0.0-beta.3.tgz#89dd712de72d28e85cc95467d066002c1405f277"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user