MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Message

Function Message

frontend/src/utils/message.ts:5–8  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

3let messageDom: any = null;
4const messageTypes: Array<string> = ['success', 'error', 'warning', 'info'];
5const Message: any = (options) => {
6 if (messageDom) messageDom.close();
7 messageDom = ElMessage(options);
8};
9messageTypes.forEach((type) => {
10 Message[type] = (options) => {
11 if (typeof options === 'string') options = { message: options };

Callers 1

message.tsFile · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected