emby 4.8
This commit is contained in:
58
server/notifications/notificationsetting.html
Normal file
58
server/notifications/notificationsetting.html
Normal file
@@ -0,0 +1,58 @@
|
||||
<div is="emby-scroller" class="view flex flex-direction-column scrollFrameY flex-grow" data-mousewheel="true" data-horizontal="false" data-forcescrollbar="true" data-focusscroll="true" data-bindheader="true">
|
||||
<div class="scrollSlider flex-grow flex-direction-column padded-left padded-left-page padded-right padded-top-page padded-bottom-page settingsContainer">
|
||||
<form class="notificationSettingForm auto-center">
|
||||
|
||||
<div class="verticalSection">
|
||||
<div class="sectionTitleContainer flex align-items-center">
|
||||
<h2 class="notificationType sectionTitle"></h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="checkboxContainer">
|
||||
<input type="checkbox" is="emby-checkbox" class="chkEnabled" />
|
||||
<span>Enable this notification</span>
|
||||
</label>
|
||||
|
||||
<div class="monitorUsers hide">
|
||||
<div class="paperLischeckboxListLabeltLabel">Monitor the following users</div>
|
||||
<div class="monitorUsersList">
|
||||
</div>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="verticalSection">
|
||||
<div class="selectContainer">
|
||||
<select is="emby-select" class="selectUsers" label="Send notification to:">
|
||||
<option value="All">All Users</option>
|
||||
<option value="Admins">Admin Users</option>
|
||||
<option value="Custom">Custom</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="selectCustomUsers hide">
|
||||
<label>${LabelSelectUsers}</label>
|
||||
<div class="sendToUsersList">
|
||||
</div>
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="verticalSection">
|
||||
<label>Use the following notification services:</label>
|
||||
<div class="servicesList">
|
||||
</div>
|
||||
<div class="fieldDescription additionalServicesDescription"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<br />
|
||||
<button is="emby-button" type="submit" class="raised button-submit block">
|
||||
<span>${Save}</span>
|
||||
</button>
|
||||
|
||||
<button is="emby-button" type="button" class="raised button-cancel block btnCancel">
|
||||
<span>${Cancel}</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
1
server/notifications/notificationsetting.js
Normal file
1
server/notifications/notificationsetting.js
Normal file
File diff suppressed because one or more lines are too long
10
server/notifications/notificationsettings.html
Normal file
10
server/notifications/notificationsettings.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div is="emby-scroller" class="view flex flex-direction-column scrollFrameY flex-grow" data-mousewheel="true" data-horizontal="false" data-forcescrollbar="true" data-focusscroll="true" data-bindheader="true">
|
||||
<div class="scrollSlider flex-grow flex-direction-column padded-left padded-left-page padded-right padded-top-page padded-bottom-page settingsContainer">
|
||||
<div class="readOnlyContent auto-center padded-top">
|
||||
|
||||
<div class="notificationList">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
1
server/notifications/notificationsettings.js
Normal file
1
server/notifications/notificationsettings.js
Normal file
@@ -0,0 +1 @@
|
||||
define(["exports","./../../modules/viewmanager/baseview.js","./../../modules/loading/loading.js","./../../modules/emby-elements/emby-button/emby-button.js","./../../modules/emby-elements/emby-scroller/emby-scroller.js","./../../modules/listview/listview.js"],function(_exports,_baseview,_loading,_embyButton,_embyScroller,_listview){function View(view,params){_baseview.default.apply(this,arguments)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(View.prototype,_baseview.default.prototype),View.prototype.onResume=function(options){var page;_baseview.default.prototype.onResume.apply(this,arguments),page=this.view,_loading.default.show(),ApiClient.getJSON(ApiClient.getUrl("Notifications/Types")).then(function(list){var html="",lastCategory="";html+=list.map(function(i){var itemHtml="";return i.Category!==lastCategory&&((lastCategory=i.Category)&&(itemHtml+="</div></div>"),itemHtml=(itemHtml+='<div class="verticalSection verticalSection-extrabottompadding"><div class="sectionTitleContainer" style="margin-bottom:1em;"><h2 class="sectionTitle">')+i.Category+"</h2></div><div>"),itemHtml=itemHtml+('<a class="listItem listItem-border" is="emby-linkbutton" data-ripple="false" href="server/notifications/notificationsetting.html?type='+i.Type+'">')+'<div class="listItemImageContainer listItemImageContainer-square defaultCardBackground" style="aspect-ratio:1;">',i.Enabled?itemHtml+='<i class="listItemIcon md-icon listItemIcon-transparent">notifications_active</i>':itemHtml+='<i class="listItemIcon md-icon listItemIcon-transparent secondaryText">notifications_off</i>',itemHtml=(itemHtml=(itemHtml=itemHtml+"</div>"+'<div class="listItemBody">')+('<div class="listItemBodyText">'+i.Name+"</div>")+"</div>")+'<button type="button" is="paper-icon-button-light"><i class="md-icon autortl"></i></button>'+"</a>"}).join(""),list.length&&(html+="</div></div>"),page.querySelector(".notificationList").innerHTML=html,_loading.default.hide()})},_exports.default=View});
|
||||
Reference in New Issue
Block a user