update components
This commit is contained in:
parent
cc2c794ad0
commit
a066e217a6
11 changed files with 62 additions and 39 deletions
|
@ -16,12 +16,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.2.2",
|
||||
"_release": "1.2.2",
|
||||
"version": "1.2.4",
|
||||
"_release": "1.2.4",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.2.2",
|
||||
"commit": "090c43863857847e33055ba1d7ab278b17f76203"
|
||||
"tag": "1.2.4",
|
||||
"commit": "f948300fd2b45386448971b7b212635b575887c5"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "^1.2.0",
|
||||
|
|
|
@ -98,25 +98,48 @@ define(['cryptojs-md5'], function () {
|
|||
|
||||
fileEntry.file(function (file) {
|
||||
|
||||
var lastModifiedDate = file.lastModifiedDate;
|
||||
if (!lastModifiedDate) {
|
||||
lastModifiedDate = fileEntry.getMetadata().lastModifiedDate;
|
||||
getLastModified(file, fileEntry).then(function (lastModifiedDate) {
|
||||
|
||||
var elapsed = new Date().getTime() - lastModifiedDate;
|
||||
// 40 days
|
||||
var maxElapsed = 3456000000;
|
||||
if (elapsed >= maxElapsed) {
|
||||
|
||||
var fullPath = fileEntry.fullPath;
|
||||
console.log('deleting file: ' + fullPath);
|
||||
|
||||
fileEntry.remove(function () {
|
||||
console.log('File deleted: ' + fullPath);
|
||||
}, function () {
|
||||
console.log('Failed to delete file: ' + fullPath);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function getLastModified(file, fileEntry) {
|
||||
|
||||
var lastModifiedDate = file.lastModified || file.lastModifiedDate || file.modificationTime;
|
||||
if (lastModifiedDate) {
|
||||
if (lastModifiedDate.getTime) {
|
||||
lastModifiedDate = lastModifiedDate.getTime();
|
||||
}
|
||||
return Promise.resolve(lastModifiedDate);
|
||||
}
|
||||
|
||||
var elapsed = new Date().getTime() - lastModifiedDate.getTime();
|
||||
// 45 days
|
||||
var maxElapsed = 3888000000;
|
||||
if (elapsed >= maxElapsed) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
var fullPath = fileEntry.fullPath;
|
||||
console.log('deleting file: ' + fullPath);
|
||||
|
||||
fileEntry.remove(function () {
|
||||
console.log('File deleted: ' + fullPath);
|
||||
}, function () {
|
||||
console.log('Failed to delete file: ' + fullPath);
|
||||
});
|
||||
}
|
||||
fileEntry.getMetadata(function (metadata) {
|
||||
var lastModifiedDate = metadata.lastModified || metadata.lastModifiedDate || metadata.modificationTime;
|
||||
if (lastModifiedDate) {
|
||||
if (lastModifiedDate.getTime) {
|
||||
lastModifiedDate = lastModifiedDate.getTime();
|
||||
}
|
||||
}
|
||||
resolve(lastModifiedDate);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.8",
|
||||
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
||||
},
|
||||
"_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"
|
||||
}
|
|
@ -41,7 +41,7 @@
|
|||
"tag": "v1.1.3",
|
||||
"commit": "c13869b57a9464dfc3a1f26e89858f8be37e7441"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-icons.git",
|
||||
"_source": "git://github.com/PolymerElements/iron-icons.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/iron-icons"
|
||||
"_originalSource": "PolymerElements/iron-icons"
|
||||
}
|
|
@ -45,7 +45,7 @@
|
|||
"tag": "v1.0.11",
|
||||
"commit": "e3c1ab0c72905b58fb4d9adc2921ea73b5c085a5"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/paper-behaviors.git",
|
||||
"_source": "git://github.com/PolymerElements/paper-behaviors.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/paper-behaviors"
|
||||
"_originalSource": "PolymerElements/paper-behaviors"
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-dialog-behavior",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.4",
|
||||
"description": "Implements a behavior used for material design dialogs",
|
||||
"authors": "The Polymer Authors",
|
||||
"keywords": [
|
||||
|
@ -34,11 +34,11 @@
|
|||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"_release": "1.2.2",
|
||||
"_release": "1.2.4",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.2.2",
|
||||
"commit": "aca5d9372004671830021f164b7e6cf175a98a19"
|
||||
"tag": "v1.2.4",
|
||||
"commit": "d5988ae3790b285acc91f6d5708023f5223833f3"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-dialog-behavior.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-dialog-behavior",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.4",
|
||||
"description": "Implements a behavior used for material design dialogs",
|
||||
"authors": "The Polymer Authors",
|
||||
"keywords": [
|
||||
|
|
|
@ -11,11 +11,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
:host {
|
||||
display: block;
|
||||
margin: 24px 40px;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
background: var(--paper-dialog-background-color, --primary-background-color);
|
||||
color: var(--paper-dialog-color, --primary-text-color);
|
||||
|
||||
@apply(--layout-scroll);
|
||||
@apply(--paper-font-body1);
|
||||
@apply(--shadow-elevation-16dp);
|
||||
@apply(--paper-dialog);
|
||||
|
|
|
@ -14,11 +14,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
:host {
|
||||
display: block;
|
||||
margin: 24px 40px;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
background: var(--paper-dialog-background-color, --primary-background-color);
|
||||
color: var(--paper-dialog-color, --primary-text-color);
|
||||
|
||||
@apply(--layout-scroll);
|
||||
@apply(--paper-font-body1);
|
||||
@apply(--shadow-elevation-16dp);
|
||||
@apply(--paper-dialog);
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
"tag": "v1.0.6",
|
||||
"commit": "6aef0896fcbc25f9f5bd1dd55f7679e6ab7f92ad"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/paper-material.git",
|
||||
"_source": "git://github.com/PolymerElements/paper-material.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/paper-material"
|
||||
"_originalSource": "PolymerElements/paper-material"
|
||||
}
|
|
@ -32,14 +32,14 @@
|
|||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||
},
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/polymerelements/paper-ripple",
|
||||
"homepage": "https://github.com/PolymerElements/paper-ripple",
|
||||
"_release": "1.0.5",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.5",
|
||||
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/paper-ripple.git",
|
||||
"_source": "git://github.com/PolymerElements/paper-ripple.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/paper-ripple"
|
||||
"_originalSource": "PolymerElements/paper-ripple"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue