From 55c4ec5ee188bd137e8ac85931d3ea9687b46475 Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Sun, 10 Jan 2021 23:48:50 +0100 Subject: [PATCH] Change /federated path to a more suited path /meet --- src/intl/en-US.js | 2 +- src/routes/_components/NavShortcuts.html | 2 +- .../_pages/{federated.html => meet.html} | 0 src/routes/_pages/search.html | 2 +- .../_store/computations/navComputations.js | 47 +------------------ .../_store/observers/timelineObservers.js | 2 +- src/routes/{federated.html => meet.html} | 2 +- static/fedilove-no-react.js | 8 ++-- 8 files changed, 10 insertions(+), 55 deletions(-) rename src/routes/_pages/{federated.html => meet.html} (100%) rename src/routes/{federated.html => meet.html} (85%) diff --git a/src/intl/en-US.js b/src/intl/en-US.js index 47ec4800..fa62047d 100644 --- a/src/intl/en-US.js +++ b/src/intl/en-US.js @@ -10,7 +10,7 @@ export default {

Start your journey to meet your crush !!

`, - logIn: 'Log in ', + logIn: 'Log in mastodon login', logInText: 'Log In', footer: `

diff --git a/src/routes/_components/NavShortcuts.html b/src/routes/_components/NavShortcuts.html index b2192f72..940d34a6 100644 --- a/src/routes/_components/NavShortcuts.html +++ b/src/routes/_components/NavShortcuts.html @@ -1,4 +1,4 @@ - + diff --git a/src/routes/_pages/federated.html b/src/routes/_pages/meet.html similarity index 100% rename from src/routes/_pages/federated.html rename to src/routes/_pages/meet.html diff --git a/src/routes/_pages/search.html b/src/routes/_pages/search.html index cbce0cda..74f0a8b2 100644 --- a/src/routes/_pages/search.html +++ b/src/routes/_pages/search.html @@ -14,7 +14,7 @@ - {intl.federated} + {intl.federated} {intl.favorites} {intl.directMessages} {intl.bookmarks} diff --git a/src/routes/_store/computations/navComputations.js b/src/routes/_store/computations/navComputations.js index ca230ec3..2ced5ab3 100644 --- a/src/routes/_store/computations/navComputations.js +++ b/src/routes/_store/computations/navComputations.js @@ -20,55 +20,10 @@ export function navComputations (store) { 'navPages', ['pinnedPage', 'pinnedListTitle'], (pinnedPage, pinnedListTitle) => { - let pinnedPageObject - if (pinnedPage === '/federated') { - pinnedPageObject = { - name: 'federated', - href: '/federated', - svg: '#fa-globe', - label: 'intl.federated' - } - } else if (pinnedPage === '/direct') { - pinnedPageObject = { - name: 'direct', - href: '/direct', - svg: '#fa-envelope', - label: 'intl.directMessages' - } - } else if (pinnedPage === '/favorites') { - pinnedPageObject = { - name: 'favorites', - href: '/favorites', - svg: '#fa-star', - label: 'intl.favorites' - } - } else if (pinnedPage === '/bookmarks') { - pinnedPageObject = { - name: 'bookmarks', - href: '/bookmarks', - svg: '#fa-bookmark', - label: 'intl.bookmarks' - } - } else if (pinnedPage.startsWith('/lists/')) { - pinnedPageObject = { - name: `lists/${pinnedPage.split('/').slice(-1)[0]}`, - href: pinnedPage, - svg: '#fa-bars', - label: pinnedListTitle - } - } else { // local - pinnedPageObject = { - name: 'federated', - href: '/federated', - svg: '#fa-users', - label: 'intl.meet' - } - } - return [ { name: 'federated', - href: '/federated', + href: '/meet', svg: '#pinafore-logo', label: 'intl.meet' }, diff --git a/src/routes/_store/observers/timelineObservers.js b/src/routes/_store/observers/timelineObservers.js index 21ca9f92..92a90a7f 100644 --- a/src/routes/_store/observers/timelineObservers.js +++ b/src/routes/_store/observers/timelineObservers.js @@ -3,7 +3,7 @@ import { createStream } from '../../_actions/stream/streaming' import { store } from '../store' export function timelineObservers () { - // stream to watch for local/federated/etc. updates. home and notification + // stream to watch for local/meet/etc. updates. home and notification // updates are handled in timelineObservers.js let currentTimelineStream diff --git a/src/routes/federated.html b/src/routes/meet.html similarity index 85% rename from src/routes/federated.html rename to src/routes/meet.html index b9fe2d57..6ba5b0e1 100644 --- a/src/routes/federated.html +++ b/src/routes/meet.html @@ -5,7 +5,7 @@