mirror of https://github.com/requarks/wiki
parent
46fb25c1e9
commit
d51fc36b56
@ -1,14 +0,0 @@
|
||||
query blockIndexFetchPages (
|
||||
$siteId: UUID!
|
||||
$locale: String!
|
||||
$parentPath: String!
|
||||
) {
|
||||
tree(
|
||||
siteId: $siteId,
|
||||
locale: $locale,
|
||||
parentPath: $parentPath
|
||||
) {
|
||||
id
|
||||
title
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
query blockIndexFetchPages (
|
||||
$siteId: UUID!
|
||||
$locale: String
|
||||
$parentPath: String
|
||||
$tags: [String]
|
||||
$limit: Int
|
||||
$orderBy: TreeOrderBy
|
||||
$orderByDirection: OrderByDirection
|
||||
$depth: Int
|
||||
) {
|
||||
tree(
|
||||
siteId: $siteId
|
||||
locale: $locale
|
||||
parentPath: $parentPath
|
||||
tags: $tags
|
||||
limit: $limit
|
||||
types: [page]
|
||||
orderBy: $orderBy
|
||||
orderByDirection: $orderByDirection
|
||||
depth: $depth
|
||||
) {
|
||||
id
|
||||
folderPath
|
||||
fileName
|
||||
title
|
||||
}
|
||||
}
|
@ -1,17 +1,22 @@
|
||||
import { boot } from 'quasar/wrappers'
|
||||
import { usePageStore } from 'src/stores/page'
|
||||
import { useSiteStore } from 'src/stores/site'
|
||||
import { useUserStore } from 'src/stores/user'
|
||||
|
||||
export default boot(() => {
|
||||
export default boot(({ router }) => {
|
||||
if (import.meta.env.SSR) {
|
||||
global.WIKI_STORES = {
|
||||
global.WIKI_STATE = {
|
||||
page: usePageStore(),
|
||||
site: useSiteStore(),
|
||||
user: useUserStore()
|
||||
}
|
||||
global.WIKI_ROUTER = router
|
||||
} else {
|
||||
window.WIKI_STORES = {
|
||||
window.WIKI_STATE = {
|
||||
page: usePageStore(),
|
||||
site: useSiteStore(),
|
||||
user: useUserStore()
|
||||
}
|
||||
window.WIKI_ROUTER = router
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in new issue