Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cyderize committed Feb 18, 2025
1 parent 4d4d386 commit a28421b
Show file tree
Hide file tree
Showing 9 changed files with 650 additions and 528 deletions.
936 changes: 528 additions & 408 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
"dev": "vite"
},
"devDependencies": {
"@lezer/generator": "^1.7.1",
"@sveltejs/vite-plugin-svelte": "^4.0.1",
"minizinc": "^4.3.5",
"prettier": "^3.3.3",
"sass": "^1.81.0",
"svelte": "^5.2.7",
"vite": "^5.4.11"
"@lezer/generator": "^1.7.2",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"minizinc": "^4.4.0",
"prettier": "^3.5.1",
"sass": "^1.85.0",
"svelte": "^5.20.1",
"vite": "^6.1.0"
},
"dependencies": {
"@codemirror/commands": "^6.7.1",
"@codemirror/commands": "^6.8.0",
"@codemirror/lang-html": "^6.4.9",
"@codemirror/lang-json": "^6.0.1",
"@fortawesome/fontawesome-svg-core": "^6.7.1",
"@fortawesome/free-solid-svg-icons": "^6.7.1",
"@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@lezer/highlight": "^1.2.1",
"@lezer/lr": "^1.4.2",
"bulma": "^1.0.2",
"bulma": "^1.0.3",
"codemirror": "^6.0.1",
"file-saver": "^2.0.5",
"jszip": "^3.10.1",
Expand Down
38 changes: 19 additions & 19 deletions src/bulma.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
@forward 'node_modules/bulma/sass/utilities';
@forward 'node_modules/bulma/sass/themes/light' as theme-light-*;
@forward 'node_modules/bulma/sass/themes/dark' as theme-dark-*;
@forward 'node_modules/bulma/sass/themes/setup' as theme-setup-*;
@forward 'node_modules/bulma/sass/base';
@forward 'node_modules/bulma/sass/elements/button';
@forward 'node_modules/bulma/sass/elements/delete';
@forward 'node_modules/bulma/sass/elements/icon';
@forward 'node_modules/bulma/sass/elements/table';
@forward 'node_modules/bulma/sass/form';
@forward 'node_modules/bulma/sass/components/dropdown';
@forward 'node_modules/bulma/sass/components/menu';
@forward 'node_modules/bulma/sass/components/modal';
@forward 'node_modules/bulma/sass/components/navbar';
@forward 'node_modules/bulma/sass/components/panel';
@forward 'node_modules/bulma/sass/components/tabs';
@forward 'node_modules/bulma/sass/helpers/color';
@forward 'node_modules/bulma/sass/helpers/typography';
@forward 'node_modules/bulma/sass/helpers/visibility';
@forward '../node_modules/bulma/sass/utilities';
@forward '../node_modules/bulma/sass/themes/light' as theme-light-*;
@forward '../node_modules/bulma/sass/themes/dark' as theme-dark-*;
@forward '../node_modules/bulma/sass/themes/setup' as theme-setup-*;
@forward '../node_modules/bulma/sass/base';
@forward '../node_modules/bulma/sass/elements/button';
@forward '../node_modules/bulma/sass/elements/delete';
@forward '../node_modules/bulma/sass/elements/icon';
@forward '../node_modules/bulma/sass/elements/table';
@forward '../node_modules/bulma/sass/form';
@forward '../node_modules/bulma/sass/components/dropdown';
@forward '../node_modules/bulma/sass/components/menu';
@forward '../node_modules/bulma/sass/components/modal';
@forward '../node_modules/bulma/sass/components/navbar';
@forward '../node_modules/bulma/sass/components/panel';
@forward '../node_modules/bulma/sass/components/tabs';
@forward '../node_modules/bulma/sass/helpers/color';
@forward '../node_modules/bulma/sass/helpers/typography';
@forward '../node_modules/bulma/sass/helpers/visibility';
2 changes: 1 addition & 1 deletion src/lib/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
</script>

<div class="mzn-editor" bind:this={div} />
<div class="mzn-editor" bind:this={div}></div>

<style>
.mzn-editor {
Expand Down
164 changes: 83 additions & 81 deletions src/lib/ManageFilesModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@
.filter(
(f) =>
f.file.name.endsWith('.mzn') &&
!f.file.name.endsWith('.mzc.mzn')
!f.file.name.endsWith('.mzc.mzn'),
)
.sort((a, b) => a.file.name.localeCompare(b.file.name));
$: data = indexed
.filter(
(f) => f.file.name.endsWith('.dzn') || f.file.name.endsWith('.json')
(f) =>
f.file.name.endsWith('.dzn') || f.file.name.endsWith('.json'),
)
.sort((a, b) => a.file.name.localeCompare(b.file.name));
$: checkers = indexed
.filter(
(f) =>
f.file.name.endsWith('.mzc') || f.file.name.endsWith('.mzc.mzn')
f.file.name.endsWith('.mzc') ||
f.file.name.endsWith('.mzc.mzn'),
)
.sort((a, b) => a.file.name.localeCompare(b.file.name));
Expand All @@ -45,7 +47,7 @@
!f.file.name.endsWith('.mzn') &&
!f.file.name.endsWith('.mzc') &&
!f.file.name.endsWith('.dzn') &&
!f.file.name.endsWith('.json')
!f.file.name.endsWith('.json'),
)
.sort((a, b) => a.file.name.localeCompare(b.file.name));
Expand All @@ -65,96 +67,98 @@
{#each sections as section}
<p>{section.label}</p>
<table class="table is-fullwidth">
{#each section.files as { file, index }}
<tr>
<td>{file.name}</td>
<td>
<div class="tool-buttons">
<div class="field is-grouped">
<p class="control">
<button
class="button is-small"
title="Click to {file.hidden
? 'show'
: 'hide'} this file"
class:is-primary={!file.hidden}
class:is-light={file.hidden}
type="button"
on:click={() =>
dispatch('modifyFile', {
index,
options: {
hidden: !file.hidden,
},
})}
>
<span class="icon">
<Fa
icon={file.hidden
? faEyeSlash
: faEye}
/>
</span>
</button>
</p>
<p class="control">
{#if file.name.endsWith('.mzc')}
<button
class="button is-small is-light"
title="Compiled checkers are read only"
type="button"
disabled
>
<span class="icon">
<Fa icon={faLock} />
</span>
</button>
{:else}
<tbody>
{#each section.files as { file, index }}
<tr>
<td>{file.name}</td>
<td>
<div class="tool-buttons">
<div class="field is-grouped">
<p class="control">
<button
class="button is-small"
title="Click to {file.readOnly
? 'unlock'
: 'lock'} this file for editing"
class:is-primary={!file.readOnly}
class:is-light={file.readOnly}
title="Click to {file.hidden
? 'show'
: 'hide'} this file"
class:is-primary={!file.hidden}
class:is-light={file.hidden}
type="button"
on:click={() =>
dispatch('modifyFile', {
index,
options: {
readOnly:
!file.readOnly,
hidden: !file.hidden,
},
})}
>
<span class="icon">
<Fa
icon={file.readOnly
? faLock
: faLockOpen}
icon={file.hidden
? faEyeSlash
: faEye}
/>
</span>
</button>
{/if}
</p>
<p class="control">
<button
class="button is-small is-danger"
title="Delete this file"
type="button"
on:click={() =>
dispatch('delete', { index })}
>
<span class="icon">
<Fa icon={faTrash} />
</span>
</button>
</p>
</p>
<p class="control">
{#if file.name.endsWith('.mzc')}
<button
class="button is-small is-light"
title="Compiled checkers are read only"
type="button"
disabled
>
<span class="icon">
<Fa icon={faLock} />
</span>
</button>
{:else}
<button
class="button is-small"
title="Click to {file.readOnly
? 'unlock'
: 'lock'} this file for editing"
class:is-primary={!file.readOnly}
class:is-light={file.readOnly}
type="button"
on:click={() =>
dispatch('modifyFile', {
index,
options: {
readOnly:
!file.readOnly,
},
})}
>
<span class="icon">
<Fa
icon={file.readOnly
? faLock
: faLockOpen}
/>
</span>
</button>
{/if}
</p>
<p class="control">
<button
class="button is-small is-danger"
title="Delete this file"
type="button"
on:click={() =>
dispatch('delete', { index })}
>
<span class="icon">
<Fa icon={faTrash} />
</span>
</button>
</p>
</div>
</div>
</div>
</td>
</tr>
{/each}
</td>
</tr>
{/each}
</tbody>
</table>
{/each}

Expand All @@ -172,9 +176,7 @@
</div>

<div slot="footer">
<button class="button is-primary">
Accept
</button>
<button class="button is-primary"> Accept </button>
</div>
</Modal>

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions-->
<div class="modal-background" on:click={cancel} />
<div class="modal-background" on:click={cancel}></div>
<div transition:fly={{ y: -200, duration: 200 }} class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">{title}</p>
Expand All @@ -44,7 +44,7 @@
class="delete"
aria-label="close"
on:click={cancel}
/>
></button>
</header>
<section class="modal-card-body">
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Output.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
{section}
</button>
{/each}
<div class="spacer" />
<div class="spacer"></div>
{#if hasStatistics}
<button
class="button is-small section-toggle"
Expand Down
8 changes: 4 additions & 4 deletions src/lib/Playground.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1135,13 +1135,13 @@
showSolverConfig = false;
}}
>
<span aria-hidden="true" />
<span aria-hidden="true" />
<span aria-hidden="true" />
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div class="navbar-menu" class:is-active={menuActive}>
<div class="navbar-start is-hidden-tablet" />
<div class="navbar-start is-hidden-tablet"></div>
<div class="navbar-end">
{#if $screenMobile}
{#if compilationEnabled && !isRunning && canCompile}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Visualisation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
title="Visualisation"
bind:this={vis.element}
on:load={(e) => vis.makeReady(e.target)}
/>
></iframe>
{/each}
</div>
</div>
Expand Down

0 comments on commit a28421b

Please sign in to comment.