Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
32 lines
990 B
TypeScript
32 lines
990 B
TypeScript
// Module ID: 14532
|
|
// Function ID: 14533
|
|
// Name: users
|
|
// Dependencies: [1371, 4479, 1074, 14504, 9592, 2]
|
|
|
|
// Module 14532 (users)
|
|
import transformUserDefault from "transformUser" /* 9592 */;
|
|
import UserStore from "UserStore" /* 1371 */;
|
|
|
|
const Constants = fn(4479);
|
|
({ RPC_EMBEDDED_APP_SCOPE, RPC_LOCAL_SCOPE, RPC_SCOPE_CONFIG } = Constants);
|
|
const RPCCommands = fn(1074).RPCCommands;
|
|
const obj = {};
|
|
const CONTEXT_MENU_ICON_NAMES = fn(14504);
|
|
const obj3 = {
|
|
scope: null,
|
|
handler(args) {
|
|
const user = UserStore.getUser(args.args.id);
|
|
let tmp2 = null;
|
|
if (null != user) {
|
|
tmp2 = transformUserDefault(user);
|
|
}
|
|
return tmp2;
|
|
}
|
|
};
|
|
const items = [RPC_EMBEDDED_APP_SCOPE, RPC_LOCAL_SCOPE];
|
|
obj3.scope = { [RPC_SCOPE_CONFIG.ANY]: items };
|
|
obj[RPCCommands.GET_USER] = CONTEXT_MENU_ICON_NAMES.createRPCCommand(RPCCommands.GET_USER, obj3);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/rpc/server/commands/users.tsx");
|
|
|
|
export default obj;
|