From e0f3687b264ccbeda308e04326179488a73409f2 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 3 Jul 2017 17:15:47 +0100 Subject: [PATCH] Renaming of prompts --- _assets/src/components/Main.vue | 89 +++---------------- _assets/src/components/Sidebar.vue | 55 ++++++++++++ .../prompts/{DeletePrompt.vue => Delete.vue} | 2 +- .../{DownloadPrompt.vue => Download.vue} | 2 +- _assets/src/components/{ => prompts}/Help.vue | 0 .../prompts/{InfoPrompt.vue => Info.vue} | 2 +- .../prompts/{MovePrompt.vue => Move.vue} | 2 +- .../prompts/{NewDirPrompt.vue => NewDir.vue} | 2 +- .../{NewFilePrompt.vue => NewFile.vue} | 2 +- _assets/src/components/prompts/Prompts.vue | 59 ++++++++++++ .../prompts/{RenamePrompt.vue => Rename.vue} | 2 +- 11 files changed, 133 insertions(+), 84 deletions(-) create mode 100644 _assets/src/components/Sidebar.vue rename _assets/src/components/prompts/{DeletePrompt.vue => Delete.vue} (98%) rename _assets/src/components/prompts/{DownloadPrompt.vue => Download.vue} (97%) rename _assets/src/components/{ => prompts}/Help.vue (100%) rename _assets/src/components/prompts/{InfoPrompt.vue => Info.vue} (99%) rename _assets/src/components/prompts/{MovePrompt.vue => Move.vue} (99%) rename _assets/src/components/prompts/{NewDirPrompt.vue => NewDir.vue} (97%) rename _assets/src/components/prompts/{NewFilePrompt.vue => NewFile.vue} (97%) create mode 100644 _assets/src/components/prompts/Prompts.vue rename _assets/src/components/prompts/{RenamePrompt.vue => Rename.vue} (98%) diff --git a/_assets/src/components/Main.vue b/_assets/src/components/Main.vue index 2fb5e2ac..cabd27b0 100644 --- a/_assets/src/components/Main.vue +++ b/_assets/src/components/Main.vue @@ -21,51 +21,16 @@ - +
+
Loading...
- - - - - - - - -
+ @@ -73,26 +38,19 @@ diff --git a/_assets/src/components/Sidebar.vue b/_assets/src/components/Sidebar.vue new file mode 100644 index 00000000..748aad6d --- /dev/null +++ b/_assets/src/components/Sidebar.vue @@ -0,0 +1,55 @@ + + + diff --git a/_assets/src/components/prompts/DeletePrompt.vue b/_assets/src/components/prompts/Delete.vue similarity index 98% rename from _assets/src/components/prompts/DeletePrompt.vue rename to _assets/src/components/prompts/Delete.vue index 44397c59..80bf2f1d 100644 --- a/_assets/src/components/prompts/DeletePrompt.vue +++ b/_assets/src/components/prompts/Delete.vue @@ -16,7 +16,7 @@ import api from '@/utils/api' import url from '@/utils/url' export default { - name: 'delete-prompt', + name: 'delete', computed: { ...mapGetters(['selectedCount']), ...mapState(['req', 'selected']) diff --git a/_assets/src/components/prompts/DownloadPrompt.vue b/_assets/src/components/prompts/Download.vue similarity index 97% rename from _assets/src/components/prompts/DownloadPrompt.vue rename to _assets/src/components/prompts/Download.vue index 67021806..9523c0d6 100644 --- a/_assets/src/components/prompts/DownloadPrompt.vue +++ b/_assets/src/components/prompts/Download.vue @@ -14,7 +14,7 @@ import {mapGetters, mapState} from 'vuex' export default { - name: 'download-prompt', + name: 'download', computed: { ...mapState(['selected', 'req']), ...mapGetters(['selectedCount']) diff --git a/_assets/src/components/Help.vue b/_assets/src/components/prompts/Help.vue similarity index 100% rename from _assets/src/components/Help.vue rename to _assets/src/components/prompts/Help.vue diff --git a/_assets/src/components/prompts/InfoPrompt.vue b/_assets/src/components/prompts/Info.vue similarity index 99% rename from _assets/src/components/prompts/InfoPrompt.vue rename to _assets/src/components/prompts/Info.vue index 16b4d2c4..55631929 100644 --- a/_assets/src/components/prompts/InfoPrompt.vue +++ b/_assets/src/components/prompts/Info.vue @@ -33,7 +33,7 @@ import moment from 'moment' import api from '@/utils/api' export default { - name: 'info-prompt', + name: 'info', computed: { ...mapState(['req', 'selected']), ...mapGetters(['selectedCount']) diff --git a/_assets/src/components/prompts/MovePrompt.vue b/_assets/src/components/prompts/Move.vue similarity index 99% rename from _assets/src/components/prompts/MovePrompt.vue rename to _assets/src/components/prompts/Move.vue index 87179206..538cb52f 100644 --- a/_assets/src/components/prompts/MovePrompt.vue +++ b/_assets/src/components/prompts/Move.vue @@ -22,7 +22,7 @@ import url from '@/utils/url' import api from '@/utils/api' export default { - name: 'move-prompt', + name: 'move', data: function () { return { items: [], diff --git a/_assets/src/components/prompts/NewDirPrompt.vue b/_assets/src/components/prompts/NewDir.vue similarity index 97% rename from _assets/src/components/prompts/NewDirPrompt.vue rename to _assets/src/components/prompts/NewDir.vue index f6df8a01..1d19f373 100644 --- a/_assets/src/components/prompts/NewDirPrompt.vue +++ b/_assets/src/components/prompts/NewDir.vue @@ -15,7 +15,7 @@ import url from '@/utils/url' import api from '@/utils/api' export default { - name: 'new-dir-prompt', + name: 'new-dir', data: function () { return { name: '' diff --git a/_assets/src/components/prompts/NewFilePrompt.vue b/_assets/src/components/prompts/NewFile.vue similarity index 97% rename from _assets/src/components/prompts/NewFilePrompt.vue rename to _assets/src/components/prompts/NewFile.vue index a074c000..fa40e4e7 100644 --- a/_assets/src/components/prompts/NewFilePrompt.vue +++ b/_assets/src/components/prompts/NewFile.vue @@ -15,7 +15,7 @@ import url from '@/utils/url' import api from '@/utils/api' export default { - name: 'new-file-prompt', + name: 'new-file', data: function () { return { name: '' diff --git a/_assets/src/components/prompts/Prompts.vue b/_assets/src/components/prompts/Prompts.vue new file mode 100644 index 00000000..78a43308 --- /dev/null +++ b/_assets/src/components/prompts/Prompts.vue @@ -0,0 +1,59 @@ + + + diff --git a/_assets/src/components/prompts/RenamePrompt.vue b/_assets/src/components/prompts/Rename.vue similarity index 98% rename from _assets/src/components/prompts/RenamePrompt.vue rename to _assets/src/components/prompts/Rename.vue index a172873e..d2eca795 100644 --- a/_assets/src/components/prompts/RenamePrompt.vue +++ b/_assets/src/components/prompts/Rename.vue @@ -16,7 +16,7 @@ import url from '@/utils/url' import api from '@/utils/api' export default { - name: 'rename-prompt', + name: 'rename', data: function () { return { name: ''