-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #179295 task: Add webhook support for Shika/Vowel in TjNotifica…
…tions (#134) * Issue #179295 task: Add webhook support for Shika/Vowel in TjNotifications * Issue #179295 task: Add webhook support for Shika/Vowel in TjNotifications * Issue #179295 task: Add webhook support for Shika/Vowel in TjNotifications * Issue #179295 task: Add webhook support for Shika/Vowel in TjNotifications * Issue #179295 task: Add webhook support for Shika/Vowel in TjNotifications * Issue #179295 task: Add webhook support for Shika/Vowel in TjNotifications Co-authored-by: Manoj L <[email protected]> Co-authored-by: ttpllt46 <“[email protected]”>
- Loading branch information
1 parent
b11c8b0
commit 3c5cead
Showing
12 changed files
with
212 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/com_tjnotifications/admin/models/forms/global_config_webhookurl.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<form> | ||
<fieldset> | ||
<field | ||
name="url" | ||
type="url" | ||
label="COM_TJNOTIFICATIONS_SETTINGS_WEBHOOK_URL_LABEL" | ||
description="COM_TJNOTIFICATIONS_SETTINGS_WEBHOOK_URL_DESC" | ||
size="100" | ||
filter="url" | ||
validate="url" | ||
/> | ||
</fieldset> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/com_tjnotifications/admin/models/forms/webhookfields.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<form> | ||
<fieldset> | ||
<field | ||
name="id" | ||
type="hidden" /> | ||
|
||
<field | ||
name="language" | ||
type="contentlanguage" | ||
label="JFIELD_LANGUAGE_LABEL" | ||
description="COM_TJNOTIFICATIONS_NOTIFICATION_LANGUAGE_DESC" | ||
required="true" | ||
> | ||
<option value="*">JALL</option> | ||
</field> | ||
|
||
<field | ||
name="use_global_webhook_url" | ||
type="radio" | ||
default="1" | ||
label="COM_TJNOTIFICATIONS_FIELD_WEBHOOK_USE_GLOBAL_URL_LABEL" | ||
description="COM_TJNOTIFICATIONS_FIELD_WEBHOOK_USE_GLOBAL_URL_DESC" | ||
class="btn-group btn-group-yesno" | ||
> | ||
<option value="1">JYES</option> | ||
<option value="0">JNO</option> | ||
</field> | ||
|
||
<field | ||
name="webhook_url" | ||
type="subform" | ||
label="COM_TJNOTIFICATIONS_FIELD_WEBHOOK_URL_SUBFORM_LABEL" | ||
description="COM_TJNOTIFICATIONS_FIELD_WEBHOOK_URL_SUBFORM_DESC" | ||
multiple="true" | ||
formsource="/administrator/components/com_tjnotifications/models/forms/webhookurl.xml" | ||
/> | ||
|
||
<field | ||
name="body" | ||
type="textarea" | ||
label="COM_TJNOTIFICATIONS_FIELD_WEBHOOK_BODY_LABEL" | ||
description="COM_TJNOTIFICATIONS_FIELD_WEBHOOK_BODY_DESC" | ||
rows="10" | ||
cols="350" | ||
filter="JComponentHelper::filterText" | ||
class="validate-json" | ||
required="true" | ||
/> | ||
</fieldset> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<form> | ||
<fieldset> | ||
<field | ||
name="url" | ||
type="url" | ||
label="COM_TJNOTIFICATIONS_FIELD_WEBHOOK_URL_LABEL" | ||
description="COM_TJNOTIFICATIONS_FIELD_WEBHOOK_URL_DESC" | ||
size="50" | ||
filter="url" | ||
validate="url" | ||
/> | ||
</fieldset> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE `#__tj_notification_template_configs` ADD COLUMN `webhook_url` text DEFAULT NULL AFTER `body`; | ||
ALTER TABLE `#__tj_notification_template_configs` ADD COLUMN `use_global_webhook_url` TINYINT(1) NOT NULL DEFAULT '1' COMMENT 'Use Global Config Webhook URLs' AFTER `webhook_url`; | ||
ALTER TABLE `#__tj_notification_logs` ADD COLUMN `webhook_url` TEXT NULL DEFAULT NULL AFTER `body`; |