Skip to content

Commit

Permalink
build(deps-dev): bump svelte-check from 3.8.6 to 4.0.2 (#1710)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump svelte-check from 3.8.6 to 4.0.2

Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.8.6 to 4.0.2.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](sveltejs/language-tools@svelte-check-3.8.6...svelte-check-4.0.2)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: update svelte-check errors (#1715)

Signed-off-by: Jeff MAURY <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jeff MAURY <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jeff MAURY <[email protected]>
  • Loading branch information
dependabot[bot] and jeffmaury authored Sep 13, 2024
1 parent 6a229f4 commit 4de6066
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 130 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"globals": "^15.9.0",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"svelte-check": "^3.8.6",
"svelte-check": "^4.0.2",
"svelte-eslint-parser": "^0.41.0",
"typescript": "5.6.2",
"typescript-eslint": "^8.5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function handleOnChange(nValue: ContainerProviderConnectionInfo | undefined): vo
label="Select Container Engine"
name="select-container-engine"
disabled={disabled}
bind:value={selected}
value={selected}
onchange={handleOnChange}
placeholder="Select container provider to use"
items={containerProviderConnections.map(containerProviderConnection => ({
Expand Down
14 changes: 5 additions & 9 deletions packages/frontend/src/pages/StartRecipe.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $: models = $modelsInfo.filter(
);
// Hold the selected model
let value: (ModelInfo & { label: string; value: string }) | undefined = undefined;
let value: ModelInfo | undefined = undefined;
$: {
// let's select a default model
Expand All @@ -75,13 +75,13 @@ let loading: boolean = false;
// All tasks are successful (not any in error)
let completed: boolean = false;
const getFirstRecommended = (): (ModelInfo & { label: string; value: string }) | undefined => {
const getFirstRecommended = (): ModelInfo | undefined => {
if (!recipe || !models) return undefined;
const recommended = recipe.recommended && recipe.recommended.length > 0 ? recipe.recommended[0] : undefined;
const model = models.find(model => model.id === recommended);
if (!model) return undefined;
return { ...model, label: model.name, value: model.id };
return model;
};
const processTasks = (tasks: Task[]): void => {
Expand Down Expand Up @@ -116,7 +116,7 @@ function populateModelFromTasks(): void {
const model = models.find(model => model.id === modelId);
if (!model) return;
value = { ...model, label: model.name, value: model.id };
value = model;
}
async function submit(): Promise<void> {
Expand Down Expand Up @@ -217,11 +217,7 @@ function handleOnClick(): void {
<!-- model form -->
<label for="select-model" class="pt-4 block mb-2 font-bold text-[var(--pd-content-card-header-text)]"
>Model</label>
<ModelSelect
bind:value={value}
disabled={loading}
recommended={recipe.recommended}
models={models.map(model => ({ ...model, value: model.id, label: model.name }))} />
<ModelSelect bind:value={value} disabled={loading} recommended={recipe.recommended} models={models} />
{#if value && value.file === undefined}
<div class="text-gray-800 text-sm flex items-center">
<Fa class="mr-2" icon={faWarning} />
Expand Down
139 changes: 20 additions & 119 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4de6066

Please sign in to comment.