Skip to content

Commit

Permalink
run prettier formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
emeraldjava committed Oct 29, 2024
1 parent 3334605 commit aec391d
Show file tree
Hide file tree
Showing 27 changed files with 146 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ updates:
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 200
open-pull-requests-limit: 200
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
workflow_call:

jobs:
build:
name: Code standards & build
runs-on: ubuntu-latest
timeout-minutes: 3

strategy:
matrix:
node-version: [18.x]

steps:
- name: "☁️ Checkout repository"
uses: actions/checkout@v4

- name: "🔧 Setup Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: "📦 Install dependencies"
run: npm ci

- name: "🔎 Lint code"
run: npm run lint

- name: "📝 Checking code format"
run: npm run format:check

- name: "🚀 Build the project"
run: npm run build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ dist/
.output/
docs/
new/
src/content/astro
src/content/original-posts

# jetbrains
.idea/*
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export const SOCIALS: SocialObjects = [
href: "https://www.linkedin.com/in/paultoconnell/",
linkTitle: `${SITE.title} on LinkedIn`,
active: true,
}
},
];
7 changes: 3 additions & 4 deletions src/content/blog/2023/2023-02-22-docker-meetup-dublin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Dublin Docker Meetup"
pubDatetime: 2023-02-23T00:00:00Z
author: emeraldjava
description: 'Docker Meetup Feb 2023'
tags:
description: "Docker Meetup Feb 2023"
tags:
- docker
slug: 2023-02-23-docker-meetup
---
Expand All @@ -26,8 +26,7 @@ microservices vs container
use nginx unit to run mutliple processes within a single docker container

config

- listeners
- routes
- applications


4 changes: 2 additions & 2 deletions src/content/blog/2023/2023-04-07-goodbye-gatsby-hello-hugo.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: 'Moving to Hugo'
title: "Moving to Hugo"
pubDatetime: 2023-04-07T10:51:26Z
author: ""
keywords: ["hugo"]
cover: ""
description: 'Goodby Gatsby, Hello Hugo'
description: "Goodby Gatsby, Hello Hugo"
slug: 2023-04-07-moving-to-hugo
---

Expand Down
5 changes: 2 additions & 3 deletions src/content/blog/2023/2023-04-08-kubernetes-starter.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Kubernetes on Docker Desktop starter'
title: "Kubernetes on Docker Desktop starter"
pubDatetime: 2023-04-08T18:22:26Z
author: ""
keywords: ["kubernetes", "docker"]
Expand Down Expand Up @@ -54,5 +54,4 @@ add the UI

https://www.docker.com/blog/creating-kubernetes-extensions-in-docker-desktop/


kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ Create a new class which will be the custom listener, eg. MyCustomListener this

# Step 2 - Regster the Service Locator

1 In the resources folder of the project you are using create a directory META-INF folder
2. Add a file called 'net.thucydides.core.steps.StepListener'
3. Add the Listener class name as the file content.
1 In the resources folder of the project you are using create a directory META-INF folder 2. Add a file called 'net.thucydides.core.steps.StepListener' 3. Add the Listener class name as the file content.

/META-INF/net.thucydides.core.steps.StepListener
- a.b.c.MyCustomListener

This allows the ServiceLocator to find and inject the Listener.
This allows the ServiceLocator to find and inject the Listener.
8 changes: 3 additions & 5 deletions src/content/blog/2023/2023-12-30-enable-gitbug-discussions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ https://tangenttechnologies.ca/blog/hugo-themes/

https://www.justinjbird.me/2023/adding-comments-to-a-hugo-site-using-giscus/


https://giscus.app/api/discussions?repo=emeraldjava%2Femeraldjava.github.io&term=Github+Worth&category=General&number=0&strict=false&first=15

https://zhauniarovich.com/post/2021/2021-06-giscus/
Expand All @@ -29,7 +28,6 @@ https://github.com/zyrikby/website_related/tree/master
See https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#get-a-repository

gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/emeraldjava/emeraldjava.github.io

-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/emeraldjava/emeraldjava.github.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions src/content/blog/2024/2024-03-31-setup-home-assistant.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@ docker run -d --name=home_assistant \
--restart always \
homeassistant/home-assistant

emeraldjava.synology.me:8123
emeraldjava.synology.me:8123

53004ede-358f-4ec1-82ad-52d311c5c321

[12:16:21.353] > [2024-03-31 12:16:21] error
[12:16:21.353] > [2024-03-31 12:16:21] error

> - find /lib/ld-musl-x86_64.so.1, which is required to run the Visual Studio Code Server in musl environments
[12:16:21.357] > 4de21bb3f979: start
> - find /lib/ld-musl-x86_64.so.1, which is required to run the Visual Studio Code Server in musl environments
> [12:16:21.357] > 4de21bb3f979: start

##
##

sudo docker run --name hass --restart=always --net=host --privileged -itd -v /volume1/homeassistant/config:/config -v /usr/syno/etc/certificate:/certificate --device /dev/ttyACM0 homeassistant/home-assistant

https://community.home-assistant.io/t/ssl-and-home-assistant-running-on-a-synology-docker/32102/4
https://community.home-assistant.io/t/ssl-and-home-assistant-running-on-a-synology-docker/32102/4
4 changes: 2 additions & 2 deletions src/content/blog/2024/2024-06-07-astro-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pubDatetime: 2024-06-07T12:11:00Z
slug: 2024-06-07-astro-guides.md
tags:
- astro
description: 'Resources uses for the astro migration'
description: "Resources uses for the astro migration"
---

Here are some rules/recommendations, tips & ticks for creating new posts in AstroPaper blog theme.
Expand All @@ -23,4 +23,4 @@ Here are some rules/recommendations, tips & ticks for creating new posts in Astr

- https://medium.com/@rezahedi/how-to-build-table-of-contents-in-astro-and-sectionize-the-markdown-content-78bee84e6a7f
- https://rezahedi.dev/blog/stunning-embedded-rich-cards-with-the-astro-markdown-plugin-for-github-repositories
- https://github.com/rezahedi/rezahedi.dev
- https://github.com/rezahedi/rezahedi.dev
4 changes: 2 additions & 2 deletions src/content/blog/2024/2024-06-15-astro-zod-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pubDatetime: 2024-06-15T08:11:00Z
slug: 2024-06-15-astro-zod-templates
tags:
- astro
description: 'Resources uses for the astro migration'
description: "Resources uses for the astro migration"
---

Is there value in a base zod schema for astro posts which would allow for easier theme migrations.
Expand All @@ -18,4 +18,4 @@ At the moment, each theme has it's own zod schema which ties the markdown posts

- https://zod.dev/
- https://github.com/nikolovlazar/egghead-personal-blog-astro/blob/lesson-8/src/content/config.ts
- https://github.com/learnwithjason/astro-content-collections/blob/main/src/content/config.ts
- https://github.com/learnwithjason/astro-content-collections/blob/main/src/content/config.ts
4 changes: 2 additions & 2 deletions src/content/blog/2024/2024-06-16-jsonresume-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pubDatetime: 2024-06-16T08:11:00Z
slug: 2024-06-16-jsonresume-theme.md
tags:
- astro
description: 'Resources uses for the astro migration'
description: "Resources uses for the astro migration"
---

Need a theme which meets these criteria
Expand All @@ -32,4 +32,4 @@ use handlebar template

https://stackoverflow.com/questions/24736938/is-it-possible-to-assign-a-parameter-value-within-handlebars-templates-without-u
https://stackoverflow.com/questions/11523331/passing-variables-through-handlebars-partial
https://docs.conscia.ai/solutions/dx-engine/recipes/handlebars-templates
https://docs.conscia.ai/solutions/dx-engine/recipes/handlebars-templates
4 changes: 2 additions & 2 deletions src/content/blog/2024/2024-06-22-GA.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pubDatetime: 2024-06-22T08:11:00Z
slug: 2024-06-22-Google-Analytics.md
tags:
- astro
description: 'Upgrade of Google Analytics tags'
description: "Upgrade of Google Analytics tags"
---

##
Expand All @@ -14,4 +14,4 @@ description: 'Upgrade of Google Analytics tags'

https://webreaper.dev/posts/astro-google-tag-manager-ga4/

https://tagmanager.google.com/#/container/accounts/6236586547/containers/188259084/workspaces/2
https://tagmanager.google.com/#/container/accounts/6236586547/containers/188259084/workspaces/2
14 changes: 8 additions & 6 deletions src/content/blog/2024/2024-09-21-maven-plugin-test-frameworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pubDatetime: 2024-09-21T07:44:00Z
slug: 2024-09-21-Maven-Plugin-Test-Frameworks.md
tags:
- astro
description: 'Maven Plugin Test Frameworks'
description: "Maven Plugin Test Frameworks"
---

## 2024-09-21
Expand All @@ -19,9 +19,10 @@ import org.apache.maven.plugin.testing.AbstractMojoTestCase;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
* A base test class where we can add helper methods and whatnot
*/
/\*\*

- A base test class where we can add helper methods and whatnot
\*/
public abstract class BaseTestCase extends AbstractMojoTestCase {
protected Path getUnitTestDir() {
return Paths.get(getBasedir(), "src", "test", "resources", "unit");
Expand All @@ -30,7 +31,6 @@ import java.nio.file.Paths;

see https://github.com/OpenAPITools/openapi-generator/blob/ee1cbf6f4bacd28aa8c1615e16c25bf29ad6e4e8/modules/openapi-generator-maven-plugin/src/test/java/org/openapitools/codegen/plugin/BaseTestCase.java


then

- get the test pom, use the lookupMojo and then execute.
Expand Down Expand Up @@ -77,6 +77,7 @@ via https://github.com/OpenAPITools/openapi-generator/blob/ee1cbf6f4bacd28aa8c16
</dependency>

Reference

- https://maven.apache.org/plugin-developers/plugin-testing.html

### takari-plugin-testing-project
Expand All @@ -89,4 +90,5 @@ https://github.com/khmarbaise/maven-it-extension
https://khmarbaise.github.io/maven-it-extension/itf-documentation/usersguide/usersguide.html

References
- https://dzone.com/articles/maven-plugin-testing-in-a-modern-way-part-i

- https://dzone.com/articles/maven-plugin-testing-in-a-modern-way-part-i
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pubDatetime: 2024-09-22T07:44:00Z
slug: 2024-09-22-sonatype-setup-for-emeraldjava.md
tags:
- astro
description: 'Sonatype Setup for emeraldjava'
description: "Sonatype Setup for emeraldjava"
---

## 2024-09-22
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/2024/2024-09-27-upgrade-astro-paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Virtual Threads and Astro Paper
author: emeraldjava
pubDatetime: 2024-09-27T07:44:00Z
slug: '2024-09-27'
slug: "2024-09-27"
featured: true
draft: false
tags:
Expand Down
4 changes: 2 additions & 2 deletions src/content/blog/2024/2024-09-28.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Java FX and Spring Boot
author: emeraldjava
pubDatetime: 2024-09-28T18:53:00Z
slug: '2024-09-28'
slug: "2024-09-28"
featured: true
draft: false
tags:
Expand All @@ -16,4 +16,4 @@ description: Java FX and Spring Boot
https://kenjdavidson.com/writing/2022/03/21/javafx-and-spring-boot
https://github.com/yoep/spring-boot-starter-javafx
https://github.com/xdsswar/javafx-spring-demo
https://medium.com/@samydavic/javafx-application-with-spring-boot-2b7c3374e675
https://medium.com/@samydavic/javafx-application-with-spring-boot-2b7c3374e675
4 changes: 2 additions & 2 deletions src/content/blog/2024/2024-10-05.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: DBML and github publishing
author: emeraldjava
pubDatetime: 2024-10-05T07:44:00Z
slug: '2024-10-05'
slug: "2024-10-05"
featured: true
draft: false
tags:
Expand All @@ -17,7 +17,7 @@ Follow openapi maven plugin with mustache templates to generate confluence, plan

## github publishing site and packages

Use github packages for the jar
Use github packages for the jar

- https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry

Expand Down
19 changes: 19 additions & 0 deletions src/content/blog/2024/2024-10-27-growatt-cheat-sheet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Growatt Cheat Sheet
author: emeraldjava
pubDatetime: 2024-10-27T07:44:00Z
slug: "2024-10-27"
featured: false
draft: false
tags:
- growatt
description: a de
---

## Resetting Data Logger Wiki

https://www.solargain.com.au/sites/default/files/2022-09/Growatt_Manual_ConnectToWifi.pdf

## Future Reference

- https://www.wonderwatt.com/how-to-use-the-growatt-app-to-maximise-export-tariff-tou/
3 changes: 2 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { SITE } from "@config";
import { glob } from "astro/loaders";
import { defineCollection, z } from "astro:content";

// see https://docs.astro.build/en/guides/content-collections/#defining-a-collection-schema
// see https://docs.astro.build/en/guides/content-c
// ollections/#defining-a-collection-schema
const blog = defineCollection({
loader: glob({ pattern: "**/*.md", base: "./content/blog" }),
schema: ({ image }) =>
Expand Down
15 changes: 15 additions & 0 deletions src/pages/posts/[...page].astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
import { SITE } from "@config";
import Posts from "@layouts/Posts.astro";
import type { GetStaticPaths } from "astro";
import { getCollection } from "astro:content";
export const getStaticPaths = (async ({ paginate }) => {
const posts = await getCollection("blog", ({ data }) => !data.draft);
return paginate(posts, { pageSize: SITE.postPerPage });
}) satisfies GetStaticPaths;
const { page } = Astro.props;
---

<Posts {page} />
15 changes: 15 additions & 0 deletions src/pages/posts/[page].astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
import { SITE } from "@config";
import Posts from "@layouts/Posts.astro";
import type { GetStaticPaths } from "astro";
import { getCollection } from "astro:content";
export const getStaticPaths = (async ({ paginate }) => {
const posts = await getCollection("blog", ({ data }) => !data.draft);
return paginate(posts, { pageSize: SITE.postPerPage });
}) satisfies GetStaticPaths;
const { page } = Astro.props;
---

<Posts {page} />
Loading

0 comments on commit aec391d

Please sign in to comment.