Files
raucao 6750c61d87 Add Nostr photo feeds and wallpaper selection
Read the curated photo feeds from wss://nostr.kosmos.org, verify events, cache originals and thumbnails, and let users pick a wallpaper from the Photos section. Nature is the default feed; City Nights is opt-in. Adds the manual publishing scripts, real event fixtures, protocol documentation, and tests with stubbed network connections.
2026-11-08 21:51:23 +04:00

24 lines
647 B
JavaScript

import Route from '@ember/routing/route';
import { service } from '@ember/service';
// Onboarding entry point. Once a name exists there is nothing to do here, so
// we bounce back to the dashboard.
export default class WelcomeRoute extends Route {
@service user;
@service router;
@service photos;
async beforeModel() {
await this.user.ready;
if (this.user.hasName) {
this.router.replaceWith('index');
return;
}
// Download the first feed photos while the user is naming the dashboard.
// The prefetch handles its own errors and never blocks the welcome form.
this.photos.prefetchForWelcome();
}
}