承接 eom-plus/nova-idle 相关项目开发

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

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

eom-plus/nova-idle

最新稳定版本:v1.0.0

Composer 安装命令:

composer require eom-plus/nova-idle

包简介

A Laravel Nova 4 tool to detect idle/non active user, notice and auto logout

README 文档

README

Nova 4 package to detect idle/non active user, notice and autologout

imagen

Installation

You can install the nova tool in to a Laravel app that uses Nova via composer:

composer require eom-plus/nova-idle

Next up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.

// in app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        new \EomPlus\NovaIdle\NovaIdle(),
    ];
}

Configuration

Usage

When you register this package it's automatically injected to nova.

Configuration

To be able to config timers, you must publish config file

php artisan vendor:publish --provider="EomPlus\NovaIdle\ToolServiceProvider" --tag=config

You must tune 'duration' and 'reminders' values. By default we start detect idle during 5mn and show dialog when remain 60 seconds.

<?php

return [
  'enabled' => true,
  'debug' => false,
  'duration' => 60 * 5,
  'reminders' => [
     60
   ],
];

### Translations

Currenlty we have include spanish and english translations. If you want to add more language you publish translations with the following command

php artisan vendor:publish --provider="EomPlus\NovaIdle\ToolServiceProvider" --tag=translations

If you add more languages don't hesitate to send us a PR.

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

Other Packages You Might Like

Take a look to our Github repositories as we have a lot of forked nova components with fixes that are still not merge into main owner branch.

License

The MIT License (MIT). Please see [License File](h

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-16