承接 nearata/flarum-ext-maintenance-mode 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nearata/flarum-ext-maintenance-mode

最新稳定版本:1.0.0

Composer 安装命令:

composer require nearata/flarum-ext-maintenance-mode

包简介

Customizable maintenance mode

关键字:

README 文档

README

Customizable maintenance mode

Install

composer require nearata/flarum-ext-maintenance-mode:"*"

Update

composer update nearata/flarum-ext-maintenance-mode:"*"
php flarum cache:clear

Remove

composer remove nearata/flarum-ext-maintenance-mode
php flarum cache:clear

How to use

Switch the Maintenance Mode in the extension settings page.

With a command

php flarum nearataMaintenanceMode:toggle <true or false>

With API endpoint

PATCH /api/nearata/maintenanceMode/enabled
{
  "value": true or false
}

if the body is empty, it will be evaluated as false.

An empty response is returned either way.

How to style

To change the style of the page, there's no other way but to override the file itself.

Follow the below link to see a how-to:

https://docs.flarum.org/extend/views/#overriding-views

How to bypass maintenance

If you have permissions to bypass the maintenance mode, you can run the below command to generate a link to login in a authorized user.

Assure you are in the Flarum root folder:

php flarum nearataMaintenanceMode:auth <user_id>

Note

  • If the database is inaccessible, this situation is not handled.

统计信息

  • 总下载量: 2.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unlicense
  • 更新时间: 2023-04-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固