From f71519ecae643b3a09d91f29a15c0ceaddc1f70d Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Mon, 4 Jan 2021 01:49:17 +0000 Subject: [PATCH] Rename Upload component --- src/components/{Upload.vue => FileSelect.vue} | 0 src/main.js | 9 +++++---- src/views/Host.vue | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) rename src/components/{Upload.vue => FileSelect.vue} (100%) diff --git a/src/components/Upload.vue b/src/components/FileSelect.vue similarity index 100% rename from src/components/Upload.vue rename to src/components/FileSelect.vue diff --git a/src/main.js b/src/main.js index 53f1dba..0b00345 100644 --- a/src/main.js +++ b/src/main.js @@ -3,13 +3,12 @@ import App from './App.vue' import Router from './router' // Import global components. -import Upload from './components/Upload.vue' +import FileSelect from '@/components/FileSelect.vue' // Import PrimeVue dependencies. import PrimeVue from 'primevue/config' import Button from 'primevue/button' import Card from 'primevue/card' -import FileUpload from 'primevue/fileupload' import InputText from 'primevue/inputtext' import MenuBar from 'primevue/menubar' import Toast from 'primevue/toast' @@ -25,13 +24,15 @@ app.use(Router) app.use(PrimeVue) app.use(ToastService) +// Register PrimeVue components. app.component('Button', Button) app.component('Card', Card) -app.component('FileUpload', FileUpload) app.component('InputText', InputText) app.component('MenuBar', MenuBar) -app.component('Upload', Upload) app.component('Toast', Toast) +// Register VCinemaApp components. +app.component('FileSelect', FileSelect) + // Render to DOM. app.mount('#app') diff --git a/src/views/Host.vue b/src/views/Host.vue index 45ab4aa..87d59be 100644 --- a/src/views/Host.vue +++ b/src/views/Host.vue @@ -1,7 +1,7 @@