From 473fed2cdf67031f12cad7b2355cbafcd281022d Mon Sep 17 00:00:00 2001
From: Claire
diff --git a/app/javascript/flavours/glitch/features/local_settings/page/item/index.js b/app/javascript/flavours/glitch/features/local_settings/page/item/index.js
index 6b24e4143..86da640ba 100644
--- a/app/javascript/flavours/glitch/features/local_settings/page/item/index.js
+++ b/app/javascript/flavours/glitch/features/local_settings/page/item/index.js
@@ -14,6 +14,7 @@ export default class LocalSettingsPageItem extends React.PureComponent {
id: PropTypes.string.isRequired,
item: PropTypes.array.isRequired,
onChange: PropTypes.func.isRequired,
+ inputProps: PropTypes.object,
options: PropTypes.arrayOf(PropTypes.shape({
value: PropTypes.string.isRequired,
message: PropTypes.string.isRequired,
@@ -34,7 +35,7 @@ export default class LocalSettingsPageItem extends React.PureComponent {
render () {
const { handleChange } = this;
- const { settings, item, id, options, children, dependsOn, dependsOnNot, placeholder, disabled } = this.props;
+ const { settings, item, id, inputProps, options, children, dependsOn, dependsOnNot, placeholder, disabled } = this.props;
let enabled = !disabled;
if (dependsOn) {
@@ -54,14 +55,17 @@ export default class LocalSettingsPageItem extends React.PureComponent {
let optionId = `${id}--${opt.value}`;
return (
@@ -43,8 +44,9 @@ class Spoilers extends React.PureComponent {
,
{domain}:
{' '}
-
diff --git a/app/javascript/flavours/glitch/initial_state.js b/app/javascript/flavours/glitch/initial_state.js
index eefbdca80..c4b249db8 100644
--- a/app/javascript/flavours/glitch/initial_state.js
+++ b/app/javascript/flavours/glitch/initial_state.js
@@ -142,6 +142,7 @@ export const usePendingItems = getMeta('use_pending_items');
export const version = getMeta('version');
export const translationEnabled = getMeta('translation_enabled');
export const languages = initialState?.languages;
+export const statusPageUrl = getMeta('status_page_url');
// Glitch-soc-specific settings
export const maxChars = (initialState && initialState.max_toot_chars) || 500;
--
cgit
From 8fd6c362438b8549abc3c95389c55576af159326 Mon Sep 17 00:00:00 2001
From: Christian Schmidt
- |
-
-
- |
-
- - {item.human_key} - | - -
- {typeof item.human_value !== 'undefined' ? item.human_value : |
-
+ |
+
+
+ |
+
+ + {item.human_key} + | + +
+ {typeof item.human_value !== 'undefined' ? item.human_value : |
+
-
-
- |
-
-
-
-
- |
-
- {data[0].data.slice(1).map((retention, i) => (
-
-
- {i + 1}
-
- |
- ))}
-
---|---|---|
-
-
- |
-
-
-
-
- |
-
- {data[0].data.slice(1).map((retention, i) => {
- const average = data.reduce((sum, cohort, k) => cohort.data[i + 1] ? sum + (cohort.data[i + 1].rate - sum)/(k + 1) : sum, 0);
-
- return (
-
-
-
- |
- );
- })}
-
-
- {dateForCohort(cohort)}
-
- |
-
-
-
-
- |
-
- {cohort.data.slice(1).map(retention => (
-
-
-
- |
- ))}
-
+
+
+ |
+
+
+
+
+ |
+
+ {data[0].data.slice(1).map((retention, i) => (
+
+
+ {i + 1}
+
+ |
+ ))}
+
---|---|---|
+
+
+ |
+
+
+
+
+ |
+
+ {data[0].data.slice(1).map((retention, i) => {
+ const average = data.reduce((sum, cohort, k) => cohort.data[i + 1] ? sum + (cohort.data[i + 1].rate - sum)/(k + 1) : sum, 0);
+
+ return (
+
+
+
+ |
+ );
+ })}
+
+
+ {dateForCohort(cohort)}
+
+ |
+
+
+
+
+ |
+
+ {cohort.data.slice(1).map(retention => (
+
+
+
+ |
+ ))}
+
-
+
- {spoilerText} - {' '} - -
, -+ {spoilerText} + {' '} + +
, +- - {' '} - -
- - {mentionsPlaceholder} - -+ + {' '} + +
+ + {mentionsPlaceholder} + +{(block.get('comment') || '').length > 0 ? block.get('comment') :
{(block.get('comment') || '').length > 0 ? block.get('comment') :
-
+
-
-
-
-
+
+
+
+
r | -|
m | -|
p | -|
f | -|
b | -|
d | -|
enter, o | -|
e | -|
x | -- |
h | -|
shift+x | -|
up, k | -|
down, j | -|
1-9 | -|
n | -|
alt+n | -|
alt+x | -|
backspace | -|
s | -|
alt+enter | -|
esc | -|
? | -
r | +|
m | +|
p | +|
f | +|
b | +|
d | +|
enter, o | +|
e | +|
x | ++ |
h | +|
shift+x | +|
up, k | +|
down, j | +|
1-9 | +|
n | +|
alt+n | +|
alt+x | +|
backspace | +|
s | +|
alt+enter | +|
esc | +|
? | +
{submitted ?
{submitted ?
{trim(card.get('description') || '', maxDescription)}
} - {provider} -{trim(card.get('description') || '', maxDescription)}
} + {provider} +
-
+
{body}
- -{body}
+ +
- {movedToAcct ? (
-
+ {movedToAcct ? (
+
-
-
+
+
- {domain}:
- {' '}
-
- Mastodon:
- {' '}
-
+ {domain}:
+ {' '}
+
+ Mastodon:
+ {' '}
+
-
-
+
+
-
-
+
+
{trim(card.get('description') || '', maxDescription)}
} {provider} -- cgit From cc94cc86aec60d3817f40047bc358fce5b1dbc91 Mon Sep 17 00:00:00 2001 From: Claire