From 73fbbad0cc9b0aa92f19f4758de874aabc6f664d Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 20 Jan 2018 20:30:49 -0800 Subject: [PATCH] improve SSR hiding --- routes/_components/HiddenFromSSR.html | 13 ++++++++ routes/_components/NotLoggedInHome.html | 40 ++++++++++++------------- routes/federated.html | 14 +++++---- routes/local.html | 14 +++++---- routes/notifications.html | 14 +++++---- templates/2xx.html | 2 +- 6 files changed, 60 insertions(+), 37 deletions(-) create mode 100644 routes/_components/HiddenFromSSR.html diff --git a/routes/_components/HiddenFromSSR.html b/routes/_components/HiddenFromSSR.html new file mode 100644 index 0000000..ed75a9f --- /dev/null +++ b/routes/_components/HiddenFromSSR.html @@ -0,0 +1,13 @@ +
+ +
+ \ No newline at end of file diff --git a/routes/_components/NotLoggedInHome.html b/routes/_components/NotLoggedInHome.html index 075b906..f0026af 100644 --- a/routes/_components/NotLoggedInHome.html +++ b/routes/_components/NotLoggedInHome.html @@ -1,18 +1,20 @@ - -
- - + + \ No newline at end of file diff --git a/routes/federated.html b/routes/federated.html index fa54348..87bd820 100644 --- a/routes/federated.html +++ b/routes/federated.html @@ -6,11 +6,13 @@ {{#if $isUserLoggedIn}} {{else}} - -

Federated

+ + +

Federated

-

Your federated timeline will appear here when logged in.

-
+

Your federated timeline will appear here when logged in.

+
+ {{/if}} @@ -19,13 +21,15 @@ import LazyTimeline from './_components/LazyTimeline.html' import FreeTextLayout from './_components/FreeTextLayout.html' import { store } from './_utils/store.js' + import HiddenFromSSR from './_components/HiddenFromSSR' export default { store: () => store, components: { Layout, LazyTimeline, - FreeTextLayout + FreeTextLayout, + HiddenFromSSR } } \ No newline at end of file diff --git a/routes/local.html b/routes/local.html index 2adcf30..9893f35 100644 --- a/routes/local.html +++ b/routes/local.html @@ -6,11 +6,13 @@ {{#if $isUserLoggedIn}} {{else}} - -

Local

+ + +

Local

-

Your local timeline will appear here when logged in.

-
+

Your local timeline will appear here when logged in.

+
+ {{/if}} @@ -19,13 +21,15 @@ import LazyTimeline from './_components/LazyTimeline.html' import FreeTextLayout from './_components/FreeTextLayout.html' import { store } from './_utils/store.js' + import HiddenFromSSR from './_components/HiddenFromSSR' export default { store: () => store, components: { Layout, LazyTimeline, - FreeTextLayout + FreeTextLayout, + HiddenFromSSR } } \ No newline at end of file diff --git a/routes/notifications.html b/routes/notifications.html index 6a621e6..f6f978e 100644 --- a/routes/notifications.html +++ b/routes/notifications.html @@ -3,21 +3,25 @@ - -

Notifications

+ + +

Notifications

-

Your notifications will appear here when logged in.

-
+

Your notifications will appear here when logged in.

+
+
\ No newline at end of file diff --git a/templates/2xx.html b/templates/2xx.html index b0bf2b8..0048107 100644 --- a/templates/2xx.html +++ b/templates/2xx.html @@ -18,7 +18,7 @@ body.offline,body.theme-hotpants.offline,body.theme-majesty.offline,body.theme-o