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
66
frontend/node_modules/@babel/traverse/lib/scope/traverseForScope.js
generated
vendored
Normal file
66
frontend/node_modules/@babel/traverse/lib/scope/traverseForScope.js
generated
vendored
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = traverseForScope;
|
||||
var _t = require("@babel/types");
|
||||
var _index = require("../index.js");
|
||||
var _visitors = require("../visitors.js");
|
||||
var _context = require("../path/context.js");
|
||||
const {
|
||||
VISITOR_KEYS
|
||||
} = _t;
|
||||
function traverseForScope(path, visitors, state) {
|
||||
const exploded = (0, _visitors.explode)(visitors);
|
||||
if (exploded.enter || exploded.exit) {
|
||||
throw new Error("Should not be used with enter/exit visitors.");
|
||||
}
|
||||
_traverse(path.parentPath, path.parent, path.node, path.container, path.key, path.listKey, path.hub, path);
|
||||
function _traverse(parentPath, parent, node, container, key, listKey, hub, inPath) {
|
||||
if (!node) {
|
||||
return;
|
||||
}
|
||||
const path = inPath || _index.NodePath.get({
|
||||
hub,
|
||||
parentPath,
|
||||
parent,
|
||||
container,
|
||||
listKey,
|
||||
key
|
||||
});
|
||||
_context._forceSetScope.call(path);
|
||||
const visitor = exploded[node.type];
|
||||
if (visitor != null && visitor.enter) {
|
||||
for (const visit of visitor.enter) {
|
||||
visit.call(state, path, state);
|
||||
}
|
||||
}
|
||||
if (path.shouldSkip) {
|
||||
return;
|
||||
}
|
||||
const keys = VISITOR_KEYS[node.type];
|
||||
if (!(keys != null && keys.length)) {
|
||||
return;
|
||||
}
|
||||
for (const key of keys) {
|
||||
const prop = node[key];
|
||||
if (!prop) continue;
|
||||
if (Array.isArray(prop)) {
|
||||
for (let i = 0; i < prop.length; i++) {
|
||||
const value = prop[i];
|
||||
_traverse(path, node, value, prop, i, key);
|
||||
}
|
||||
} else {
|
||||
_traverse(path, node, prop, node, key, null);
|
||||
}
|
||||
}
|
||||
if (visitor != null && visitor.exit) {
|
||||
for (const visit of visitor.exit) {
|
||||
visit.call(state, path, state);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=traverseForScope.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue