phanpy/src/utils
Stefano Pigozzi 1e1d6e40bc
Add support for local instance posts
A new platform feature is defined, `@akkoma/local-only`, which is marked as present only if the string `akkoma` is found in the instance version string.

If this feature is supported, a new post visibility option is added to the post compose visibility selector, "Local instance", which sets the visibility to `"local"`.

The post viewer is also updated accordingly; while local-only posts could already be seen previously, they didn't have anything written in the `.extra-meta` section, and didn't display a visibility icon.

The `building` icon has been selected as the symbol for "Local instance" posts, as it's already used in the main menu to denote the Local timeline.
2024-08-20 19:00:10 +02:00
..
api.js Refactor set/get current account ID 2024-04-13 00:11:00 +08:00
auth.js Extend self-hosting variables 2023-12-25 19:25:48 +08:00
color-utils.js Further robustify trending news 2023-10-25 19:18:47 +08:00
db.js Catch-up (beta) 2024-02-26 14:02:58 +08:00
emojify-text.js Support non-rectangular custom emojis 😩 2023-09-24 15:45:01 +08:00
enhance-content.js Handle inline images 2024-05-01 15:05:29 +08:00
filter-context.js Breaking: rewrote filters implementation 2023-11-03 21:45:31 +08:00
filters.jsx Refactor set/get current account ID 2024-04-13 00:11:00 +08:00
focus-deck.jsx Rework the modal close + focus logic 2023-09-14 20:39:23 +08:00
followed-tags.js New experiment: followed tag indicator 2023-12-15 01:58:44 +08:00
format-duration.jsx Refactor this out for no particular reason 2024-03-31 20:53:08 +08:00
get-instance-status-url.js Use URL.parse with polyfill 2024-06-14 08:34:50 +08:00
get-translate-target-language.jsx Fix slow code blocking whole component render 2023-12-28 18:39:56 +08:00
getHTMLText.jsx Further improve lang detection perf 2024-05-29 15:26:58 +08:00
group-notifications.jsx Better checks 2024-08-04 13:32:46 +08:00
handle-content-links.js Fix some at-mentions not handled 2024-03-15 18:20:45 +08:00
html-content-length.js Slightly more accurate content length 2023-12-17 18:25:58 +08:00
i18n-duration.js Initial i18n dev 2024-08-13 15:26:23 +08:00
is-rtl.js Fix RTL observer not working 2024-08-10 10:04:44 +08:00
isMastodonLinkMaybe.jsx Test this out for bridgy fed links 2024-07-21 19:06:38 +08:00
lang.js Handle kab-KAB → kab rename 2024-08-20 20:18:16 +08:00
lists.js Allow Lists to be in Shortcuts (except columns) 2024-03-23 23:52:05 +08:00
locale-match.jsx Complete transition from mem to moize 2023-10-14 20:33:40 +08:00
localeCode2Text.jsx More fallbacks for Intl.DisplayNames 2024-08-16 11:14:16 +08:00
mem.js Reduce to 50 2023-11-04 19:19:42 +08:00
nice-date-time.js Fix my dumb code 2024-08-20 20:34:42 +08:00
open-compose.js Initial i18n dev 2024-08-13 15:26:23 +08:00
open-osk.jsx Hacky way to show on-screen keyboard 2024-03-27 21:22:47 +08:00
pmem.js Complete transition from mem to moize 2023-10-14 20:33:40 +08:00
pretty-bytes.js Initial i18n dev 2024-08-13 15:26:23 +08:00
push-notifications.js Check vapidKey 2024-06-06 17:47:44 +08:00
ratelimit.js Further rate limit this threadify calls 2023-12-22 09:54:50 +08:00
relationships.js Refactor set/get current account ID 2024-04-13 00:11:00 +08:00
safe-bounding-box-padding.js Another (better) way of updating safe area insets 2023-09-09 14:10:52 +08:00
shorten-number.jsx Try/catch all intl stuff 2024-08-20 20:08:09 +08:00
show-compose.js Initial i18n dev 2024-08-13 15:26:23 +08:00
show-toast.js Experimental opt-in description generator 2023-12-27 23:33:59 +08:00
speech.js Let's add speech 2023-12-21 18:17:14 +08:00
states.js Experimental opt-in server-side grouped notifications 2024-07-12 18:57:48 +08:00
status-peek.jsx Show text from poll too 2024-03-07 12:34:38 +08:00
store-utils.js Fix infinite reloading 2024-04-18 23:10:26 +08:00
store.js Begin work on account-specific store 2023-02-02 17:29:57 +08:00
supports.js Add support for local instance posts 2024-08-20 19:00:10 +02:00
timeline-utils.jsx Enable unfurling when fetching reply hints 2024-06-27 22:05:16 +08:00
toast-alert.js Replace (most) alert/confirms with alternative UI 2023-07-17 21:01:00 +08:00
unfurl-link.jsx Use URL.parse with polyfill 2024-06-14 08:34:50 +08:00
useCloseWatcher.js It's time to use CloseWatcher 2023-12-20 21:02:22 +08:00
useInterval.js Fix fn not refreshed in useInterval 2023-07-13 20:11:23 +08:00
useLocationChange.js Recode some nested modal closing logic 2023-10-19 16:06:55 +08:00
usePageVisibility.js New experiment: auto refresh 2023-05-05 17:53:16 +08:00
useScroll.js useLayoutEffect instead 2023-06-14 16:15:25 +08:00
useScrollFn.js Remove the need for setStates 2024-02-14 17:16:53 +08:00
useTitle.js Extend self-hosting variables 2023-12-25 19:25:48 +08:00
useTruncated.js Better throttle instead of debounce 2023-10-04 10:05:21 +08:00
useWindowSize.js Remove usehooks dep 2024-06-27 22:05:16 +08:00
visibility-icons-map.js Add support for local instance posts 2024-08-20 19:00:10 +02:00