feat: update base path, and add image processing utility scripts
This commit is contained in:
+2
-2
@@ -11,12 +11,12 @@ export default function App() {
|
|||||||
<Routes>
|
<Routes>
|
||||||
|
|
||||||
<Route
|
<Route
|
||||||
path="/employee"
|
path="/empleado-id/"
|
||||||
element={<IdCardGenerator />}
|
element={<IdCardGenerator />}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Route
|
<Route
|
||||||
path="/employee/:employeeNumber"
|
path="/empleado-id/:employeeNumber"
|
||||||
element={<EmployeeCard />}
|
element={<EmployeeCard />}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ export async function renderQRCode(employeeId, canvasElement) {
|
|||||||
document.body.appendChild(tmp);
|
document.body.appendChild(tmp);
|
||||||
|
|
||||||
new QRCodeLib(tmp, {
|
new QRCodeLib(tmp, {
|
||||||
text: `http://localhost:5173/employee/${cleanId}`,
|
text: `http://localhost:5173/empleado-id/${cleanId}`,
|
||||||
width: 55,
|
width: 55,
|
||||||
height: 55,
|
height: 55,
|
||||||
colorDark: '#000000',
|
colorDark: '#000000',
|
||||||
|
|||||||
+1
-1
@@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react'
|
|||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
base: '/employee'
|
base: '/empleado-id/'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user