diff --git a/.github/workflows/build-test.yml.disabled b/.github/workflows/build-test.yml.disabled index ba2561f..c7a833e 100644 --- a/.github/workflows/build-test.yml.disabled +++ b/.github/workflows/build-test.yml.disabled @@ -49,7 +49,7 @@ jobs: - name: List build outputs (debug) run: | echo "=== Contents of target/release/ ===" - ls -lah target/release/ | grep exoplanets || echo "Not found in target/release/" + ls -lah target/release/ | grep exodata || echo "Not found in target/release/" echo "" echo "=== Contents of target/server/release/ ===" ls -lah target/server/release/ 2>/dev/null || echo "Directory doesn't exist" @@ -62,8 +62,8 @@ jobs: with: name: server-binary path: | - target/release/exoplanets-catalog - target/server/release/exoplanets-catalog + target/release/exodata-web + target/server/release/exodata-web retention-days: 7 if-no-files-found: error @@ -78,8 +78,8 @@ jobs: run: | echo "### Build Artifacts Generated ✅" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - echo "- **Server binary**: \`target/server/release/exoplanets-catalog\`" >> $GITHUB_STEP_SUMMARY + echo "- **Server binary**: \`target/server/release/exodata-web\`" >> $GITHUB_STEP_SUMMARY echo "- **Site files**: \`target/site/\`" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - echo "Binary size: $(du -h target/server/release/exoplanets-catalog | cut -f1)" >> $GITHUB_STEP_SUMMARY + echo "Binary size: $(du -h target/server/release/exodata-web | cut -f1)" >> $GITHUB_STEP_SUMMARY echo "Site size: $(du -sh target/site | cut -f1)" >> $GITHUB_STEP_SUMMARY diff --git a/Cargo.lock b/Cargo.lock index 470aa68..e9a5344 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1278,8 +1278,8 @@ dependencies = [ ] [[package]] -name = "exoplanets-catalog" -version = "0.3.12" +name = "exodata-web" +version = "0.3.14" dependencies = [ "axum", "console_error_panic_hook", diff --git a/Cargo.toml b/Cargo.toml index 2a71f0f..eb95d34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "exoplanets-catalog" -version = "0.3.12" +name = "exodata-web" +version = "0.3.14" edition = "2024" [workspace] @@ -101,7 +101,7 @@ panic = "abort" [package.metadata.leptos] # The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name -output-name = "exoplanets-catalog" +output-name = "exodata" # The site root folder is where cargo-leptos generate all output. WARNING: all content of this folder will be erased on a rebuild. Use it in your server setup. site-root = "target/site" diff --git a/DEPLOY.md b/DEPLOY.md index 8f82f25..be10e2e 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -83,7 +83,7 @@ just ansible-ping Expected output: ``` -exoplanets | SUCCESS => { +exodata | SUCCESS => { "changed": false, "ping": "pong" } @@ -134,7 +134,7 @@ git push origin main Or manually trigger from GitHub Actions UI: - Go to Actions → Deploy → Run workflow -Watch the build at: https://github.com/oiwn/exoplanets-catalog/actions +Watch the build at: https://github.com/oiwn/exodata/actions ### 2.2 Upload Data Files @@ -225,13 +225,13 @@ just ansible-logs ```bash # Check what address app is listening on -just ansible-run "docker logs exoplanets-catalog" +just ansible-run "docker logs exodata" # Should show: listening on http://0.0.0.0:3000 # If it shows 127.0.0.1:3000, env vars are not set # Check env vars -just ansible-run "docker inspect exoplanets-catalog --format '{{json .Config.Env}}'" +just ansible-run "docker inspect exodata --format '{{json .Config.Env}}'" # Should include LEPTOS_SITE_ADDR=0.0.0.0:3000 # If not, recreate container: just ansible-deploy @@ -257,7 +257,7 @@ cat infrastructure/ansible/.env ```bash # On the server, check if you can pull manually: -docker pull ghcr.io/oiwn/exoplanets-catalog:latest +docker pull ghcr.io/oiwn/exodata:latest # If private, you need GHCR_TOKEN in .env ``` @@ -290,7 +290,7 @@ certbot --nginx -d exodata.space │ │ │ │ ├──→ Build Docker image │ │ │ │ -│ └──→ Push to ghcr.io/oiwn/exoplanets-catalog │ +│ └──→ Push to ghcr.io/oiwn/exodata │ │ │ │ Developer Machine │ │ │ │ @@ -361,7 +361,7 @@ The app uses environment variables for production configuration (set automatical | Variable | Value | Description | |----------|-------|-------------| -| `LEPTOS_OUTPUT_NAME` | `exoplanets-catalog` | JS/WASM bundle name | +| `LEPTOS_OUTPUT_NAME` | `exodata` | JS/WASM bundle name | | `LEPTOS_SITE_ROOT` | `site` | Static files directory | | `LEPTOS_SITE_PKG_DIR` | `pkg` | JS/WASM subdirectory | | `LEPTOS_SITE_ADDR` | `0.0.0.0:3000` | Listen address (must be 0.0.0.0 for Docker) | @@ -375,7 +375,7 @@ The Dockerfile builds with `cargo leptos build --release --split`, which produce | File | Description | |------|-------------| -| `exoplanets-catalog.wasm` | Main bundle (535 KB) | +| `exodata.wasm` | Main bundle (535 KB) | | `split_*.wasm` | Per-route lazy chunks | | `chunk_*.wasm` | Shared dependency chunks | | `__wasm_split.______________________.js` | Chunk loader | diff --git a/Justfile b/Justfile index c18fbd1..be45d63 100644 --- a/Justfile +++ b/Justfile @@ -58,7 +58,7 @@ ansible-status: # View application logs ansible-logs: - cd {{ansible_dir}} && ansible all {{ansible_args}} -m shell -a "docker logs --tail 100 exoplanets-catalog" + cd {{ansible_dir}} && ansible all {{ansible_args}} -m shell -a "docker logs --tail 100 exodata" # SSH into server ansible-ssh: diff --git a/README.md b/README.md index 6b4a465..b09e017 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Exoplanets Catalog +# Exodata -![Coverage](https://codecov.io/gh/oiwn/exoplanets-catalog/branch/main/graph/badge.svg) +![Coverage](https://codecov.io/gh/oiwn/exodata/branch/main/graph/badge.svg) ![Rust](https://img.shields.io/badge/rust-1.85%2B-orange?logo=rust) ![Leptos](https://img.shields.io/badge/leptos-0.8-blue) ![WASM](https://img.shields.io/badge/WASM-535KB-purple) @@ -10,6 +10,8 @@ A web application for exploring the NASA Exoplanet Archive data. Browse stellar Live site: https://exodata.space/ +Source: + ![Exoplanets Catalog overview](screenshot.png) Built with Rust using [Leptos](https://github.com/leptos-rs/leptos) for the frontend, [Axum](https://github.com/tokio-rs/axum) for the backend, and [Polars](https://pola.rs/) for data processing. diff --git a/crates/exo-cli/Cargo.toml b/crates/exo-cli/Cargo.toml index 96d8ef1..d22570b 100644 --- a/crates/exo-cli/Cargo.toml +++ b/crates/exo-cli/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.1" edition = "2024" description = "Terminal client for Exoplanets Catalog data, SQL queries, schemas, downloads, and insights" license = "AGPL-3.0-only" -repository = "https://github.com/oiwn/exoplanets-catalog" +repository = "https://github.com/oiwn/exodata" homepage = "https://exodata.space" readme = "README.md" keywords = ["exoplanets", "astronomy", "nasa", "catalog", "cli"] diff --git a/crates/exo-cli/README.md b/crates/exo-cli/README.md index db34736..ebfe4b4 100644 --- a/crates/exo-cli/README.md +++ b/crates/exo-cli/README.md @@ -88,7 +88,7 @@ Claude Code: claude mcp add --transport http exodata https://exodata.space/mcp ``` -See [the MCP docs](https://github.com/oiwn/exoplanets-catalog/blob/main/docs/mcp.md#connecting-an-agent) +See [the MCP docs](https://github.com/oiwn/exodata/blob/main/docs/mcp.md#connecting-an-agent) for Crush, OpenCode, and Codex CLI snippets. If you prefer the CLI as an agent surface, install the bundled skill so coding @@ -103,16 +103,16 @@ exodata skill install global # writes ~/.agents/skills/exodata/SKILL.md Maintenance and data-preparation commands (raw-file conversion, sample views, local SQL against `data/`, etc.) are grouped under `exodata dev`. These are -not aimed at end users; see the [CLI spec](https://github.com/oiwn/exoplanets-catalog/blob/main/specs/cli.md#development-commands) +not aimed at end users; see the [CLI spec](https://github.com/oiwn/exodata/blob/main/specs/cli.md#development-commands) for the full list. ## More - Web UI: - REST API: -- Source: +- Source: - Full CLI docs: - + ## License diff --git a/crates/exo-core/Cargo.toml b/crates/exo-core/Cargo.toml index 55b2454..4365880 100644 --- a/crates/exo-core/Cargo.toml +++ b/crates/exo-core/Cargo.toml @@ -4,7 +4,7 @@ version = "0.2.0" edition = "2024" description = "Core data loading, metadata, insight, and table logic for Exoplanets Catalog" license = "AGPL-3.0-only" -repository = "https://github.com/oiwn/exoplanets-catalog" +repository = "https://github.com/oiwn/exodata" homepage = "https://exodata.space" [lib] diff --git a/crates/exo-types/Cargo.toml b/crates/exo-types/Cargo.toml index 6eab6ff..5ee058d 100644 --- a/crates/exo-types/Cargo.toml +++ b/crates/exo-types/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2024" description = "Shared serializable types for Exoplanets Catalog" license = "AGPL-3.0-only" -repository = "https://github.com/oiwn/exoplanets-catalog" +repository = "https://github.com/oiwn/exodata" homepage = "https://exodata.space" [lib] diff --git a/docker-compose.yml b/docker-compose.yml index fd3dd0d..18ee8a4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,11 @@ version: '3.8' services: - exoplanets-catalog: + exodata: build: context: . dockerfile: infrastructure/docker/Dockerfile - container_name: exoplanets-catalog + container_name: exodata restart: unless-stopped ports: - "3000:3000" diff --git a/docs/about.md b/docs/about.md index 3f76f8e..47607d0 100644 --- a/docs/about.md +++ b/docs/about.md @@ -74,4 +74,4 @@ Leptos server functions power the interactive website. REST endpoints expose the The project is open source: - + diff --git a/infrastructure/ansible/inventory/group_vars/all.yml b/infrastructure/ansible/inventory/group_vars/all.yml index 9191ee7..ba24380 100644 --- a/infrastructure/ansible/inventory/group_vars/all.yml +++ b/infrastructure/ansible/inventory/group_vars/all.yml @@ -3,11 +3,11 @@ domain: exodata.space admin_email: alex@imscraping.ninja # Docker image -docker_image: ghcr.io/oiwn/exoplanets-catalog +docker_image: ghcr.io/oiwn/exodata docker_tag: latest # Application settings -app_name: exoplanets-catalog +app_name: exodata app_port: 3000 data_path: /app/data diff --git a/infrastructure/ansible/inventory/group_vars/leptos_env.example.yml b/infrastructure/ansible/inventory/group_vars/leptos_env.example.yml index a38bf5a..2f355d0 100644 --- a/infrastructure/ansible/inventory/group_vars/leptos_env.example.yml +++ b/infrastructure/ansible/inventory/group_vars/leptos_env.example.yml @@ -1,5 +1,5 @@ leptos_env: - LEPTOS_OUTPUT_NAME: "exoplanets-catalog" + LEPTOS_OUTPUT_NAME: "exodata" LEPTOS_SITE_ROOT: "site" LEPTOS_SITE_PKG_DIR: "pkg" LEPTOS_SITE_ADDR: "0.0.0.0:3000" diff --git a/infrastructure/ansible/inventory/hosts.yml b/infrastructure/ansible/inventory/hosts.yml index 4d47e24..48fa819 100644 --- a/infrastructure/ansible/inventory/hosts.yml +++ b/infrastructure/ansible/inventory/hosts.yml @@ -1,6 +1,6 @@ all: hosts: - exoplanets: + exodata: ansible_host: "{{ droplet_ip }}" ansible_user: root ansible_python_interpreter: /usr/bin/python3 diff --git a/infrastructure/ansible/playbooks/deploy.yml b/infrastructure/ansible/playbooks/deploy.yml index 59c9a05..198cc7e 100644 --- a/infrastructure/ansible/playbooks/deploy.yml +++ b/infrastructure/ansible/playbooks/deploy.yml @@ -1,6 +1,6 @@ --- -- name: Deploy Exoplanets Catalog - hosts: exoplanets +- name: Deploy Exodata + hosts: exodata become: yes vars_files: @@ -8,6 +8,13 @@ - ../inventory/group_vars/leptos_env.yml tasks: + - name: Log in to GitHub Container Registry + community.docker.docker_login: + registry: ghcr.io + username: "{{ lookup('env', 'GHCR_USER') }}" + password: "{{ lookup('env', 'GHCR_TOKEN') }}" + when: lookup('env', 'GHCR_TOKEN') | length > 0 + - name: Pull latest Docker image community.docker.docker_image: name: "{{ docker_image }}" @@ -30,7 +37,7 @@ - "{{ app_port }}:3000" volumes: - "{{ data_path }}:/app/data:ro" - env: "{{ leptos_env }}" + env: "{{ leptos_env | combine({'LEPTOS_OUTPUT_NAME': 'exodata'}) }}" - name: Wait for application health check ansible.builtin.uri: diff --git a/infrastructure/ansible/playbooks/setup.yml b/infrastructure/ansible/playbooks/setup.yml index 8713afd..4392809 100644 --- a/infrastructure/ansible/playbooks/setup.yml +++ b/infrastructure/ansible/playbooks/setup.yml @@ -1,6 +1,6 @@ --- -- name: Setup Exoplanets Catalog Server - hosts: exoplanets +- name: Setup Exodata Server + hosts: exodata become: yes vars_files: diff --git a/infrastructure/ansible/playbooks/ssl.yml b/infrastructure/ansible/playbooks/ssl.yml index d2043af..844c140 100644 --- a/infrastructure/ansible/playbooks/ssl.yml +++ b/infrastructure/ansible/playbooks/ssl.yml @@ -1,6 +1,6 @@ --- - name: Setup SSL Certificate - hosts: exoplanets + hosts: exodata become: yes vars_files: diff --git a/infrastructure/ansible/playbooks/upload-data.yml b/infrastructure/ansible/playbooks/upload-data.yml index af616ec..8d0215a 100644 --- a/infrastructure/ansible/playbooks/upload-data.yml +++ b/infrastructure/ansible/playbooks/upload-data.yml @@ -1,6 +1,6 @@ --- - name: Upload Data Files - hosts: exoplanets + hosts: exodata become: yes vars_files: diff --git a/infrastructure/ansible/requirements.yml b/infrastructure/ansible/requirements.yml new file mode 100644 index 0000000..660f775 --- /dev/null +++ b/infrastructure/ansible/requirements.yml @@ -0,0 +1,3 @@ +--- +collections: + - name: community.docker diff --git a/infrastructure/ansible/roles/app/tasks/main.yml b/infrastructure/ansible/roles/app/tasks/main.yml index d94ed9b..54de111 100644 --- a/infrastructure/ansible/roles/app/tasks/main.yml +++ b/infrastructure/ansible/roles/app/tasks/main.yml @@ -21,4 +21,4 @@ - "{{ app_port }}:3000" volumes: - "{{ data_path }}:/app/data:ro" - env: "{{ leptos_env }}" + env: "{{ leptos_env | combine({'LEPTOS_OUTPUT_NAME': 'exodata'}) }}" diff --git a/infrastructure/ansible/roles/nginx/tasks/main.yml b/infrastructure/ansible/roles/nginx/tasks/main.yml index 555727d..0077e35 100644 --- a/infrastructure/ansible/roles/nginx/tasks/main.yml +++ b/infrastructure/ansible/roles/nginx/tasks/main.yml @@ -11,8 +11,8 @@ - name: Deploy Nginx site configuration ansible.builtin.template: - src: exoplanets.conf.j2 - dest: /etc/nginx/sites-available/exoplanets + src: exodata.conf.j2 + dest: /etc/nginx/sites-available/exodata mode: '0644' vars: ssl_enabled: "{{ ssl_cert.stat.exists }}" @@ -20,11 +20,20 @@ - name: Enable site ansible.builtin.file: - src: /etc/nginx/sites-available/exoplanets - dest: /etc/nginx/sites-enabled/exoplanets + src: /etc/nginx/sites-available/exodata + dest: /etc/nginx/sites-enabled/exodata state: link notify: Reload Nginx +- name: Remove legacy Nginx site + ansible.builtin.file: + path: "{{ item }}" + state: absent + loop: + - /etc/nginx/sites-enabled/exoplanets + - /etc/nginx/sites-available/exoplanets + notify: Reload Nginx + - name: Remove default site ansible.builtin.file: path: /etc/nginx/sites-enabled/default diff --git a/infrastructure/ansible/roles/nginx/templates/exoplanets.conf.j2 b/infrastructure/ansible/roles/nginx/templates/exodata.conf.j2 similarity index 100% rename from infrastructure/ansible/roles/nginx/templates/exoplanets.conf.j2 rename to infrastructure/ansible/roles/nginx/templates/exodata.conf.j2 diff --git a/infrastructure/docker/Dockerfile b/infrastructure/docker/Dockerfile index 3d7717a..ef29236 100644 --- a/infrastructure/docker/Dockerfile +++ b/infrastructure/docker/Dockerfile @@ -42,10 +42,8 @@ RUN cargo leptos build --release --split # Normalize the server binary name for the runtime image. cargo-leptos has used # different target names as the package and public command names changed. RUN mkdir -p /app/server-bin && \ - if [ -x /app/target/release/exodata ]; then \ - cp /app/target/release/exodata /app/server-bin/exodata; \ - elif [ -x /app/target/release/exoplanets-catalog ]; then \ - cp /app/target/release/exoplanets-catalog /app/server-bin/exodata; \ + if [ -x /app/target/release/exodata-web ]; then \ + cp /app/target/release/exodata-web /app/server-bin/exodata; \ else \ echo "Server binary not found" >&2; \ ls -lah /app/target/release/ >&2; \ @@ -54,7 +52,7 @@ RUN mkdir -p /app/server-bin && \ # Debug: List where files actually are RUN echo "=== Listing target/release ===" && \ - ls -lah /app/target/release/ | grep -E 'exodata|exoplanets' || true && \ + ls -lah /app/target/release/ | grep -E 'exodata' || true && \ echo "=== Listing target/server/release ===" && \ ls -lah /app/target/server/release/ 2>/dev/null || echo "Directory does not exist" && \ echo "=== Listing target/site ===" && \ diff --git a/infrastructure/tofu/cloud-init.yaml b/infrastructure/tofu/cloud-init.yaml index c488516..4406181 100644 --- a/infrastructure/tofu/cloud-init.yaml +++ b/infrastructure/tofu/cloud-init.yaml @@ -10,7 +10,7 @@ packages: - curl write_files: - - path: /etc/nginx/sites-available/exoplanets + - path: /etc/nginx/sites-available/exodata content: | server { listen 80; @@ -31,7 +31,7 @@ write_files: runcmd: # Setup Nginx - - ln -sf /etc/nginx/sites-available/exoplanets /etc/nginx/sites-enabled/ + - ln -sf /etc/nginx/sites-available/exodata /etc/nginx/sites-enabled/ - rm -f /etc/nginx/sites-enabled/default - systemctl restart nginx diff --git a/infrastructure/tofu/main.tf b/infrastructure/tofu/main.tf index 6a85aae..2ad6192 100644 --- a/infrastructure/tofu/main.tf +++ b/infrastructure/tofu/main.tf @@ -18,7 +18,7 @@ variable "ssh_key_fingerprint" { variable "domain" { type = string - default = "exoplanets.yourdomain.com" + default = "exodata.yourdomain.com" } variable "cloudflare_email" { @@ -31,7 +31,7 @@ provider "digitalocean" { # Create droplet resource "digitalocean_droplet" "app" { - name = "exoplanets-catalog" + name = "exodata" region = "nyc3" size = "s-1vcpu-2gb" # $12/month image = "ubuntu-24-04-x64" @@ -46,7 +46,7 @@ resource "digitalocean_droplet" "app" { # Firewall resource "digitalocean_firewall" "web" { - name = "exoplanets-web" + name = "exodata-web" droplet_ids = [digitalocean_droplet.app.id] inbound_rule { diff --git a/infrastructure/tofu/terraform.tfvars.example b/infrastructure/tofu/terraform.tfvars.example index 4bf4a5b..44941c4 100644 --- a/infrastructure/tofu/terraform.tfvars.example +++ b/infrastructure/tofu/terraform.tfvars.example @@ -1,4 +1,4 @@ do_token = "dop_v1_xxxxxxxxxxxxx" ssh_key_fingerprint = "aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99" -domain = "exoplanets.yourdomain.com" +domain = "exodata.yourdomain.com" cloudflare_email = "your@email.com" diff --git a/specs/ctx.md b/specs/ctx.md index 789bb05..bd92f0c 100644 --- a/specs/ctx.md +++ b/specs/ctx.md @@ -1 +1,17 @@ -# Current Task Context +# Current Task Context: Rename repository identity and deploy + +State: in progress + +## Plan + +- [x] Rename repository, package metadata, operational identifiers, and public links to Exodata. +- [x] Keep CI as build-and-push only; deployment stays manual via Ansible from local. +- [ ] Bump version, merge to `main`, and let CI build & push the `ghcr.io/oiwn/exodata` image. +- [ ] Deploy with `just ansible-deploy` locally and verify production. + +## Next + +Bump the version in `Cargo.toml`, open a PR and merge to `main`. CI builds the +image (website + wasm) and pushes it to GHCR as `exodata:` + `latest`. +Then run `just ansible-deploy` locally (pulls `latest`) and verify the deployed +health endpoint at https://exodata.space. diff --git a/specs/web-frontend.md b/specs/web-frontend.md index 9d02116..fbd951d 100644 --- a/specs/web-frontend.md +++ b/specs/web-frontend.md @@ -48,7 +48,7 @@ pub fn App() -> impl IntoView { provide_meta_context(); view! { - + <Router> @@ -465,8 +465,8 @@ Automatically injected by `HydrationScripts`: ``` This loads: -- WASM module (`/pkg/exoplanets-catalog_bg.wasm`) -- JS glue code (`/pkg/exoplanets-catalog.js`) +- WASM module (`/pkg/exodata_bg.wasm`) +- JS glue code (`/pkg/exodata.js`) - Hydration data (serialized state) ## Build Process @@ -490,7 +490,7 @@ cargo leptos build --release ``` Outputs: -- `target/server/release/exoplanets-catalog` (server binary) +- `target/server/release/exodata-web` (server binary) - `target/site/pkg/` (optimized WASM and JS) - `target/site/` (static assets) diff --git a/src/app.rs b/src/app.rs index 5fd7698..73ae087 100644 --- a/src/app.rs +++ b/src/app.rs @@ -63,7 +63,7 @@ pub fn App() -> impl IntoView { view! { // injects a stylesheet into the document <head> // id=leptos means cargo-leptos will hot-reload this stylesheet - <Stylesheet id="leptos" href="/pkg/exoplanets-catalog.css"/> + <Stylesheet id="leptos" href="/pkg/exodata.css"/> <Title text=SITE_NAME/> diff --git a/src/components/navbar.rs b/src/components/navbar.rs index fe08f2f..45a5188 100644 --- a/src/components/navbar.rs +++ b/src/components/navbar.rs @@ -116,7 +116,7 @@ pub fn Navbar() -> impl IntoView { </a> <a - href="https://github.com/oiwn/exoplanets-catalog" + href="https://github.com/oiwn/exodata" class=icon_link_class target="_blank" rel="noopener noreferrer" @@ -230,7 +230,7 @@ pub fn Navbar() -> impl IntoView { <LanguageSwitcher/> <a - href="https://github.com/oiwn/exoplanets-catalog" + href="https://github.com/oiwn/exodata" class=mobile_link_class target="_blank" rel="noopener noreferrer" diff --git a/src/main.rs b/src/main.rs index 30f8a1b..1988bce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,13 +46,13 @@ async fn start_server() { use exo_core::metadata; use exo_core::tables::common as data_common; use exo_core::tables::overview as aggregation; - use exoplanets_catalog::app::{App, shell}; - use exoplanets_catalog::metadata::AppMetadata; - use exoplanets_catalog::server::data::{ + use exodata_web::app::{App, shell}; + use exodata_web::metadata::AppMetadata; + use exodata_web::server::data::{ insights as server_insights, tables as server_tables, }; - use exoplanets_catalog::server::functions::DataStats; - use exoplanets_catalog::server::{self, ApiState}; + use exodata_web::server::functions::DataStats; + use exodata_web::server::{self, ApiState}; use leptos::prelude::{get_configuration, provide_context}; use leptos_axum::{LeptosRoutes, generate_route_list}; use std::path::Path;