- 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
35 lines
891 B
JavaScript
35 lines
891 B
JavaScript
let Declaration = require('../declaration')
|
|
let utils = require('./grid-utils')
|
|
|
|
class GridArea extends Declaration {
|
|
/**
|
|
* Translate grid-area to separate -ms- prefixed properties
|
|
*/
|
|
insert(decl, prefix, prefixes, result) {
|
|
if (prefix !== '-ms-') return super.insert(decl, prefix, prefixes)
|
|
|
|
let values = utils.parse(decl)
|
|
|
|
let [rowStart, rowSpan] = utils.translate(values, 0, 2)
|
|
let [columnStart, columnSpan] = utils.translate(values, 1, 3)
|
|
|
|
;[
|
|
['grid-row', rowStart],
|
|
['grid-row-span', rowSpan],
|
|
['grid-column', columnStart],
|
|
['grid-column-span', columnSpan]
|
|
].forEach(([prop, value]) => {
|
|
utils.insertDecl(decl, prop, value)
|
|
})
|
|
|
|
utils.warnTemplateSelectorNotFound(decl, result)
|
|
utils.warnIfGridRowColumnExists(decl, result)
|
|
|
|
return undefined
|
|
}
|
|
}
|
|
|
|
GridArea.names = ['grid-area']
|
|
|
|
module.exports = GridArea
|