Plumbing user password change page
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
parent
9361471478
commit
31c14a55a1
@ -1,7 +1,7 @@
|
||||
#### Upgrade to Node >v6
|
||||
|
||||
```bash
|
||||
wget -qO- https://deb.nodesource.com/setup_6.x | sudo bash -
|
||||
wget -qO- https://deb.nodesource.com/setup_8.x | sudo bash -
|
||||
sudo apt-get install --yes nodejs
|
||||
```
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Droid+Sans+Mono" />
|
||||
|
||||
<link rel="import" href="../../elements/user-profile.html">
|
||||
<link rel="import" href="../../elements/photo-lightbox.html">
|
||||
<link rel="import" href="../../elements/photo-thumbnail.html">
|
||||
|
||||
@ -422,6 +423,7 @@
|
||||
<!--paper-button>login</paper-button-->
|
||||
</div>
|
||||
<div hidden$="[[!user]]">
|
||||
<paper-icon-button on-tap="profile" icon="account-box"></paper-icon-button>
|
||||
<paper-button on-tap="logout">logout</paper-button>
|
||||
</div>
|
||||
</div>
|
||||
@ -432,6 +434,7 @@
|
||||
<paper-spinner active$="[[loading]]" class="thin"></paper-spinner>
|
||||
<div>~ Loading ~</div>
|
||||
</div>
|
||||
<user-profile id="profile"></user-profile>
|
||||
<div id="content">
|
||||
<div id="thumbnails" class="layout horizontal wrap"></div>
|
||||
<div id="bottom" class="layout vertical center">
|
||||
@ -786,6 +789,11 @@
|
||||
});
|
||||
},
|
||||
|
||||
profile: function(event) {
|
||||
this.$.profile.user = this.user;
|
||||
this.mode = "profile";
|
||||
},
|
||||
|
||||
logout: function(event) {
|
||||
this.path = "";
|
||||
window.fetch("api/v1/users/logout", function(error, xhr) {
|
||||
|
22
package.json
22
package.json
@ -13,13 +13,13 @@
|
||||
"author": "James Ketrenos",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"bluebird": "^3.5.1",
|
||||
"body-parser": "^1.18.2",
|
||||
"config": "^1.28.1",
|
||||
"bluebird": "^3.5.3",
|
||||
"body-parser": "^1.18.3",
|
||||
"config": "^1.31.0",
|
||||
"connect-sqlite3": "^0.9.11",
|
||||
"cookie-parser": "^1.4.3",
|
||||
"exif-reader": "github:paras20xx/exif-reader",
|
||||
"express": "^4.16.2",
|
||||
"express": "^4.16.4",
|
||||
"express-session": "^1.15.6",
|
||||
"face-recognition": "^0.9.4",
|
||||
"handlebars": "^4.0.12",
|
||||
@ -27,14 +27,14 @@
|
||||
"mariasql": "^0.2.6",
|
||||
"moment": "^2.22.2",
|
||||
"moment-holiday": "^1.5.1",
|
||||
"morgan": "^1.9.0",
|
||||
"mustache": "^3.0.0",
|
||||
"nodemailer": "^4.6.8",
|
||||
"qs": "^6.5.2",
|
||||
"sequelize": "^4.28.6",
|
||||
"morgan": "^1.9.1",
|
||||
"mustache": "^3.0.1",
|
||||
"nodemailer": "^4.7.0",
|
||||
"qs": "^6.6.0",
|
||||
"sequelize": "^4.41.2",
|
||||
"sequelize-mysql": "^1.7.0",
|
||||
"sharp": "^0.20.5",
|
||||
"sqlite3": "^4.0.2"
|
||||
"sharp": "^0.20.8",
|
||||
"sqlite3": "^4.0.4"
|
||||
},
|
||||
"jshintConfig": {
|
||||
"undef": true,
|
||||
|
@ -233,7 +233,7 @@ function processBlock(items) {
|
||||
}
|
||||
|
||||
/* Even if the hash doesn't need to be updated, the entry needs to be scanned */
|
||||
console.log("process needed because of " + query);
|
||||
// console.log("process needed because of " + query);
|
||||
needsProcessing.push(asset);
|
||||
|
||||
if (!query) {
|
||||
@ -394,7 +394,7 @@ function processBlock(items) {
|
||||
}
|
||||
});
|
||||
}).catch(function(error) {
|
||||
setStatus("Error processing file. Continuing.");
|
||||
setStatus("Error processing file. Continuing.", "error");
|
||||
throw error;
|
||||
}).then(function() {
|
||||
setStatus("Completed processing queue. Marking " + duplicates.length + " duplicates.");
|
||||
@ -616,10 +616,17 @@ function computeHash(filepath) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
let input = fs.createReadStream(filepath),
|
||||
hash = crypto.createHash("sha256");
|
||||
|
||||
if (!input) {
|
||||
console.warn("Unable to open " + filepath);
|
||||
return reject();
|
||||
}
|
||||
|
||||
input.on("error", function(error) {
|
||||
console.warn("Error reading " + filepath);
|
||||
reject(error);
|
||||
});
|
||||
|
||||
input.on("readable", function() {
|
||||
const data = input.read();
|
||||
if (data) {
|
||||
@ -725,9 +732,9 @@ function doScan() {
|
||||
newEntries++;
|
||||
}
|
||||
if (!asset.scanned || asset.scanned < asset.stats.mtime || !asset.modified) {
|
||||
if (!asset.scanned) { console.log("no scan date on asset"); }
|
||||
if (asset.scanned < asset.stats.mtime) { console.log("scan date older than mtime"); }
|
||||
if (!asset.modified) { console.log("no mtime."); }
|
||||
// if (!asset.scanned) { console.log("no scan date on asset"); }
|
||||
// if (asset.scanned < asset.stats.mtime) { console.log("scan date older than mtime"); }
|
||||
// if (!asset.modified) { console.log("no mtime."); }
|
||||
needsProcessing.push(asset);
|
||||
} else {
|
||||
updateScanned.push(asset.id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user