fix: support jsonc comments and switch to monaco for acls
This commit is contained in:
parent
dd9d6cd550
commit
3ea5fed8f6
6 changed files with 293 additions and 557 deletions
|
|
@ -83,7 +83,7 @@ export async function loadContext(): Promise<HeadplaneContext> {
|
|||
return context
|
||||
}
|
||||
|
||||
export async function loadAcl() {
|
||||
export async function loadAcl(): Promise<{ data: string, type: 'json' | 'yaml' }> {
|
||||
let path = process.env.ACL_FILE
|
||||
if (!path) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue