Skip to content

Commit

Permalink
Merge pull request #1994 from oliver-sanders/graphiql-button
Browse files Browse the repository at this point in the history
move GraphiQL from the draw to the dashboard
  • Loading branch information
markgrahamdawson authored Nov 21, 2024
2 parents 50f462a + 79ba55c commit feef25b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
10 changes: 1 addition & 9 deletions src/components/cylc/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<v-list-item-title>Dashboard</v-list-item-title>
</v-list-item>

<v-list-item
to="/graphiql"
class="v-list-item"
>
<template v-slot:prepend>
<v-icon style="opacity: 1;">{{ $options.icons.mdiGraphql }}</v-icon>
</template>
<v-list-item-title>GraphiQL</v-list-item-title>
</v-list-item>
<v-divider class="" />

<v-list-item>
<v-list-item-title>Workflows</v-list-item-title>
</v-list-item>
Expand Down
24 changes: 23 additions & 1 deletion src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
The complete Cylc documentation
</v-list-item-subtitle>
</v-list-item>
<v-list-item
to="/graphiql"
>
<template v-slot:prepend>
<v-icon size="1.6em">{{ $options.icons.mdiGraphql }}</v-icon>
</template>
<v-list-item-title class="text-h6 font-weight-light">
GraphiQL
</v-list-item-title>
<v-list-item-subtitle>
Explore the Cylc GraphQL API
</v-list-item-subtitle>
</v-list-item>
</v-list>
</v-col>
</v-row>
Expand All @@ -161,7 +174,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

<script>
import { mapState, mapGetters } from 'vuex'
import { mdiBook, mdiBookMultiple, mdiBookOpenVariant, mdiCog, mdiHubspot, mdiTable } from '@mdi/js'
import {
mdiBook,
mdiBookMultiple,
mdiBookOpenVariant,
mdiCog,
mdiHubspot,
mdiTable,
mdiGraphql,
} from '@mdi/js'
import { jupyterLogo } from '@/utils/icons'
import subscriptionComponentMixin from '@/mixins/subscriptionComponent'
import { createUrl } from '@/utils/urls'
Expand Down Expand Up @@ -273,6 +294,7 @@ export default {
workflow: mdiBookOpenVariant,
documentation: mdiBookMultiple,
jupyterLogo,
mdiGraphql,
},
}
</script>

0 comments on commit feef25b

Please sign in to comment.