six-degrees 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/prerender-manifest.json +14 -14
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +20 -19
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +20 -19
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +16 -15
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/admin-delete/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/admin-update/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/bridges/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/bulk-import/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/company-scores/legacy/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/company-scores/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/connections/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/data/export/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/data/import/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/data/restart/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/data/reveal/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/data/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/delete-cluster/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ingest/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/notifications/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/outreach/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/scraper/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/settings/sector-preview/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/settings/sector-suggestions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/setup-profile/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/social/crm/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/social/messages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/social/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/unlock/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/update/route.js +1 -1
- package/.next/standalone/.next/server/app/api/update/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/update-images/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/users/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/avatars/[file]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/import/page.js +1 -1
- package/.next/standalone/.next/server/app/import/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/import/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/import.html +1 -1
- package/.next/standalone/.next/server/app/import.rsc +24 -23
- package/.next/standalone/.next/server/app/import.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/import.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/import.segments/import/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +22 -21
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +22 -21
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/launch/page.js +1 -1
- package/.next/standalone/.next/server/app/launch/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/launch/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/launch.html +2 -2
- package/.next/standalone/.next/server/app/launch.rsc +24 -23
- package/.next/standalone/.next/server/app/launch.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/launch.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/launch.segments/launch/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/page.js +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/paths/page.js +1 -1
- package/.next/standalone/.next/server/app/paths/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/paths/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/paths.html +1 -1
- package/.next/standalone/.next/server/app/paths.rsc +24 -23
- package/.next/standalone/.next/server/app/paths.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/paths.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/paths.segments/paths/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/profile/page.js +1 -1
- package/.next/standalone/.next/server/app/profile/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/profile/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/profile.html +1 -1
- package/.next/standalone/.next/server/app/profile.rsc +24 -23
- package/.next/standalone/.next/server/app/profile.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/profile.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/profile.segments/profile/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/queue/page.js +1 -1
- package/.next/standalone/.next/server/app/queue/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/queue/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/queue.html +1 -1
- package/.next/standalone/.next/server/app/queue.rsc +24 -23
- package/.next/standalone/.next/server/app/queue.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/queue.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/queue.segments/queue/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/scores/page.js +1 -1
- package/.next/standalone/.next/server/app/scores/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/scores/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/scores.html +1 -1
- package/.next/standalone/.next/server/app/scores.rsc +24 -23
- package/.next/standalone/.next/server/app/scores.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/scores.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/scores.segments/scores/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/settings/page.js +1 -1
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings.html +1 -1
- package/.next/standalone/.next/server/app/settings.rsc +24 -23
- package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/setup/page.js +1 -1
- package/.next/standalone/.next/server/app/setup/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/setup.html +1 -1
- package/.next/standalone/.next/server/app/setup.rsc +24 -23
- package/.next/standalone/.next/server/app/setup.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/app/social/page.js +1 -1
- package/.next/standalone/.next/server/app/social/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/social/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/social.html +1 -1
- package/.next/standalone/.next/server/app/social.rsc +24 -23
- package/.next/standalone/.next/server/app/social.segments/_full.segment.rsc +24 -23
- package/.next/standalone/.next/server/app/social.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/social.segments/social/__PAGE__.segment.rsc +18 -17
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0-rnla2._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__00la_y0._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__05_3-22._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__07t47cm._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0cj5jqc._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0e0fei3._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ljnyho._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o5-tcg._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0qrnous._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0t3v1a1._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0um1uey._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0wmexuc._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0xu34sz._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__133knx1._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__13dx4sd._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__14ou7j5._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__15-17hl._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__15wc9e-._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__16iu0hv._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__18bcnu4._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__19b7mig._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1bbcwub._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1eris29._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1gjo_cq._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1kbl21f._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1qcm08_._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1rphsdk._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1tir0vc._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1w25q0m._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__20rwfdw._.js +2 -2
- package/.next/standalone/.next/server/chunks/_1_fynia._.js +7 -7
- package/.next/standalone/.next/server/chunks/_1itd1o_._.js +2 -2
- package/.next/standalone/.next/server/chunks/lib_0851sk0._.js +5 -5
- package/.next/standalone/.next/server/chunks/lib_1q7p2ro._.js +5 -5
- package/.next/standalone/.next/server/chunks/lib_1r6l86l._.js +5 -5
- package/.next/standalone/.next/server/chunks/lib_db-client_15le7cw.js +9 -9
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__08oxiqh._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_03l7vge._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_08g31gm._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0gk_ofx._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0nwsf93._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0vho1lb._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_0jdkqgi._.js → _1-658fq._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_1bc46kz._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_1f_n00p._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_1fm1ih_._.js +9 -0
- package/.next/standalone/.next/server/chunks/ssr/_1k2nmbw._.js +9 -0
- package/.next/standalone/.next/server/chunks/ssr/_2105jz8._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/app_141w189._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_components_0t908t-._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/app_components_0uuff77._.js +13 -0
- package/.next/standalone/.next/server/chunks/ssr/app_components_1j3q-h5._.js +13 -0
- package/.next/standalone/.next/server/chunks/ssr/{_0gtv9jb._.js → app_components_CompanyScores_1g0mytz.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_components_settings_SectorPicker_1c-29qw.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_import_page_1fmu6_l.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_page_1fazqbf.js +14 -12
- package/.next/standalone/.next/server/chunks/ssr/app_paths_page_1ol90m7.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_profile_page_0u3-l5y.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_queue_page_0c6znd6.js +6 -6
- package/.next/standalone/.next/server/chunks/ssr/app_settings_page_1f8mjj_.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_setup_page_1-282zx.js +4 -4
- package/.next/standalone/.next/server/chunks/ssr/app_social_page_0h7zxda.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{lib_0i8v-s3._.js → lib_1c4ieuw._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/lib_galaxy-lab_108_lu-.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/02pq76u7y4v9-.js +22 -0
- package/.next/standalone/.next/static/chunks/0cmq0exd4d0h9.js +1 -0
- package/.next/{static/chunks/2wgz9ietkqqe6.js → standalone/.next/static/chunks/0i02yxppzds1o.js} +1 -1
- package/.next/standalone/.next/static/chunks/0m_p4k-q2qh--.js +1 -0
- package/.next/standalone/.next/static/chunks/0oyslj62jkubd.js +1 -0
- package/.next/standalone/.next/static/chunks/{1x_ysly42-teq.css → 0vo-l8hxneba6.css} +1 -1
- package/.next/{static/chunks/3sowbvbaj1s6n.js → standalone/.next/static/chunks/0ws7zy0w57ufi.js} +1 -1
- package/.next/standalone/.next/static/chunks/0yh8z2tbrc5i_.js +1 -0
- package/.next/standalone/.next/static/chunks/172e10mi-tpo_.js +34 -0
- package/.next/standalone/.next/static/chunks/1ei5vbe2uw6fl.js +1 -0
- package/.next/standalone/.next/static/chunks/1f7_pl_wq7lh3.js +11 -0
- package/.next/standalone/.next/static/chunks/1jzbe7zdx9vbj.js +2 -0
- package/.next/standalone/.next/static/chunks/1m3017gp790pw.js +45 -0
- package/.next/standalone/.next/static/chunks/1t20e8u0st7ep.js +1 -0
- package/.next/standalone/.next/static/chunks/2-ch9rm27eril.js +11 -0
- package/.next/standalone/.next/static/chunks/2ldv-v3s9yaif.js +1 -0
- package/.next/standalone/.next/static/chunks/3bp284gjf7dyq.js +1 -0
- package/.next/standalone/.next/static/chunks/3k1f6clbn3gj3.js +7 -0
- package/.next/standalone/.next/static/chunks/3l4t8je6iguzc.js +1 -0
- package/.next/standalone/.next/static/chunks/{0muwt9bykzr-1.js → 3tplzuc9jk-tl.js} +1 -1
- package/.next/standalone/.next/static/chunks/42m0bqr8pbovz.js +11 -0
- package/.next/standalone/CHANGELOG.md +61 -0
- package/.next/standalone/README.md +22 -8
- package/.next/standalone/app/api/scraper/route.js +40 -3
- package/.next/standalone/app/api/update/route.js +12 -6
- package/.next/standalone/app/components/AppHeader.js +257 -0
- package/.next/standalone/app/components/Avatar.js +2 -1
- package/.next/standalone/app/components/ChainView.js +12 -12
- package/.next/standalone/app/components/FilterPanel.js +20 -12
- package/.next/standalone/app/components/ForceGraph.js +163 -25
- package/.next/standalone/app/components/GalaxyLab.js +43 -12
- package/.next/standalone/app/components/GridView.js +4 -4
- package/.next/standalone/app/components/LinkedInLimits.js +2 -1
- package/.next/standalone/app/components/ListView.js +3 -3
- package/.next/standalone/app/components/NoteDetail.js +2 -1
- package/.next/standalone/app/components/OnboardingGate.js +2 -2
- package/.next/standalone/app/components/OutlinkQuest.js +2 -1
- package/.next/standalone/app/components/PathsAnalyzer.js +3 -2
- package/.next/standalone/app/components/PeopleMap.js +2 -1
- package/.next/standalone/app/components/RingsView.js +3 -3
- package/.next/standalone/app/components/ScanTrail.js +85 -0
- package/.next/standalone/app/components/SeparationView.js +100 -77
- package/.next/standalone/app/components/Sidebar.js +4 -4
- package/.next/standalone/app/components/TheirCircle.js +2 -1
- package/.next/standalone/app/components/ThemeLoader.js +9 -0
- package/.next/standalone/app/components/UpdatePanel.js +20 -2
- package/.next/standalone/app/components/settings/AppearanceSection.js +226 -0
- package/.next/standalone/app/components/settings/NetworkHealthSection.js +2 -1
- package/.next/standalone/app/components/ui.js +2 -1
- package/.next/standalone/app/globals.css +70 -2
- package/.next/standalone/app/import/page.js +3 -3
- package/.next/standalone/app/layout.js +11 -2
- package/.next/standalone/app/page.js +69 -215
- package/.next/standalone/app/paths/page.js +8 -21
- package/.next/standalone/app/profile/page.js +11 -10
- package/.next/standalone/app/queue/page.js +8 -21
- package/.next/standalone/app/scores/page.js +1 -1
- package/.next/standalone/app/settings/page.js +7 -3
- package/.next/standalone/app/setup/page.js +83 -88
- package/.next/standalone/app/social/Crm.js +2 -1
- package/.next/standalone/app/social/SocialHub.js +2 -2
- package/.next/standalone/app/social/page.js +1 -1
- package/.next/standalone/lib/data-import.js +1 -0
- package/.next/standalone/lib/galaxy-export.js +2 -1
- package/.next/standalone/lib/galaxy-lab.js +24 -8
- package/.next/standalone/lib/level.js +51 -0
- package/.next/standalone/lib/release.js +13 -7
- package/.next/standalone/lib/scanner-python.js +38 -8
- package/.next/standalone/lib/scraper-client.js +2 -1
- package/.next/standalone/lib/separation.js +4 -2
- package/.next/standalone/lib/theme-store.js +61 -0
- package/.next/standalone/lib/themes.js +186 -0
- package/.next/standalone/lib/tiers.js +2 -8
- package/.next/standalone/package-lock.json +2 -2
- package/.next/standalone/package.json +4 -4
- package/.next/standalone/scripts/build-desktop.mjs +325 -0
- package/.next/standalone/scripts/build-site.mjs +85 -15
- package/.next/standalone/scripts/gen-test-network.mjs +93 -0
- package/.next/standalone/scripts/next.mjs +20 -0
- package/.next/standalone/scripts/readme_buttons.py +3 -0
- package/.next/standalone/scripts/requirements.txt +18 -1
- package/.next/standalone/scripts/site-news.mjs +54 -9
- package/.next/standalone/scripts/smoke-desktop.mjs +177 -0
- package/.next/standalone/scripts/windows/six-degrees.iss +100 -0
- package/.next/static/chunks/02pq76u7y4v9-.js +22 -0
- package/.next/static/chunks/0cmq0exd4d0h9.js +1 -0
- package/.next/{standalone/.next/static/chunks/2wgz9ietkqqe6.js → static/chunks/0i02yxppzds1o.js} +1 -1
- package/.next/static/chunks/0m_p4k-q2qh--.js +1 -0
- package/.next/static/chunks/0oyslj62jkubd.js +1 -0
- package/.next/static/chunks/{1x_ysly42-teq.css → 0vo-l8hxneba6.css} +1 -1
- package/.next/{standalone/.next/static/chunks/3sowbvbaj1s6n.js → static/chunks/0ws7zy0w57ufi.js} +1 -1
- package/.next/static/chunks/0yh8z2tbrc5i_.js +1 -0
- package/.next/static/chunks/172e10mi-tpo_.js +34 -0
- package/.next/static/chunks/1ei5vbe2uw6fl.js +1 -0
- package/.next/static/chunks/1f7_pl_wq7lh3.js +11 -0
- package/.next/static/chunks/1jzbe7zdx9vbj.js +2 -0
- package/.next/static/chunks/1m3017gp790pw.js +45 -0
- package/.next/static/chunks/1t20e8u0st7ep.js +1 -0
- package/.next/static/chunks/2-ch9rm27eril.js +11 -0
- package/.next/static/chunks/2ldv-v3s9yaif.js +1 -0
- package/.next/static/chunks/3bp284gjf7dyq.js +1 -0
- package/.next/static/chunks/3k1f6clbn3gj3.js +7 -0
- package/.next/static/chunks/3l4t8je6iguzc.js +1 -0
- package/.next/static/chunks/{0muwt9bykzr-1.js → 3tplzuc9jk-tl.js} +1 -1
- package/.next/static/chunks/42m0bqr8pbovz.js +11 -0
- package/CHANGELOG.md +61 -0
- package/README.md +22 -8
- package/lib/data-import.js +1 -0
- package/lib/galaxy-export.js +2 -1
- package/lib/galaxy-lab.js +24 -8
- package/lib/level.js +51 -0
- package/lib/release.js +13 -7
- package/lib/scanner-python.js +38 -8
- package/lib/scraper-client.js +2 -1
- package/lib/separation.js +4 -2
- package/lib/theme-store.js +61 -0
- package/lib/themes.js +186 -0
- package/lib/tiers.js +2 -8
- package/package.json +4 -4
- package/scripts/requirements.txt +18 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ljcioj._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__16hs8kw._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_01kacen._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0xi-fbs._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0xmwmfv._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_1-b9hj7._.js +0 -9
- package/.next/standalone/.next/server/chunks/ssr/_112ewem._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_16ab63q._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_1fxm0-s._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_1ra1d3r._.js +0 -9
- package/.next/standalone/.next/server/chunks/ssr/app_components_ui_0pdmz2z.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/lib_13rapwj._.js +0 -3
- package/.next/standalone/.next/static/chunks/03bziijw5srol.js +0 -1
- package/.next/standalone/.next/static/chunks/0bgq8wmopl_ig.js +0 -7
- package/.next/standalone/.next/static/chunks/0ezus6p2eb-vg.js +0 -1
- package/.next/standalone/.next/static/chunks/0g_fy2034bp0x.js +0 -34
- package/.next/standalone/.next/static/chunks/0q5dru4q6gxl5.js +0 -22
- package/.next/standalone/.next/static/chunks/0w-byiwb2zax8.js +0 -2
- package/.next/standalone/.next/static/chunks/1g7jcovdejc9-.js +0 -1
- package/.next/standalone/.next/static/chunks/1i51yylxdzht1.js +0 -1
- package/.next/standalone/.next/static/chunks/1zf8swaasjf1e.js +0 -43
- package/.next/standalone/.next/static/chunks/2dwtoszeq91us.js +0 -1
- package/.next/standalone/.next/static/chunks/2rqtpccruavf2.js +0 -1
- package/.next/standalone/.next/static/chunks/30x3oq_st7a5r.js +0 -1
- package/.next/standalone/.next/static/chunks/355ryio1b7sm1.js +0 -1
- package/.next/standalone/.next/static/chunks/3ap5hgma7n0o7.js +0 -1
- package/.next/standalone/.next/static/chunks/3fci6qi39-1n5.js +0 -1
- package/.next/static/chunks/03bziijw5srol.js +0 -1
- package/.next/static/chunks/0bgq8wmopl_ig.js +0 -7
- package/.next/static/chunks/0ezus6p2eb-vg.js +0 -1
- package/.next/static/chunks/0g_fy2034bp0x.js +0 -34
- package/.next/static/chunks/0q5dru4q6gxl5.js +0 -22
- package/.next/static/chunks/0w-byiwb2zax8.js +0 -2
- package/.next/static/chunks/1g7jcovdejc9-.js +0 -1
- package/.next/static/chunks/1i51yylxdzht1.js +0 -1
- package/.next/static/chunks/1zf8swaasjf1e.js +0 -43
- package/.next/static/chunks/2dwtoszeq91us.js +0 -1
- package/.next/static/chunks/2rqtpccruavf2.js +0 -1
- package/.next/static/chunks/30x3oq_st7a5r.js +0 -1
- package/.next/static/chunks/355ryio1b7sm1.js +0 -1
- package/.next/static/chunks/3ap5hgma7n0o7.js +0 -1
- package/.next/static/chunks/3fci6qi39-1n5.js +0 -1
- /package/.next/standalone/.next/static/{I-cj79yE2IZ8taX2dZGp3 → dQUvvVSXqbkEFC3-CNcwT}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{I-cj79yE2IZ8taX2dZGp3 → dQUvvVSXqbkEFC3-CNcwT}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{I-cj79yE2IZ8taX2dZGp3 → dQUvvVSXqbkEFC3-CNcwT}/_ssgManifest.js +0 -0
- /package/.next/static/{I-cj79yE2IZ8taX2dZGp3 → dQUvvVSXqbkEFC3-CNcwT}/_buildManifest.js +0 -0
- /package/.next/static/{I-cj79yE2IZ8taX2dZGp3 → dQUvvVSXqbkEFC3-CNcwT}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{I-cj79yE2IZ8taX2dZGp3 → dQUvvVSXqbkEFC3-CNcwT}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// Settings → Appearance: how the app looks (lib/themes.js). Two ways, as Blake
|
|
4
|
+
// asked (2026-10-03): pick one of our looks, or make it yours, colour by colour,
|
|
5
|
+
// "like battle field 4 does": the background and what's drawn on it, the
|
|
6
|
+
// panels and how much glass, each tier's dot and yours, the lines, the accent
|
|
7
|
+
// and the font. Every change shows at once, everywhere, and is kept in this
|
|
8
|
+
// browser. A theme code copies the whole look to share; pasting one is checked
|
|
9
|
+
// first (lib/themes.js cleanTheme), so it can only ever set colours and choices.
|
|
10
|
+
|
|
11
|
+
import { useState, useSyncExternalStore } from 'react';
|
|
12
|
+
import { Section, Body } from '../ui';
|
|
13
|
+
import { THEMES, BACKDROPS, FONTS, TIER_KEYS, resolveTheme, presetOf, encodeTheme, decodeTheme } from '../../../lib/themes';
|
|
14
|
+
import { themeNow, serverTheme, setTheme, watchTheme } from '../../../lib/theme-store';
|
|
15
|
+
|
|
16
|
+
const BACKDROP_LABEL = { none: 'Plain', stars: 'Stars', grid: 'Grid', glow: 'Glow', horizon: 'Horizon' };
|
|
17
|
+
const FONT_LABEL = { system: 'System', rounded: 'Rounded', mono: 'Mono', serif: 'Serif' };
|
|
18
|
+
const TIER_NAME = { S: 'S tier', A: 'A tier', B: 'B tier', C: 'C tier', D: 'D tier' };
|
|
19
|
+
|
|
20
|
+
const label = { fontSize: 11, fontWeight: 700, color: '#778', letterSpacing: 0.6, textTransform: 'uppercase', margin: '16px 0 8px' };
|
|
21
|
+
|
|
22
|
+
/** A small map in a theme's colours: you, a ring of tiers, their circles, the backdrop behind. */
|
|
23
|
+
export function ThemePreview({ theme, width = 168, height = 96 }) {
|
|
24
|
+
const t = theme;
|
|
25
|
+
const cx = width * 0.58;
|
|
26
|
+
const cy = height / 2;
|
|
27
|
+
const id = `p-${t.id}-${t.customised ? 'c' : 'p'}`;
|
|
28
|
+
const glass = Math.min(1, Math.max(0, t.glass));
|
|
29
|
+
const ring = TIER_KEYS.map((k, i) => {
|
|
30
|
+
const a = -Math.PI / 2 + (i * 2 * Math.PI) / TIER_KEYS.length;
|
|
31
|
+
const r = 22 + i * 3;
|
|
32
|
+
return { k, x: cx + Math.cos(a) * r, y: cy + Math.sin(a) * r, a };
|
|
33
|
+
});
|
|
34
|
+
const line = (k) => (t.lines === 'one' ? t.line : t.tiers[k]);
|
|
35
|
+
return (
|
|
36
|
+
<svg width={width} height={height} viewBox={`0 0 ${width} ${height}`} aria-hidden="true" style={{ display: 'block', borderRadius: 8 }}>
|
|
37
|
+
<defs>
|
|
38
|
+
<radialGradient id={`${id}-glow`}><stop offset="0" stopColor={t.bg2} stopOpacity="0.8" /><stop offset="1" stopColor={t.bg2} stopOpacity="0" /></radialGradient>
|
|
39
|
+
<radialGradient id={`${id}-glow2`}><stop offset="0" stopColor={t.accent} stopOpacity="0.55" /><stop offset="1" stopColor={t.accent} stopOpacity="0" /></radialGradient>
|
|
40
|
+
<linearGradient id={`${id}-sun`} x1="0" y1="0" x2="0" y2="1"><stop offset="0.45" stopColor={t.bg2} stopOpacity="0" /><stop offset="1" stopColor={t.bg2} stopOpacity="0.45" /></linearGradient>
|
|
41
|
+
</defs>
|
|
42
|
+
<rect width={width} height={height} fill={t.bg} />
|
|
43
|
+
{t.backdrop === 'stars' && (
|
|
44
|
+
<g fill="#fff">
|
|
45
|
+
<circle cx={width * 0.8} cy={height * 0.2} r={28} fill={`url(#${id}-glow)`} />
|
|
46
|
+
{[[12, 10], [40, 70], [150, 14], [128, 80], [24, 44], [96, 8], [70, 88], [158, 52]].map(([x, y]) => <circle key={`${x}-${y}`} cx={x} cy={y} r={0.8} opacity={0.85} />)}
|
|
47
|
+
</g>
|
|
48
|
+
)}
|
|
49
|
+
{t.backdrop === 'grid' && (
|
|
50
|
+
<g stroke={t.bg2} strokeWidth={1} opacity={0.9}>
|
|
51
|
+
{Array.from({ length: 9 }, (_, i) => <line key={`v${i}`} x1={i * 20} y1={0} x2={i * 20} y2={height} />)}
|
|
52
|
+
{Array.from({ length: 5 }, (_, i) => <line key={`h${i}`} x1={0} y1={i * 20} x2={width} y2={i * 20} />)}
|
|
53
|
+
</g>
|
|
54
|
+
)}
|
|
55
|
+
{t.backdrop === 'glow' && (
|
|
56
|
+
<g>
|
|
57
|
+
<circle cx={width * 0.2} cy={height * 0.25} r={40} fill={`url(#${id}-glow)`} />
|
|
58
|
+
<circle cx={width * 0.85} cy={height * 0.4} r={36} fill={`url(#${id}-glow2)`} />
|
|
59
|
+
</g>
|
|
60
|
+
)}
|
|
61
|
+
{t.backdrop === 'horizon' && (
|
|
62
|
+
<g>
|
|
63
|
+
<rect width={width} height={height} fill={`url(#${id}-sun)`} />
|
|
64
|
+
{Array.from({ length: 9 }, (_, i) => <line key={i} x1={i * 21} y1={height * 0.62} x2={(i - 4) * 40 + width / 2} y2={height} stroke={t.bg2} strokeOpacity={0.35} />)}
|
|
65
|
+
<line x1={0} y1={height * 0.62} x2={width} y2={height * 0.62} stroke={t.bg2} strokeOpacity={0.5} />
|
|
66
|
+
</g>
|
|
67
|
+
)}
|
|
68
|
+
{/* The filter panel, as see-through as the theme's glass */}
|
|
69
|
+
<rect x={0} y={0} width={width * 0.24} height={height} fill={t.panel} fillOpacity={0.92 - 0.82 * glass} />
|
|
70
|
+
<rect x={width * 0.24} y={0} width={0.75} height={height} fill="#fff" fillOpacity={0.12} />
|
|
71
|
+
{[0, 1, 2, 3, 4].map((i) => <rect key={i} x={6} y={12 + i * 14} width={width * 0.24 - 12} height={6} rx={3} fill={t.tiers[TIER_KEYS[i]]} fillOpacity={0.55} />)}
|
|
72
|
+
{/* The map */}
|
|
73
|
+
{ring.map((p) => <line key={`l${p.k}`} x1={cx} y1={cy} x2={p.x} y2={p.y} stroke={line(p.k)} strokeOpacity={0.55} strokeWidth={0.8} />)}
|
|
74
|
+
{ring.map((p) => [0, 1, 2].map((j) => {
|
|
75
|
+
const a = p.a + (j - 1) * 0.5;
|
|
76
|
+
const x = p.x + Math.cos(a) * 9;
|
|
77
|
+
const y = p.y + Math.sin(a) * 9;
|
|
78
|
+
return (
|
|
79
|
+
<g key={`k${p.k}${j}`}>
|
|
80
|
+
<line x1={p.x} y1={p.y} x2={x} y2={y} stroke={line(p.k)} strokeOpacity={0.4} strokeWidth={0.6} />
|
|
81
|
+
<circle cx={x} cy={y} r={1.6} fill={t.tiers[TIER_KEYS[(TIER_KEYS.indexOf(p.k) + j + 1) % 5]]} fillOpacity={0.8} />
|
|
82
|
+
</g>
|
|
83
|
+
);
|
|
84
|
+
}))}
|
|
85
|
+
{ring.map((p) => <circle key={`d${p.k}`} cx={p.x} cy={p.y} r={p.k === 'S' ? 4.5 : 3.6} fill={t.tiers[p.k]} />)}
|
|
86
|
+
<circle cx={cx} cy={cy} r={5.5} fill={t.you} stroke={t.accent} strokeWidth={1.2} />
|
|
87
|
+
</svg>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function Swatch({ name, value, onChange, title }) {
|
|
92
|
+
return (
|
|
93
|
+
<label title={title || name} style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '6px 10px 6px 6px', borderRadius: 8, background: 'rgba(255,255,255,0.04)', border: '1px solid rgba(255,255,255,0.08)', cursor: 'pointer' }}>
|
|
94
|
+
<input type="color" value={value} onChange={(e) => onChange(e.target.value)} style={{ width: 28, height: 28, padding: 0, border: 'none', borderRadius: 6, background: 'none', cursor: 'pointer' }} />
|
|
95
|
+
<span style={{ fontSize: 12.5, color: '#cdd' }}>{name}</span>
|
|
96
|
+
</label>
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function Pick({ options, value, onPick }) {
|
|
101
|
+
return (
|
|
102
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 6 }}>
|
|
103
|
+
{options.map(([v, text]) => (
|
|
104
|
+
<button key={v} type="button" aria-pressed={value === v} onClick={() => onPick(v)} style={{
|
|
105
|
+
padding: '6px 12px', borderRadius: 8, fontSize: 12.5, fontWeight: 600, cursor: 'pointer',
|
|
106
|
+
border: value === v ? '1px solid var(--sd-accent)' : '1px solid rgba(255,255,255,0.1)',
|
|
107
|
+
background: value === v ? 'color-mix(in srgb, var(--sd-accent) 18%, transparent)' : 'rgba(255,255,255,0.03)',
|
|
108
|
+
color: value === v ? '#fff' : '#99a',
|
|
109
|
+
}}>{text}</button>
|
|
110
|
+
))}
|
|
111
|
+
</div>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export default function AppearanceSection() {
|
|
116
|
+
const choice = useSyncExternalStore(watchTheme, themeNow, serverTheme);
|
|
117
|
+
const theme = resolveTheme(choice);
|
|
118
|
+
const [code, setCode] = useState('');
|
|
119
|
+
const [note, setNote] = useState(null);
|
|
120
|
+
const change = (patch) => setTheme({ base: choice.base, custom: { ...choice.custom, ...patch } });
|
|
121
|
+
const changeTier = (k, v) => change({ tiers: { ...(choice.custom.tiers || {}), [k]: v } });
|
|
122
|
+
const copy = async () => {
|
|
123
|
+
const text = encodeTheme(choice);
|
|
124
|
+
try { await navigator.clipboard.writeText(text); setNote('Copied. Paste it into anyone’s Settings → Appearance.'); }
|
|
125
|
+
catch { setCode(text); setNote('Select the code below and copy it.'); }
|
|
126
|
+
};
|
|
127
|
+
const paste = () => {
|
|
128
|
+
const found = decodeTheme(code);
|
|
129
|
+
if (!found) { setNote('That isn’t a theme code: it starts with sd-theme:'); return; }
|
|
130
|
+
setTheme(found);
|
|
131
|
+
setCode('');
|
|
132
|
+
setNote(`Using it: ${presetOf(found.base).name}${Object.keys(found.custom).length ? ', made someone’s own' : ''}.`);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
return (
|
|
136
|
+
<Section id="appearance" title="Appearance" intro="How the whole app looks: pick one of ours, then make it yours. It changes as you go, and stays in this browser.">
|
|
137
|
+
<div style={label}>Looks</div>
|
|
138
|
+
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(190px, 1fr))', gap: 10 }}>
|
|
139
|
+
{THEMES.map((p) => {
|
|
140
|
+
const on = choice.base === p.id;
|
|
141
|
+
const shown = on ? theme : resolveTheme({ base: p.id });
|
|
142
|
+
return (
|
|
143
|
+
<button key={p.id} type="button" aria-pressed={on} onClick={() => setTheme({ base: p.id, custom: {} })}
|
|
144
|
+
title={on && theme.customised ? `${p.name}, with your changes. Click to go back to plain ${p.name}.` : p.blurb}
|
|
145
|
+
style={{
|
|
146
|
+
textAlign: 'left', padding: 8, borderRadius: 12, cursor: 'pointer', color: '#fff',
|
|
147
|
+
border: on ? '2px solid var(--sd-accent)' : '1px solid rgba(255,255,255,0.1)',
|
|
148
|
+
background: on ? 'color-mix(in srgb, var(--sd-accent) 10%, transparent)' : 'rgba(255,255,255,0.03)',
|
|
149
|
+
}}>
|
|
150
|
+
<ThemePreview theme={shown} width={172} height={96} />
|
|
151
|
+
<div style={{ display: 'flex', alignItems: 'baseline', gap: 6, margin: '8px 2px 2px' }}>
|
|
152
|
+
<span style={{ fontSize: 13.5, fontWeight: 700 }}>{p.name}</span>
|
|
153
|
+
{on && theme.customised && <span style={{ fontSize: 10.5, fontWeight: 700, color: 'var(--sd-accent)' }}>yours</span>}
|
|
154
|
+
</div>
|
|
155
|
+
<div style={{ fontSize: 11.5, color: '#889', lineHeight: 1.4, margin: '0 2px' }}>{p.blurb}</div>
|
|
156
|
+
</button>
|
|
157
|
+
);
|
|
158
|
+
})}
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<div style={{ marginTop: 22, padding: '4px 16px 16px', borderRadius: 12, border: '1px solid rgba(255,255,255,0.08)', background: 'rgba(255,255,255,0.02)' }}>
|
|
162
|
+
<div style={{ display: 'flex', alignItems: 'baseline', gap: 10, flexWrap: 'wrap' }}>
|
|
163
|
+
<div style={{ ...label, flex: 1 }}>Make it yours{theme.customised ? '' : `: starting from ${presetOf(choice.base).name}`}</div>
|
|
164
|
+
{theme.customised && (
|
|
165
|
+
<button type="button" onClick={() => setTheme({ base: choice.base, custom: {} })} style={{
|
|
166
|
+
padding: '4px 10px', borderRadius: 8, fontSize: 11.5, cursor: 'pointer', border: '1px solid rgba(255,255,255,0.12)', background: 'none', color: '#aab',
|
|
167
|
+
}}>Back to plain {presetOf(choice.base).name}</button>
|
|
168
|
+
)}
|
|
169
|
+
</div>
|
|
170
|
+
|
|
171
|
+
<div style={label}>Background</div>
|
|
172
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 8, marginBottom: 10 }}>
|
|
173
|
+
<Swatch name="Colour" value={theme.bg} onChange={(v) => change({ bg: v })} title="Behind everything" />
|
|
174
|
+
<Swatch name="Second colour" value={theme.bg2} onChange={(v) => change({ bg2: v })} title="The backdrop's: the nebula, the grid, the glow or the sunset" />
|
|
175
|
+
<Swatch name="Accent" value={theme.accent} onChange={(v) => change({ accent: v })} title="What's picked, and the backdrop's glow" />
|
|
176
|
+
</div>
|
|
177
|
+
<Pick value={theme.backdrop} options={BACKDROPS.map((b) => [b, BACKDROP_LABEL[b]])} onPick={(v) => change({ backdrop: v })} />
|
|
178
|
+
|
|
179
|
+
<div style={label}>Dots</div>
|
|
180
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 8 }}>
|
|
181
|
+
{TIER_KEYS.map((k) => <Swatch key={k} name={TIER_NAME[k]} value={theme.tiers[k]} onChange={(v) => changeTier(k, v)} />)}
|
|
182
|
+
<Swatch name="You" value={theme.you} onChange={(v) => change({ you: v })} title="Your own dot, in the middle of the map" />
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<div style={label}>Lines</div>
|
|
186
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: 8 }}>
|
|
187
|
+
<Pick value={theme.lines} options={[['tier', 'As the person they lead to'], ['one', 'One colour']]} onPick={(v) => change({ lines: v })} />
|
|
188
|
+
{theme.lines === 'one' && <Swatch name="Line colour" value={theme.line} onChange={(v) => change({ line: v })} />}
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<div style={label}>Panels</div>
|
|
192
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: 14 }}>
|
|
193
|
+
<Swatch name="Tint" value={theme.panel} onChange={(v) => change({ panel: v })} title="The side panels' colour" />
|
|
194
|
+
<label style={{ display: 'flex', alignItems: 'center', gap: 10, fontSize: 12.5, color: '#cdd' }}>
|
|
195
|
+
Glass
|
|
196
|
+
<input type="range" min={0} max={100} value={Math.round(theme.glass * 100)} onChange={(e) => change({ glass: Number(e.target.value) / 100 })}
|
|
197
|
+
style={{ width: 160, accentColor: 'var(--sd-accent)' }} />
|
|
198
|
+
<span style={{ color: '#889', fontVariantNumeric: 'tabular-nums', width: 34 }}>{Math.round(theme.glass * 100)}%</span>
|
|
199
|
+
</label>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
<div style={label}>Font</div>
|
|
203
|
+
<Pick value={theme.font} options={Object.keys(FONTS).map((f) => [f, FONT_LABEL[f]])} onPick={(v) => change({ font: v })} />
|
|
204
|
+
|
|
205
|
+
<div style={label}>Share it</div>
|
|
206
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 8, alignItems: 'center' }}>
|
|
207
|
+
<button type="button" onClick={copy} style={{
|
|
208
|
+
padding: '7px 14px', borderRadius: 8, fontSize: 12.5, fontWeight: 700, cursor: 'pointer',
|
|
209
|
+
border: '1px solid var(--sd-accent)', background: 'color-mix(in srgb, var(--sd-accent) 16%, transparent)', color: '#fff',
|
|
210
|
+
}}>Copy theme code</button>
|
|
211
|
+
<input value={code} onChange={(e) => setCode(e.target.value)} placeholder="Paste a theme code (sd-theme:…)" spellCheck={false}
|
|
212
|
+
onKeyDown={(e) => { if (e.key === 'Enter') paste(); }}
|
|
213
|
+
style={{ flex: '1 1 220px', minWidth: 0, padding: '7px 10px', borderRadius: 8, fontSize: 12, fontFamily: 'ui-monospace, Menlo, monospace', border: '1px solid rgba(255,255,255,0.12)', background: 'rgba(0,0,0,0.25)', color: '#dde' }} />
|
|
214
|
+
<button type="button" onClick={paste} disabled={!code.trim()} style={{
|
|
215
|
+
padding: '7px 14px', borderRadius: 8, fontSize: 12.5, fontWeight: 600, cursor: code.trim() ? 'pointer' : 'default',
|
|
216
|
+
border: '1px solid rgba(255,255,255,0.12)', background: 'rgba(255,255,255,0.04)', color: code.trim() ? '#dde' : '#667',
|
|
217
|
+
}}>Use it</button>
|
|
218
|
+
</div>
|
|
219
|
+
{note && <Body style={{ fontSize: 12, marginTop: 8 }}>{note}</Body>}
|
|
220
|
+
<Body style={{ fontSize: 11.5, color: '#667', marginTop: 8 }}>
|
|
221
|
+
A code holds colours and choices only, nothing about your network.
|
|
222
|
+
</Body>
|
|
223
|
+
</div>
|
|
224
|
+
</Section>
|
|
225
|
+
);
|
|
226
|
+
}
|
|
@@ -11,8 +11,9 @@ import { useUser } from '../UserProvider';
|
|
|
11
11
|
import { loadNetwork } from '../../../lib/network';
|
|
12
12
|
import { networkHealth } from '../../../lib/network-health';
|
|
13
13
|
import { Body, LINE } from '../ui';
|
|
14
|
+
import { TIER_COLORS as THEME_TIERS } from '../../../lib/themes';
|
|
14
15
|
|
|
15
|
-
const TIER =
|
|
16
|
+
const TIER = THEME_TIERS; // the theme's dot colours (lib/themes.js)
|
|
16
17
|
const pct = (x) => `${Math.round(x * 100)}%`;
|
|
17
18
|
|
|
18
19
|
export default function NetworkHealthSection() {
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
// new screens should use these rather than adding another.
|
|
6
6
|
|
|
7
7
|
export const LINE = '1px solid rgba(255,255,255,0.1)';
|
|
8
|
-
|
|
8
|
+
// The theme's font (lib/themes.js), Standard's until one is applied.
|
|
9
|
+
export const FONT = 'var(--sd-font)';
|
|
9
10
|
|
|
10
11
|
/** One titled block of settings. `id` makes it linkable (/settings#id). */
|
|
11
12
|
export function Section({ id, title, intro, children }) {
|
|
@@ -4,10 +4,78 @@
|
|
|
4
4
|
padding: 0;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
/* The theme (lib/themes.js): Standard's values until one is applied. Pages
|
|
8
|
+
leave their background clear, so the theme's colour and its backdrop show
|
|
9
|
+
behind everything, the map included. */
|
|
10
|
+
:root {
|
|
11
|
+
--sd-bg: #0a0a1a;
|
|
12
|
+
--sd-bg2: #1a1440;
|
|
13
|
+
--sd-accent: #3498db;
|
|
14
|
+
--sd-panel: rgba(10, 15, 30, 0.65);
|
|
15
|
+
--sd-panel-blur: blur(24px) saturate(1.4);
|
|
16
|
+
--sd-header: transparent;
|
|
17
|
+
--sd-header-blur: none;
|
|
18
|
+
--sd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
19
|
+
--sd-page: transparent;
|
|
20
|
+
}
|
|
21
|
+
|
|
7
22
|
body {
|
|
8
|
-
background:
|
|
23
|
+
background: var(--sd-bg);
|
|
9
24
|
color: #fff;
|
|
10
|
-
font-family: -
|
|
25
|
+
font-family: var(--sd-font);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Buttons and fields don't take the page's font on their own: the theme's, too. */
|
|
29
|
+
button, input, select, textarea {
|
|
30
|
+
font-family: inherit;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* The backdrops, drawn once behind the whole window. */
|
|
34
|
+
html:not([data-backdrop="none"]) body::before {
|
|
35
|
+
content: "";
|
|
36
|
+
position: fixed;
|
|
37
|
+
inset: 0;
|
|
38
|
+
z-index: -1;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
/* Stars: three layers of points, and a nebula in the theme's second colour. */
|
|
42
|
+
html[data-backdrop="stars"] body::before {
|
|
43
|
+
background:
|
|
44
|
+
radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
|
|
45
|
+
radial-gradient(1px 1px at 72% 34%, #fff 50%, transparent 51%),
|
|
46
|
+
radial-gradient(1.5px 1.5px at 38% 78%, #fff 50%, transparent 51%),
|
|
47
|
+
radial-gradient(1px 1px at 88% 82%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
|
|
48
|
+
radial-gradient(1px 1px at 56% 8%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
|
|
49
|
+
radial-gradient(1.2px 1.2px at 24% 52%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
|
|
50
|
+
radial-gradient(60% 45% at 75% 20%, color-mix(in srgb, var(--sd-bg2) 55%, transparent), transparent 70%),
|
|
51
|
+
radial-gradient(50% 40% at 15% 85%, color-mix(in srgb, var(--sd-accent) 18%, transparent), transparent 70%);
|
|
52
|
+
background-size: 180px 180px, 230px 230px, 310px 310px, 270px 270px, 150px 150px, 200px 200px, 100% 100%, 100% 100%;
|
|
53
|
+
}
|
|
54
|
+
/* Grid: a fine data grid, every fifth line stronger. */
|
|
55
|
+
html[data-backdrop="grid"] body::before {
|
|
56
|
+
background:
|
|
57
|
+
linear-gradient(color-mix(in srgb, var(--sd-bg2) 90%, #fff 10%) 1px, transparent 1px),
|
|
58
|
+
linear-gradient(90deg, color-mix(in srgb, var(--sd-bg2) 90%, #fff 10%) 1px, transparent 1px),
|
|
59
|
+
linear-gradient(color-mix(in srgb, var(--sd-bg2) 60%, transparent) 1px, transparent 1px),
|
|
60
|
+
linear-gradient(90deg, color-mix(in srgb, var(--sd-bg2) 60%, transparent) 1px, transparent 1px);
|
|
61
|
+
background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
|
|
62
|
+
}
|
|
63
|
+
/* Glow: soft blobs of colour, for frosted glass to blur. */
|
|
64
|
+
html[data-backdrop="glow"] body::before {
|
|
65
|
+
background:
|
|
66
|
+
radial-gradient(40% 50% at 18% 22%, color-mix(in srgb, var(--sd-bg2) 70%, transparent), transparent 70%),
|
|
67
|
+
radial-gradient(35% 45% at 82% 30%, color-mix(in srgb, var(--sd-accent) 45%, transparent), transparent 70%),
|
|
68
|
+
radial-gradient(45% 40% at 60% 88%, color-mix(in srgb, var(--sd-tier-a, #9b59b6) 40%, transparent), transparent 70%);
|
|
69
|
+
filter: blur(30px);
|
|
70
|
+
}
|
|
71
|
+
/* Horizon: a sunset glow and a floor of lines, low on the window. */
|
|
72
|
+
html[data-backdrop="horizon"] body::before {
|
|
73
|
+
background:
|
|
74
|
+
linear-gradient(transparent 62%, color-mix(in srgb, var(--sd-bg2) 22%, transparent) 62.2%, transparent 62.6%),
|
|
75
|
+
repeating-linear-gradient(90deg, color-mix(in srgb, var(--sd-bg2) 18%, transparent) 0 1px, transparent 1px 80px),
|
|
76
|
+
radial-gradient(70% 38% at 50% 62%, color-mix(in srgb, var(--sd-bg2) 38%, transparent), transparent 72%);
|
|
77
|
+
-webkit-mask-image: linear-gradient(transparent 30%, #000 60%);
|
|
78
|
+
mask-image: linear-gradient(transparent 30%, #000 60%);
|
|
11
79
|
}
|
|
12
80
|
|
|
13
81
|
/* The map pins itself so the graph canvas can fill the window. This used to be
|
|
@@ -4,8 +4,8 @@ import { useState, useRef } from 'react';
|
|
|
4
4
|
import { parseConnectionsCsv, saveCsvNetwork, ConnectionsCsvError, CSV_USER } from '../../lib/csv';
|
|
5
5
|
import { setUser } from '../../lib/user';
|
|
6
6
|
import Link from 'next/link';
|
|
7
|
+
import { TIER_COLORS } from '../../lib/themes';
|
|
7
8
|
|
|
8
|
-
const TIER_COLORS = { S: '#FFD700', A: '#9B59B6', B: '#3498DB', C: '#95A5A6', D: '#BDC3C7' };
|
|
9
9
|
|
|
10
10
|
const card = {
|
|
11
11
|
background: 'rgba(255,255,255,0.03)',
|
|
@@ -172,8 +172,8 @@ export default function ImportPage() {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
const wrap = {
|
|
175
|
-
minHeight: '100vh', background: '
|
|
176
|
-
fontFamily: '-
|
|
175
|
+
minHeight: '100vh', background: 'var(--sd-page)', color: '#fff', padding: '56px 24px',
|
|
176
|
+
fontFamily: 'var(--sd-font)',
|
|
177
177
|
display: 'flex', justifyContent: 'center',
|
|
178
178
|
};
|
|
179
179
|
|
|
@@ -21,11 +21,20 @@ import UserProvider from './components/UserProvider';
|
|
|
21
21
|
import StaleServerBanner from './components/StaleServerBanner';
|
|
22
22
|
import ScanStatusBar from './components/ScanStatusBar';
|
|
23
23
|
import SocialAutoSync from './components/SocialAutoSync';
|
|
24
|
+
import ThemeLoader from './components/ThemeLoader';
|
|
25
|
+
|
|
26
|
+
const THEME_FIRST = `try{var t=JSON.parse(localStorage.getItem('six-degrees-theme-vars')||'null');if(t&&t.vars){var r=document.documentElement;for(var k in t.vars){var v=String(t.vars[k]);if(/^--sd-[a-z0-9-]+$/.test(k)&&!/[;{}<>]/.test(v))r.style.setProperty(k,v)}var a=t.attrs||{};if(/^[a-z]+$/.test(a.theme||''))r.dataset.theme=a.theme;if(/^[a-z]+$/.test(a.backdrop||''))r.dataset.backdrop=a.backdrop}}catch(e){}`;
|
|
24
27
|
|
|
25
28
|
export default function RootLayout({ children }) {
|
|
26
29
|
return (
|
|
27
|
-
<html lang="en" className={`${geistSans.variable} ${geistMono.variable}`}>
|
|
28
|
-
<
|
|
30
|
+
<html lang="en" data-backdrop="none" className={`${geistSans.variable} ${geistMono.variable}`} suppressHydrationWarning>
|
|
31
|
+
<head>
|
|
32
|
+
{/* The theme (lib/theme-store.js), on the page before it paints. Only
|
|
33
|
+
--sd- variables, and only values with nothing that could end one. */}
|
|
34
|
+
<script dangerouslySetInnerHTML={{ __html: THEME_FIRST }} />
|
|
35
|
+
</head>
|
|
36
|
+
<body style={{ margin: 0, padding: 0, background: 'var(--sd-bg, #0a0a1a)' }}>
|
|
37
|
+
<ThemeLoader />
|
|
29
38
|
<UserProvider>
|
|
30
39
|
{children}
|
|
31
40
|
{/* Says so when the files on disk have moved past what this server
|