Skip to content

Commit 907fab1

Browse files
Add simple user interface (#12)
* Add cors config * add user interface (#5) * Update README.md * Add emoji * chore: add vite react create-app in ui folder * feat: add schedule list page * fix: fixes Navbar logo link * feat: add create schedule form page * Api changes and improvements * feat: add delete schedule action * feat: add delete schedule confirmation dialog * feat: add schedule detail page * feat: add DialogActionTrigger component * feat: update api url, add ScheduleCardList component * feat: add seed button * feat: update style, add animations * feat: add pre-commit prettier format * feat: format the entire project UI code using prettier * feat: move new schedule form in a Dialog * fix: action bar actions (wip) * feat: add resume, pause, trigger schedule api integration * Fixed issue with pause and resume * Add build workflow * Add support for build without web ui * Add Test workflow * Fix Less() * Fix tests * Add test for pause/resume * feat: add schedule detail modal * Generate version based on commit and branch * Add release workflow * Add build of ui in Dockerfile * Fix tag * Fix prefix of image * Fix test --------- Co-authored-by: Stefano Scafiti <[email protected]> --------- Co-authored-by: Alessio Sferro <[email protected]>
1 parent 51ff915 commit 907fab1

File tree

115 files changed

+9408
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+9408
-537
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main, dev ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v4
19+
with:
20+
go-version: '1.23'
21+
22+
- name: Build
23+
run: go build -v ./...

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- release/v*.*.*
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Checkout the repository
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
# Extract the version (v*.*.*) from the branch name
18+
- name: Extract version
19+
id: extract_version
20+
run: echo "VERSION=${GITHUB_REF_NAME##*/}" >> $GITHUB_ENV
21+
22+
# Log in to GitHub Container Registry
23+
- name: Log in to GHCR
24+
uses: docker/login-action@v2
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
30+
# Build and Push the Docker Image
31+
- name: Build and Push Docker Image
32+
uses: docker/build-push-action@v4
33+
with:
34+
context: .
35+
push: true
36+
tags: |
37+
ghcr.io/${{ github.repository }}:${{ env.VERSION }}
38+
ghcr.io/${{ github.repository }}:latest

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches: [main, dev]
9+
10+
jobs:
11+
run-tests:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: '1.23'
22+
23+
- name: Run tests
24+
run: go test ./... -v

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
vendor
2+
node_modules
3+
data/kronos.bolt
24
bin
3-
*.sqlite
5+
*.sqlite

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
cd UI
5+
npx lint-staged

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLinters/eslint.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kronos.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)