fix: broken component import in prod

This commit is contained in:
liyasthomas
2021-08-24 09:14:46 +05:30
parent f20fed444a
commit 12c28f4efc
75 changed files with 254 additions and 153 deletions

View File

@@ -32,10 +32,10 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import { addGraphqlCollection } from "~/newstore/collections"
export default Vue.extend({
export default defineComponent({
props: {
show: Boolean,
},

View File

@@ -33,9 +33,9 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
export default Vue.extend({
export default defineComponent({
props: {
show: Boolean,
folderPath: { type: String, default: null },

View File

@@ -153,13 +153,13 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import {
removeGraphqlCollection,
moveGraphqlRequest,
} from "~/newstore/collections"
export default Vue.extend({
export default defineComponent({
props: {
picked: { type: Object, default: null },
// Whether the viewing context is related to picking (activates 'select' events)

View File

@@ -32,10 +32,10 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import { editGraphqlCollection } from "~/newstore/collections"
export default Vue.extend({
export default defineComponent({
props: {
show: Boolean,
editingCollection: { type: Object, default: () => {} },
@@ -55,7 +55,7 @@ export default Vue.extend({
return
}
const collectionUpdated = {
...this.$props.editingCollection,
...(this.editingCollection as any),
name: this.name,
}

View File

@@ -33,10 +33,10 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import { editGraphqlFolder } from "~/newstore/collections"
export default Vue.extend({
export default defineComponent({
props: {
show: Boolean,
folder: { type: Object, default: () => {} },
@@ -44,7 +44,7 @@ export default Vue.extend({
},
data() {
return {
name: null,
name: "",
}
},
methods: {
@@ -55,11 +55,14 @@ export default Vue.extend({
})
return
}
editGraphqlFolder(this.folderPath, { ...this.folder, name: this.name })
editGraphqlFolder(this.folderPath, {
...(this.folder as any),
name: this.name,
})
this.hideModal()
},
hideModal() {
this.name = null
this.name = ""
this.$emit("hide-modal")
},
},

View File

@@ -29,10 +29,10 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import { editGraphqlRequest } from "~/newstore/collections"
export default Vue.extend({
export default defineComponent({
props: {
show: Boolean,
folderPath: { type: String, default: null },

View File

@@ -152,10 +152,10 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import { removeGraphqlFolder, moveGraphqlRequest } from "~/newstore/collections"
export default Vue.extend({
export default defineComponent({
name: "Folder",
props: {
picked: { type: Object, default: null },

View File

@@ -97,11 +97,11 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import { removeGraphqlRequest } from "~/newstore/collections"
import { setGQLSession } from "~/newstore/GQLSession"
export default Vue.extend({
export default defineComponent({
props: {
// Whether the object is selected (show the tick mark)
picked: { type: Object, default: null },