Merge pull request #2104 from MediaBrowser/dev

Dev
This commit is contained in:
Luke 2016-08-26 15:32:40 -04:00 committed by GitHub
commit 0f25d774d3
11 changed files with 69 additions and 56 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.1.76",
"_release": "1.1.76",
"version": "1.1.77",
"_release": "1.1.77",
"_resolution": {
"type": "version",
"tag": "1.1.76",
"commit": "1096ffc66e3df8d63e305889dd7fb5b769095082"
"tag": "1.1.77",
"commit": "685285e67f67ba356af1be84652e9705a6ea7b74"
},
"_source": "https://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
"_target": "^1.1.51",

View file

@ -215,7 +215,7 @@
return connectUser;
};
var minServerVersion = '3.0.5971';
var minServerVersion = '3.0.5972';
self.minServerVersion = function (val) {
if (val) {

View file

@ -14,12 +14,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.4.188",
"_release": "1.4.188",
"version": "1.4.189",
"_release": "1.4.189",
"_resolution": {
"type": "version",
"tag": "1.4.188",
"commit": "9bfd0321b48bbe058008848619521d3d5b23bbe7"
"tag": "1.4.189",
"commit": "d7b1da1cd548e50125dd5419b3742fdfc9a07460"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.1",

View file

@ -169,6 +169,13 @@
arrowContainer.appendChild(arrow);
};
EmbySelectPrototype.setLabel = function (text) {
var label = this.parentNode.querySelector('label');
label.innerHTML = text;
};
document.registerElement('emby-select', {
prototype: EmbySelectPrototype,
extends: 'select'

View file

@ -22,7 +22,8 @@ define(['playbackManager', 'browser'], function (playbackManager, browser) {
if (enabled(items[0].MediaType)) {
playbackManager.play({
items: items,
fullscreen: false
fullscreen: false,
enableRemotePlayers: false
});
}

View file

@ -32,14 +32,14 @@
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"homepage": "https://github.com/polymerelements/iron-icon",
"homepage": "https://github.com/PolymerElements/iron-icon",
"_release": "1.0.10",
"_resolution": {
"type": "version",
"tag": "v1.0.10",
"commit": "f4e146da4982ff96bb25db85290c09e8de4ec734"
},
"_source": "git://github.com/polymerelements/iron-icon.git",
"_source": "git://github.com/PolymerElements/iron-icon.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/iron-icon"
"_originalSource": "PolymerElements/iron-icon"
}

View file

@ -32,14 +32,14 @@
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
},
"private": true,
"homepage": "https://github.com/polymer/polymer",
"homepage": "https://github.com/Polymer/polymer",
"_release": "1.6.1",
"_resolution": {
"type": "version",
"tag": "v1.6.1",
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
},
"_source": "git://github.com/polymer/polymer.git",
"_source": "git://github.com/Polymer/polymer.git",
"_target": "^1.1.0",
"_originalSource": "polymer/polymer"
"_originalSource": "Polymer/polymer"
}

View file

@ -1,4 +1,4 @@
define(['jQuery'], function ($) {
define(['jQuery', 'fnchecked', 'emby-checkbox', 'emby-collapse', 'emby-textarea', 'emby-input', 'emby-select'], function ($) {
var brandingConfigKey = "branding";
var currentBrandingOptions;
@ -36,10 +36,10 @@
if (systemInfo.CanSelfUpdate) {
$('.fldAutomaticUpdates', page).show();
$('.lnlAutomaticUpdateLevel', page).html(Globalize.translate('LabelAutomaticUpdateLevel'));
page.querySelector('#selectAutomaticUpdateLevel').setLabel(Globalize.translate('LabelAutomaticUpdateLevel'));
} else {
$('.fldAutomaticUpdates', page).hide();
$('.lnlAutomaticUpdateLevel', page).html(Globalize.translate('LabelAutomaticUpdateLevelForPlugins'));
page.querySelector('#selectAutomaticUpdateLevel').setLabel(Globalize.translate('LabelAutomaticUpdateLevelForPlugins'));
}
$('#chkEnableAutomaticServerUpdates', page).checked(config.EnableAutoUpdate);

View file

@ -9,9 +9,8 @@
<input is="emby-input" type="text" id="txtServerName" label="${LabelFriendlyServerName}" />
<div class="fieldDescription">${LabelFriendlyServerNameHelp}</div>
</div>
<div>
<label for="selectLocalizationLanguage" class="selectLabel">${LabelPreferredDisplayLanguage}</label>
<select id="selectLocalizationLanguage" data-mini="true"></select>
<div class="selectContainer">
<select is="emby-select" id="selectLocalizationLanguage" label="${LabelPreferredDisplayLanguage}"></select>
<div class="fieldDescription">
<div>${LabelPreferredDisplayLanguageHelp}</div>
<div style="margin-top: .25em;">
@ -19,25 +18,28 @@
</div>
</div>
</div>
<br /><br />
<div id="fldRunAtStartup" style="display: none;">
<paper-checkbox id="chkRunAtStartup">${LabelRunServerAtStartup}</paper-checkbox>
<div id="windowsStartupDescription" class="fieldDescription paperCheckboxFieldDescription" style="display: none;">
<div id="fldRunAtStartup" style="display: none;" class="checkboxContainer checkboxContainer-withDescription">
<label>
<input is="emby-checkbox" type="checkbox" id="chkRunAtStartup" />
<span>${LabelRunServerAtStartup}</span>
</label>
<div id="windowsStartupDescription" class="fieldDescription checkboxFieldDescription" style="display: none;">
${LabelRunServerAtStartupHelp}
</div>
<br /><br />
</div>
<div>
<paper-checkbox id="chkUsageData">${OptionEnableAnonymousUsageReporting}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input is="emby-checkbox" type="checkbox" id="chkUsageData" />
<span>${OptionEnableAnonymousUsageReporting}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">
${OptionEnableAnonymousUsageReportingHelp}
<div style="margin-top:.5em;">
<a target="_blank" href="https://emby.media/privacy">${ButtonLearnMore}</a>
</div>
</div>
<br /><br />
</div>
<div is="emby-collapse" title="${HeaderAdvanced}">
@ -59,15 +61,12 @@
<div is="emby-collapse" title="${HeaderAutomaticUpdates}">
<div class="collapseContent">
<br />
<div class="fldAutomaticUpdates">
<div data-role="controlgroup">
<input type="checkbox" id="chkEnableAutomaticServerUpdates" data-mini="true" />
<label for="chkEnableAutomaticServerUpdates">${OptionEnableAutomaticServerUpdates}</label>
</div>
</div>
<div>
<label class="lnlAutomaticUpdateLevel selectLabel" for="selectAutomaticUpdateLevel"></label>
<select name="selectAutomaticUpdateLevel" id="selectAutomaticUpdateLevel">
<label class="fldAutomaticUpdates checkboxContainer">
<input is="emby-checkbox" type="checkbox" id="chkEnableAutomaticServerUpdates" />
<span>${OptionEnableAutomaticServerUpdates}</span>
</label>
<div class="selectContainer">
<select is="emby-select" id="selectAutomaticUpdateLevel" label="${LabelAutomaticUpdateLevel}">
<option value="Release">${OptionRelease}</option>
<option value="Beta">${OptionBeta}</option>
<option value="Dev">${OptionDev}</option>
@ -76,11 +75,12 @@
${DevBuildWarning}
</div>
</div>
<div id="fldEnableAutomaticRestart" style="display: none;">
<paper-checkbox id="chkEnableAutomaticRestart">${LabelAllowServerAutoRestart}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">
${LabelAllowServerAutoRestartHelp}
</div>
<div id="fldEnableAutomaticRestart" style="display: none;" class="checkboxContainer checkboxContainer-withDescription">
<label>
<input is="emby-checkbox" type="checkbox" id="chkEnableAutomaticRestart" />
<span>${LabelAllowServerAutoRestart}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${LabelAllowServerAutoRestartHelp}</div>
</div>
</div>
</div>
@ -104,17 +104,17 @@
<div is="emby-collapse" title="${HeaderDeveloperOptions}">
<div class="collapseContent">
<br />
<div>
<paper-checkbox id="chkEnableDashboardResponseCache">${OptionEnableWebClientResponseCache}</paper-checkbox>
<label class="checkboxContainer">
<input is="emby-checkbox" type="checkbox" id="chkEnableDashboardResponseCache" />
<span>${OptionEnableWebClientResponseCache}</span>
</label>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input is="emby-checkbox" type="checkbox" id="chkEnableMinification" />
<span>${OptionEnableWebClientResourceMinification}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${OptionDisableForDevelopmentHelp}</div>
</div>
<br />
<div>
<paper-checkbox id="chkEnableMinification">${OptionEnableWebClientResourceMinification}</paper-checkbox>
</div>
<div class="fieldDescription paperCheckboxFieldDescription">
${OptionDisableForDevelopmentHelp}
</div>
<br /><br />
<div class="inputContainer">
<div style="display: flex; align-items: center;">
<div style="flex-grow:1;">

View file

@ -518,6 +518,12 @@
self.play = function (options) {
if (options.enableRemotePlayers === false) {
if (!currentPlayer.isLocalPlayer) {
return;
}
}
doWithPlaybackValidation(currentPlayer, function () {
if (typeof (options) === 'string') {
options = { ids: [options] };

View file

@ -1970,7 +1970,6 @@ var AppInfo = {};
defineRoute({
path: '/dashboardgeneral.html',
dependencies: ['emby-collapse', 'emby-textarea', 'emby-input', 'paper-checkbox'],
controller: 'dashboard/dashboardgeneral',
autoFocus: false,
roles: 'admin'