commit
d0a835cd67
12 changed files with 69 additions and 48 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -3,6 +3,9 @@ dist
|
||||||
web
|
web
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
|
# config
|
||||||
|
config.json
|
||||||
|
|
||||||
# ide
|
# ide
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
|
|
@ -245,7 +245,7 @@
|
||||||
"src/controllers/dashboard/plugins/installed/index.js",
|
"src/controllers/dashboard/plugins/installed/index.js",
|
||||||
"src/controllers/dashboard/plugins/available/index.js",
|
"src/controllers/dashboard/plugins/available/index.js",
|
||||||
"src/controllers/dashboard/plugins/repositories/index.js",
|
"src/controllers/dashboard/plugins/repositories/index.js",
|
||||||
"src/controllers/dashboard/quickconnect.js",
|
"src/controllers/dashboard/quickConnect.js",
|
||||||
"src/controllers/dashboard/scheduledtasks/scheduledtask.js",
|
"src/controllers/dashboard/scheduledtasks/scheduledtask.js",
|
||||||
"src/controllers/dashboard/scheduledtasks/scheduledtasks.js",
|
"src/controllers/dashboard/scheduledtasks/scheduledtasks.js",
|
||||||
"src/controllers/dashboard/serveractivity.js",
|
"src/controllers/dashboard/serveractivity.js",
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
config.template.json
|
|
39
src/config.json
Normal file
39
src/config.json
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
"multiserver": false,
|
||||||
|
"themes": [
|
||||||
|
{
|
||||||
|
"name": "Apple TV",
|
||||||
|
"id": "appletv"
|
||||||
|
}, {
|
||||||
|
"name": "Blue Radiance",
|
||||||
|
"id": "blueradiance"
|
||||||
|
}, {
|
||||||
|
"name": "Dark",
|
||||||
|
"id": "dark",
|
||||||
|
"default": true
|
||||||
|
}, {
|
||||||
|
"name": "Light",
|
||||||
|
"id": "light"
|
||||||
|
}, {
|
||||||
|
"name": "Purple Haze",
|
||||||
|
"id": "purplehaze"
|
||||||
|
}, {
|
||||||
|
"name": "WMC",
|
||||||
|
"id": "wmc"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
"plugins/playAccessValidation/plugin",
|
||||||
|
"plugins/experimentalWarnings/plugin",
|
||||||
|
"plugins/htmlAudioPlayer/plugin",
|
||||||
|
"plugins/htmlVideoPlayer/plugin",
|
||||||
|
"plugins/photoPlayer/plugin",
|
||||||
|
"plugins/comicsPlayer/plugin",
|
||||||
|
"plugins/bookPlayer/plugin",
|
||||||
|
"plugins/youtubePlayer/plugin",
|
||||||
|
"plugins/backdropScreensaver/plugin",
|
||||||
|
"plugins/logoScreensaver/plugin",
|
||||||
|
"plugins/sessionPlayer/plugin",
|
||||||
|
"plugins/chromecastPlayer/plugin"
|
||||||
|
]
|
||||||
|
}
|
|
@ -1,39 +0,0 @@
|
||||||
{
|
|
||||||
"multiserver": false,
|
|
||||||
"themes": [
|
|
||||||
{
|
|
||||||
"name": "Apple TV",
|
|
||||||
"id": "appletv"
|
|
||||||
}, {
|
|
||||||
"name": "Blue Radiance",
|
|
||||||
"id": "blueradiance"
|
|
||||||
}, {
|
|
||||||
"name": "Dark",
|
|
||||||
"id": "dark",
|
|
||||||
"default": true
|
|
||||||
}, {
|
|
||||||
"name": "Light",
|
|
||||||
"id": "light"
|
|
||||||
}, {
|
|
||||||
"name": "Purple Haze",
|
|
||||||
"id": "purplehaze"
|
|
||||||
}, {
|
|
||||||
"name": "WMC",
|
|
||||||
"id": "wmc"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"plugins/playAccessValidation/plugin",
|
|
||||||
"plugins/experimentalWarnings/plugin",
|
|
||||||
"plugins/htmlAudioPlayer/plugin",
|
|
||||||
"plugins/htmlVideoPlayer/plugin",
|
|
||||||
"plugins/photoPlayer/plugin",
|
|
||||||
"plugins/comicsPlayer/plugin",
|
|
||||||
"plugins/bookPlayer/plugin",
|
|
||||||
"plugins/youtubePlayer/plugin",
|
|
||||||
"plugins/backdropScreensaver/plugin",
|
|
||||||
"plugins/logoScreensaver/plugin",
|
|
||||||
"plugins/sessionPlayer/plugin",
|
|
||||||
"plugins/chromecastPlayer/plugin"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -16,6 +16,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-top:1em;">
|
<div style="margin-top:1em;">
|
||||||
|
<button is="emby-button" type="button" class="raised btnRefresh">
|
||||||
|
<span>${ButtonScanAllLibraries}</span>
|
||||||
|
</button>
|
||||||
<button is="emby-button" type="button" id="btnRestartServer" class="raised" onclick="DashboardPage.restart(this);" style="margin-left:0;">
|
<button is="emby-button" type="button" id="btnRestartServer" class="raised" onclick="DashboardPage.restart(this);" style="margin-left:0;">
|
||||||
<span>${Restart}</span>
|
<span>${Restart}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -3,6 +3,7 @@ import events from 'events';
|
||||||
import itemHelper from 'itemHelper';
|
import itemHelper from 'itemHelper';
|
||||||
import serverNotifications from 'serverNotifications';
|
import serverNotifications from 'serverNotifications';
|
||||||
import dom from 'dom';
|
import dom from 'dom';
|
||||||
|
import taskButton from 'scripts/taskbutton';
|
||||||
import globalize from 'globalize';
|
import globalize from 'globalize';
|
||||||
import * as datefns from 'date-fns';
|
import * as datefns from 'date-fns';
|
||||||
import dfnshelper from 'dfnshelper';
|
import dfnshelper from 'dfnshelper';
|
||||||
|
@ -550,13 +551,13 @@ import 'emby-itemscontainer';
|
||||||
row.classList.remove('playingSession');
|
row.classList.remove('playingSession');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (session.ServerId && session.SupportedCommands.indexOf('DisplayMessage') !== -1 && session.DeviceId !== window.connectionManager.deviceId()) {
|
if (session.ServerId && session.SupportedCommands.indexOf('DisplayMessage') !== -1) {
|
||||||
row.querySelector('.btnSessionSendMessage').classList.remove('hide');
|
row.querySelector('.btnSessionSendMessage').classList.remove('hide');
|
||||||
} else {
|
} else {
|
||||||
row.querySelector('.btnSessionSendMessage').classList.add('hide');
|
row.querySelector('.btnSessionSendMessage').classList.add('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (session.TranscodingInfo && session.TranscodingInfo.TranscodeReasons && session.TranscodingInfo && session.TranscodingInfo.TranscodeReasons.length) {
|
if (session.TranscodingInfo && session.TranscodingInfo.TranscodeReasons && session.TranscodingInfo) {
|
||||||
row.querySelector('.btnSessionInfo').classList.remove('hide');
|
row.querySelector('.btnSessionInfo').classList.remove('hide');
|
||||||
} else {
|
} else {
|
||||||
row.querySelector('.btnSessionInfo').classList.add('hide');
|
row.querySelector('.btnSessionInfo').classList.add('hide');
|
||||||
|
@ -564,7 +565,7 @@ import 'emby-itemscontainer';
|
||||||
|
|
||||||
const btnSessionPlayPause = row.querySelector('.btnSessionPlayPause');
|
const btnSessionPlayPause = row.querySelector('.btnSessionPlayPause');
|
||||||
|
|
||||||
if (session.ServerId && nowPlayingItem && session.SupportsRemoteControl && session.DeviceId !== window.connectionManager.deviceId()) {
|
if (session.ServerId && nowPlayingItem && session.SupportsRemoteControl) {
|
||||||
btnSessionPlayPause.classList.remove('hide');
|
btnSessionPlayPause.classList.remove('hide');
|
||||||
row.querySelector('.btnSessionStop').classList.remove('hide');
|
row.querySelector('.btnSessionStop').classList.remove('hide');
|
||||||
} else {
|
} else {
|
||||||
|
@ -827,9 +828,17 @@ import 'emby-itemscontainer';
|
||||||
refreshActiveRecordings(view, apiClient);
|
refreshActiveRecordings(view, apiClient);
|
||||||
loading.hide();
|
loading.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
taskButton({
|
||||||
|
mode: 'on',
|
||||||
|
taskKey: 'RefreshLibrary',
|
||||||
|
button: page.querySelector('.btnRefresh')
|
||||||
|
});
|
||||||
});
|
});
|
||||||
view.addEventListener('viewbeforehide', function () {
|
view.addEventListener('viewbeforehide', function () {
|
||||||
const apiClient = ApiClient;
|
const apiClient = ApiClient;
|
||||||
|
const page = this;
|
||||||
|
|
||||||
events.off(serverNotifications, 'RestartRequired', onRestartRequired);
|
events.off(serverNotifications, 'RestartRequired', onRestartRequired);
|
||||||
events.off(serverNotifications, 'ServerShuttingDown', onServerShuttingDown);
|
events.off(serverNotifications, 'ServerShuttingDown', onServerShuttingDown);
|
||||||
events.off(serverNotifications, 'ServerRestarting', onServerRestarting);
|
events.off(serverNotifications, 'ServerRestarting', onServerRestarting);
|
||||||
|
@ -841,6 +850,12 @@ import 'emby-itemscontainer';
|
||||||
if (apiClient) {
|
if (apiClient) {
|
||||||
DashboardPage.stopInterval(apiClient);
|
DashboardPage.stopInterval(apiClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
taskButton({
|
||||||
|
mode: 'off',
|
||||||
|
taskKey: 'RefreshLibrary',
|
||||||
|
button: page.querySelector('.btnRefresh')
|
||||||
|
});
|
||||||
});
|
});
|
||||||
view.addEventListener('viewdestroy', function () {
|
view.addEventListener('viewdestroy', function () {
|
||||||
const page = this;
|
const page = this;
|
||||||
|
|
|
@ -159,10 +159,11 @@ import 'detailtablecss';
|
||||||
});
|
});
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: '/quickconnect.html',
|
alias: '/quickConnect.html',
|
||||||
|
path: '/controllers/dashboard/quickConnect.html',
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
roles: 'admin',
|
roles: 'admin',
|
||||||
controller: 'dashboard/quickconnect'
|
controller: 'dashboard/quickConnect'
|
||||||
});
|
});
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
|
|
|
@ -209,7 +209,7 @@ export class UserSettings {
|
||||||
}
|
}
|
||||||
|
|
||||||
val = this.get('enableBackdrops', false);
|
val = this.get('enableBackdrops', false);
|
||||||
return val !== 'false';
|
return val === 'true';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@ export default function (options) {
|
||||||
|
|
||||||
function updateTasks(tasks) {
|
function updateTasks(tasks) {
|
||||||
const task = tasks.filter(function (t) {
|
const task = tasks.filter(function (t) {
|
||||||
return t.ScheduledTask.Key == options.taskKey;
|
return t.Key == options.taskKey;
|
||||||
})[0];
|
})[0];
|
||||||
|
|
||||||
if (options.panel) {
|
if (options.panel) {
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue