From 041243a3c94c0bb72e3dfccd98e16ab5de9ec2f1 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 1 Aug 2020 21:28:23 -0500 Subject: [Feature, Partial] Add backend support for additional publishing and customization options --- config/locales/en-MP.yml | 16 ++++++++++++++++ config/locales/simple_form.en-MP.yml | 8 ++++++++ config/routes.rb | 3 +++ 3 files changed, 27 insertions(+) (limited to 'config') diff --git a/config/locales/en-MP.yml b/config/locales/en-MP.yml index b7532435f..be4be53e2 100644 --- a/config/locales/en-MP.yml +++ b/config/locales/en-MP.yml @@ -64,6 +64,8 @@ en-MP: desc_html: Display staff badges on profiles appearance: toot_layout: Roar layout + custom_css: Custom CSS + custom_css_error: "There are problems with the above CSS that must be fixed before it can be applied:" auth: description: prefix_invited_by_user: "@%{name} invites you to join Monsterpit!" @@ -91,6 +93,8 @@ en-MP: body: 'Your roar was boosted by %{name}:' subject: "%{name} boosted your roar" title: New roar + preferences: + advanced_publishing: Advanced publishing options remote_interaction: favourite: proceed: Proceed to admire @@ -117,6 +121,18 @@ en-MP: privacy_html: These options allow you to adjust how much information is visible on your public profile on Monsterpit. Be aware that other servers you send your roars to have their own profile systems and may not honor these options. You will need to use followers-only or direct privacy for roars you do not want displayed in other servers' public profiles. advanced_privacy: Advanced privacy advanced_privacy_html: These options can increase your privacy at the expense of compatability with other servers. They can potentially cause roars to not be delivered to some of your followers. Only enable them if you're fully aware of their side effects. + timer: + '0': Never + 5: 5 minutes + 10: 10 minutes + 15: 15 minutes + 30: 30 minutes + 60: 1 hour + 120: 2 hours + 180: 3 hours + 360: 6 hours + 720: 12 hours + 1440: 1 day user_mailer: warning: explanation: diff --git a/config/locales/simple_form.en-MP.yml b/config/locales/simple_form.en-MP.yml index 71f498c68..dc06e9fb3 100644 --- a/config/locales/simple_form.en-MP.yml +++ b/config/locales/simple_form.en-MP.yml @@ -52,9 +52,17 @@ en-MP: setting_expand_spoilers: Always expand roars marked with content warnings setting_favourite_modal: Show confirmation dialog before admiring (applies to Glitch flavour only) setting_manual_publish: Manually publish roars + setting_publish_in: Auto-publish setting_show_application: Disclose application used to send roars + setting_style_css_profile: Custom CSS for profile page + setting_style_css_webapp: Custom CSS for web interface setting_style_dashed_nest: Use dashed nest level indicators setting_style_underline_a: Underline hyperlinks + setting_boost_every: Automatically queue and space out boosts + setting_boost_jitter: Add a random delay up to + setting_boost_random: In random order + setting_unpublish_delete: Delete after unpublishing + setting_unpublish_in: Then unpublish after setting_use_pending_items: Relax mode show_replies: Show replies on profile show_unlisted: Show unlisted roars to anonymous visitors diff --git a/config/routes.rb b/config/routes.rb index fd43f9c8c..4702e766b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,6 +35,9 @@ Rails.application.routes.draw do get 'intent', to: 'intents#show' get 'custom.css', to: 'custom_css#show', as: :custom_css + get '/custom/:id/profile.css', to: 'user_profile_css#show', as: :user_profile_css + get '/custom/:id/webapp.css', to: 'user_webapp_css#show', as: :user_webapp_css + resource :instance_actor, path: 'actor', only: [:show] do resource :inbox, only: [:create], module: :activitypub end -- cgit