- 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
20 lines
813 B
JavaScript
20 lines
813 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ipV4 = ipV4;
|
|
const globals_1 = require("../utils/globals");
|
|
const nat_1 = require("./nat");
|
|
const tuple_1 = require("./tuple");
|
|
const NatToStringifiedNat_1 = require("./_internals/mappers/NatToStringifiedNat");
|
|
function dotJoinerMapper(data) {
|
|
return (0, globals_1.safeJoin)(data, '.');
|
|
}
|
|
function dotJoinerUnmapper(value) {
|
|
if (typeof value !== 'string') {
|
|
throw new Error('Invalid type');
|
|
}
|
|
return (0, globals_1.safeMap)((0, globals_1.safeSplit)(value, '.'), (v) => (0, NatToStringifiedNat_1.tryParseStringifiedNat)(v, 10));
|
|
}
|
|
function ipV4() {
|
|
return (0, tuple_1.tuple)((0, nat_1.nat)(255), (0, nat_1.nat)(255), (0, nat_1.nat)(255), (0, nat_1.nat)(255)).map(dotJoinerMapper, dotJoinerUnmapper);
|
|
}
|