mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-24 15:33:13 +09:00
Move exp_reports to ES modules and declare its permissions
Same changes the other packages got in #475 and #476. The permissions move from definePermission calls into the plugin declaration, with the Permissions augmentation in messages.ts so the web build sees it. "type": "module", .js entrypoints and imports, webpack.config.cjs, and the tap tests use import with --type-strip-only. The web plugin now uses a default export function instead of the deprecated BaseWebPlugin class, like exp_roles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9ddb7b362b
commit
12ac7052a1
11 files changed
+91
-83
No files matched your search
@@ -1,6 +1,16 @@
|
||||
import * as lib from "@clusterio/lib";
|
||||
import { Type, Static } from "@sinclair/typebox";
|
||||
|
||||
declare module "@clusterio/lib" {
|
||||
export interface Permissions {
|
||||
"exp_reports.report.get": never;
|
||||
"exp_reports.report.list": never;
|
||||
"exp_reports.report.subscribe": never;
|
||||
"exp_reports.report.create": never;
|
||||
"exp_reports.report.delete": never;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Data records
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user