File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/js/im/v2/component/call-background/src/classes/items/action.js
Back
import {Loc} from 'main.core'; export class Action { static type = { none: 'none', upload: 'upload', blur: 'blur', gaussianBlur: 'gaussianBlur' }; id: string; title: string; background: string; constructor(type: String) { let id = Action.type.none; let background = Action.type.none; let title = Loc.getMessage('BX_IM_CALL_BG_ACTION_NONE'); if (type === Action.type.upload) { id = type; background = type; title = Loc.getMessage('BX_IM_CALL_BG_ACTION_UPLOAD'); } else if (type === Action.type.gaussianBlur) { id = type; background = type; title = Loc.getMessage('BX_IM_CALL_BG_ACTION_BLUR'); } else if (type === Action.type.blur) { id = type; background = type; title = Loc.getMessage('BX_IM_CALL_BG_ACTION_BLUR_MAX'); } this.id = id; this.background = background; this.title = title; } isEmpty(): boolean { return this.id === Action.type.none; } isBlur(): boolean { return this.id === Action.type.gaussianBlur || this.id === Action.type.blur; } isUpload(): boolean { return this.id === Action.type.upload; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings