diff --git a/Gemfile b/Gemfile index 9aa5bca..fe749cb 100644 --- a/Gemfile +++ b/Gemfile @@ -61,7 +61,7 @@ gem "sentry-rails" # Services gem 'discourse_api' gem "lnurl" -gem 'manifique' +gem 'manifique', '~> 1.1.0' gem 'nostr', '~> 0.6.0' group :development, :test do diff --git a/Gemfile.lock b/Gemfile.lock index ead85a4..59cb7d8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -245,7 +245,7 @@ GEM net-imap net-pop net-smtp - manifique (1.0.1) + manifique (1.1.0) faraday (~> 2.9.0) faraday-follow_redirects (= 0.3.0) nokogiri (~> 1.16.0) @@ -515,7 +515,7 @@ DEPENDENCIES listen (~> 3.2) lnurl lockbox - manifique + manifique (~> 1.1.0) net-ldap nostr (~> 0.6.0) pagy (~> 6.0, >= 6.0.2) diff --git a/app/controllers/services/remotestorage_controller.rb b/app/controllers/services/remotestorage_controller.rb index 15726d4..4a7801e 100644 --- a/app/controllers/services/remotestorage_controller.rb +++ b/app/controllers/services/remotestorage_controller.rb @@ -8,8 +8,7 @@ class Services::RemotestorageController < Services::BaseController # unless current_user.service_enabled?(:remotestorage) # redirect_to service_remotestorage_info_path # end - @rs_auths = current_user.remote_storage_authorizations - # TODO sort by app name + # @rs_apps_connected = current_user.remote_storage_authorizations.any? end private diff --git a/app/controllers/services/rs_auths_controller.rb b/app/controllers/services/rs_auths_controller.rb index e31f046..2cbcb6c 100644 --- a/app/controllers/services/rs_auths_controller.rb +++ b/app/controllers/services/rs_auths_controller.rb @@ -3,7 +3,12 @@ class Services::RsAuthsController < Services::BaseController before_action :require_feature_enabled before_action :require_service_available # before_action :require_service_enabled - before_action :find_rs_auth + before_action :find_rs_auth, only: [:destroy, :launch_app] + + def index + @rs_auths = current_user.remote_storage_authorizations + # TODO sort by app name? + end def destroy @auth.destroy! diff --git a/app/controllers/well_known_controller.rb b/app/controllers/well_known_controller.rb index b028562..72443be 100644 --- a/app/controllers/well_known_controller.rb +++ b/app/controllers/well_known_controller.rb @@ -4,7 +4,7 @@ class WellKnownController < ApplicationController def nostr http_status :unprocessable_entity and return if params[:name].blank? domain = request.headers["X-Forwarded-Host"].presence || Setting.primary_domain - relay_url = Setting.nostr_relay_url + relay_url = Setting.nostr_relay_url.presence if params[:name] == "_" # pubkey for the primary domain without a username (e.g. kosmos.org) diff --git a/app/views/contributions/projects/index.html.erb b/app/views/contributions/projects/index.html.erb index 3a299e1..253b860 100644 --- a/app/views/contributions/projects/index.html.erb +++ b/app/views/contributions/projects/index.html.erb @@ -43,7 +43,7 @@
We have run two 6-month trials so far, with the next trial period - starting sometime in Q2 2024. Watch your email for notifications about it! + starting sometime soon. Watch your email for notifications about it!
<% end %> diff --git a/app/views/dashboard/index.html.erb b/app/views/dashboard/index.html.erb index 5f2e8a6..1bd8c27 100644 --- a/app/views/dashboard/index.html.erb +++ b/app/views/dashboard/index.html.erb @@ -41,15 +41,16 @@ <% end %> <% end %> - <% if Setting.discourse_enabled? %> + <% if Setting.remotestorage_enabled? && + Flipper.enabled?(:remotestorage, current_user) %>- Community forums and support/help site + Sync your data between apps and devices
<% end %>- Sync your data between apps and devices + Community forums and support/help site
<% end %>+ Store and synchronize your app data across different devices. +
+ + + <%= render partial: "shared/tabnav_remotestorage" %> + ++ In order to connect an app to your storage account, give it your address: +
++ disabled="disabled" + data-clipboard-target="source" /> + +
+No apps connected yet.
- <% end %>+ Store and synchronize your app data across different devices. +
++ <%= image_tag("/img/illustrations/undraw_friends_r511.svg", class: 'h-48') %> +
++ When connected, your apps will show up here. +
+