芝麻web文件管理V1.00
编辑当前文件:/home/rejoandoctor/public_html/node_modules/laravel-mix/src/components/DisableNotifications.js
const { Component } = require('./Component'); module.exports = class DisableNotifications extends Component { /** * The API name for the component. */ name() { return ['disableNotifications', 'disableSuccessNotifications']; } /** * Register the component. */ register() { const enabled = this.caller === 'disableSuccessNotifications' ? ['failure'] : []; this.context.config.notifications = { onSuccess: enabled.includes('success'), onFailure: enabled.includes('failure') }; } };