Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest ui-svelte version including DetailsPage #1238

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"watch": "vite --mode development build -w"
},
"dependencies": {
"@podman-desktop/ui-svelte": "0.0.202406111514-622e691",
"@podman-desktop/ui-svelte": "^1.11.0-202406181903-a7b815c",
"tinro": "^0.6.12"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script lang="ts">
import PlaygroundWhite from '../../icons/PlaygroundWhite.svelte';
// svelte-ignore unused-export-let
export let object: {};
</script>

<PlaygroundWhite />
14 changes: 7 additions & 7 deletions packages/frontend/src/pages/Playgrounds.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import { router } from 'tinro';
import NavPage from '../lib/NavPage.svelte';
import PlaygroundColumnModel from '../lib/table/playground/PlaygroundColumnModel.svelte';
import PlaygroundColumnName from '../lib/table/playground/PlaygroundColumnName.svelte';
import type { PlaygroundV2 } from '@shared/src/models/IPlaygroundV2';
import ConversationColumnAction from '/@/lib/table/playground/ConversationColumnAction.svelte';
import { conversations } from '/@/stores/conversations';
import PlaygroundColumnIcon from '/@/lib/table/playground/PlaygroundColumnIcon.svelte';
import { Button } from '@podman-desktop/ui-svelte';
import { Table, TableColumn, TableRow } from '@podman-desktop/ui-svelte';
import type { Conversation } from '@shared/src/models/IPlaygroundMessage';

const columns: TableColumn<PlaygroundV2>[] = [
new TableColumn<PlaygroundV2>('', { width: '40px', renderer: PlaygroundColumnIcon }),
new TableColumn<PlaygroundV2>('Name', { width: '1fr', renderer: PlaygroundColumnName }),
new TableColumn<PlaygroundV2>('Model', { width: '1fr', renderer: PlaygroundColumnModel }),
new TableColumn<PlaygroundV2>('Actions', { width: '40px', renderer: ConversationColumnAction, align: 'center' }),
const columns = [
new TableColumn<{}>('', { width: '40px', renderer: PlaygroundColumnIcon }),
new TableColumn<Conversation>('Name', { width: '1fr', renderer: PlaygroundColumnName }),
new TableColumn<Conversation>('Model', { width: '1fr', renderer: PlaygroundColumnModel }),
new TableColumn<Conversation>('Actions', { width: '40px', renderer: ConversationColumnAction, align: 'center' }),
];
const row = new TableRow<PlaygroundV2>({});
const row = new TableRow<Conversation>({});

function createNewPlayground() {
router.goto('/playground/create');
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/pages/RecipeModels.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ModelColumnRecipeRecommended from '../lib/table/model/ModelColumnRecipeRe
import ModelColumnIcon from '/@/lib/table/model/ModelColumnIcon.svelte';
import { Table, TableColumn, TableRow } from '@podman-desktop/ui-svelte';
import type { ModelInfo } from '@shared/src/models/IModelInfo';
import type { RecipeModelInfo } from '../models/RecipeModelInfo';

export let models: ModelInfo[];
export let recommended: string[];
Expand All @@ -19,7 +20,7 @@ $: models = models.map((m, i) => {
});

const columns = [
new TableColumn<ModelInfo>('', { width: '20px', renderer: ModelColumnRecipeSelection }),
new TableColumn<RecipeModelInfo>('', { width: '20px', renderer: ModelColumnRecipeSelection }),
new TableColumn<ModelInfo, boolean>('', {
width: '20px',
renderer: ModelColumnRecipeRecommended,
Expand Down
39 changes: 7 additions & 32 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@
resolved "https://registry.yarnpkg.com/@podman-desktop/tests-playwright/-/tests-playwright-1.10.3.tgz#e0e7068b604cd45b537c53a1bce67c8f716ac7fe"
integrity sha512-pYB9uniwAUNzCPtVqXvejuI1m7GJRjhSAZq4NFW99nm5X2e17c2h0n4wvJDsDHCMs3sKN15ftdKRxdgi13r0mQ==

"@podman-desktop/ui-svelte@0.0.202406111514-622e691":
version "0.0.202406111514-622e691"
resolved "https://registry.yarnpkg.com/@podman-desktop/ui-svelte/-/ui-svelte-0.0.202406111514-622e691.tgz#af74679d7907cb8abb9a6fb8df7ae8fbf87f7789"
integrity sha512-Z6VP724oWGlhNIsTNRwzuSR/B39PNxWSGZVMhmPlCM8U24av/1uGW5VxuO9ed/5ook19/S6BCw31cFNnPFuusg==
"@podman-desktop/ui-svelte@^1.11.0-202406181903-a7b815c":
version "1.11.0-202406181903-a7b815c"
resolved "https://registry.yarnpkg.com/@podman-desktop/ui-svelte/-/ui-svelte-1.11.0-202406181903-a7b815c.tgz#7717b16b7930a60cff1e28ad7865dc49bca9b7f3"
integrity sha512-XfePa7XenjynqYxAG/aoKX8Fk8wytnDyNgEPvYbFN/VBzzcmxaSjVZ7bWdQKLeqiKItx7OedfePoYvoZOhswiQ==
dependencies:
"@fortawesome/fontawesome-free" "^6.5.2"
"@fortawesome/free-brands-svg-icons" "^6.5.2"
Expand Down Expand Up @@ -4292,16 +4292,7 @@ stop-iteration-iterator@^1.0.0:
dependencies:
internal-slot "^1.0.4"

"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"

string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
Expand Down Expand Up @@ -4353,14 +4344,7 @@ string_decoder@^1.1.1:
dependencies:
safe-buffer "~5.2.0"

"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

strip-ansi@^6.0.0, strip-ansi@^6.0.1:
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down Expand Up @@ -4993,16 +4977,7 @@ winreg@^1.2.5:
resolved "https://registry.yarnpkg.com/winreg/-/winreg-1.2.5.tgz#b650383e89278952494b5d113ba049a5a4fa96d8"
integrity sha512-uf7tHf+tw0B1y+x+mKTLHkykBgK2KMs3g+KlzmyMbLvICSHQyB/xOFjTT8qZ3oeTFyU7Bbj4FzXitGG6jvKhYw==

"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
version "7.0.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^7.0.0:
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
Expand Down