Skip to content

Commit

Permalink
Ready maken voor hosten
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanderLaan committed Oct 30, 2024
1 parent 8e34f85 commit bb433e3
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

### Extra lines below are preserved ###
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: docker creation

# Run on PR requests. And on main itself.
on:
push:
branches:
- main
pull_request:


# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel
jobs:
build:
runs-on: ubuntu-22.04

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
# access it
- uses: actions/checkout@v4

- name: Build docker
run: docker compose build

- name: Publish the Docker image
run: |
docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
docker tag docker.io/library/floodsmart-status-overview-dashboard-web ghcr.io/nens/wim:main
docker push ghcr.io/nens/wim:main
if: github.ref == 'refs/heads/main'
# Running this job only for main branch.
32 changes: 32 additions & 0 deletions .github/workflows/nens-meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Generated by nens-meta.
# See https://nens-meta.readthedocs.io/en/latest/config-files.html for info.
# If you want this file to be left alone, add "nens_meta_leave_alone" in
# all caps somewhere in this file in a comment.
#

name: nens-meta
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

workflow_dispatch:

jobs:
nens-meta:
name: nens-meta
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: pre-commit/[email protected]

### Extra lines below are preserved ###
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
default_language_version:
python: python3

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-toml
- id: check-added-large-files

### Extra lines below are preserved ###
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.2
hooks:
# Run the linter.
- id: ruff
args: ["--fix"]
# Run the formatter.
- id: ruff-format
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## WIM (Werkdruk Inzicht en Monitoor)
Testing phase -- voor al uw inzicht in wie wanneer druk is binnen WIO

## Toevoegen van nieuwe collega's

## Verwijderen van oude collega's



## Development

Github actions build the docker image that's automatically deployed to the dashboard
server. Those actions also check a bit of formatting and do some basic syntax checks. To
do those checks + automatic fixes locally, install "pre-commit" and run it:

$ pip install pre-commit # You only need to do this once on your laptop
$ pre-commit run --all # This runs checks + formatting
2 changes: 1 addition & 1 deletion input_employees/esther.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ week,druk,note
41,,
42,,
43,,
44, Druk,wimmm
44,Druk,wimmm
45,Goed,lekker werken
46,,
47,,
Expand Down
2 changes: 1 addition & 1 deletion wim.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

with st.form("my_form"):
# HTML for week selector with arrows
categories = ["πŸ›Œ Heel Rustig", "😐 Rustig", "😎 Goed", " 🐝 Druk", "πŸ”₯ Heel druk ", "🚫 Afwezig" ]
categories = ["πŸ›Œ Heel Rustig", "😐 Rustig", "😎 Goed", "🐝 Druk", "πŸ”₯ Heel druk ", "🚫 Afwezig" ]

selected_category = st.radio("Drukte", categories, index=0, key="category_selector", horizontal=False)
notes = st.text_input(label='notitie',placeholder="Hier is plek voor jouw πŸ₯š..")
Expand Down

0 comments on commit bb433e3

Please sign in to comment.