-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from LukePulverenti/master
4.8.0.20 compatibility update
- Loading branch information
Showing
7 changed files
with
111 additions
and
166 deletions.
There are no files selected for viewing
66 changes: 0 additions & 66 deletions
66
Emby.Plugin.TelegramNotification/Api/ServerApiEntryPoints.cs
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
Emby.Plugin.TelegramNotification/Configuration/PluginConfiguration.cs
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
Emby.Plugin.TelegramNotification/Configuration/entryeditor.js
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,37 @@ | ||
define(['globalize', 'pluginManager', 'emby-input'], function (globalize, pluginManager) { | ||
'use strict'; | ||
|
||
function EntryEditor() { | ||
} | ||
|
||
EntryEditor.setObjectValues = function (context, entry) { | ||
|
||
entry.FriendlyName = context.querySelector('.txtFriendlyName').value; | ||
entry.Options.Token = context.querySelector('.BotToken').value; | ||
entry.Options.Token = context.querySelector('.ChatID').value; | ||
}; | ||
|
||
EntryEditor.setFormValues = function (context, entry) { | ||
|
||
context.querySelector('.txtFriendlyName').value = entry.FriendlyName || ''; | ||
context.querySelector('.BotToken').value = entry.Options.Token || ''; | ||
context.querySelector('.ChatID').value = entry.Options.Token || ''; | ||
}; | ||
|
||
EntryEditor.loadTemplate = function (context) { | ||
|
||
return require(['text!' + pluginManager.getConfigurationResourceUrl('telegrameditortemplate')]).then(function (responses) { | ||
|
||
var template = responses[0]; | ||
context.innerHTML = globalize.translateDocument(template); | ||
|
||
// setup any required event handlers here | ||
}); | ||
}; | ||
|
||
EntryEditor.destroy = function () { | ||
|
||
}; | ||
|
||
return EntryEditor; | ||
}); |
17 changes: 17 additions & 0 deletions
17
Emby.Plugin.TelegramNotification/Configuration/entryeditor.template.html
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,17 @@ | ||
<div class="inputContainer"> | ||
<input is="emby-input" type="text" class="txtFriendlyName" required="required" label="${LabelName}" /> | ||
<div class="fieldDescription">${FriendlyNameForReferenceHelp}</div> | ||
</div> | ||
|
||
<div class="inputContainer"> | ||
<input is="emby-input" type="text" class="txtTeleGramBotKey" label="Telegram bot token:" required="required" /> | ||
<div class="fieldDescription"> | ||
Bot token for your bot, get it from @BotFather | ||
</div> | ||
</div> | ||
<div class="inputContainer"> | ||
<input is="emby-input" type="text" class="txtTeleGramChatID" label="Telegram ChatID key:" required="required" /> | ||
<div class="fieldDescription"> | ||
Telegram chat ID, get it from @get_id_bot | ||
</div> | ||
</div> |
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