From 3a346230744680ff3f7d5419f5e2316db7360cac Mon Sep 17 00:00:00 2001 From: Sarah Tsumayoi Date: Thu, 30 Aug 2018 21:59:44 +0900 Subject: [PATCH 1/6] Update discordappframe.php --- widgets/views/discordappframe.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/widgets/views/discordappframe.php b/widgets/views/discordappframe.php index ea4da63..8540a7d 100644 --- a/widgets/views/discordappframe.php +++ b/widgets/views/discordappframe.php @@ -1,8 +1,6 @@ Date: Thu, 30 Aug 2018 22:09:53 +0900 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bd49a1..c2eeae1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## [HumHub](https://www.humhub.org/en) Discord Module -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/GreenMeteor/humhub-discordapp-module/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/GreenMeteor/humhub-discordapp-module/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/GreenMeteor/humhub-discordapp-module/badges/build.png?b=master)](https://scrutinizer-ci.com/g/GreenMeteor/humhub-discordapp-module/build-status/master) [![CLA assistant](https://cla-assistant.io/readme/badge/GreenMeteor/humhub-discordapp-module)](https://cla-assistant.io/GreenMeteor/humhub-discordapp-module) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/GreenMeteor/humhub-discordapp-module/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/GreenMeteor/humhub-discordapp-module/?branch=master) [![CLA assistant](https://cla-assistant.io/readme/badge/GreenMeteor/humhub-discordapp-module)](https://cla-assistant.io/GreenMeteor/humhub-discordapp-module) Adds a sidebar widget to the Dashboard. From a95c896c9d94e383c8de9bef2c1e90b2e988f417 Mon Sep 17 00:00:00 2001 From: Sarah Tsumayoi Date: Thu, 30 Aug 2018 22:12:09 +0900 Subject: [PATCH 3/6] Update CHANGELOGS.md --- docs/CHANGELOGS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/CHANGELOGS.md b/docs/CHANGELOGS.md index 325f61b..db8072f 100644 --- a/docs/CHANGELOGS.md +++ b/docs/CHANGELOGS.md @@ -1,7 +1,10 @@ # Changelogs ### Discord App Module v1.2.6 [Stable] (TBA) +- Chg: className() to class - Chg: Class cleaning +- Chg: Moved images to resources +- Chg: Update to coding standards ### Discord App Module v1.2.5 [Stable] (Aug 8, 2018) - Chg: Object class to BaseObject class From b3531e0e510fa6c830fba9774f31b191979f9386 Mon Sep 17 00:00:00 2001 From: Sarah Tsumayoi Date: Thu, 30 Aug 2018 22:17:51 +0900 Subject: [PATCH 4/6] Update Module.php --- Module.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Module.php b/Module.php index 4cf04ae..700dd30 100644 --- a/Module.php +++ b/Module.php @@ -4,9 +4,8 @@ use Yii; use yii\helpers\Url; -use humhub\components\Module; -class Module extends Module +class Module extends \humhub\components\Module { /** From e63ef690c6df3f0058b114480617d1c7c2ca8058 Mon Sep 17 00:00:00 2001 From: Sarah Tsumayoi Date: Thu, 30 Aug 2018 22:42:21 +0900 Subject: [PATCH 5/6] Add files via upload --- Assets.php | 20 ++++++++++++++++++++ Module.php | 2 ++ widgets/DiscordappFrame.php | 4 +--- widgets/views/discordappframe.php | 2 +- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 Assets.php diff --git a/Assets.php b/Assets.php new file mode 100644 index 0000000..a320a6a --- /dev/null +++ b/Assets.php @@ -0,0 +1,20 @@ + true + ]; + + public function init() + { + $this->sourcePath = dirname(__FILE__) . '/resources'; + parent::init(); + } +} diff --git a/Module.php b/Module.php index 700dd30..a1c3e73 100644 --- a/Module.php +++ b/Module.php @@ -8,6 +8,8 @@ class Module extends \humhub\components\Module { + public $resourcesPath = 'resources'; + /** * @inheritdoc */ diff --git a/widgets/DiscordappFrame.php b/widgets/DiscordappFrame.php index 2b17ffb..01f428b 100644 --- a/widgets/DiscordappFrame.php +++ b/widgets/DiscordappFrame.php @@ -3,9 +3,7 @@ namespace humhub\modules\discordapp\widgets; use Yii; -use yii\helpers\Url; -use humhub\libs\Html; -use humhub\components\Widget; +use yii\base\Widget; /** * diff --git a/widgets/views/discordappframe.php b/widgets/views/discordappframe.php index 8540a7d..79859a2 100644 --- a/widgets/views/discordappframe.php +++ b/widgets/views/discordappframe.php @@ -3,7 +3,7 @@ use humhub\libs\Html; use humhub\widgets\PanelMenu; -\humhub\modules\discordapp\assets\Assets::register($this); +\humhub\modules\discordapp\Assets::register($this); ?>
From 214eed518a362739bd08bd2e1b6524aae767805e Mon Sep 17 00:00:00 2001 From: Sarah Tsumayoi Date: Thu, 30 Aug 2018 22:54:57 +0900 Subject: [PATCH 6/6] Delete Assets.php --- assets/Assets.php | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 assets/Assets.php diff --git a/assets/Assets.php b/assets/Assets.php deleted file mode 100644 index 9fdcde2..0000000 --- a/assets/Assets.php +++ /dev/null @@ -1,20 +0,0 @@ - true - ]; - - public function init() - { - $this->sourcePath = dirname(__FILE__) . '/../resources'; - parent::init(); - } -}