diff --git a/web/assets/js/constants.js b/web/assets/js/constants.js index 8632c1b..4381b70 100644 --- a/web/assets/js/constants.js +++ b/web/assets/js/constants.js @@ -1,17 +1 @@ -const localStorageKey = "@cel-playground:mode"; - -const MODES = Object.freeze({ - CEL: { value: "CEL", title: "CEL Expression", html: "" }, - VAP: { - value: "VAP", - title: "Validating Admission Policy", - html: [{ selector: "", string: "" }], - }, - WEB_HOOKS: { value: "WEB_HOOKS", title: "Web Hooks", html: "" }, - AUTH_CMAPPING: { - value: "AUTH_CMAPPING", - title: "Authentication Claim Mapping", - html: "", - }, - AUTH: { value: "AUTH", title: "Authentication", html: "" }, -}); +const localStorageKey = "mode"; diff --git a/web/assets/modes.json b/web/assets/modes.json index b83e7a4..9c43443 100644 --- a/web/assets/modes.json +++ b/web/assets/modes.json @@ -130,6 +130,11 @@ "id": "params", "name": "Parameters", "syntax": "yaml" + }, + { + "id": "params2", + "name": "Parameters 2", + "syntax": "yaml" } ] },