From 3c136c241fdeadd4b1c0130b90f4ff8a1fda601b Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Fri, 14 Feb 2020 09:05:33 +0200 Subject: [PATCH] make more components use new popover, fix some things --- src/App.js | 4 +- src/App.vue | 1 - .../account_actions/account_actions.js | 4 +- .../account_actions/account_actions.vue | 22 ++-- .../emoji_reactions/emoji_reactions.js | 4 +- .../emoji_reactions/emoji_reactions.vue | 11 +- .../extra_buttons/extra_buttons.vue | 9 +- src/components/popover/popover.js | 118 +++++++++++------- src/components/popover/popover.vue | 51 +++----- src/components/react_button/react_button.js | 23 ++-- src/components/react_button/react_button.vue | 20 +-- src/components/status/status.vue | 11 +- .../status_popover/status_popover.js | 10 +- .../status_popover/status_popover.vue | 29 +++-- src/main.js | 4 +- src/modules/popover.js | 31 ----- 16 files changed, 166 insertions(+), 186 deletions(-) delete mode 100644 src/modules/popover.js diff --git a/src/App.js b/src/App.js index 041e131a..61b5eec1 100644 --- a/src/App.js +++ b/src/App.js @@ -12,7 +12,6 @@ import MobilePostStatusButton from './components/mobile_post_status_button/mobil import MobileNav from './components/mobile_nav/mobile_nav.vue' import UserReportingModal from './components/user_reporting_modal/user_reporting_modal.vue' import PostStatusModal from './components/post_status_modal/post_status_modal.vue' -import PopoverTarget from './components/popover/popover_target.vue' import { windowWidth } from './services/window_utils/window_utils' export default { @@ -31,8 +30,7 @@ export default { MobilePostStatusButton, MobileNav, UserReportingModal, - PostStatusModal, - PopoverTarget + PostStatusModal }, data: () => ({ mobileActivePanel: 'timeline', diff --git a/src/App.vue b/src/App.vue index de15802f..1b1c2648 100644 --- a/src/App.vue +++ b/src/App.vue @@ -123,7 +123,6 @@ - diff --git a/src/components/account_actions/account_actions.js b/src/components/account_actions/account_actions.js index d2153680..5d7ecf7e 100644 --- a/src/components/account_actions/account_actions.js +++ b/src/components/account_actions/account_actions.js @@ -1,4 +1,5 @@ import ProgressButton from '../progress_button/progress_button.vue' +import Popover from '../popover/popover.vue' const AccountActions = { props: [ @@ -8,7 +9,8 @@ const AccountActions = { return { } }, components: { - ProgressButton + ProgressButton, + Popover }, methods: { showRepeats () { diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue index d3235be1..1fd00a1e 100644 --- a/src/components/account_actions/account_actions.vue +++ b/src/components/account_actions/account_actions.vue @@ -1,13 +1,13 @@