feat: centralize application framework primitives
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
// Generated by scripts/build-editor-compiler.mjs. Do not edit directly.
|
||||
// WRN editor compiler source hash: 0ce7440feda082e0baf1ad3a8f2a5c309f308b755bd074fa8cab6de16efb675e
|
||||
// WRN editor compiler source hash: 1e7593d6b6bd1c9b8439fc34a30f9db9f7ae64f1788365a74115170aa34cd185
|
||||
// WRN editor compiler generator hash: a54ca847c758bc98d8e353ad6d70088df31de1820f6cf9d1c3462505f563e6b8
|
||||
// Generated with TypeScript: 6.0.3
|
||||
const __nodeRequire = require;
|
||||
@@ -6557,6 +6557,25 @@ function parse(source) {
|
||||
throw new ParseError(`Expected a ${kind} member keyword at offset ${kw.pos}`);
|
||||
}
|
||||
switch (kw.value) {
|
||||
case "auth": {
|
||||
lx.next();
|
||||
expect("eq");
|
||||
const value = lx.next();
|
||||
if (value.type !== "ident" || !["true", "false"].includes(value.value)) {
|
||||
throw new ParseError(`Expected auth = true or false at offset ${value.pos}`);
|
||||
}
|
||||
security.auth = value.value === "true" ? "required" : "false";
|
||||
break;
|
||||
}
|
||||
case "permission": {
|
||||
lx.next();
|
||||
expect("eq");
|
||||
const value = expect("string").value.trim();
|
||||
if (!value)
|
||||
throw new ParseError(`Page permission cannot be empty at offset ${kw.pos}`);
|
||||
security.permission = value;
|
||||
break;
|
||||
}
|
||||
case "layout": {
|
||||
// layout = "public" — selects app/layouts/<name>.wrn for this page.
|
||||
lx.next();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WRN editor extension source hash: e2d214e98eb953756974d4b731530ed432c2f9dca6f0aaee975453b2eec84d75
|
||||
// WRN editor extension source hash: 7fd27405852b02ce3f64e8b7cc08e84029aca9f5505217caafe56be8d3ca4931
|
||||
// WRN editor extension generator hash: 456d1d614e44e5fb1f19b784176c09cf2ade9b64ef73a17934c2698150b62728
|
||||
"use strict";
|
||||
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
// WRN editor language server source hash: cea070c2eebb5339c7b48f4200d34e51f2adb16eba4d6d3f92e5040081c5b079
|
||||
// WRN editor language server source hash: 3c6060ff9db332cf1dc01a467d795fb2d002300400072a4b87437c48d61ab7f9
|
||||
// WRN editor language server generator hash: f593a44aaf05495b789ce7a3086bee1eebb951b884d41c0e017bbcfe5f547e72
|
||||
// @bun @bun-cjs
|
||||
(function(exports, require, module, __filename, __dirname) {var __create = Object.create;
|
||||
@@ -171611,6 +171611,25 @@ function parse(source) {
|
||||
throw new ParseError(`Expected a ${kind} member keyword at offset ${kw.pos}`);
|
||||
}
|
||||
switch (kw.value) {
|
||||
case "auth": {
|
||||
lx.next();
|
||||
expect("eq");
|
||||
const value = lx.next();
|
||||
if (value.type !== "ident" || !["true", "false"].includes(value.value)) {
|
||||
throw new ParseError(`Expected auth = true or false at offset ${value.pos}`);
|
||||
}
|
||||
security.auth = value.value === "true" ? "required" : "false";
|
||||
break;
|
||||
}
|
||||
case "permission": {
|
||||
lx.next();
|
||||
expect("eq");
|
||||
const value = expect("string").value.trim();
|
||||
if (!value)
|
||||
throw new ParseError(`Page permission cannot be empty at offset ${kw.pos}`);
|
||||
security.permission = value;
|
||||
break;
|
||||
}
|
||||
case "layout": {
|
||||
lx.next();
|
||||
expect("eq");
|
||||
|
||||
Reference in New Issue
Block a user