From 64fdde52f6d20f5615a34b114b638851a84ae918 Mon Sep 17 00:00:00 2001 From: floatingghost Date: Wed, 17 Aug 2022 08:41:36 +0000 Subject: [PATCH] timeline panel nav (#131) Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/131 --- package.json | 2 +- src/components/desktop_nav/desktop_nav.vue | 23 ++-- .../moderation_tools/moderation_tools.vue | 5 +- .../settings_modal/tabs/general_tab.vue | 8 ++ src/components/timeline/timeline.js | 5 + src/components/timeline/timeline.vue | 6 +- .../timeline_menu_content.js | 30 +++++ .../timeline_menu_content.vue | 114 ++++++++++++++++++ .../timeline_menu_tabs/timeline_menu_tabs.js | 61 ++++++++++ .../timeline_menu_tabs/timeline_menu_tabs.vue | 96 +++++++++++++++ src/components/user_card/user_card.js | 1 + src/components/user_card/user_card.vue | 2 +- src/i18n/en.json | 1 + src/modules/config.js | 1 + yarn.lock | 15 ++- 15 files changed, 349 insertions(+), 21 deletions(-) create mode 100644 src/components/timeline_menu_tabs/timeline_menu_content.js create mode 100644 src/components/timeline_menu_tabs/timeline_menu_content.vue create mode 100644 src/components/timeline_menu_tabs/timeline_menu_tabs.js create mode 100644 src/components/timeline_menu_tabs/timeline_menu_tabs.vue diff --git a/package.json b/package.json index 1445f12c..dcde025a 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@babel/runtime": "7.17.8", "@chenfengyuan/vue-qrcode": "2.0.0", "@fortawesome/fontawesome-svg-core": "1.3.0", - "@fortawesome/free-regular-svg-icons": "5.15.4", + "@fortawesome/free-regular-svg-icons": "^6.1.2", "@fortawesome/free-solid-svg-icons": "5.15.4", "@fortawesome/vue-fontawesome": "3.0.1", "@kazvmoe-infra/pinch-zoom-element": "1.2.0", diff --git a/src/components/desktop_nav/desktop_nav.vue b/src/components/desktop_nav/desktop_nav.vue index 32b90749..25b4fe8e 100644 --- a/src/components/desktop_nav/desktop_nav.vue +++ b/src/components/desktop_nav/desktop_nav.vue @@ -54,17 +54,6 @@ :title="$t('nav.public_tl')" /> - - - + + + @@ -167,6 +167,7 @@ .moderation-tools-popover { height: 100%; + z-index: 999; .trigger { display: flex !important; height: 100%; diff --git a/src/components/settings_modal/tabs/general_tab.vue b/src/components/settings_modal/tabs/general_tab.vue index 2c6ff5cd..4f5a5bc7 100644 --- a/src/components/settings_modal/tabs/general_tab.vue +++ b/src/components/settings_modal/tabs/general_tab.vue @@ -49,6 +49,14 @@ {{ $t('settings.show_nav_shortcuts') }} +
  • + + {{ $t('settings.show_panel_nav_shortcuts') }} + +
  • - + +
    diff --git a/src/i18n/en.json b/src/i18n/en.json index 853f5917..84e4a185 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -616,6 +616,7 @@ "show_admin_badge": "Show \"Admin\" badge in my profile", "show_moderator_badge": "Show \"Moderator\" badge in my profile", "show_nav_shortcuts": "Show extra navigation shortcuts in top panel", + "show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel", "show_scrollbars": "Show side column's scrollbars", "show_wider_shortcuts": "Show wider gap between top panel shortcuts", "show_yous": "Show (You)s", diff --git a/src/modules/config.js b/src/modules/config.js index 501d5dfe..5b60520b 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -37,6 +37,7 @@ export const defaultState = { collapseMessageWithSubject: undefined, // instance default padEmoji: true, showNavShortcuts: undefined, // instance default + showPanelNavShortcuts: undefined, // instance default showWiderShortcuts: undefined, // instance default hideSiteFavicon: undefined, // instance default hideSiteName: undefined, // instance default diff --git a/yarn.lock b/yarn.lock index a761ad0d..5961b770 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1085,6 +1085,11 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@fortawesome/fontawesome-common-types@6.1.2": + version "6.1.2" + resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.1.2.tgz#c1095b1bbabf19f37f9ff0719db38d92a410bcfe" + integrity sha512-wBaAPGz1Awxg05e0PBRkDRuTsy4B3dpBm+zreTTyd9TH4uUM27cAL4xWyWR0rLJCrRwzVsQ4hF3FvM6rqydKPA== + "@fortawesome/fontawesome-common-types@^0.2.36": version "0.2.36" resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz#b44e52db3b6b20523e0c57ef8c42d315532cb903" @@ -1102,12 +1107,12 @@ dependencies: "@fortawesome/fontawesome-common-types" "^0.3.0" -"@fortawesome/free-regular-svg-icons@5.15.4": - version "5.15.4" - resolved "https://registry.yarnpkg.com/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-5.15.4.tgz#b97edab436954333bbeac09cfc40c6a951081a02" - integrity sha512-9VNNnU3CXHy9XednJ3wzQp6SwNwT3XaM26oS4Rp391GsxVYA+0oDR2J194YCIWf7jNRCYKjUCOduxdceLrx+xw== +"@fortawesome/free-regular-svg-icons@^6.1.2": + version "6.1.2" + resolved "https://registry.yarnpkg.com/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.1.2.tgz#9f04009098addcc11d0d185126f058ed042c3099" + integrity sha512-xR4hA+tAwsaTHGfb+25H1gVU/aJ0Rzu+xIUfnyrhaL13yNQ7TWiI2RvzniAaB+VGHDU2a+Pk96Ve+pkN3/+TTQ== dependencies: - "@fortawesome/fontawesome-common-types" "^0.2.36" + "@fortawesome/fontawesome-common-types" "6.1.2" "@fortawesome/free-solid-svg-icons@5.15.4": version "5.15.4"