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
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"'