1 Commits

Author SHA1 Message Date
renovate[bot]
b7e287537f Update dependency cssnano to v6.1.2 2024-03-31 22:38:49 +00:00
13 changed files with 110 additions and 50 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -109,8 +109,8 @@ I discovered some themes for gitea [here](https://git.sainnhe.dev/sainnhe/gitea-
I added the theme by cloning [theme-gruvbox-auto.css](https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-gruvbox-auto.css) into `./data/gitea/public/assets/css`. I then added the following to `environment` in `docker-compose.yml`: I added the theme by cloning [theme-gruvbox-auto.css](https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-gruvbox-auto.css) into `./data/gitea/public/assets/css`. I then added the following to `environment` in `docker-compose.yml`:
```yaml ```yaml
- GITEA__ui__DEFAULT_THEME=palenight - GITEA__ui__DEFAULT_THEME=gruvbox-auto
- GITEA__ui__THEMES=palenight - GITEA__ui__THEMES=gruvbox-auto
``` ```
After restarting the gitea instance, the default theme was applied. After restarting the gitea instance, the default theme was applied.
@@ -121,6 +121,8 @@ I installed the runner by [following the docs](https://docs.gitea.com/usage/acti
After registering this runner and starting the daemon, the runner appeared in `/admin/actions/runners`. I added two other runners to help with parallelization. After registering this runner and starting the daemon, the runner appeared in `/admin/actions/runners`. I added two other runners to help with parallelization.
![image](gitea-runners.png)
## Running a workflow ## Running a workflow
Now it's time start running some automation. I used the [demo workflow](https://docs.gitea.com/usage/actions/quickstart#use-actions) as a starting point to verify that the runner is executing workflows. Now it's time start running some automation. I used the [demo workflow](https://docs.gitea.com/usage/actions/quickstart#use-actions) as a starting point to verify that the runner is executing workflows.

View File

@@ -22,7 +22,7 @@ tags:
author: "Dave Gallant" author: "Dave Gallant"
--- ---
I ran into a roadblock recently where I wanted to conveniently connect to a managed postgres database within Azure that was not running on public subnets. And by conveniently, I mean that I'd rather not have to spin up an ephemeral virtual machine running in the same network and proxy the connection, and I'd like to use a local client (preferably with a GUI). After several web searches, it became evident that Azure does not readily provide much tooling to support this. I ran into a roadblock recently where I wanted to be able to conveniently connect to a managed postgres database within Azure that was not running on public subnets. And by conveniently, I mean that I'd rather not have to spin up an ephemeral virtual machine running in the same network and proxy the connection, and I'd like to use a local client (preferably with a GUI). After several web searches, it became evident that Azure does not readily provide much tooling to support this.
<!--more--> <!--more-->

View File

@@ -5,6 +5,5 @@ build: clean
clean: clean:
rm -rf public/ rm -rf public/
server: clean server:
npm ci
hugo server --buildDrafts hugo server --buildDrafts

View File

@@ -3,7 +3,7 @@
src="https://storage.ko-fi.com/cdn/widget/Widget_2.js" src="https://storage.ko-fi.com/cdn/widget/Widget_2.js"
></script> ></script>
<script type="text/javascript"> <script type="text/javascript">
kofiwidget2.init("Buy me a coffee", "#32344a", "F1F2S4LWI"); kofiwidget2.init("Buy me a coffee", "#458588", "F1F2S4LWI");
kofiwidget2.draw(); kofiwidget2.draw();
</script> </script>

View File

@@ -6,7 +6,18 @@
<script> <script>
// load comments // load comments
let theme = "dark-blue"; var getTheme = localStorage && localStorage.getItem("theme");
getTheme =
getTheme == null
? window.matchMedia &&
window.matchMedia("(prefers-color-scheme: light)").matches
? "light"
: "dark"
: getTheme;
getTheme = getTheme == null ? "dark" : getTheme;
let theme = getTheme === "dark" ? "gruvbox-dark" : "github-light";
let script = document.createElement("script"); let script = document.createElement("script");
script.src = "https://utteranc.es/client.js"; script.src = "https://utteranc.es/client.js";
script.setAttribute("repo", '{{ print $username "/" $repository }}'); script.setAttribute("repo", '{{ print $username "/" $repository }}');

12
package-lock.json generated
View File

@@ -1672,9 +1672,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001606", "version": "1.0.30001603",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001606.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001603.tgz",
"integrity": "sha512-LPbwnW4vfpJId225pwjZJOgX1m9sGfbw/RKJvw/t0QhYOOaTXHvkjVGFGPpvwEzufrjvTlsULnVTxdy4/6cqkg==", "integrity": "sha512-iL2iSS0eDILMb9n5yKQoTBim9jMZ0Yrk8g0N9K7UzYyWnfIKzXBZD5ngpM37ZcL/cv0Mli8XtVMRYMQAfFpi5Q==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -2352,9 +2352,9 @@
"dev": true "dev": true
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.4.729", "version": "1.4.722",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.729.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.722.tgz",
"integrity": "sha512-bx7+5Saea/qu14kmPTDHQxkp2UnziG3iajUQu3BxFvCOnpAJdDbMV4rSl+EqFDkkpNNVUFlR1kDfpL59xfy1HA==", "integrity": "sha512-5nLE0TWFFpZ80Crhtp4pIp8LXCztjYX41yUcV6b+bKR2PqzjskTMOOlBi1VjBHlvHwS+4gar7kNKOrsbsewEZQ==",
"dev": true "dev": true
}, },
"node_modules/emoji-regex": { "node_modules/emoji-regex": {

View File

@@ -6,35 +6,72 @@
{{ $backgroundColor = "bg0_h" }} {{ $backgroundColor = "bg0_h" }}
{{ end }} {{ end }}
:root[data-theme="light"] {
--bg: var(--{{ $backgroundColor }});
--bg0: #fbf1c7;
--bg0_h: #f9f5d7;
--bg0_s: #f2e5bc;
--bg1: #ebdbb2;
--bg2: #d5c4a1;
--bg3: #bdae93;
--bg4: #a89984;
--fg: var(--fg1);
--fg0: #282828;
--fg1: #3c3836;
--fg2: #504945;
--fg3: #665c54;
--fg4: #7c6f64;
--gray1: var(--fg4);
--gray2: #928374;
--red1: #cc241d;
--red2: #9d0006;
--green1: #98971a;
--green2: #797403;
--yellow1: #d79921;
--yellow2: #b57614;
--blue1: #458588;
--blue2: #076678;
--purple1: #b16286;
--purple2: #8f3f71;
--aqua1: #689d6a;
--aqua2: #427b58;
--orange1: #d65d0e;
--orange2: #af3a03;
& .light--hidden {
display: none;
}
}
:root[data-theme="dark"] { :root[data-theme="dark"] {
--bg: var(--{{ $backgroundColor }}); --bg: var(--{{ $backgroundColor }});
--bg0: #1a1b26; --bg0: #282828;
--bg0_h: #1d2021; --bg0_h: #1d2021;
--bg0_s: #32302f; --bg0_s: #32302f;
--bg1: #181922; --bg1: #3c3836;
--bg2: #32344a; --bg2: #504945;
--bg3: #665c54; --bg3: #665c54;
--bg4: #32344a; --bg4: #7c6f64;
--fg: var(--fg1); --fg: var(--fg1);
--fg0: #ad8ee6; --fg0: #fbf1c7;
--fg1: #acb0d0; --fg1: #ebdbb2;
--fg2: #7da6ff; --fg2: #d5c4a1;
--fg3: #9ece6a; --fg3: #bdae93;
--fg4: #32344a; --fg4: #a89984;
--gray1: var(--fg4); --gray1: var(--fg4);
--gray2: #444b6a; --gray2: #928374;
--red1: #f7768e; --red1: #cc241d;
--red2: #ff7a93; --red2: #fb4934;
--green1: #9ece6a; --green1: #98971a;
--green2: #b9f27c; --green2: #b8bb26;
--yellow1: #e0af68; --yellow1: #d79921;
--yellow2: #ff9e64; --yellow2: #fabd2f;
--blue1: #7da6ff; --blue1: #458588;
--blue2: #7aa2f7; --blue2: #83a598;
--purple1: #ad8ee6; --purple1: #b16286;
--purple2: #bb9af7; --purple2: #d3869b;
--aqua1: #449dab; --aqua1: #689d6a;
--aqua2: #0db9d7; --aqua2: #8ec07c;
--orange1: #d65d0e; --orange1: #d65d0e;
--orange2: #fe8019; --orange2: #fe8019;

View File

@@ -3,8 +3,8 @@
{{ $critical := sort (resources.Match "css/critical/*.css") "Name" | resources.Concat nil | resources.ExecuteAsTemplate nil . | resources.PostCSS }} {{ $critical := sort (resources.Match "css/critical/*.css") "Name" | resources.Concat nil | resources.ExecuteAsTemplate nil . | resources.PostCSS }}
{{ $nonCritical := sort (resources.Match "css/non-critical/*.css") "Name" | resources.Concat "css/non-critical.css" | resources.ExecuteAsTemplate "css/non-critical.css" . | resources.PostCSS }} {{ $nonCritical := sort (resources.Match "css/non-critical/*.css") "Name" | resources.Concat "css/non-critical.css" | resources.ExecuteAsTemplate "css/non-critical.css" . | resources.PostCSS }}
{{ $prismDark := resources.Get "prism-themes/prism-synthwave84.css" }} {{ $prismDark := resources.Get "prism-themes/prism-gruvbox-dark.css" }}
{{ $prismLight := resources.Get "prism-themes/prism-synthwave84.css" }} {{ $prismLight := resources.Get "prism-themes/prism-gruvbox-light.css" }}
{{ if hugo.IsProduction }} {{ if hugo.IsProduction }}
{{ $critical = $critical | resources.PostProcess }} {{ $critical = $critical | resources.PostProcess }}

View File

@@ -51,4 +51,12 @@
</ul> </ul>
</div> </div>
</nav> </nav>
<button class="theme__toggle light--hidden" aria-label="Toggle light mode">
{{ partial "icons/tabler-icon.html" "sun" }}
</button>
<button class="theme__toggle dark--hidden" aria-label="Toggle dark mode">
{{ partial "icons/tabler-icon.html" "moon" }}
</button>
</header> </header>

View File

@@ -1,9 +1,12 @@
{{ range $pageIndex, $page := .Pages }} {{ range $pageIndex, $page := .Pages }}
<article class="post"> <article class="post">
<div class="post-header"> <div class="post-header">
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
{{ partial "post-meta.html" (dict "page" . "pageIndex" $pageIndex) }} {{ partial "post-meta.html" (dict "page" . "pageIndex" $pageIndex) }}
</div> </div>
</article> </article>
{{ end }} {{ end }}

View File

@@ -1641,9 +1641,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001606", "version": "1.0.30001603",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001606.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001603.tgz",
"integrity": "sha512-LPbwnW4vfpJId225pwjZJOgX1m9sGfbw/RKJvw/t0QhYOOaTXHvkjVGFGPpvwEzufrjvTlsULnVTxdy4/6cqkg==", "integrity": "sha512-iL2iSS0eDILMb9n5yKQoTBim9jMZ0Yrk8g0N9K7UzYyWnfIKzXBZD5ngpM37ZcL/cv0Mli8XtVMRYMQAfFpi5Q==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -2351,9 +2351,9 @@
"dev": true "dev": true
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.4.729", "version": "1.4.722",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.729.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.722.tgz",
"integrity": "sha512-bx7+5Saea/qu14kmPTDHQxkp2UnziG3iajUQu3BxFvCOnpAJdDbMV4rSl+EqFDkkpNNVUFlR1kDfpL59xfy1HA==", "integrity": "sha512-5nLE0TWFFpZ80Crhtp4pIp8LXCztjYX41yUcV6b+bKR2PqzjskTMOOlBi1VjBHlvHwS+4gar7kNKOrsbsewEZQ==",
"dev": true "dev": true
}, },
"node_modules/emoji-regex": { "node_modules/emoji-regex": {
@@ -7759,9 +7759,9 @@
} }
}, },
"caniuse-lite": { "caniuse-lite": {
"version": "1.0.30001606", "version": "1.0.30001603",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001606.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001603.tgz",
"integrity": "sha512-LPbwnW4vfpJId225pwjZJOgX1m9sGfbw/RKJvw/t0QhYOOaTXHvkjVGFGPpvwEzufrjvTlsULnVTxdy4/6cqkg==", "integrity": "sha512-iL2iSS0eDILMb9n5yKQoTBim9jMZ0Yrk8g0N9K7UzYyWnfIKzXBZD5ngpM37ZcL/cv0Mli8XtVMRYMQAfFpi5Q==",
"dev": true "dev": true
}, },
"chalk": { "chalk": {
@@ -8226,9 +8226,9 @@
"dev": true "dev": true
}, },
"electron-to-chromium": { "electron-to-chromium": {
"version": "1.4.729", "version": "1.4.722",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.729.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.722.tgz",
"integrity": "sha512-bx7+5Saea/qu14kmPTDHQxkp2UnziG3iajUQu3BxFvCOnpAJdDbMV4rSl+EqFDkkpNNVUFlR1kDfpL59xfy1HA==", "integrity": "sha512-5nLE0TWFFpZ80Crhtp4pIp8LXCztjYX41yUcV6b+bKR2PqzjskTMOOlBi1VjBHlvHwS+4gar7kNKOrsbsewEZQ==",
"dev": true "dev": true
}, },
"emoji-regex": { "emoji-regex": {