From 51f318e1a4815cc049cdcce0e7eeee46e09c1b02 Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Mon, 11 Jan 2021 23:21:09 +0100 Subject: [PATCH] Some improvements and new internal-code features * We can use fediloveUI.toast(msg) to send a message using the React toast * I couldnt manage to export formatIntl function to the outside, and the only option was to set the desired keys at the _layout.html initial load * Some little fixes and localizations --- src/routes/_actions/timeline.js | 1 + src/routes/_layout.html | 5 +++++ static/fedilove-no-react.js | 22 +++++++++++++++++----- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/routes/_actions/timeline.js b/src/routes/_actions/timeline.js index ce25c0e4..98b79f28 100644 --- a/src/routes/_actions/timeline.js +++ b/src/routes/_actions/timeline.js @@ -276,4 +276,5 @@ export async function showMoreItemsForThread (instanceName, timelineName) { if (process.browser) { window.__database = database; + window.__toast = toast; } diff --git a/src/routes/_layout.html b/src/routes/_layout.html index d60f5a33..25ef1e72 100644 --- a/src/routes/_layout.html +++ b/src/routes/_layout.html @@ -79,6 +79,7 @@