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);
|
editor.appendChild(row);
|
||||||
row = document.createElement("div");
|
row = document.createElement("div");
|
||||||
row.classList.add("editor-row");
|
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) {
|
if (face.relatedFaces.length > 0) {
|
||||||
message += face.relatedFaces.length + " related (tap to deselect)";
|
message += face.relatedFaces.length + " related (tap to deselect)";
|
||||||
} else {
|
} else {
|
||||||
@ -221,6 +221,9 @@ function createIdentityBlock(identity, nolimit) {
|
|||||||
|
|
||||||
div = document.createElement("div");
|
div = document.createElement("div");
|
||||||
div.textContent = "Related faces " + identity.relatedFaces.length;
|
div.textContent = "Related faces " + identity.relatedFaces.length;
|
||||||
|
if (identity.firstName === 'Barry') {
|
||||||
|
console.log({ identity });
|
||||||
|
}
|
||||||
block.appendChild(div);
|
block.appendChild(div);
|
||||||
|
|
||||||
identity.relatedFaces.sort((a, b) => {
|
identity.relatedFaces.sort((a, b) => {
|
||||||
|
@ -259,7 +259,10 @@ app.use(basePath, function(req, res, next) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/* Everything below here requires a successful authentication */
|
/* 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/photos", require("./routes/photos"));
|
||||||
app.use(basePath + "api/v1/days", require("./routes/days"));
|
app.use(basePath + "api/v1/days", require("./routes/days"));
|
||||||
|
@ -137,10 +137,10 @@ function init() {
|
|||||||
type: Sequelize.INTEGER,
|
type: Sequelize.INTEGER,
|
||||||
allowNull: true,
|
allowNull: true,
|
||||||
},
|
},
|
||||||
top: Sequelize.FLOAT, /* 0..1 * photo.height */
|
top: Sequelize.FLOAT, /* 0..1 * photoId.height */
|
||||||
left: Sequelize.FLOAT, /* 0..1 * photo.width */
|
left: Sequelize.FLOAT, /* 0..1 * photoId.width */
|
||||||
bottom: Sequelize.FLOAT, /* 0..1 * photo.height */
|
bottom: Sequelize.FLOAT, /* 0..1 * photoId.height */
|
||||||
right: Sequelize.FLOAT, /* 0..1 * photo.width */
|
right: Sequelize.FLOAT, /* 0..1 * photoId.width */
|
||||||
}, {
|
}, {
|
||||||
timestamps: false,
|
timestamps: false,
|
||||||
classMethods: {
|
classMethods: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user