Skip to content

Commit

Permalink
upgrade dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Sep 27, 2024
1 parent 6fc2dc2 commit 5d747de
Show file tree
Hide file tree
Showing 11 changed files with 166 additions and 268 deletions.
351 changes: 130 additions & 221 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@
"@ryanatkn/eslint-config": "^0.5.3",
"@ryanatkn/fuz": "^0.127.0",
"@ryanatkn/fuz_code": "^0.19.0",
"@ryanatkn/gro": "^0.135.1",
"@ryanatkn/gro": "^0.135.2",
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/kit": "^2.6.0",
"@sveltejs/package": "^2.3.5",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@types/node": "^22.5.5",
"eslint": "^9.11.0",
"eslint-plugin-svelte": "^2.44.0",
"@types/node": "^22.7.4",
"eslint": "^9.11.1",
"eslint-plugin-svelte": "^2.44.1",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-svelte": "^3.2.7",
"prism-svelte": "^0.5.0",
"prismjs": "^1.29.0",
"svelte": "^5.0.0-next.257",
"svelte-check": "^4.0.2",
"svelte": "^5.0.0-next.260",
"svelte-check": "^4.0.3",
"tslib": "^2.7.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.6.0",
"typescript-eslint": "^8.7.0",
"uvu": "^0.5.6"
},
"prettier": {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Spiders from '@ryanatkn/fuz/Spiders.svelte';
import 'prismjs'; // TODO why needed? shouldn't fuz_code handle this? Vite config problem?
import {set_pkg} from '$routes/pkg.js';
import {pkg_context} from '$routes/pkg.js';
import {package_json, src_json} from '$routes/package.js';
// TODO re-enable this, see comment below
// import Contextmenu_Root from '$lib/Contextmenu_Root.svelte';
Expand All @@ -23,7 +23,7 @@
const {children}: Props = $props();
set_pkg(parse_package_meta(package_json, src_json));
pkg_context.set(parse_package_meta(package_json, src_json));
// let show_settings = $state(false);
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import {moss_logo} from '@ryanatkn/fuz/logos.js';
import Hidden_Personal_Links from '@ryanatkn/fuz/Hidden_Personal_Links.svelte';
import {get_pkg} from '$routes/pkg.js';
import {pkg_context} from '$routes/pkg.js';
import Introduction from '$routes/Introduction.svelte';
const pkg = get_pkg();
const pkg = pkg_context.get();
</script>

<main class="box mb_xl7">
Expand Down
4 changes: 2 additions & 2 deletions src/routes/Style_Variable_Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type {Snippet} from 'svelte';
import {default_variables} from '$lib/variables.js';
import {get_selected_variable} from '$routes/style_variable_helpers.svelte.js';
import {selected_variable_context} from '$routes/style_variable_helpers.svelte.js';
interface Props {
name: string; // TODO type? generate from `tomes`? or keep extensible?
Expand All @@ -26,7 +26,7 @@
return v;
});
const selected_variable = get_selected_variable();
const selected_variable = selected_variable_context.get();
</script>

<button
Expand Down
4 changes: 2 additions & 2 deletions src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import Svg from '@ryanatkn/fuz/Svg.svelte';
import {moss_logo} from '@ryanatkn/fuz/logos.js';
import {get_pkg} from '$routes/pkg.js';
import {pkg_context} from '$routes/pkg.js';
const pkg = get_pkg();
const pkg = pkg_context.get();
// TODO standardize
</script>
Expand Down
8 changes: 4 additions & 4 deletions src/routes/library/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import {moss_logo} from '@ryanatkn/fuz/logos.js';
import {tomes} from '$routes/library/tomes.js';
import {set_selected_variable} from '$routes/style_variable_helpers.svelte.js';
import {selected_variable_context} from '$routes/style_variable_helpers.svelte.js';
import Style_Variable_Detail from '$routes/Style_Variable_Detail.svelte';
import {get_pkg} from '$routes/pkg.js';
import {pkg_context} from '$routes/pkg.js';
import Unfinished_Implementation_Warning from '$routes/library/Unfinished_Implementation_Warning.svelte';
interface Props {
Expand All @@ -17,9 +17,9 @@
const {children}: Props = $props();
const selected_variable = set_selected_variable();
const selected_variable = selected_variable_context.set();
const pkg = get_pkg();
const pkg = pkg_context.get();
</script>

<Library {tomes} {pkg}>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/library/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import Library_Content from '@ryanatkn/fuz/Library_Content.svelte';
import {get_tomes} from '@ryanatkn/fuz/tome.js';
import {get_pkg} from '$routes/pkg.js';
import {pkg_context} from '$routes/pkg.js';
const tomes_by_name = get_tomes();
const tomes = Array.from(tomes_by_name.values());
const pkg = get_pkg();
const pkg = pkg_context.get();
</script>

<Library_Content {tomes} {pkg}>
Expand Down
18 changes: 9 additions & 9 deletions src/routes/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ export const package_json = {
'@ryanatkn/eslint-config': '^0.5.3',
'@ryanatkn/fuz': '^0.127.0',
'@ryanatkn/fuz_code': '^0.19.0',
'@ryanatkn/gro': '^0.135.1',
'@ryanatkn/gro': '^0.135.2',
'@sveltejs/adapter-static': '^3.0.5',
'@sveltejs/kit': '^2.5.28',
'@sveltejs/kit': '^2.6.0',
'@sveltejs/package': '^2.3.5',
'@sveltejs/vite-plugin-svelte': '^3.1.2',
'@types/node': '^22.5.5',
eslint: '^9.11.0',
'eslint-plugin-svelte': '^2.44.0',
'@types/node': '^22.7.4',
eslint: '^9.11.1',
'eslint-plugin-svelte': '^2.44.1',
prettier: '^3.3.3',
'prettier-plugin-svelte': '^3.2.6',
'prettier-plugin-svelte': '^3.2.7',
'prism-svelte': '^0.5.0',
prismjs: '^1.29.0',
svelte: '^5.0.0-next.257',
'svelte-check': '^4.0.2',
svelte: '^5.0.0-next.260',
'svelte-check': '^4.0.3',
tslib: '^2.7.0',
typescript: '^5.6.2',
'typescript-eslint': '^8.6.0',
'typescript-eslint': '^8.7.0',
uvu: '^0.5.6',
},
prettier: {
Expand Down
8 changes: 2 additions & 6 deletions src/routes/pkg.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import type {Package_Meta} from '@ryanatkn/gro/package_meta.js';
import {getContext, setContext} from 'svelte';
import {create_context} from '@ryanatkn/fuz/context_helpers.js';

const KEY = Symbol('pkg');

export const set_pkg = (pkg: Package_Meta): Package_Meta => setContext(KEY, pkg);

export const get_pkg = (): Package_Meta => getContext(KEY);
export const pkg_context = create_context<Package_Meta>();
11 changes: 2 additions & 9 deletions src/routes/style_variable_helpers.svelte.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {getContext, setContext} from 'svelte';
import {create_context} from '@ryanatkn/fuz/context_helpers.js';

import type {Style_Variable} from '$lib/variable.js';

Expand All @@ -12,11 +12,4 @@ export class Selected_Style_Variable {
}
}

const SELECTED_VARIABLE_KEY = Symbol('selected_variable');

export const set_selected_variable = (
value = new Selected_Style_Variable(null),
): Selected_Style_Variable => setContext(SELECTED_VARIABLE_KEY, value);

export const get_selected_variable = (): Selected_Style_Variable =>
getContext(SELECTED_VARIABLE_KEY);
export const selected_variable_context = create_context(() => new Selected_Style_Variable(null));

0 comments on commit 5d747de

Please sign in to comment.