Initial kitchen scaffold — Phase 1 kitchen port (build-verified 2026-07-11)
FastAPI backend (Python 3.11, MSSQL ODBC for SambaPOS, Azure DI OCR),
kitchen_db on central PG. React/TS/Vite frontend with navy sidebar layout.
Backend: auth.py (APP_SLUG=kitchen, SimpleNamespace — archive routes use
.kitchen_id/.is_admin without modification), main.py (51 migrations, scheduler,
internal router for KDS bookings feed), api/internal.py, full archive API
(31 routers: invoices, recipes, menus, sambapos, resos, newbook, disputes,
purchase_orders, etc.), models, migrations, OCR pipeline.
kitchen_id pinned to 1 (B1 — single hotel).
Frontend: AuthGate (app=kitchen, token shim for archive compat — B5b pending),
Layout (navy sidebar, 6 sections, Lucide icons, teal --app-primary),
App.tsx (Outlet pattern, UploadApp outside Layout), index.css (full :root block).
strict: false — archive components have type issues; build clean.
Note: 45 archive components call fetch('/api/...') without /kitchen/ prefix
(B5b). Runtime 404s; deferred until after initial testing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
8d688b459d
10003 changed files with 1928395 additions and 0 deletions
68
frontend/node_modules/postcss/lib/fromJSON.js
generated
vendored
Normal file
68
frontend/node_modules/postcss/lib/fromJSON.js
generated
vendored
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
'use strict'
|
||||
|
||||
let AtRule = require('./at-rule')
|
||||
let Comment = require('./comment')
|
||||
let Declaration = require('./declaration')
|
||||
let Input = require('./input')
|
||||
let PreviousMap = require('./previous-map')
|
||||
let Root = require('./root')
|
||||
let Rule = require('./rule')
|
||||
|
||||
function fromJSON(json, inputs) {
|
||||
if (Array.isArray(json)) return json.map(n => fromJSON(n))
|
||||
|
||||
let { inputs: ownInputs, ...defaults } = json
|
||||
if (ownInputs) {
|
||||
inputs = []
|
||||
for (let input of ownInputs) {
|
||||
let inputHydrated = { ...input, __proto__: Input.prototype }
|
||||
if (inputHydrated.map) {
|
||||
inputHydrated.map = {
|
||||
...inputHydrated.map,
|
||||
__proto__: PreviousMap.prototype
|
||||
}
|
||||
}
|
||||
inputs.push(inputHydrated)
|
||||
}
|
||||
}
|
||||
// Rehydrate children separately and attach them after construction.
|
||||
// Passing them through the container constructor would re-run insertion
|
||||
// spacing normalization and overwrite each child's own `raws.before`.
|
||||
let nodes
|
||||
if (defaults.nodes) {
|
||||
nodes = json.nodes.map(n => fromJSON(n, inputs))
|
||||
delete defaults.nodes
|
||||
}
|
||||
if (defaults.source) {
|
||||
let { inputId, ...source } = defaults.source
|
||||
defaults.source = source
|
||||
if (inputId != null) {
|
||||
defaults.source.input = inputs[inputId]
|
||||
}
|
||||
}
|
||||
|
||||
let node
|
||||
if (defaults.type === 'root') {
|
||||
node = new Root(defaults)
|
||||
} else if (defaults.type === 'decl') {
|
||||
node = new Declaration(defaults)
|
||||
} else if (defaults.type === 'rule') {
|
||||
node = new Rule(defaults)
|
||||
} else if (defaults.type === 'comment') {
|
||||
node = new Comment(defaults)
|
||||
} else if (defaults.type === 'atrule') {
|
||||
node = new AtRule(defaults)
|
||||
} else {
|
||||
throw new Error('Unknown node type: ' + json.type)
|
||||
}
|
||||
|
||||
if (nodes) {
|
||||
node.nodes = nodes
|
||||
for (let child of nodes) child.parent = node
|
||||
}
|
||||
|
||||
return node
|
||||
}
|
||||
|
||||
module.exports = fromJSON
|
||||
fromJSON.default = fromJSON
|
||||
Loading…
Add table
Add a link
Reference in a new issue