⚗ Lazy component import
This commit is contained in:
@@ -35,14 +35,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import modal from "../../components/modal";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean
|
show: Boolean
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
modal
|
modal: () => import("../../components/modal")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -35,8 +35,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import modal from "../../components/modal";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
@@ -44,7 +42,7 @@ export default {
|
|||||||
collectionIndex: Number
|
collectionIndex: Number
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
modal
|
modal: () => import("../../components/modal")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -129,13 +129,10 @@ ul li {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import folder from "./folder";
|
|
||||||
import request from "./request";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
folder,
|
folder: () => import("./folder"),
|
||||||
request
|
request: () => import("./request")
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
collectionIndex: Number,
|
collectionIndex: Number,
|
||||||
|
|||||||
@@ -40,8 +40,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import modal from "../../components/modal";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
@@ -49,7 +47,7 @@ export default {
|
|||||||
editingCollectionIndex: Number
|
editingCollectionIndex: Number
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
modal
|
modal: () => import("../../components/modal")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -40,8 +40,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import modal from "../../components/modal";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
@@ -51,7 +49,7 @@ export default {
|
|||||||
folderIndex: Number
|
folderIndex: Number
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
modal
|
modal: () => import("../../components/modal")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -72,8 +72,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import modal from "../../components/modal";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
@@ -83,7 +81,7 @@ export default {
|
|||||||
requestIndex: Number
|
requestIndex: Number
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
modal
|
modal: () => import("../../components/modal")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -88,8 +88,6 @@ ul li {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import request from "./request";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
folder: Object,
|
folder: Object,
|
||||||
@@ -97,7 +95,7 @@ export default {
|
|||||||
folderIndex: Number
|
folderIndex: Number
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
request
|
request: () => import("./request")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -63,14 +63,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import modal from "../../components/modal";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean
|
show: Boolean
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
modal
|
modal: () => import("../../components/modal")
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
collectionJson() {
|
collectionJson() {
|
||||||
|
|||||||
@@ -92,23 +92,15 @@ ul {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import addCollection from "./addCollection";
|
|
||||||
import addFolder from "./addFolder";
|
|
||||||
import collection from "./collection";
|
|
||||||
import editCollection from "./editCollection";
|
|
||||||
import editFolder from "./editFolder";
|
|
||||||
import editRequest from "./editRequest";
|
|
||||||
import importExportCollections from "./importExportCollections";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
addCollection,
|
addCollection: () => import("./addCollection"),
|
||||||
addFolder,
|
addFolder: () => import("./addFolder"),
|
||||||
collection,
|
collection: () => import("./collection"),
|
||||||
editCollection,
|
editCollection: () => import("./editCollection"),
|
||||||
editFolder,
|
editFolder: () => import("./editFolder"),
|
||||||
editRequest,
|
editRequest: () => import("./editRequest"),
|
||||||
importExportCollections
|
importExportCollections: () => import("./importExportCollections")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -93,15 +93,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import modal from "../../components/modal";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
editingRequest: Object
|
editingRequest: Object
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
modal
|
modal: () => import("../../components/modal")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -318,16 +318,14 @@ label {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import VirtualList from "vue-virtual-scroll-list";
|
|
||||||
import section from "./section";
|
|
||||||
import { findStatusGroup } from "../pages/index";
|
import { findStatusGroup } from "../pages/index";
|
||||||
|
|
||||||
const updateOnLocalStorage = (propertyName, property) =>
|
const updateOnLocalStorage = (propertyName, property) =>
|
||||||
window.localStorage.setItem(propertyName, JSON.stringify(property));
|
window.localStorage.setItem(propertyName, JSON.stringify(property));
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
"pw-section": section,
|
"pw-section": () => import("./section"),
|
||||||
VirtualList
|
VirtualList: () => import("vue-virtual-scroll-list")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const localStorageHistory = JSON.parse(
|
const localStorageHistory = JSON.parse(
|
||||||
|
|||||||
@@ -267,14 +267,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import intializePwa from "../assets/js/pwa";
|
import intializePwa from "../assets/js/pwa";
|
||||||
import logo from "../components/logo";
|
|
||||||
import * as version from "../.postwoman/version.json";
|
import * as version from "../.postwoman/version.json";
|
||||||
import modal from "../components/modal";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
logo,
|
logo: () => import("../components/logo"),
|
||||||
modal
|
modal: () => import("../components/modal")
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -747,18 +747,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import section from "../components/section";
|
||||||
import url from "url";
|
import url from "url";
|
||||||
import querystring from "querystring";
|
import querystring from "querystring";
|
||||||
import autocomplete from "../components/autocomplete";
|
|
||||||
import history from "../components/history";
|
|
||||||
import section from "../components/section";
|
|
||||||
import textareaAutoHeight from "../directives/textareaAutoHeight";
|
import textareaAutoHeight from "../directives/textareaAutoHeight";
|
||||||
import toggle from "../components/toggle";
|
|
||||||
import modal from "../components/modal";
|
|
||||||
import collections from "../components/collections";
|
|
||||||
import saveRequestAs from "../components/collections/saveRequestAs";
|
|
||||||
import parseCurlCommand from "../assets/js/curlparser.js";
|
import parseCurlCommand from "../assets/js/curlparser.js";
|
||||||
import AceEditor from "../components/ace-editor";
|
|
||||||
import getEnvironmentVariablesFromScript from "../functions/preRequest";
|
import getEnvironmentVariablesFromScript from "../functions/preRequest";
|
||||||
import parseTemplateString from "../functions/templating";
|
import parseTemplateString from "../functions/templating";
|
||||||
|
|
||||||
@@ -819,13 +812,13 @@ export default {
|
|||||||
|
|
||||||
components: {
|
components: {
|
||||||
"pw-section": section,
|
"pw-section": section,
|
||||||
"pw-toggle": toggle,
|
"pw-toggle": () => import("../components/toggle"),
|
||||||
"pw-modal": modal,
|
"pw-modal": () => import("../components/modal"),
|
||||||
history,
|
history: () => import("../components/history"),
|
||||||
autocomplete,
|
autocomplete: () => import("../components/autocomplete"),
|
||||||
collections,
|
collections: () => import("../components/collections"),
|
||||||
saveRequestAs,
|
saveRequestAs: () => import("../components/collections/saveRequestAs"),
|
||||||
ResponseBody: AceEditor
|
ResponseBody: () => import("../components/ace-editor")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user