Minimal changes
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
39069e660e
commit
92ac6b298f
@ -98,7 +98,7 @@ function loadFace(id) {
|
||||
editor.appendChild(row);
|
||||
row = document.createElement("div");
|
||||
row.classList.add("editor-row");
|
||||
let message = "Unassigned related faces: ";
|
||||
let message = "(shift-click face to explore that id) Unassigned related faces: ";
|
||||
if (face.relatedFaces.length > 0) {
|
||||
message += face.relatedFaces.length + " related (tap to deselect)";
|
||||
} else {
|
||||
@ -221,6 +221,9 @@ function createIdentityBlock(identity, nolimit) {
|
||||
|
||||
div = document.createElement("div");
|
||||
div.textContent = "Related faces " + identity.relatedFaces.length;
|
||||
if (identity.firstName === 'Barry') {
|
||||
console.log({ identity });
|
||||
}
|
||||
block.appendChild(div);
|
||||
|
||||
identity.relatedFaces.sort((a, b) => {
|
||||
|
@ -259,7 +259,10 @@ app.use(basePath, function(req, res, next) {
|
||||
});
|
||||
|
||||
/* Everything below here requires a successful authentication */
|
||||
app.use(basePath, express.static(picturesPath, { index: false }));
|
||||
app.use(basePath, express.static(picturesPath, {
|
||||
maxAge: '14d',
|
||||
index: false
|
||||
}));
|
||||
|
||||
app.use(basePath + "api/v1/photos", require("./routes/photos"));
|
||||
app.use(basePath + "api/v1/days", require("./routes/days"));
|
||||
|
@ -137,10 +137,10 @@ function init() {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: true,
|
||||
},
|
||||
top: Sequelize.FLOAT, /* 0..1 * photo.height */
|
||||
left: Sequelize.FLOAT, /* 0..1 * photo.width */
|
||||
bottom: Sequelize.FLOAT, /* 0..1 * photo.height */
|
||||
right: Sequelize.FLOAT, /* 0..1 * photo.width */
|
||||
top: Sequelize.FLOAT, /* 0..1 * photoId.height */
|
||||
left: Sequelize.FLOAT, /* 0..1 * photoId.width */
|
||||
bottom: Sequelize.FLOAT, /* 0..1 * photoId.height */
|
||||
right: Sequelize.FLOAT, /* 0..1 * photoId.width */
|
||||
}, {
|
||||
timestamps: false,
|
||||
classMethods: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user