Visitor sign in kiosk: multi-site, badge printing, WWCC expiry warnings, admin accounts with 2FA

This commit is contained in:
2026-08-31 09:47:36 +10:00
commit ed77493817
32 changed files with 5799 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# Pushes this folder into the Gitea repo created for it.
# Run from PowerShell, inside the visitor-signin folder:
# .\push-to-gitea.ps1
# If Windows blocks it: powershell -ExecutionPolicy Bypass -File .\push-to-gitea.ps1
$ErrorActionPreference = 'Stop'
$Remote = 'https://gitea.hideawaygaming.com.au/jessikitty/visitor-signin.git'
if (-not (Test-Path 'package.json')) {
Write-Error 'Run this from inside the visitor-signin folder.'
exit 1
}
if (-not (Get-Command git -ErrorAction SilentlyContinue)) {
Write-Error 'Git is not installed or not on PATH. Install it from https://git-scm.com/download/win'
exit 1
}
# Keep line endings sane between Windows and the Ubuntu docker host.
git config --global core.autocrlf input | Out-Null
if (-not (Test-Path '.git')) {
git init -b main
} else {
Write-Host 'This folder is already a git repo, adding a commit to it.'
}
git add .
$message = 'Visitor sign in kiosk: multi-site, badge printing, WWCC expiry warnings, admin accounts with 2FA'
git commit -m $message
if (git remote | Select-String -Quiet '^origin$') {
git remote set-url origin $Remote
} else {
git remote add origin $Remote
}
git push -u origin main
Write-Host ''
Write-Host 'Pushed. Repo: https://gitea.hideawaygaming.com.au/jessikitty/visitor-signin' -ForegroundColor Green
Write-Host 'Sign in with your Gitea username and password, or a token as the password.'