mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
!!! Temp !!!
This commit is contained in:
parent
91d797dcfa
commit
e1f4609c25
95
webapp/graphql/groups.js
Normal file
95
webapp/graphql/groups.js
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
|
// ------ mutations
|
||||||
|
|
||||||
|
export const createGroupMutation = gql`
|
||||||
|
mutation (
|
||||||
|
$id: ID
|
||||||
|
$name: String!
|
||||||
|
$slug: String
|
||||||
|
$about: String
|
||||||
|
$description: String!
|
||||||
|
$groupType: GroupType!
|
||||||
|
$actionRadius: GroupActionRadius!
|
||||||
|
$categoryIds: [ID]
|
||||||
|
) {
|
||||||
|
CreateGroup(
|
||||||
|
id: $id
|
||||||
|
name: $name
|
||||||
|
slug: $slug
|
||||||
|
about: $about
|
||||||
|
description: $description
|
||||||
|
groupType: $groupType
|
||||||
|
actionRadius: $actionRadius
|
||||||
|
categoryIds: $categoryIds
|
||||||
|
) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
slug
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
disabled
|
||||||
|
deleted
|
||||||
|
about
|
||||||
|
description
|
||||||
|
groupType
|
||||||
|
actionRadius
|
||||||
|
myRole
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
|
// ------ queries
|
||||||
|
|
||||||
|
export const groupQuery = gql`
|
||||||
|
query (
|
||||||
|
$isMember: Boolean
|
||||||
|
$id: ID
|
||||||
|
$name: String
|
||||||
|
$slug: String
|
||||||
|
$createdAt: String
|
||||||
|
$updatedAt: String
|
||||||
|
$about: String
|
||||||
|
$description: String
|
||||||
|
$locationName: String
|
||||||
|
$first: Int
|
||||||
|
$offset: Int
|
||||||
|
$orderBy: [_GroupOrdering]
|
||||||
|
$filter: _GroupFilter
|
||||||
|
) {
|
||||||
|
Group(
|
||||||
|
isMember: $isMember
|
||||||
|
id: $id
|
||||||
|
name: $name
|
||||||
|
slug: $slug
|
||||||
|
createdAt: $createdAt
|
||||||
|
updatedAt: $updatedAt
|
||||||
|
about: $about
|
||||||
|
description: $description
|
||||||
|
locationName: $locationName
|
||||||
|
first: $first
|
||||||
|
offset: $offset
|
||||||
|
orderBy: $orderBy
|
||||||
|
filter: $filter
|
||||||
|
) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
slug
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
disabled
|
||||||
|
deleted
|
||||||
|
about
|
||||||
|
description
|
||||||
|
groupType
|
||||||
|
actionRadius
|
||||||
|
myRole
|
||||||
|
categories {
|
||||||
|
id
|
||||||
|
slug
|
||||||
|
name
|
||||||
|
icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
@ -333,15 +333,16 @@
|
|||||||
"placeholder": "Schreib etwas Inspirierendes …"
|
"placeholder": "Schreib etwas Inspirierendes …"
|
||||||
},
|
},
|
||||||
"error-pages": {
|
"error-pages": {
|
||||||
"403-default": "Kein Zugang zu dieser Seite",
|
"403-default": "Kein Zugang zu dieser Seite!",
|
||||||
"404-default": "Diese Seite konnte nicht gefunden werden",
|
"404-default": "Diese Seite konnte nicht gefunden werden!",
|
||||||
"500-default": "Internal Server Error",
|
"500-default": "Internal Server Error!",
|
||||||
"503-default": "Dienst steht nicht zur Verfügung",
|
"503-default": "Dienst steht nicht zur Verfügung!",
|
||||||
"back-to-index": "Zurück zur Startseite",
|
"back-to-index": "Zurück zur Startseite!",
|
||||||
"cannot-edit-post": "Dieser Beitrag kann nicht editiert werden",
|
"cannot-edit-post": "Dieser Beitrag kann nicht editiert werden!",
|
||||||
"default": "Ein Fehler ist aufgetreten",
|
"default": "Ein Fehler ist aufgetreten!",
|
||||||
"post-not-found": "Dieser Beitrag konnte nicht gefunden werden",
|
"group-not-found": "Dieses Gruppenprofil konnte nicht gefunden werden!",
|
||||||
"profile-not-found": "Dieses Profil konnte nicht gefunden werden"
|
"post-not-found": "Dieser Beitrag konnte nicht gefunden werden!",
|
||||||
|
"profile-not-found": "Dieses Profil konnte nicht gefunden werden!"
|
||||||
},
|
},
|
||||||
"filter-menu": {
|
"filter-menu": {
|
||||||
"all": "Alle",
|
"all": "Alle",
|
||||||
|
|||||||
@ -333,15 +333,16 @@
|
|||||||
"placeholder": "Leave your inspirational thoughts …"
|
"placeholder": "Leave your inspirational thoughts …"
|
||||||
},
|
},
|
||||||
"error-pages": {
|
"error-pages": {
|
||||||
"403-default": "Not authorized to this page",
|
"403-default": "Not authorized to this page!",
|
||||||
"404-default": "This page could not be found",
|
"404-default": "This page could not be found!",
|
||||||
"500-default": "Internal Server Error",
|
"500-default": "Internal Server Error!",
|
||||||
"503-default": "Service Unavailable",
|
"503-default": "Service Unavailable!",
|
||||||
"back-to-index": "Back to index page",
|
"back-to-index": "Back to index page!",
|
||||||
"cannot-edit-post": "This post cannot be edited",
|
"cannot-edit-post": "This post cannot be edited!",
|
||||||
"default": "An error occurred",
|
"default": "An error occurred!",
|
||||||
"post-not-found": "This post could not be found",
|
"group-not-found": "This group profile could not be found!",
|
||||||
"profile-not-found": "This profile could not be found"
|
"post-not-found": "This post could not be found!",
|
||||||
|
"profile-not-found": "This profile could not be found!"
|
||||||
},
|
},
|
||||||
"filter-menu": {
|
"filter-menu": {
|
||||||
"all": "All",
|
"all": "All",
|
||||||
|
|||||||
@ -5,7 +5,7 @@ const localVue = global.localVue
|
|||||||
|
|
||||||
config.stubs['nuxt-child'] = '<span class="nuxt-child"><slot /></span>'
|
config.stubs['nuxt-child'] = '<span class="nuxt-child"><slot /></span>'
|
||||||
|
|
||||||
describe('Profile _id.vue', () => {
|
describe('Group profile _id.vue', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
let Wrapper
|
let Wrapper
|
||||||
let mocks
|
let mocks
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import PersistentLinks from '~/mixins/persistentLinks.js'
|
|||||||
const options = {
|
const options = {
|
||||||
queryId: gql`
|
queryId: gql`
|
||||||
query($idOrSlug: ID) {
|
query($idOrSlug: ID) {
|
||||||
User(id: $idOrSlug) {
|
Group(id: $idOrSlug) {
|
||||||
id
|
id
|
||||||
slug
|
slug
|
||||||
}
|
}
|
||||||
@ -17,14 +17,14 @@ const options = {
|
|||||||
`,
|
`,
|
||||||
querySlug: gql`
|
querySlug: gql`
|
||||||
query($idOrSlug: String) {
|
query($idOrSlug: String) {
|
||||||
User(slug: $idOrSlug) {
|
Group(slug: $idOrSlug) {
|
||||||
id
|
id
|
||||||
slug
|
slug
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
message: 'error-pages.profile-not-found',
|
message: 'error-pages.group-not-found',
|
||||||
path: 'profile',
|
path: 'group',
|
||||||
}
|
}
|
||||||
const persistentLinks = PersistentLinks(options)
|
const persistentLinks = PersistentLinks(options)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user