for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://dukt.net/analytics/
* @copyright Copyright (c) 2022, Dukt
* @license https://github.com/dukt/analytics/blob/master/LICENSE.md
*/
namespace dukt\analytics\web\assets\reportwidget;
use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;
use dukt\analytics\web\assets\analytics\AnalyticsAsset;
use dukt\analytics\web\assets\googlecharts\GoogleChartsAsset;
* Report widget asset bundle.
class ReportWidgetAsset extends AssetBundle
{
// Public Methods
// =========================================================================
* @inheritdoc
public function init()
// define the path that your publishable resources live
$this->sourcePath = __DIR__.'/dist';
// define the dependencies
$this->depends = [
CpAsset::class,
GoogleChartsAsset::class,
AnalyticsAsset::class,
];
// define the relative path to CSS/JS files that should be registered with the page
// when this asset bundle is registered
$this->js = [
'js/ReportWidgetSettings.js',
'js/ReportWidget.js',
$this->css = [
'css/ReportWidget.css',
'css/ReportWidgetSettings.css',
parent::init();
}