From 3c0d543ea19328746f696581c9da4330bde841a6 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 31 Mar 2018 16:51:18 -0700 Subject: [PATCH] refactor account profile --- routes/_components/AccountProfile.html | 318 ------------------ .../_components/profile/AccountProfile.html | 98 ++++++ .../profile/AccountProfileDetails.html | 63 ++++ .../profile/AccountProfileFollow.html | 72 ++++ .../profile/AccountProfileHeader.html | 84 +++++ .../profile/AccountProfileNote.html | 45 +++ routes/_pages/accounts/[accountId].html | 2 +- 7 files changed, 363 insertions(+), 319 deletions(-) delete mode 100644 routes/_components/AccountProfile.html create mode 100644 routes/_components/profile/AccountProfile.html create mode 100644 routes/_components/profile/AccountProfileDetails.html create mode 100644 routes/_components/profile/AccountProfileFollow.html create mode 100644 routes/_components/profile/AccountProfileHeader.html create mode 100644 routes/_components/profile/AccountProfileNote.html diff --git a/routes/_components/AccountProfile.html b/routes/_components/AccountProfile.html deleted file mode 100644 index 5da765e..0000000 --- a/routes/_components/AccountProfile.html +++ /dev/null @@ -1,318 +0,0 @@ -
- -
- - \ No newline at end of file diff --git a/routes/_components/profile/AccountProfile.html b/routes/_components/profile/AccountProfile.html new file mode 100644 index 0000000..bca468e --- /dev/null +++ b/routes/_components/profile/AccountProfile.html @@ -0,0 +1,98 @@ +
+ +
+ + \ No newline at end of file diff --git a/routes/_components/profile/AccountProfileDetails.html b/routes/_components/profile/AccountProfileDetails.html new file mode 100644 index 0000000..0fef84a --- /dev/null +++ b/routes/_components/profile/AccountProfileDetails.html @@ -0,0 +1,63 @@ +
+ + + +
+ \ No newline at end of file diff --git a/routes/_components/profile/AccountProfileFollow.html b/routes/_components/profile/AccountProfileFollow.html new file mode 100644 index 0000000..7188826 --- /dev/null +++ b/routes/_components/profile/AccountProfileFollow.html @@ -0,0 +1,72 @@ +
+ {{#if verifyCredentials && relationship && verifyCredentials.id !== relationship.id}} + + {{/if}} +
+ + \ No newline at end of file diff --git a/routes/_components/profile/AccountProfileHeader.html b/routes/_components/profile/AccountProfileHeader.html new file mode 100644 index 0000000..1375518 --- /dev/null +++ b/routes/_components/profile/AccountProfileHeader.html @@ -0,0 +1,84 @@ +
+ +
+
+ + {{account.display_name || account.acct}} + +
+
+ {{'@' + account.acct}} +
+
+ {{#if relationship && relationship.followed_by}} + + {{/if}} +
+ + \ No newline at end of file diff --git a/routes/_components/profile/AccountProfileNote.html b/routes/_components/profile/AccountProfileNote.html new file mode 100644 index 0000000..eb543c5 --- /dev/null +++ b/routes/_components/profile/AccountProfileNote.html @@ -0,0 +1,45 @@ +
+ {{{massagedNote}}} +
+ + \ No newline at end of file diff --git a/routes/_pages/accounts/[accountId].html b/routes/_pages/accounts/[accountId].html index 585465a..3525e35 100644 --- a/routes/_pages/accounts/[accountId].html +++ b/routes/_pages/accounts/[accountId].html @@ -25,7 +25,7 @@ import HiddenFromSSR from '../../_components/HiddenFromSSR' import DynamicPageBanner from '../../_components/DynamicPageBanner.html' import { updateProfileAndRelationship } from '../../_actions/accounts' - import AccountProfile from '../../_components/AccountProfile.html' + import AccountProfile from '../../_components/profile/AccountProfile.html' import PinnedStatuses from '../../_components/timeline/PinnedStatuses.html' export default {