diff --git a/routes/_api/reblogsAndFavs.js b/routes/_api/reblogsAndFavs.js new file mode 100644 index 0000000..f59b800 --- /dev/null +++ b/routes/_api/reblogsAndFavs.js @@ -0,0 +1,19 @@ +import { get, paramsString } from '../_utils/ajax' + +// TODO: paginate + +export async function getReblogs(instanceName, accessToken, statusId, limit = 80) { + let url = `https://${instanceName}/api/v1/statuses/${statusId}/reblogged_by` + url += '?' + paramsString({ limit }) + return get(url, { + 'Authorization': `Bearer ${accessToken}` + }) +} + +export async function getFavorites(instanceName, accessToken, statusId, limit = 80) { + let url = `https://${instanceName}/api/v1/statuses/${statusId}/favourited_by` + url += '?' + paramsString({ limit }) + return get(url, { + 'Authorization': `Bearer ${accessToken}` + }) +} \ No newline at end of file diff --git a/routes/_components/AccountsListPage.html b/routes/_components/AccountsListPage.html new file mode 100644 index 0000000..286fa87 --- /dev/null +++ b/routes/_components/AccountsListPage.html @@ -0,0 +1,62 @@ +
+ {{#if loading}} + + {{elseif accounts && accounts.length}} + + {{/if}} +
+ + \ No newline at end of file diff --git a/routes/_components/status/Status.html b/routes/_components/status/Status.html index 1e46ef1..02601cf 100644 --- a/routes/_components/status/Status.html +++ b/routes/_components/status/Status.html @@ -26,7 +26,7 @@ {{/if}} {{#if isStatusInOwnThread}} - + {{/if}} @@ -65,7 +65,7 @@ "spoiler-btn spoiler-btn" "content content" "media media" - "date date" + "details details" "toolbar toolbar"; grid-template-columns: min-content 1fr; } @@ -83,7 +83,7 @@ import StatusAuthorName from './StatusAuthorName.html' import StatusAuthorHandle from './StatusAuthorHandle.html' import StatusRelativeDate from './StatusRelativeDate.html' - import StatusAbsoluteDate from './StatusAbsoluteDate.html' + import StatusDetails from './StatusDetails.html' import StatusToolbar from './StatusToolbar.html' import StatusMediaAttachments from './StatusMediaAttachments.html' import StatusContent from './StatusContent.html' @@ -116,7 +116,7 @@ StatusAuthorName, StatusAuthorHandle, StatusRelativeDate, - StatusAbsoluteDate, + StatusDetails, StatusToolbar, StatusMediaAttachments, StatusContent, diff --git a/routes/_components/status/StatusAbsoluteDate.html b/routes/_components/status/StatusAbsoluteDate.html deleted file mode 100644 index cdf6b7f..0000000 --- a/routes/_components/status/StatusAbsoluteDate.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - \ No newline at end of file diff --git a/routes/_components/status/StatusDetails.html b/routes/_components/status/StatusDetails.html new file mode 100644 index 0000000..0618bd6 --- /dev/null +++ b/routes/_components/status/StatusDetails.html @@ -0,0 +1,104 @@ + + + \ No newline at end of file diff --git a/routes/statuses/[statusId]/favorites.html b/routes/statuses/[statusId]/favorites.html new file mode 100644 index 0000000..751fbd4 --- /dev/null +++ b/routes/statuses/[statusId]/favorites.html @@ -0,0 +1,25 @@ +<:Head> + Pinafore – Favorites + + + + + + \ No newline at end of file diff --git a/routes/statuses/[statusId].html b/routes/statuses/[statusId]/index.html similarity index 59% rename from routes/statuses/[statusId].html rename to routes/statuses/[statusId]/index.html index 2b2db0c..04916ed 100644 --- a/routes/statuses/[statusId].html +++ b/routes/statuses/[statusId]/index.html @@ -17,12 +17,12 @@ {{/if}} \ No newline at end of file