-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to dprint with biome - same TS code style, but now better cove…
…rage.
- Loading branch information
1 parent
a15ac41
commit e359c03
Showing
29 changed files
with
539 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"lineWidth": 120, | ||
"useTabs": false, | ||
"indentWidth": 2, | ||
|
||
"biome": {}, | ||
"toml": {}, | ||
"malva": { | ||
"omitNumberLeadingZero": true, | ||
"declarationOrder": "smacss" | ||
}, | ||
"markup": {}, | ||
"yaml": {}, | ||
"excludes": ["pnpm-lock.yaml", "**/node_modules", "**/*-lock.json", "**/dist", "**/.vitepress/cache"], | ||
"plugins": [ | ||
"https://plugins.dprint.dev/toml-0.6.2.wasm", | ||
"https://plugins.dprint.dev/g-plane/malva-v0.10.1.wasm", | ||
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.13.0.wasm", | ||
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm", | ||
"https://plugins.dprint.dev/biome-0.6.0.wasm" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
:root { | ||
/* shelter gradient goes from #2a3b4b to #2a7267 | ||
* these colours are that lightened by 17 in GIMP brightness-contrast | ||
* so that they are more appropriate for use as foreground text colours, for the title. | ||
*/ | ||
--vp-home-hero-name-color: transparent; | ||
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #387b71, #384857); | ||
/* shelter gradient goes from #2a3b4b to #2a7267 | ||
* these colours are that lightened by 17 in GIMP brightness-contrast | ||
* so that they are more appropriate for use as foreground text colours, for the title. | ||
*/ | ||
--vp-home-hero-name-color: transparent; | ||
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #387b71, #384857); | ||
} | ||
|
||
body { | ||
overflow-y: scroll; | ||
} | ||
overflow-y: scroll; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
<script setup lang="ts"> | ||
import {computed} from "vue"; | ||
import { computed } from "vue"; | ||
const props = defineProps<{ col: "red" | "green" | "blue" | "shelter" }>(); | ||
const colour = computed( | ||
() => ({ | ||
red: "lch(34.44% 60.47 31.97)", | ||
green: "lch(34.44% 60.47 131.97)", | ||
blue: "lch(34.44% 60.47 231.97)", | ||
shelter: "-webkit-linear-gradient(-90deg, #2a3b4b, #2a7267)", | ||
}[props.col ?? "blue"]) | ||
() => | ||
({ | ||
red: "lch(34.44% 60.47 31.97)", | ||
green: "lch(34.44% 60.47 131.97)", | ||
blue: "lch(34.44% 60.47 231.97)", | ||
shelter: "-webkit-linear-gradient(-90deg, #2a3b4b, #2a7267)", | ||
})[props.col ?? "blue"], | ||
); | ||
</script> | ||
|
||
<template> | ||
<div class="inline-block text-sm mx-2 px-2.5 py-1 font-semibold rounded-full" :style="{background: colour}"> | ||
<div class="inline-block text-sm mx-2 px-2.5 py-1 font-semibold rounded-full" :style="{ background: colour }"> | ||
<slot /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
"fuse.js": "^7.0.0", | ||
"vue": "^3.4.15" | ||
} | ||
} | ||
} |
Oops, something went wrong.