Refactor some file locations
This commit is contained in:
parent
cde5e8d964
commit
3a64a11ea8
|
|
@ -65,7 +65,7 @@ import {hidden} from '@/helpers/visibility';
|
|||
import {CONTENT_TYPE, CHAPTER_DESCRIPTION_TYPE, CHAPTER_TITLE_TYPE} from '@/consts/types';
|
||||
|
||||
import UPDATE_CHAPTER_BOOKMARK_MUTATION from '@/graphql/gql/mutations/updateChapterBookmark.gql';
|
||||
import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql';
|
||||
import CHAPTER_QUERY from '@/graphql/gql/queries/chapterQuery.gql';
|
||||
|
||||
import me from '@/mixins/me';
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
import VisibilityAction from '@/components/visibility/VisibilityAction';
|
||||
import ContentComponent from '@/components/content-blocks/ContentComponent';
|
||||
|
||||
import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql';
|
||||
import CHAPTER_QUERY from '@/graphql/gql/queries/chapterQuery.gql';
|
||||
import DELETE_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/deleteContentBlock.gql';
|
||||
|
||||
import {mapState} from 'vuex';
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ALL_TOPICS_QUERY from '@/graphql/gql/allTopicsQuery.gql';
|
||||
import ALL_TOPICS_QUERY from '@/graphql/gql/queries/allTopicsQuery.gql';
|
||||
import sidebarMixin from '@/mixins/sidebar';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@
|
|||
import store from '@/store/index';
|
||||
|
||||
import EDIT_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/mutateContentBlock.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
||||
import CONTENT_BLOCK_QUERY from '@/graphql/gql/contentBlockQuery.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/moduleDetailsQuery.gql';
|
||||
import CONTENT_BLOCK_QUERY from '@/graphql/gql/queries/contentBlockQuery.gql';
|
||||
import { setUserBlockType } from '@/helpers/content-block';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
import ContentsForm from '@/components/content-block-form/ContentsForm';
|
||||
|
||||
import NEW_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/addContentBlock.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/moduleDetailsQuery.gql';
|
||||
import {setUserBlockType} from '@/helpers/content-block';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@
|
|||
|
||||
<script>
|
||||
import {mapGetters, mapActions} from 'vuex';
|
||||
import ASSIGNMENT_QUERY from '@/graphql/gql/assignmentQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ASSIGNMENT_QUERY from '@/graphql/gql/queries/assignmentQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
import UPDATE_ASSIGNMENT_MUTATION from '@/graphql/gql/mutations/updateAssignmentMutation.gql';
|
||||
import UPDATE_ASSIGNMENT_MUTATION_WITH_SUCCESS from '@/graphql/gql/mutations/updateAssignmentMutationWithSuccess.gql';
|
||||
import SPELL_CHECK_MUTATION from '@/graphql/gql/mutations/spellCheck.gql';
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
import NoteForm from '@/components/notes/NoteForm';
|
||||
|
||||
import UPDATE_NOTE_MUTATION from '@/graphql/gql/mutations/updateNote.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
||||
import INSTRUMENT_QUERY from '@/graphql/gql/instrumentQuery.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/moduleDetailsQuery.gql';
|
||||
import INSTRUMENT_QUERY from '@/graphql/gql/queries/instrumentQuery.gql';
|
||||
|
||||
import {mapGetters} from 'vuex';
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
import ModalInput from '@/components/ModalInput';
|
||||
|
||||
import NEW_OBJECTIVE_MUTATION from '@/graphql/gql/mutations/addObjective.gql';
|
||||
import OBJECTIVE_GROUP_QUERY from '@/graphql/gql/objectiveGroupQuery.gql';
|
||||
import OBJECTIVE_GROUP_QUERY from '@/graphql/gql/queries/objectiveGroupQuery.gql';
|
||||
|
||||
import {mapGetters} from 'vuex';
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
|
||||
|
||||
import DELETE_OBJECTIVE_MUTATION from '@/graphql/gql/mutations/deleteObjective.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/moduleDetailsQuery.gql';
|
||||
import {hidden} from '@/helpers/visibility';
|
||||
import {OBJECTIVE_TYPE} from '@/consts/types';
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
import {mapGetters} from 'vuex';
|
||||
|
||||
import PROJECT_ENTRY_QUERY from '@/graphql/gql/projectEntryQuery.gql';
|
||||
import PROJECT_ENTRY_QUERY from '@/graphql/gql/queries/projectEntryQuery.gql';
|
||||
import UPDATE_PROJECT_ENTRY_MUTATION from '@/graphql/gql/mutations/updateProjectEntry.gql';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
import ProjectEntryForm from './ProjectEntryForm';
|
||||
|
||||
import NEW_PROJECT_ENTRY_MUTATION from '@/graphql/gql/mutations/addProjectEntry.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/projectQuery.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@
|
|||
import WidgetPopover from '@/components/WidgetPopover';
|
||||
|
||||
import DELETE_PROJECT_MUTATION from '@/graphql/gql/mutations/deleteProject.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/projectQuery.gql';
|
||||
import PROJECTS_QUERY from '@/graphql/gql/allProjects.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';
|
||||
import PROJECTS_QUERY from '@/graphql/gql/queries/allProjects.gql';
|
||||
import UPDATE_PROJECT_SHARED_STATE_MUTATION from '@/graphql/gql/mutations/updateProjectSharedState.gql';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
|
||||
|
||||
import DELETE_PROJECT_ENTRY_MUTATION from '@/graphql/gql/mutations/deleteProjectEntry.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/projectQuery.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';
|
||||
|
||||
export default {
|
||||
props: ['activity', 'reflection', 'nextSteps', 'documentUrl', 'created', 'id'],
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
import me from '@/mixins/me';
|
||||
import EditNameWizard from '@/components/profile/EditNameWizard';
|
||||
import UPDATE_TEAM_MUTATION from '@/graphql/gql/mutations/updateTeam.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
|
||||
export default {
|
||||
mixins: [me],
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<script>
|
||||
import UPDATE_AVATAR_QUERY from '@/graphql/gql/mutations/updateAvatarUrl.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
import AvatarUploadForm from '@/components/profile/AvatarUploadForm';
|
||||
import Avatar from '@/components/profile/Avatar';
|
||||
import TrashIcon from '@/components/icons/TrashIcon';
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
import WidgetPopover from '@/components/WidgetPopover';
|
||||
|
||||
import DELETE_ROOM_MUTATION from '@/graphql/gql/mutations/deleteRoom.gql';
|
||||
import ROOMS_QUERY from '@/graphql/gql/roomsQuery.gql';
|
||||
import ROOMS_QUERY from '@/graphql/gql/queries/roomsQuery.gql';
|
||||
|
||||
export default {
|
||||
props: ['id'],
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@
|
|||
|
||||
<script>
|
||||
import DELETE_ROOM_ENTRY_MUTATION from '@/graphql/gql/mutations/deleteRoomEntry.gql';
|
||||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/roomEntriesQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/queries/roomEntriesQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
|
||||
import UserMetaWidget from '@/components/UserMetaWidget';
|
||||
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
import PageForm from '@/components/page-form/PageForm';
|
||||
import PageFormInput from '@/components/page-form/PageFormInput';
|
||||
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
|
||||
export default {
|
||||
props: ['room'],
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<script>
|
||||
import UPDATE_ROOM_ENTRY_MUTATION from '@/graphql/gql/mutations/updateRoomEntry.gql';
|
||||
import ROOM_ENTRY_QUERY from '@/graphql/gql/roomEntryByIdQuery.gql';
|
||||
import ROOM_ENTRY_QUERY from '@/graphql/gql/queries/roomEntryByIdQuery.gql';
|
||||
|
||||
import ContentsForm from '@/components/content-block-form/ContentsForm';
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<script>
|
||||
import NEW_ROOM_ENTRY_MUTATION from '@/graphql/gql/mutations/addRoomEntry.gql';
|
||||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/roomEntriesQuery.gql';
|
||||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/queries/roomEntriesQuery.gql';
|
||||
|
||||
import ContentsForm from '@/components/content-block-form/ContentsForm';
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/mySchoolClass.gql';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass.gql';
|
||||
import UPDATE_SCHOOL_CLASS_MUTATION from '@/graphql/gql/mutations/updateSchoolClass.gql';
|
||||
import EditNameWizard from '@/components/profile/EditNameWizard';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# to be read from cache only
|
||||
#import "./fragments/contentBlockParts.gql"
|
||||
#import "../fragments/contentBlockParts.gql"
|
||||
query ContentBlockQuery {
|
||||
contentBlocks {
|
||||
...ContentBlockParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/moduleParts.gql"
|
||||
#import "../fragments/moduleParts.gql"
|
||||
query ModulesQuery {
|
||||
modules {
|
||||
edges {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/projectParts.gql"
|
||||
#import "../fragments/projectParts.gql"
|
||||
query ProjectsQuery {
|
||||
projects {
|
||||
edges {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/assignmentParts.gql"
|
||||
#import "../fragments/assignmentParts.gql"
|
||||
query AssignmentQuery($id: ID!) {
|
||||
assignment(id: $id) {
|
||||
...AssignmentParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/schoolClassParts.gql"
|
||||
#import "../fragments/schoolClassParts.gql"
|
||||
query AssignmentWithSubmissions($id: ID!) {
|
||||
assignment(id: $id) {
|
||||
title
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/assignmentParts.gql"
|
||||
#import "../fragments/assignmentParts.gql"
|
||||
query AssignmentsQuery {
|
||||
assignments {
|
||||
edges {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/chapterParts.gql"
|
||||
#import "../fragments/chapterParts.gql"
|
||||
query ChapterQuery($id: ID!) {
|
||||
chapter(id: $id) {
|
||||
...ChapterParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/contentBlockParts.gql"
|
||||
#import "../fragments/contentBlockParts.gql"
|
||||
query ContentBlockQuery($id: ID!) {
|
||||
contentBlock(id: $id) {
|
||||
...ContentBlockParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/instrumentParts.gql"
|
||||
#import "../fragments/instrumentParts.gql"
|
||||
query InstrumentQuery($slug: String!){
|
||||
instrument(slug: $slug) {
|
||||
...InstrumentParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/instrumentParts.gql"
|
||||
#import "../fragments/instrumentParts.gql"
|
||||
query InstrumentQuery($id: ID!){
|
||||
instrument(id: $id) {
|
||||
...InstrumentParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/userParts.gql"
|
||||
#import "../fragments/userParts.gql"
|
||||
query MeQuery {
|
||||
me {
|
||||
...UserParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/moduleParts.gql"
|
||||
#import "../fragments/moduleParts.gql"
|
||||
query ModuleQuery($id: ID!) {
|
||||
module(id: $id) {
|
||||
...ModuleParts
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
#import "./fragments/chapterParts.gql"
|
||||
#import "./fragments/assignmentParts.gql"
|
||||
#import "./fragments/objectiveGroupParts.gql"
|
||||
#import "./fragments/objectiveParts.gql"
|
||||
#import "./fragments/moduleParts.gql"
|
||||
#import "../fragments/chapterParts.gql"
|
||||
#import "../fragments/assignmentParts.gql"
|
||||
#import "../fragments/objectiveGroupParts.gql"
|
||||
#import "../fragments/objectiveParts.gql"
|
||||
#import "../fragments/moduleParts.gql"
|
||||
query ModuleDetailsQuery($slug: String!) {
|
||||
module(slug: $slug) {
|
||||
...ModuleParts
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#import "./fragments/roomParts.gql"
|
||||
#import "./fragments/roomEntryParts.gql"
|
||||
#import "../fragments/roomParts.gql"
|
||||
#import "../fragments/roomEntryParts.gql"
|
||||
query ModuleRoomEntriesQuery($slug: String, $classId: ID!) {
|
||||
moduleRoom(slug: $slug, classId: $classId) {
|
||||
...RoomParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/objectiveGroupParts.gql"
|
||||
#import "../fragments/objectiveGroupParts.gql"
|
||||
query ObjectiveGroupQuery($id: ID!) {
|
||||
objectiveGroup(id: $id) {
|
||||
...ObjectiveGroupParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/projectEntryParts.gql"
|
||||
#import "../fragments/projectEntryParts.gql"
|
||||
query ProjectEntryQuery($id: ID!) {
|
||||
projectEntry(id: $id) {
|
||||
...ProjectEntryParts
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#import "./fragments/projectParts.gql"
|
||||
#import "./fragments/projectEntryParts.gql"
|
||||
#import "../fragments/projectParts.gql"
|
||||
#import "../fragments/projectEntryParts.gql"
|
||||
query ProjectQuery($id: ID, $slug: String){
|
||||
project(slug: $slug, id: $id) {
|
||||
...ProjectParts
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#import "./fragments/roomParts.gql"
|
||||
#import "./fragments/roomEntryParts.gql"
|
||||
#import "../fragments/roomParts.gql"
|
||||
#import "../fragments/roomEntryParts.gql"
|
||||
query RoomEntriesQuery($slug: String!) {
|
||||
room(slug: $slug) {
|
||||
...RoomParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/roomEntryParts.gql"
|
||||
#import "../fragments/roomEntryParts.gql"
|
||||
query RoomEntryQuery($id: ID!) {
|
||||
roomEntry(id: $id) {
|
||||
...RoomEntryParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/roomEntryParts.gql"
|
||||
#import "../fragments/roomEntryParts.gql"
|
||||
query RoomEntryQuery($slug: String!) {
|
||||
roomEntry(slug: $slug) {
|
||||
...RoomEntryParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/roomParts.gql"
|
||||
#import "../fragments/roomParts.gql"
|
||||
query RoomQuery($id: ID!) {
|
||||
room(id: $id) {
|
||||
...RoomParts
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/roomParts.gql"
|
||||
#import "../fragments/roomParts.gql"
|
||||
query RoomsQuery {
|
||||
rooms {
|
||||
edges {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#import "./fragments/topicParts.gql"
|
||||
#import "../fragments/topicParts.gql"
|
||||
query Topic($slug: String!){
|
||||
topic(slug: $slug) {
|
||||
...TopicParts
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import MODULE_DETAILS_QUERY from './gql/moduleDetailsQuery.gql';
|
||||
import ME_QUERY from './gql/meQuery.gql';
|
||||
import MODULE_DETAILS_QUERY from './gql/queries/moduleDetailsQuery.gql';
|
||||
import ME_QUERY from './gql/queries/meQuery.gql';
|
||||
|
||||
export function moduleQuery() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import ADD_NOTE_MUTATION from '@/graphql/gql/mutations/addNote.gql';
|
||||
import CONTENT_BLOCK_QUERY from '@/graphql/gql/contentBlockQuery.gql';
|
||||
import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql';
|
||||
import MODULE_QUERY from '@/graphql/gql/moduleByIdQuery.gql';
|
||||
import CONTENT_BLOCK_QUERY from '@/graphql/gql/queries/contentBlockQuery.gql';
|
||||
import CHAPTER_QUERY from '@/graphql/gql/queries/chapterQuery.gql';
|
||||
import MODULE_QUERY from '@/graphql/gql/queries/moduleByIdQuery.gql';
|
||||
import INSTRUMENT_FRAGMENT from '@/graphql/gql/fragments/instrumentParts.gql';
|
||||
|
||||
const getBlockType = id => atob(id).split(':')[0];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import UPDATE_CONTENT_BOOKMARK from '@/graphql/gql/mutations/updateContentBookmark.gql';
|
||||
import UPDATE_INSTRUMENT_BOOKMARK from '@/graphql/gql/mutations/updateInstrumentBookmark.gql';
|
||||
import CONTENT_BLOCK_QUERY from '@/graphql/gql/contentBlockQuery.gql';
|
||||
import CONTENT_BLOCK_QUERY from '@/graphql/gql/queries/contentBlockQuery.gql';
|
||||
import INSTRUMENT_FRAGMENT from '@/graphql/gql/fragments/instrumentParts.gql';
|
||||
|
||||
const compareUuid = uuid => element => element.uuid === uuid;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import veeDe from 'vee-validate/dist/locale/de';
|
|||
import {dateFilter} from './filters/date-filter';
|
||||
import autoGrow from '@/directives/auto-grow';
|
||||
import clickOutside from '@/directives/click-outside';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
import VueModal from '@/plugins/modal';
|
||||
import VueRemoveEdges from '@/plugins/edges';
|
||||
import VueMatomo from 'vue-matomo';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import ME_QUERY from '@/graphql/gql/meQuery';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery';
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import NEWS_TEASER_QUERY from '@/graphql/gql/newsTeasersQuery.gql';
|
||||
import NEWS_TEASER_QUERY from '@/graphql/gql/queries/newsTeasersQuery.gql';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/mySchoolClass';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass';
|
||||
|
||||
export default {
|
||||
apollo: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
import UPDATE_USER_SETTING from '@/graphql/gql/mutations/updateUserSetting.gql';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/mySchoolClass.gql';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass.gql';
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
import ModuleActivity from '@/components/profile/ModuleActivity';
|
||||
import InstrumentActivity from '@/components/profile/InstrumentActivity';
|
||||
import ActivityFilter from '@/components/profile/ActivityFilter';
|
||||
import MY_ACTIVITY_QUERY from '@/graphql/gql/myActivity.gql';
|
||||
import MY_ACTIVITY_QUERY from '@/graphql/gql/queries/myActivity.gql';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
import DocumentBlock from '@/components/content-blocks/DocumentBlock';
|
||||
import UserMetaWidget from '@/components/UserMetaWidget';
|
||||
|
||||
import ROOM_ENTRY_QUERY from '@/graphql/gql/roomEntryQuery.gql';
|
||||
import ROOM_ENTRY_QUERY from '@/graphql/gql/queries/roomEntryQuery.gql';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
import addSchoolClassMixin from '@/mixins/add-school-class';
|
||||
|
||||
import CREATE_CLASS_MUTATION from '@/graphql/gql/mutations/createClass.gql';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/mySchoolClass';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass';
|
||||
import JoinForm from '@/components/profile/JoinForm';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
// todo: refactor this, we don't need 2 components, remove editRoom or EditRoom component
|
||||
import EditRoom from '@/components/rooms/EditRoom';
|
||||
|
||||
import ROOM_QUERY from '@/graphql/gql/roomQuery.gql';
|
||||
import ROOM_QUERY from '@/graphql/gql/queries/roomQuery.gql';
|
||||
|
||||
export default {
|
||||
props: ['id'],
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ALL_MODULES from '@/graphql/gql/allModules.gql';
|
||||
import ALL_MODULES from '@/graphql/gql/queries/allModules.gql';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import INSTRUMENT_QUERY from '@/graphql/gql/instrumentQuery.gql';
|
||||
import INSTRUMENT_QUERY from '@/graphql/gql/queries/instrumentQuery.gql';
|
||||
|
||||
import ContentComponent from '@/components/content-blocks/ContentComponent';
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
<script>
|
||||
import InstrumentFilter from '@/components/instruments/InstrumentFilter';
|
||||
import INSTRUMENTS_QUERY from '@/graphql/gql/instrumentsQuery.gql';
|
||||
import INSTRUMENTS_QUERY from '@/graphql/gql/queries/instrumentsQuery.gql';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<script>
|
||||
import JOIN_CLASS_MUTATION from '@/graphql/gql/mutations/joinClass.gql';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/mySchoolClass';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass';
|
||||
|
||||
import addSchoolClass from '@/mixins/add-school-class';
|
||||
import logout from '@/mixins/logout';
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
<script>
|
||||
|
||||
import REDEEM_COUPON from '@/graphql/gql/mutations/redeemCoupon.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
import LoadingButton from '@/components/LoadingButton';
|
||||
|
||||
import me from '@/mixins/me';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<script>
|
||||
import JOIN_TEAM_MUTATION from '@/graphql/gql/mutations/joinTeam.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
|
||||
import JoinForm from '@/components/profile/JoinForm';
|
||||
import {MY_TEAM} from '@/router/me.names';
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
import BookmarkActions from '@/components/notes/BookmarkActions';
|
||||
import meMixin from '@/mixins/me';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/moduleDetailsQuery';
|
||||
|
||||
export default {
|
||||
mixins: [meMixin],
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import MODULE_ROOM_ENTRIES_QUERY from '@/graphql/gql/moduleRoomEntryQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import MODULE_ROOM_ENTRIES_QUERY from '@/graphql/gql/queries/moduleRoomEntryQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
import roomMixin from '@/mixins/room';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
import me from '@/mixins/me';
|
||||
|
||||
import SYNC_VISIBILITY_MUTATION from '@/graphql/gql/mutations/syncModuleVisibility.gql';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery';
|
||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/moduleDetailsQuery';
|
||||
import {MODULE_PAGE} from '@/router/module.names';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<script>
|
||||
import GroupList from '@/components/profile/GroupList';
|
||||
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/mySchoolClass.gql';
|
||||
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass.gql';
|
||||
import ADD_REMOVE_MEMBER_MUTATION from '@/graphql/gql/mutations/addRemoveMember.gql';
|
||||
import selectedClassMixin from '@/mixins/selected-class';
|
||||
import {SHOW_SCHOOL_CLASS_CODE} from '@/router/me.names';
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
import RoomForm from '@/components/rooms/RoomForm';
|
||||
|
||||
import ADD_ROOM_MUTATION from '@/graphql/gql/mutations/addRoom.gql';
|
||||
import ROOMS_QUERY from '@/graphql/gql/roomsQuery.gql';
|
||||
import ROOMS_QUERY from '@/graphql/gql/queries/roomsQuery.gql';
|
||||
|
||||
const defaultAppearance = 'blue';
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import OLD_CLASSES_QUERY from '@/graphql/gql/oldClasses.gql';
|
||||
import OLD_CLASSES_QUERY from '@/graphql/gql/queries/oldClasses.gql';
|
||||
|
||||
import updateSelectedClassMixin from '@/mixins/update-selected-class';
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
import RoomsIllustration from '@/components/illustrations/RoomsIllustration';
|
||||
|
||||
import UPDATE_ONBOARDING_PROGRESS from '@/graphql/gql/mutations/updateOnboardingProgress.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
// todo: refactor this, we don't need 2 components, remove editRoom or EditRoom component
|
||||
import EditProject from '@/components/portfolio/EditProject';
|
||||
|
||||
import PROJECT_QUERY from '@/graphql/gql/projectQuery.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';
|
||||
|
||||
export default {
|
||||
props: ['id'],
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
import ProjectForm from '@/components/portfolio/ProjectForm';
|
||||
|
||||
import ADD_PROJECT_MUTATION from '@/graphql/gql/mutations/addProject.gql';
|
||||
import PROJECTS_QUERY from '@/graphql/gql/allProjects.gql';
|
||||
import PROJECTS_QUERY from '@/graphql/gql/queries/allProjects.gql';
|
||||
|
||||
const defaultAppearance = 'blue';
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
import ProjectWidget from '@/components/portfolio/ProjectWidget';
|
||||
import AddProject from '@/components/portfolio/AddProject';
|
||||
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import PROJECTS_QUERY from '@/graphql/gql/allProjects.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
import PROJECTS_QUERY from '@/graphql/gql/queries/allProjects.gql';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@
|
|||
import EntryCountWidget from '@/components/rooms/EntryCountWidget';
|
||||
import OwnerWidget from '@/components/portfolio/OwnerWidget';
|
||||
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/projectQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';
|
||||
|
||||
export default {
|
||||
props: ['slug'],
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/roomEntriesQuery.gql';
|
||||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/queries/roomEntriesQuery.gql';
|
||||
import roomMixin from '@/mixins/room';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ROOMS_QUERY from '@/graphql/gql/roomsQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ROOMS_QUERY from '@/graphql/gql/queries/roomsQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
|
||||
import RoomWidget from '@/components/rooms/RoomWidget.vue';
|
||||
import AddRoom from '@/components/rooms/AddRoom.vue';
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
<template>
|
||||
<div>
|
||||
Hello
|
||||
{{ id }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import SNAPSHOT_DETAIL_QUERY from 'gql/queries/snapshots/details.gql';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
id: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
|
||||
apollo: {
|
||||
snapshot: SNAPSHOT_DETAIL_QUERY,
|
||||
},
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '~styles/helpers';
|
||||
|
||||
</style>
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
<script>
|
||||
import SnapshotListItem from '@/components/modules/SnapshotListItem';
|
||||
|
||||
import MODULE_SNAPSHOTS_QUERY from '@/graphql/gql/moduleSnapshots.gql';
|
||||
import MODULE_SNAPSHOTS_QUERY from '@/graphql/gql/queries/moduleSnapshots.gql';
|
||||
|
||||
const defaultModule = {topic: {}, snapshots: []};
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
import cloneDeep from 'lodash/cloneDeep';
|
||||
|
||||
import StudentSubmissionDocument from '@/components/StudentSubmissionDocument';
|
||||
import STUDENT_SUBMISSIONS_QUERY from '@/graphql/gql/studentSubmissionQuery.gql';
|
||||
import STUDENT_SUBMISSIONS_QUERY from '@/graphql/gql/queries/studentSubmissionQuery.gql';
|
||||
import UPDATE_FEEDBACK_MUTATION from '@/graphql/gql/mutations/updateFeedback.gql';
|
||||
import UPDATE_FEEDBACK_WITH_TEXT_MUTATION from '@/graphql/gql/mutations/updateFeedbackWithText.gql';
|
||||
import SubmissionForm from '@/components/content-blocks/assignment/SubmissionForm';
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<script>
|
||||
import AssignmentWithSubmissions from '@/components/AssignmentWithSubmissions';
|
||||
import ASSIGNMENT_WITH_SUBMISSIONS_QUERY from '@/graphql/gql/assignmentWithSubmissionsQuery.gql';
|
||||
import ASSIGNMENT_WITH_SUBMISSIONS_QUERY from '@/graphql/gql/queries/assignmentWithSubmissionsQuery.gql';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
import * as SurveyVue from 'survey-vue';
|
||||
import {css} from '@/survey.config';
|
||||
|
||||
import SURVEY_QUERY from '@/graphql/gql/surveyQuery.gql';
|
||||
import MODULE_QUERY from '@/graphql/gql/moduleByIdQuery.gql';
|
||||
import SURVEY_QUERY from '@/graphql/gql/queries/surveyQuery.gql';
|
||||
import MODULE_QUERY from '@/graphql/gql/queries/moduleByIdQuery.gql';
|
||||
import UPDATE_ANSWER from '@/graphql/gql/mutations/updateAnswer.gql';
|
||||
import Solution from '@/components/content-blocks/Solution';
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,77 @@
|
|||
<template>
|
||||
<div>
|
||||
<button @click="makeQuery">Normal Query</button>
|
||||
<pre>
|
||||
{{ module }}
|
||||
</pre>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import gql from 'graphql-tag';
|
||||
// import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
||||
// import MODULE_PARTS from '@/graphql/gql/fragments/moduleParts.gql';
|
||||
|
||||
const moduleParts = gql`
|
||||
fragment ModuleParts on ModuleNode {
|
||||
id
|
||||
title
|
||||
}
|
||||
|
||||
`;
|
||||
|
||||
const moduleQuery = gql`
|
||||
${moduleParts}
|
||||
query ModuleQuery {
|
||||
module(slug: "lohn-und-budget") {
|
||||
...ModuleParts
|
||||
}
|
||||
}
|
||||
|
||||
`;
|
||||
|
||||
const moduleAndObjectivesQuery = gql`
|
||||
${moduleParts}
|
||||
query ModuleQuery {
|
||||
module(slug: "lohn-und-budget") {
|
||||
...ModuleParts
|
||||
objectiveGroups {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
`;
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
objectiveGroups: {},
|
||||
module: {},
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
makeQuery() {
|
||||
console.log('click');
|
||||
this.$apollo.query({query: moduleQuery});
|
||||
},
|
||||
},
|
||||
|
||||
apollo: {
|
||||
// me: ME_QUERY
|
||||
// objectiveGroups: gql,
|
||||
module: moduleAndObjectivesQuery,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '~styles/helpers';
|
||||
|
||||
</style>
|
||||
|
|
@ -43,12 +43,12 @@
|
|||
import ModuleTeaser from '@/components/modules/ModuleTeaser.vue';
|
||||
import PlayIcon from '@/components/icons/Play';
|
||||
import BulbIcon from '@/components/icons/BulbIcon';
|
||||
import TOPIC_QUERY from '@/graphql/gql/topicQuery.gql';
|
||||
import TOPIC_QUERY from '@/graphql/gql/queries/topicQuery.gql';
|
||||
import me from '@/mixins/me';
|
||||
import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation';
|
||||
|
||||
import UPDATE_LAST_TOPIC_MUTATION from '@/graphql/gql/mutations/updateLastTopic.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||
|
||||
export default {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue