Skip to content

Commit 3df51e7

Browse files
committed
chore: use .raw over ``
1 parent 7ebd489 commit 3df51e7

9 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
library_context.set(new Library(library_json));
2424
25-
// let show_settings = $state(false);
25+
// let show_settings = $state.raw(false);
2626
</script>
2727

2828
<svelte:head>

src/routes/ThemeForm.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
const light_count = $derived(new_variables.reduce((c, v) => (v.light ? c + 1 : c), 0));
4141
const dark_count = $derived(new_variables.reduce((c, v) => (v.dark ? c + 1 : c), 0));
4242
43-
let selected_variable: StyleVariable | null = $state(null);
43+
let selected_variable: StyleVariable | null = $state.raw(null);
4444
4545
const save = (): void => {
4646
if (!changed) return;

src/routes/docs/borders/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
'border_bottom_left_radius_md border_bottom_right_radius_xl',
4545
];
4646
47-
let selected_intensity: IntensityVariant = $state('50');
47+
let selected_intensity: IntensityVariant = $state.raw('50');
4848
4949
// @fuz-classes outline_width_focus outline_width_active
5050
// @fuz-classes border_color_00 border_color_05 border_color_10 border_color_20 border_color_30 border_color_40 border_color_50 border_color_60 border_color_70 border_color_80 border_color_90 border_color_95 border_color_100

src/routes/docs/buttons/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
1515
const tome = get_tome_by_name(LIBRARY_ITEM_NAME);
1616
17-
let clicked_button = $state(false);
17+
let clicked_button = $state.raw(false);
1818
19-
let selected_button = $state(1);
20-
let selected_deselectable_button = $state(true);
19+
let selected_button = $state.raw(1);
20+
let selected_deselectable_button = $state.raw(true);
2121
2222
// TODO probably want to put the buttons in a more consistent format so we can include `disabled` versions of each in a condensed format
2323

src/routes/docs/forms/+page.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
// TODO extract this to where? (where is it used in the css? check all @keyframe)
1919
const ANIMATION_DURATION_FAST = 91; // ms
2020
21-
let created_account = $state(false);
21+
let created_account = $state.raw(false);
2222
2323
const faces = ['😊', '😑', '🤔', '😉'];
2424
25-
let username = $state('');
26-
let password = $state('');
27-
let lifestory = $state('');
25+
let username = $state.raw('');
26+
let password = $state.raw('');
27+
let lifestory = $state.raw('');
2828
2929
const radio_items = ['a radio input', 'another radio input'];
30-
let selected_radio_item = $state(radio_items[0]);
30+
let selected_radio_item = $state.raw(radio_items[0]);
3131
32-
let checked1 = $state(false);
33-
let checked2 = $state(true);
32+
let checked1 = $state.raw(false);
33+
let checked2 = $state.raw(true);
3434
</script>
3535

3636
<!-- eslint-disable svelte/no-useless-mustaches -->

src/routes/docs/menu_item/todo.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
// TODO `role="menuitem"` ?
1515
16-
let clicked = $state('c');
16+
let clicked = $state.raw('c');
1717
1818
const handled = (e: any): boolean => {
1919
if (e.key === 'Enter' || e.key === ' ') {

src/routes/docs/shadows/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
const tome = get_tome_by_name(LIBRARY_ITEM_NAME);
2424
25-
let selected_intensity: IntensityVariant = $state('60');
25+
let selected_intensity: IntensityVariant = $state.raw('60');
2626
2727
// @fuz-classes shadow_xs shadow_sm shadow_md shadow_lg shadow_xl shadow_top_xs shadow_top_sm shadow_top_md shadow_top_lg shadow_top_xl shadow_bottom_xs shadow_bottom_sm shadow_bottom_md shadow_bottom_lg shadow_bottom_xl shadow_inset_xs shadow_inset_sm shadow_inset_md shadow_inset_lg shadow_inset_xl shadow_inset_top_xs shadow_inset_top_sm shadow_inset_top_md shadow_inset_top_lg shadow_inset_top_xl shadow_inset_bottom_xs shadow_inset_bottom_sm shadow_inset_bottom_md shadow_inset_bottom_lg shadow_inset_bottom_xl
2828
// @fuz-classes shadow_alpha_00 shadow_alpha_05 shadow_alpha_10 shadow_alpha_20 shadow_alpha_30 shadow_alpha_40 shadow_alpha_50 shadow_alpha_60 shadow_alpha_70 shadow_alpha_80 shadow_alpha_90 shadow_alpha_95 shadow_alpha_100

src/routes/docs/themes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
const themes = default_themes.slice();
2323
2424
// let show_create_theme_dialog = false;
25-
let editing_theme: null | Theme = $state(null);
25+
let editing_theme: null | Theme = $state.raw(null);
2626
</script>
2727

2828
<TomeContent {tome}>

src/routes/docs/typography/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
const computed_styles =
3535
typeof window === 'undefined' ? null : window.getComputedStyle(document.documentElement);
3636
37-
let selected_font_weight = $state(400);
38-
let selected_size = $state(3);
37+
let selected_font_weight = $state.raw(400);
38+
let selected_size = $state.raw(3);
3939
4040
// @fuz-classes font_family_sans font_family_serif font_family_mono
4141

0 commit comments

Comments
 (0)