From 0a612ae0e7b2736bac6075a2bbc81c910c69cdb4 Mon Sep 17 00:00:00 2001 From: Preston Date: Sun, 23 Aug 2020 22:56:33 -0400 Subject: [PATCH] Create Profile Edit Page --- src/renderer/components/ft-input/ft-input.js | 9 ++ src/renderer/components/ft-input/ft-input.vue | 1 + .../ft-profile-bubble/ft-profile-bubble.css | 41 ++++++++ .../ft-profile-bubble/ft-profile-bubble.js | 35 +++++++ .../ft-profile-bubble/ft-profile-bubble.vue | 21 +++++ .../watch-video-info/watch-video-info.vue | 1 + src/renderer/router/index.js | 2 + src/renderer/store/modules/profile.js | 31 +++++-- src/renderer/store/modules/settings.js | 26 ++++-- src/renderer/store/modules/utils.js | 4 + .../views/ProfileEdit/ProfileEdit.css | 24 +++++ src/renderer/views/ProfileEdit/ProfileEdit.js | 81 +++++++++++++++- .../views/ProfileEdit/ProfileEdit.vue | 93 +++++++++++++++++-- .../views/ProfileSettings/ProfileSettings.js | 10 +- .../views/ProfileSettings/ProfileSettings.vue | 11 ++- static/locales/en-US.yaml | 11 +++ 16 files changed, 370 insertions(+), 31 deletions(-) create mode 100644 src/renderer/components/ft-profile-bubble/ft-profile-bubble.css create mode 100644 src/renderer/components/ft-profile-bubble/ft-profile-bubble.js create mode 100644 src/renderer/components/ft-profile-bubble/ft-profile-bubble.vue diff --git a/src/renderer/components/ft-input/ft-input.js b/src/renderer/components/ft-input/ft-input.js index 11007b3d..9d246ac3 100644 --- a/src/renderer/components/ft-input/ft-input.js +++ b/src/renderer/components/ft-input/ft-input.js @@ -23,6 +23,10 @@ export default Vue.extend({ type: Boolean, default: false }, + disabled: { + type: Boolean, + default: false + }, dataList: { type: Array, default: () => { return [] } @@ -47,6 +51,11 @@ export default Vue.extend({ return `${this.id}_datalist` } }, + watch: { + value: function (val) { + this.inputData = val + } + }, mounted: function () { this.id = this._uid this.inputData = this.value diff --git a/src/renderer/components/ft-input/ft-input.vue b/src/renderer/components/ft-input/ft-input.vue index 1250301d..3707889e 100644 --- a/src/renderer/components/ft-input/ft-input.vue +++ b/src/renderer/components/ft-input/ft-input.vue @@ -20,6 +20,7 @@ type="text" :placeholder="placeholder" @input="e => handleInput(e.target.value)" + :disabled="disabled" > +
+
+

+ {{ profileInitial }} +

+
+
+ {{ profileName }} +
+
+ + +