web: reduce bundle size
This commit is contained in:
parent
3d6fa86518
commit
b5d1b87a72
@ -17,6 +17,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import BCollapse from 'bootstrap-vue/es/components/collapse/collapse';
|
||||||
|
import BNav from 'bootstrap-vue/es/components/nav/nav';
|
||||||
|
import BNavItem from 'bootstrap-vue/es/components/nav/nav-item';
|
||||||
|
import BNavbar from 'bootstrap-vue/es/components/navbar/navbar';
|
||||||
|
import BNavbarBrand from 'bootstrap-vue/es/components/navbar/navbar-brand';
|
||||||
|
import BNavbarNav from 'bootstrap-vue/es/components/navbar/navbar-nav';
|
||||||
|
import BNavbarToggle from 'bootstrap-vue/es/components/navbar/navbar-toggle';
|
||||||
|
|
||||||
import API from "./API";
|
import API from "./API";
|
||||||
import { AUTH_URI } from "./API";
|
import { AUTH_URI } from "./API";
|
||||||
|
|
||||||
@ -42,7 +50,8 @@ export default {
|
|||||||
authUri() {
|
authUri() {
|
||||||
return AUTH_URI;
|
return AUTH_URI;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
components: {BCollapse, BNav, BNavItem, BNavbar, BNavbarBrand, BNavbarNav, BNavbarToggle}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -55,7 +64,21 @@ $container-max-widths: (
|
|||||||
xl: 960px,
|
xl: 960px,
|
||||||
) !default;
|
) !default;
|
||||||
|
|
||||||
@import '~bootstrap/scss/bootstrap.scss';
|
|
||||||
|
@import '~bootstrap/scss/_functions';
|
||||||
|
@import '~bootstrap/scss/_variables';
|
||||||
|
@import '~bootstrap/scss/_mixins';
|
||||||
|
|
||||||
|
@import '~bootstrap/scss/_buttons';
|
||||||
|
@import '~bootstrap/scss/_code';
|
||||||
|
@import '~bootstrap/scss/_forms';
|
||||||
|
@import '~bootstrap/scss/_grid';
|
||||||
|
@import '~bootstrap/scss/_nav';
|
||||||
|
@import '~bootstrap/scss/_navbar';
|
||||||
|
@import '~bootstrap/scss/_reboot';
|
||||||
|
@import '~bootstrap/scss/_type';
|
||||||
|
@import '~bootstrap/scss/_utilities';
|
||||||
|
|
||||||
@import '~bootstrap-vue/src/index.scss';
|
@import '~bootstrap-vue/src/index.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -26,7 +26,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CalendarIcon, HashIcon, MessageCircleIcon } from "vue-feather-icons";
|
import CalendarIcon from "vue-feather-icons/icons/CalendarIcon";
|
||||||
|
import HashIcon from "vue-feather-icons/icons/HashIcon";
|
||||||
|
import MessageCircleIcon from "vue-feather-icons/icons/MessageCircleIcon";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ["member"],
|
props: ["member"],
|
||||||
|
@ -31,6 +31,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import BButton from 'bootstrap-vue/es/components/button/button';
|
||||||
|
import BContainer from 'bootstrap-vue/es/components/layout/container';
|
||||||
|
import BLink from 'bootstrap-vue/es/components/link/link';
|
||||||
|
import BSpinner from 'bootstrap-vue/es/components/spinner/spinner';
|
||||||
|
import BForm from 'bootstrap-vue/es/components/form/form';
|
||||||
|
import BFormInput from 'bootstrap-vue/es/components/form-input/form-input';
|
||||||
|
import BFormGroup from 'bootstrap-vue/es/components/form-group/form-group';
|
||||||
|
import BFormTextarea from 'bootstrap-vue/es/components/form-textarea/form-textarea';
|
||||||
|
|
||||||
import API from "./API";
|
import API from "./API";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -64,7 +73,8 @@ export default {
|
|||||||
}
|
}
|
||||||
this.saving = false;
|
this.saving = false;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
components: {BButton, BContainer, BLink, BSpinner, BForm, BFormGroup, BFormInput, BFormTextarea}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -36,9 +36,16 @@
|
|||||||
<script>
|
<script>
|
||||||
import API from "./API";
|
import API from "./API";
|
||||||
|
|
||||||
|
import BContainer from 'bootstrap-vue/es/components/layout/container';
|
||||||
|
import BLink from 'bootstrap-vue/es/components/link/link';
|
||||||
|
import BSpinner from 'bootstrap-vue/es/components/spinner/spinner';
|
||||||
|
|
||||||
import MemberCard from "./MemberCard.vue";
|
import MemberCard from "./MemberCard.vue";
|
||||||
|
|
||||||
import { Edit2Icon, ClockIcon, HashIcon, TagIcon } from "vue-feather-icons";
|
import Edit2Icon from "vue-feather-icons/icons/Edit2Icon";
|
||||||
|
import ClockIcon from "vue-feather-icons/icons/ClockIcon";
|
||||||
|
import HashIcon from "vue-feather-icons/icons/HashIcon";
|
||||||
|
import TagIcon from "vue-feather-icons/icons/TagIcon";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -79,7 +86,8 @@ export default {
|
|||||||
ClockIcon,
|
ClockIcon,
|
||||||
HashIcon,
|
HashIcon,
|
||||||
TagIcon,
|
TagIcon,
|
||||||
MemberCard
|
MemberCard,
|
||||||
|
BContainer, BLink, BSpinner
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
import VueRouter from "vue-router";
|
|
||||||
import BootstrapVue from "bootstrap-vue";
|
|
||||||
Vue.use(VueRouter);
|
|
||||||
Vue.use(BootstrapVue);
|
|
||||||
|
|
||||||
import App from "./App.vue";
|
import VueRouter from "vue-router";
|
||||||
import HomePage from "./HomePage.vue";
|
Vue.use(VueRouter);
|
||||||
import SystemPage from "./SystemPage.vue";
|
|
||||||
import SystemEditPage from "./SystemEditPage.vue";
|
const App = () => import("./App.vue");
|
||||||
import MemberEditPage from "./MemberEditPage.vue";
|
const HomePage = () => import("./HomePage.vue");
|
||||||
import OAuthRedirectPage from "./OAuthRedirectPage.vue";
|
const SystemPage = () => import("./SystemPage.vue");
|
||||||
|
const SystemEditPage = () => import("./SystemEditPage.vue");
|
||||||
|
const MemberEditPage = () => import("./MemberEditPage.vue");
|
||||||
|
const OAuthRedirectPage = () => import("./OAuthRedirectPage.vue");
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
mode: "history",
|
mode: "history",
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
"eventemitter3": "^3.1.0",
|
"eventemitter3": "^3.1.0",
|
||||||
"vue": "^2.6.10",
|
"vue": "^2.6.10",
|
||||||
"vue-feather-icons": "^4.10.0",
|
"vue-feather-icons": "^4.10.0",
|
||||||
"vue-hot-reload-api": "^2.3.3",
|
|
||||||
"vue-router": "^3.0.2"
|
"vue-router": "^3.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user