承接 appstract/nova-horizon 相关项目开发

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

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

appstract/nova-horizon

最新稳定版本:3.2.0

Composer 安装命令:

composer require appstract/nova-horizon

包简介

Horizon statistics in Nova

README 文档

README

Latest Version on Packagist Total Downloads Software License

Add Horizon statistics to your Nova dashboard.

dashboard

Installation

You can install the package via composer:

composer require appstract/nova-horizon

Usage

There are two ways to use this package. One is to enable the Horizon dashboard or tool in your application's NovaServiceProvider. This will add a new dashboard to Nova, shown in the screenshot above.

class NovaServiceProvider extends NovaApplicationServiceProvider
{
    protected function dashboards()
    {
        return [
            new \Appstract\NovaHorizon\Dashboard,
        ];
    }

    protected function tools()
    {
        return [
            new \Appstract\NovaHorizon\Tool,
        ];
    }
}

Second way is by adding cards to the main dashboard or your own dashboard(s).

class Main extends Dashboard
{
    public function cards()
    {
        return [
            // Like the dashboard
            new \Appstract\NovaHorizon\Cards\Stats,
            new \Appstract\NovaHorizon\Cards\Workload,
            new \Appstract\NovaHorizon\Cards\PendingJobs,
            new \Appstract\NovaHorizon\Cards\FailedJobs,
            new \Appstract\NovaHorizon\Cards\CompletedJobs,

            // Stats as seperate cards
            new \Appstract\NovaHorizon\Cards\JobsPerMinute,
            new \Appstract\NovaHorizon\Cards\RecentJobsCount,
            new \Appstract\NovaHorizon\Cards\FailedJobsCount,
            new \Appstract\NovaHorizon\Cards\Status,
            new \Appstract\NovaHorizon\Cards\TotalProcesses,
            new \Appstract\NovaHorizon\Cards\MaxWaitTime,
            new \Appstract\NovaHorizon\Cards\MaxRuntime,
            new \Appstract\NovaHorizon\Cards\MaxThroughput,
        ];
    }
}

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for Web Developers and write about related subjects on Medium. You can follow us on Twitter.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 78
  • Watchers: 5
  • Forks: 6
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-05