From c4505d98c123bf288f85d5b4a9497f272a847036 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 27 Sep 2024 21:23:45 -0400 Subject: [PATCH] feat: remove global style declaration --- .github/workflows/docker-vm-release.yml | 59 ------------------------- nebula/blocks/global.templ | 4 -- nebula/blocks/global_templ.go | 12 +---- 3 files changed, 1 insertion(+), 74 deletions(-) delete mode 100644 .github/workflows/docker-vm-release.yml diff --git a/.github/workflows/docker-vm-release.yml b/.github/workflows/docker-vm-release.yml deleted file mode 100644 index 7e8aee12f..000000000 --- a/.github/workflows/docker-vm-release.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Publish VM Image - -on: - push: - branches: [master, develop, feature/*] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -env: - GO_VERSION: 1.22 - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -permissions: - contents: read - packages: write - -jobs: - release-image: - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - run: | - DOCKER_REGISTRY=`echo "${{ env.REGISTRY }}/${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]'` - echo "DOCKER_REGISTRY=$DOCKER_REGISTRY" >> $GITHUB_ENV - - REPO_NAME=`echo "${{ github.repository }}" | awk -F'/' '{print $2}' | tr '[:upper:]' '[:lower:]'` - echo "REPO_NAME=$REPO_NAME" >> $GITHUB_ENV - # login to ghcr (public) with codebase remaining private - - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.repository_owner }} - password: ${{ secrets.GH_PAT_TOKEN }} - - - name: Build and push sonrvm image - uses: docker/build-push-action@v6 - with: - push: true - target: sonrvm - tags: ghcr.io/${{ github.repository_owner }}/sonrvm:latest - - - name: Build and push sonr-runner image - uses: docker/build-push-action@v6 - with: - push: true - target: sonr-runner - tags: ghcr.io/${{ github.repository_owner }}/sonr-runner:latest diff --git a/nebula/blocks/global.templ b/nebula/blocks/global.templ index a9a780545..48e27108b 100644 --- a/nebula/blocks/global.templ +++ b/nebula/blocks/global.templ @@ -79,7 +79,3 @@ templ Columns() { { children... } } - -css main() { - font-family: R-Flex, system-ui, Avenir, Helvetica, Arial, sans-serif; -} diff --git a/nebula/blocks/global_templ.go b/nebula/blocks/global_templ.go index fd3545430..51f9e2f27 100644 --- a/nebula/blocks/global_templ.go +++ b/nebula/blocks/global_templ.go @@ -116,7 +116,7 @@ func Styles(local bool) templ.Component { }() } ctx = templ.InitializeContext(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -298,14 +298,4 @@ func Columns() templ.Component { }) } -func main() templ.CSSClass { - templ_7745c5c3_CSSBuilder := templruntime.GetBuilder() - templ_7745c5c3_CSSBuilder.WriteString(`font-family:R-Flex, system-ui, Avenir, Helvetica, Arial, sans-serif;`) - templ_7745c5c3_CSSID := templ.CSSID(`main`, templ_7745c5c3_CSSBuilder.String()) - return templ.ComponentCSSClass{ - ID: templ_7745c5c3_CSSID, - Class: templ.SafeCSS(`.` + templ_7745c5c3_CSSID + `{` + templ_7745c5c3_CSSBuilder.String() + `}`), - } -} - var _ = templruntime.GeneratedTemplate