feat: update base path, and add image processing utility scripts

This commit is contained in:
2026-07-10 11:58:52 -04:00
parent d355feb243
commit dc2fa3e681
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -11,12 +11,12 @@ export default function App() {
<Routes>
<Route
path="/employee"
path="/empleado-id/"
element={<IdCardGenerator />}
/>
<Route
path="/employee/:employeeNumber"
path="/empleado-id/:employeeNumber"
element={<EmployeeCard />}
/>
+1 -1
View File
@@ -132,7 +132,7 @@ export async function renderQRCode(employeeId, canvasElement) {
document.body.appendChild(tmp);
new QRCodeLib(tmp, {
text: `http://localhost:5173/employee/${cleanId}`,
text: `http://localhost:5173/empleado-id/${cleanId}`,
width: 55,
height: 55,
colorDark: '#000000',
+1 -1
View File
@@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
base: '/employee'
base: '/empleado-id/'
})