Skip to content

Commit

Permalink
chore: light mode for Services page
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Martin <[email protected]>
  • Loading branch information
feloy committed Jun 21, 2024
1 parent e530369 commit 32bcc6d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ export let object: InferenceServer;
</script>

{#if object.models.length === 1}
<span class="text-sm text-gray-700">
<span class="text-sm text-[var(--pd-table-body-text)]">
{object.models[0].name}
</span>
{:else}
<ul>
{#each object.models as model}
<li class="text-sm text-gray-700">{model.name}</li>
<li class="text-sm text-[var(--pd-table-body-text)]">{model.name}</li>
{/each}
</ul>
{/if}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function openDetails() {

<button
title="Open service details"
class="text-sm text-gray-700 w-full text-ellipsis overflow-hidden"
class="text-sm text-[var(--pd-table-body-text-highlight)] w-full text-ellipsis overflow-hidden"
on:click="{() => openDetails()}">
{object.container.containerId}
</button>
30 changes: 16 additions & 14 deletions packages/frontend/src/pages/InferenceServers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,23 @@ function createNewService() {
row="{row}"
bind:selectedItemsNumber="{selectedItemsNumber}" />
{:else}
<div role="status">
There is no model service. You can <a
href="{'javascript:void(0);'}"
class="underline"
role="button"
title="Create a new Model Service"
on:click="{createNewService}">create one now</a
>.
<div class="text-[var(--pd-details-body-text)]">
<div role="status">
There is no model service. You can <a
href="{'javascript:void(0);'}"
class="underline"
role="button"
title="Create a new Model Service"
on:click="{createNewService}">create one now</a
>.
</div>
<p>
A model service offers a configurable endpoint via an OpenAI-compatible web server, facilitating a
seamless integration of AI capabilities into existing applications. Upon initialization, effortlessly
access detailed service information and generate code snippets in multiple programming languages to ease
application integration.
</p>
</div>
<p>
A model service offers a configurable endpoint via an OpenAI-compatible web server, facilitating a
seamless integration of AI capabilities into existing applications. Upon initialization, effortlessly
access detailed service information and generate code snippets in multiple programming languages to ease
application integration.
</p>
{/if}
</div>
</div>
Expand Down

0 comments on commit 32bcc6d

Please sign in to comment.