diff --git a/api/src/endpoints/get_repos.rs b/api/src/endpoints/get_repos.rs index 3440f9e..43de182 100644 --- a/api/src/endpoints/get_repos.rs +++ b/api/src/endpoints/get_repos.rs @@ -41,9 +41,8 @@ pub async fn get_repos( .get_repositories(&user.id) .await? .into_iter() - .map(|r| r.id.clone()) + .map(|r| r.id) .collect::>(); - tracing::debug!(added_response = ?added_ids); let data = response .json::>() .await? diff --git a/src/lib/Repos.svelte b/src/lib/Repos.svelte index 9d9fbfa..fab2171 100644 --- a/src/lib/Repos.svelte +++ b/src/lib/Repos.svelte @@ -86,23 +86,20 @@ }; const languageColors: Record = { - GDScript: 'bg-blue-500', - 'C#': 'bg-green-500', - Rust: 'bg-orange-500', - C: 'bg-gray-500', - 'C++': 'bg-pink-500' + GDScript: 'bg-lang-gdscript', + Rust: 'bg-lang-rust' }; -
+
- -

Import Git Repository

- repo must be public + +

Import Git Repository

+ repo must be public
(searching ? searchResultsQuery.refetch() : query.refetch())} > @@ -111,34 +108,35 @@
- +
{#each repos as repo (repo.id)}
-

{repo.name}

+

{repo.name}

{#if repo.description} -

{repo.description}

+

{repo.description}

{:else} -

No description

+

No description

{/if} -
+
{#if repo.language} {repo.language} @@ -154,11 +152,11 @@
handleImport(repo)} > @@ -177,14 +175,14 @@
{:else} -
+

No repositories found matching "{searchQuery}"

{/if} {/each}
-

+

You must have a dist/ folder with index.html + index.wasm

diff --git a/src/routes/layout.css b/src/routes/layout.css index c470ce0..e7b0048 100644 --- a/src/routes/layout.css +++ b/src/routes/layout.css @@ -1,5 +1,35 @@ @import "tailwindcss"; +@theme { + --color-surface: var(--color-gray-900); + --color-surface-hover: var(--color-gray-800); + --color-surface-muted: oklch(from var(--color-gray-800) l c h / 40%); + + --color-border: var(--color-gray-800); + --color-border-hover: var(--color-gray-700); + --color-border-focus: var(--color-blue-500); + + --color-text-primary: var(--color-white); + --color-text-secondary: var(--color-gray-400); + --color-text-muted: var(--color-gray-500); + + --color-icon: var(--color-gray-400); + --color-icon-muted: var(--color-gray-500); + + --color-primary: var(--color-blue-600); + --color-primary-hover: var(--color-blue-500); + + --color-success: var(--color-green-900); + --color-success-border: var(--color-green-800); + + --color-lang-gdscript: var(--color-blue-500); + --color-lang-csharp: var(--color-green-500); + --color-lang-rust: var(--color-orange-500); + --color-lang-c: var(--color-gray-500); + --color-lang-cpp: var(--color-pink-500); + --color-lang-default: var(--color-gray-500); +} + :root { font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; @@ -61,10 +91,6 @@ h1 { @apply hover:bg-gray-800; } -#nprogress .bar { - top: 3.5rem; -} - button:default { border-radius: 8px; border: 1px solid transparent;