feat: polls (#451)

Co-authored-by: silberengel <silberengel7@protonmail.com>
This commit is contained in:
Cody Tseng 2025-07-27 12:05:50 +08:00 committed by GitHub
parent 636ceacdad
commit b35e0cf850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 1240 additions and 130 deletions

View file

@ -3,6 +3,7 @@ import { execSync } from 'child_process'
import path from 'path'
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
import packageJson from './package.json'
const getGitHash = () => {
try {
@ -15,7 +16,7 @@ const getGitHash = () => {
const getAppVersion = () => {
try {
return JSON.stringify(require('./package.json').version)
return JSON.stringify(packageJson.version)
} catch (error) {
console.warn('Failed to retrieve app version:', error)
return '"unknown"'