Skip to content

Commit

Permalink
refactor!: rewrite in rust (#158)
Browse files Browse the repository at this point in the history
* feat: setup axum and askama

* feat: setup maud

* AMEND ME LATER

* feat: setup tailwind css

* feat!: add sonarr calendar widget

* refactor: handle `get_widget_info` error

* chore: remove unused tailwind classes

* feat: add ping indicator status

* refactor(deps): switch reqwest to use rustls-tls

* build(docker): setup docker

* ci: add docker build and push workflow

BREAKING CHANGE:
* Widget configuration of Sonarr Calendar. `url` and `key` is now inside `config`. See docs/vesta.toml:88
  • Loading branch information
Veirt committed Aug 1, 2024
1 parent 7c66758 commit d1f5478
Show file tree
Hide file tree
Showing 52 changed files with 3,302 additions and 3,371 deletions.
49 changes: 38 additions & 11 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,40 @@
node_modules
build
.svelte-kit
/package
# Rust build artifacts
target/

# Node.js dependencies
node_modules/

# Git files
.git
.gitignore

# Documentation
docs/

# Editor-specific files
.vscode/
.idea/

# Log files
*.log

# Operating system files
.DS_Store
Thumbs.db

# Environment files
.env
.env.*
.git*
/docs/
README.md
.dockerignore
*.env

# Test files
tests/

# Backup files
*.bak
*.swp
*~

# Docker files (optional, depending on your workflow)
Dockerfile
vite.config.ts.timestamp-*
/config
docker-compose.yml

2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
root = true

[*.{ts,js,svelte,json,html}]
[*.html]
indent_size = 4
indent_style = space
max_line_length = 120
19 changes: 0 additions & 19 deletions .github/dependabot.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Docker Build

on:
push:
branches:
- "master"
tags:
- "v*"
pull_request:
branches:
- "master"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=true
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

26 changes: 0 additions & 26 deletions .github/workflows/ci.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/publish.yml

This file was deleted.

14 changes: 3 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
/target
config/vesta.toml

!config/.gitkeep
node_modules
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

Loading

0 comments on commit d1f5478

Please sign in to comment.