refactor: removed component imports

In nuxt.config.ts, the option 'components' is set to true. Nuxt auto imports used components in
templates from the components/ directory.
This commit is contained in:
Thibault Nocchi 2020-09-05 14:44:47 +02:00
parent 8a1a45929d
commit 251ef0688c
3 changed files with 1 additions and 19 deletions

View File

@ -79,8 +79,6 @@
<script lang="ts">
import Vue from 'vue';
import { BaseItemDto } from '~/api/api';
import UserButton from '~/components/UserButton.vue';
import Snackbar from '~/components/Snackbar.vue';
import { getLibraryIcon } from '~/utils/items';
interface NavigationDrawerItem {
@ -90,10 +88,6 @@ interface NavigationDrawerItem {
}
export default Vue.extend({
components: {
UserButton,
Snackbar
},
data() {
return {
items: [

View File

@ -6,11 +6,3 @@
<snackbar />
</v-app>
</template>
<script lang="ts">
import Snackbar from '~/components/Snackbar.vue';
export default {
components: { Snackbar }
};
</script>

View File

@ -11,12 +11,8 @@
<script lang="ts">
import Vue from 'vue';
import LoginForm from '~/components/LoginForm.vue';
export default Vue.extend({
layout: 'fullpage',
components: {
LoginForm
}
layout: 'fullpage'
});
</script>