- Delete old Vite+Svelte frontend - Initialize new SvelteKit project with TypeScript - Configure Tailwind CSS v4 + DaisyUI - Implement JWT authentication with auto-refresh - Create login page with form validation (Zod) - Add protected route guards - Update Docker configuration for single-stage build - Add E2E tests with Playwright (6/11 passing) - Fix Svelte 5 reactivity with $state() runes Known issues: - 5 E2E tests failing (timing/async issues) - Token refresh implementation needs debugging - Validation error display timing
31 lines
638 B
JavaScript
31 lines
638 B
JavaScript
/**
|
|
* @fileoverview Provides helper functions to start/stop the time measurements
|
|
* that are provided by the ESLint 'stats' option.
|
|
* @author Mara Kiefer <http://github.com/mnkiefer>
|
|
*/
|
|
"use strict";
|
|
|
|
/**
|
|
* Start time measurement
|
|
* @returns {[number, number]} t variable for tracking time
|
|
*/
|
|
function startTime() {
|
|
return process.hrtime();
|
|
}
|
|
|
|
/**
|
|
* End time measurement
|
|
* @param {[number, number]} t Variable for tracking time
|
|
* @returns {number} The measured time in milliseconds
|
|
*/
|
|
function endTime(t) {
|
|
const time = process.hrtime(t);
|
|
|
|
return time[0] * 1e3 + time[1] / 1e6;
|
|
}
|
|
|
|
module.exports = {
|
|
startTime,
|
|
endTime,
|
|
};
|