Skip to content

Commit 192b6b0

Browse files
authored
Merge pull request #7 from Blankeos/feat/minify
feat: Added minify again to make the size smaller
2 parents 7578cc5 + 4a70591 commit 192b6b0

30 files changed

+1322
-126
lines changed

.changeset/loud-bushes-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tsdot": patch
3+
---
4+
5+
feat: added minify so the bundle size is smaller.

.changeset/yummy-turtles-search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tsdot": patch
3+
---
4+
5+
docs: better docs and examples.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ const result = compiledTemplate({ name: "World" });
9494

9595
> I think each of these need examples.
9696
97-
```sh
97+
```
9898
{{ }} - evaluation
9999
{{= }} - interpolation
100-
{{! }} - interpolation with encoding
100+
{{! }} - interpolation with encoding # Does not work it seems.
101101
{{# }} - compile-time evaluation/includes and partials
102102
{{## #}} - compile-time defines
103103
{{? }} - conditionals

bun.lockb

-8.47 KB
Binary file not shown.

dev/assets/icons/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export { default as IconCopy } from "./lets-icons_copy-light.svg";
2+
export { default as IconMoon } from "./line-md_moon-rising-twotone-alt-loop.svg";
3+
export { default as IconSun } from "./line-md_sun-rising-twotone-loop.svg";
4+
export { default as IconCheck } from "./material-symbols_check.svg";
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

dev/components/theme-switcher.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { IconMoon, IconSun } from "@/assets/icons";
2+
import { useThemeContext } from "@/contexts/theme.context";
3+
import { Show } from "solid-js";
4+
import { Button } from "./ui/button";
5+
6+
export function ThemeSwitcher() {
7+
const { theme, toggleTheme } = useThemeContext();
8+
9+
return (
10+
<div class="flex items-center gap-x-2">
11+
<Button variant="ghost" class="h-7 w-7 border border-neutral-300 p-0" onClick={toggleTheme}>
12+
<Show when={theme() === "light"} fallback={<IconMoon class="h-4 w-4" />}>
13+
<IconSun class="h-4 w-4" />
14+
</Show>
15+
</Button>
16+
</div>
17+
);
18+
}

0 commit comments

Comments
 (0)