21
0
Fork
You've already forked Inventory
2
Inventory of HSPOZ
  • Python 49.4%
  • HTML 27.1%
  • CSS 19.5%
  • Nix 4%
2024年04月01日 19:29:28 +00:00
inventory Adding Technodzik Hackerspace inventory 2024年03月29日 20:06:35 +01:00
src Reformat __main__ 2024年01月08日 22:47:26 +01:00
.gitignore gemini and nix shell 2023年12月06日 21:32:17 +01:00
.woodpecker.yml Enable CI 2023年12月16日 14:10:33 +01:00
LICENSE Initial commit 2023年11月16日 18:04:53 +00:00
README.md docs: Adding instructions how to run web version locally 2024年03月29日 22:36:04 +01:00
requirements.txt gemini and nix shell 2023年12月06日 21:32:17 +01:00
shell.nix gemini and nix shell 2023年12月06日 21:32:17 +01:00

Inventory

Inventory of HSPOZ

EN:

How to add your inventory

You will need to create a hjson file with you inventory items. This can look something like this:

{
 owner: wilmhit
 inventory: {
 "Obiekt A": Prosty opis
 "Obiekt B": {
 # Tu można zrobić parę pól więcej 
 # Będą wyświetlane w formie tabelki
 }
 }
}

Example:

{
 owner: wilmhit
 inventory: {
 "Klucz francuski": Krótki klucz francuski o regulacji od 5 do 25
 "Projektor": {
 Opis: '''
 Tani projektor o rozdzielczości 1920x1080
 i bardzo średniej lampie.
 '''
 "Aby pożyczyć": Parę dni wcześnieś wiadomość na priv
 }
 }
}

How to generate html

git clone https://codeberg.org/HSPOZ/Inventory.git/
cd Inventory
python -m venv ./venv
source ./venv/bin/activate
pip install -r requirements.txt 
python src

View generated content locally

python -m http.server --directory generated 8000

navigate to http://localhost:8000