mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
with graphql-Anbindung and frontend tries
This commit is contained in:
parent
7e26d6373d
commit
7781a088d0
45
frontend/src/pages/UserSearch.vue
Normal file
45
frontend/src/pages/UserSearch.vue
Normal file
@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<div class="h3">
|
||||
{{ gmsPlaygroundUri }}
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { authenticateGmsUserSearch } from '@/graphql/queries'
|
||||
|
||||
export default {
|
||||
name: 'GMS User Playground',
|
||||
data() {
|
||||
return {
|
||||
gmsPlaygroundUri: '',
|
||||
}
|
||||
},
|
||||
/*
|
||||
async mounted() {
|
||||
let query = `{
|
||||
authenticateGmsUserSearch() {
|
||||
gmsPlaygroundUri
|
||||
}
|
||||
}`;
|
||||
},
|
||||
*/
|
||||
methods: {
|
||||
authenticateGmsUserPlayground() {
|
||||
this.$apollo
|
||||
.query({
|
||||
query: authenticateGmsUserSearch,
|
||||
})
|
||||
.then((result) => {
|
||||
this.gmsPlaygroundUri = result.data.authenticateGmsUserSearch.gmsPlaygroundUri
|
||||
})
|
||||
.catch(() => {
|
||||
this.toastError('listContributionLinks has no result, use default data')
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.authenticateGmsUserPlayground()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped></style>
|
||||
@ -82,9 +82,16 @@ const routes = [
|
||||
},
|
||||
{
|
||||
path: '/usersearch',
|
||||
component: () => import('@/pages/UserSearch'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
pageTitle: 'user search',
|
||||
},
|
||||
/*
|
||||
redirect: (to) => {
|
||||
return { path: '/login' }
|
||||
},
|
||||
*/
|
||||
},
|
||||
// {
|
||||
// path: '/storys',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user