From 44704fa4e016f5ba63d39fcad133f97890953a34 Mon Sep 17 00:00:00 2001 From: Aleksey Razbakov Date: Tue, 1 Feb 2022 10:50:29 +0100 Subject: [PATCH] feat: event: edit list of profiles (#89) * feat: TInputProfile * event: org, artists and reservation flow --- components/TButton.vue | 3 +- components/TCommentsInline.vue | 6 +- components/TDropdown.vue | 4 +- components/TDropdownSeparator.vue | 14 +++ components/TInput/TInputArray.vue | 51 ++++++++ components/TInput/TInputProfile.vue | 186 ++++++++++++++++++++++++++++ components/TItemCreator.vue | 6 +- components/TProfile.vue | 2 +- components/TProfileContacts.vue | 20 +-- components/global/WProfile.vue | 82 +++++++++--- layouts/default.vue | 8 +- locales/en.yml | 19 ++- pages/demo/team.vue | 55 ++++++++ pages/events/_id/edit.vue | 18 ++- pages/events/_id/index.vue | 38 ++++-- use/events.js | 72 ++++++++--- use/posts.js | 12 -- 17 files changed, 505 insertions(+), 91 deletions(-) create mode 100644 components/TDropdownSeparator.vue create mode 100644 components/TInput/TInputArray.vue create mode 100644 components/TInput/TInputProfile.vue create mode 100644 pages/demo/team.vue diff --git a/components/TButton.vue b/components/TButton.vue index 8d883c4e..8493bbe8 100644 --- a/components/TButton.vue +++ b/components/TButton.vue @@ -127,7 +127,8 @@ export default { 'bg-transparent text-primary font-semibold py-2 px-4 border border-primary rounded-full no-underline hover:bg-primary hover:text-white hover:border-transparent', link: 'underline font-semibold hover:no-underline', context: - 'text-left w-full px-4 py-2 text-gray-800 hover:bg-indigo-500 hover:text-white', + 'text-left w-full px-4 py-2 hover:bg-indigo-500 hover:text-white', + 'context-active': 'text-left w-full px-4 py-2 bg-indigo-500 text-white', nav: 'p-2 font-semibold items-center flex rounded-full hover:bg-red-100 hover:text-primary', void: '', diff --git a/components/TCommentsInline.vue b/components/TCommentsInline.vue index 0894d12f..40b80887 100644 --- a/components/TCommentsInline.vue +++ b/components/TCommentsInline.vue @@ -33,11 +33,15 @@ export default { type: Object, default: () => ({}), }, + autoload: { + type: Boolean, + default: false, + }, }, setup(props) { const { username } = useAuth() const newReply = ref('') - const showComments = ref(false) + const showComments = ref(props.autoload) const { softUpdate } = useDoc('posts') const { create } = useDoc('comments') diff --git a/components/TDropdown.vue b/components/TDropdown.vue index 4af5194c..d08c4ef1 100644 --- a/components/TDropdown.vue +++ b/components/TDropdown.vue @@ -3,9 +3,9 @@ - diff --git a/components/TProfile.vue b/components/TProfile.vue index 47be98e8..ef4b6679 100644 --- a/components/TProfile.vue +++ b/components/TProfile.vue @@ -134,7 +134,7 @@ - +
diff --git a/components/TProfileContacts.vue b/components/TProfileContacts.vue index cea1a49e..f951bf29 100644 --- a/components/TProfileContacts.vue +++ b/components/TProfileContacts.vue @@ -1,25 +1,23 @@