Compare commits
11 Commits
main
...
6c0ca89fd2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c0ca89fd2 | ||
|
|
d1784542d3 | ||
|
|
7536290f23 | ||
|
|
29c2a9f3ef | ||
|
|
b8917772f0 | ||
|
|
b1394e0bdb | ||
|
|
4cf439c506 | ||
|
|
0223b48da3 | ||
|
|
1be1600a1a | ||
|
|
c840d6d3ff | ||
|
|
51922d103c |
@@ -1,52 +0,0 @@
|
||||
name: Build
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: sh
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types:
|
||||
- closed
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: gitea.event_name == 'push' || gitea.event.pull_request.merged == true
|
||||
runs-on: lts-alpine
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Install dependencies
|
||||
run: apk add make jq pnpm
|
||||
|
||||
- name: Install packages
|
||||
run: pnpm install --frozen-lockfile
|
||||
working-directory: ./web
|
||||
|
||||
- name: Build web
|
||||
run: make web-build
|
||||
|
||||
- name: Package web
|
||||
run: |
|
||||
set -e
|
||||
|
||||
# Create package directory
|
||||
mkdir -p package
|
||||
|
||||
# Copy built files to package
|
||||
cp -r ./web/dist package/
|
||||
cp -r ./schema package/
|
||||
cp ./license package/
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: ./package/*
|
||||
retention-days: 15
|
||||
@@ -23,14 +23,15 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: apk add make jq pnpm
|
||||
run: apk add pnpm
|
||||
|
||||
- name: Install packages
|
||||
run: pnpm install --frozen-lockfile
|
||||
working-directory: ./web
|
||||
|
||||
- name: Run prettier
|
||||
run: make web-format
|
||||
run: pnpm exec prettier -w **/*
|
||||
working-directory: ./web
|
||||
|
||||
- name: Commit formatting changes
|
||||
run: |
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 88 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 60 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 89 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 95 KiB |
90
readme.md
90
readme.md
@@ -1,90 +0,0 @@
|
||||
# Kiosk
|
||||
|
||||
A modern office/building information display system built with React and PocketBase. Provides an interactive interface for building navigation, company directory, and bulletin notices.
|
||||
|
||||
## Features
|
||||
|
||||
- **Interactive Floor Plans** - Navigate multi-story buildings with annex filtering, room highlighting, and company logo positioning
|
||||
- **Company Directory** - Browse tenant companies with contact information and visual cards
|
||||
- **Bulletin Board** - Display important notices and announcements
|
||||
- **Static Hosting Ready** - Hash-based routing for deployment anywhere
|
||||
|
||||
## Screenshots
|
||||
|
||||
### Bulletin Board
|
||||

|
||||
|
||||
### Company Directory
|
||||

|
||||
|
||||
### Floor Plan Navigation
|
||||

|
||||
|
||||
### About Page
|
||||

|
||||
|
||||
## Setup
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- **pnpm** 8+ (package manager)
|
||||
- **PocketBase** (backend database)
|
||||
|
||||
### PocketBase Setup
|
||||
|
||||
1. Download PocketBase from [pocketbase.io](https://pocketbase.io)
|
||||
2. Initialize the database:
|
||||
```bash
|
||||
./pocketbase serve
|
||||
```
|
||||
3. Import the schema from `schema/pb_schema.json` via the PocketBase admin UI (_Settings > Import collections_)
|
||||
|
||||
### Web Frontend
|
||||
|
||||
Install dependencies:
|
||||
```bash
|
||||
cd web
|
||||
pnpm install
|
||||
```
|
||||
|
||||
#### Development Mode
|
||||
|
||||
Run the development server:
|
||||
```bash
|
||||
make web-dev
|
||||
# or
|
||||
cd web && pnpm dev
|
||||
```
|
||||
|
||||
The app will be available at `http://localhost:5173`
|
||||
|
||||
#### Production Build
|
||||
|
||||
Build for production:
|
||||
```bash
|
||||
make web-build
|
||||
# or
|
||||
cd web && pnpm build
|
||||
```
|
||||
|
||||
Built files will be in `web/dist/` - ready for static hosting.
|
||||
|
||||
### Additional Commands
|
||||
|
||||
```bash
|
||||
make web-lint # Run ESLint
|
||||
make web-format # Format code with Prettier
|
||||
make web-preview # Preview production build
|
||||
```
|
||||
|
||||
## Tech Stack
|
||||
|
||||
- **Frontend**: React 19, TypeScript, Vite, Tailwind CSS
|
||||
- **UI Components**: shadcn/ui
|
||||
- **Routing**: Wouter (hash-based)
|
||||
- **Backend**: PocketBase
|
||||
- **Build**: Vite with Rolldown (beta)
|
||||
|
||||
## License
|
||||
|
||||
MIT License - Copyright © 2025 "NABLA" d.o.o. Zenica
|
||||
@@ -22,7 +22,7 @@ const getPocketBaseUrl = (): string => {
|
||||
}
|
||||
|
||||
/* Production URL - configure via build process or use relative URL */
|
||||
return import.meta.env.VITE_POCKETBASE_URL || "http://localhost:8090";
|
||||
return import.meta.env.VITE_POCKETBASE_URL || "https://api.yourdomain.com";
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user