1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-12-27 16:53:48 -05:00
parent 942a0512d8
commit e34c5d4388
9 changed files with 41 additions and 35 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.1.106",
"_release": "1.1.106",
"version": "1.1.107",
"_release": "1.1.107",
"_resolution": {
"type": "version",
"tag": "1.1.106",
"commit": "2bed46ebe6ee1e213b5f89476ca8c285937ba343"
"tag": "1.1.107",
"commit": "82a9be9ffc4359043cbbae83031491dc4d2182cc"
},
"_source": "https://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
"_target": "^1.1.51",

View file

@ -0,0 +1,15 @@
define([], function () {
'use strict';
function CameraRoll() {
}
CameraRoll.prototype.getFiles = function () {
return Promise.resolve([]);
};
return new CameraRoll();
});

View file

@ -23,11 +23,6 @@
return userrepository.remove(id);
}
//TODO:
function getCameraPhotos() {
return Promise.resolve([]);
}
function recordUserAction(action) {
action.Id = createGuid();
@ -454,7 +449,6 @@
getLocalItem: getLocalItem,
saveOfflineUser: saveOfflineUser,
deleteOfflineUser: deleteOfflineUser,
getCameraPhotos: getCameraPhotos,
recordUserAction: recordUserAction,
getUserActions: getUserActions,
deleteUserAction: deleteUserAction,

View file

@ -17,10 +17,6 @@
return Promise.resolve();
}
function getCameraPhotos() {
return Promise.resolve([]);
}
function recordUserAction(action) {
return Promise.resolve();
}
@ -110,7 +106,6 @@
getLocalItem: getLocalItem,
saveOfflineUser: saveOfflineUser,
deleteOfflineUser: deleteOfflineUser,
getCameraPhotos: getCameraPhotos,
recordUserAction: recordUserAction,
getUserActions: getUserActions,
deleteUserAction: deleteUserAction,

View file

@ -1,4 +1,4 @@
define(['localassetmanager'], function (localAssetManager) {
define(['localassetmanager', 'cameraRoll'], function (localAssetManager, cameraRoll) {
'use strict';
return function (connectionManager) {
@ -7,7 +7,7 @@
self.uploadImages = function (server) {
return LocalAssetManager.getCameraPhotos().then(function (photos) {
return cameraRoll.getFiles().then(function (photos) {
if (!photos.length) {
return Promise.resolve();

View file

@ -14,12 +14,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.4.405",
"_release": "1.4.405",
"version": "1.4.406",
"_release": "1.4.406",
"_resolution": {
"type": "version",
"tag": "1.4.405",
"commit": "6745a06a14f978824ceaf9cebdb07f8bca2677e1"
"tag": "1.4.406",
"commit": "5ef7b315244a1804f2892269a42db94a52a86ea8"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.1",

View file

@ -42,7 +42,7 @@ define(['globalize', 'loading', 'alert'], function (globalize, loading, alert) {
loading.hide();
if (response.status == 404) {
if (response.status === 404) {
// User doesn't exist
alert({
text: globalize.translate('GuestUserNotFound')
@ -138,7 +138,7 @@ define(['globalize', 'loading', 'alert'], function (globalize, loading, alert) {
});
}
else if (currentConnectUsername != enteredConnectUsername) {
else if (currentConnectUsername !== enteredConnectUsername) {
// Add/Update connect info
return apiClient.ajax({

View file

@ -218,7 +218,7 @@ globalize.translate('sharedcomponents#CancelSyncJobConfirmation');
options.ExcludeTargetIds = apiClient.deviceId();
}
return apiClient.getJSON(ApiClient.getUrl('Sync/Jobs', options)).then(function (response) {
return apiClient.getJSON(apiClient.getUrl('Sync/Jobs', options)).then(function (response) {
renderList(listInstance, response.Items);
loading.hide();