chore: use space instead of tab for formatting

This commit is contained in:
Henrique Ramos 2025-02-26 21:05:19 -03:00
parent 1c281f220d
commit 8f90133e1e
15 changed files with 278 additions and 267 deletions

View File

@ -1,5 +1,4 @@
{ {
"recommendations": ["astro-build.astro-vscode"], "recommendations": ["astro-build.astro-vscode"],
""
"unwantedRecommendations": [] "unwantedRecommendations": []
} }

View File

@ -1,9 +1,9 @@
// @ts-check // @ts-check
import { defineConfig } from 'astro/config'; import { defineConfig } from "astro/config";
import svelte from '@astrojs/svelte'; import svelte from "@astrojs/svelte";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
integrations: [svelte()] integrations: [svelte()],
}); });

View File

@ -11,7 +11,7 @@
}, },
"formatter": { "formatter": {
"enabled": true, "enabled": true,
"indentStyle": "tab" "indentStyle": "space"
}, },
"organizeImports": { "organizeImports": {
"enabled": true "enabled": true

View File

@ -1,26 +1,26 @@
<script lang="ts"> <script lang="ts">
import type { Snippet } from "svelte"; import type { Snippet } from "svelte";
type CSSPropertyDemoProps = { type CSSPropertyDemoProps = {
property: string; property: string;
values: string[]; values: string[];
title?: string; title?: string;
defaultValue?: string; defaultValue?: string;
children?: Snippet<[]>; children?: Snippet<[]>;
}; };
const { const {
property, property,
values, values,
title = property, title = property,
defaultValue = values[0], defaultValue = values[0],
}: CSSPropertyDemoProps = $props(); }: CSSPropertyDemoProps = $props();
let selected = $state(defaultValue); let selected = $state(defaultValue);
const handleClick = (value: string) => { const handleClick = (value: string) => {
selected = value; selected = value;
}; };
</script> </script>
<div class="flex-property-demo"> <div class="flex-property-demo">

View File

@ -1,8 +1,10 @@
--- ---
export const title = "Finite State Machines with XState for Game Development using Three.js" export const title =
export const authors = ["Henrique Ramos"] "Finite State Machines with XState for Game Development using Three.js";
export const publishedAt = "2024-12-13" export const authors = ["Henrique Ramos"];
export const description = "Using XState Finite State Machines to coordinate character actions in a Three.js game" export const publishedAt = "2024-12-13";
export const description =
"Using XState Finite State Machines to coordinate character actions in a Three.js game";
--- ---
<section> <section>

View File

@ -1,12 +1,17 @@
@import "./variables"; @import "./variables";
@import url("https://fonts.googleapis.com/css2?family=Anaheim:wght@400..800&family=Overpass+Mono:wght@300..700&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Anaheim:wght@400..800&family=Overpass+Mono:wght@300..700&display=swap");
body { body {
background: var(--background); background: var(--background);
} }
section.has-dark-background, h1, h2, h3, h4, h5, h6 { section.has-dark-background,
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--main-color); color: var(--main-color);
} }
@ -211,11 +216,11 @@ section.has-dark-background, h1, h2, h3, h4, h5, h6 {
border-bottom: 1px solid; border-bottom: 1px solid;
} }
.reveal table :is(th[align='center'], td[align='center']) { .reveal table :is(th[align="center"], td[align="center"]) {
text-align: center; text-align: center;
} }
.reveal table :is(th[align='right'], td[align='right']) { .reveal table :is(th[align="right"], td[align="right"]) {
text-align: right; text-align: right;
} }

View File

@ -2,7 +2,12 @@ import type { AstroInstance } from "astro";
import getAstroPages from "./getAstroPages"; import getAstroPages from "./getAstroPages";
import { type } from "arktype"; import { type } from "arktype";
const schema = type({ title: "string", description: "string", authors: "string[]", publishedAt: "string" }); const schema = type({
title: "string",
description: "string",
authors: "string[]",
publishedAt: "string",
});
type Slide = AstroInstance & typeof schema.infer & { [key: string]: unknown }; type Slide = AstroInstance & typeof schema.infer & { [key: string]: unknown };

View File

@ -1,5 +1,5 @@
import { vitePreprocess } from '@astrojs/svelte'; import { vitePreprocess } from "@astrojs/svelte";
export default { export default {
preprocess: vitePreprocess(), preprocess: vitePreprocess(),
} };