-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/diablo1408/PhotoCategorizer
- Loading branch information
Showing
13 changed files
with
502 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
/.pnp | ||
.pnp.js | ||
node_modules/ | ||
uploads/ | ||
images/ | ||
|
||
|
||
# testing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Vision</title> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css"> | ||
<link href="css/bootstrap.min.css" rel="stylesheet"> | ||
<!-- Material Design Bootstrap --> | ||
<link href="css/mdb.min.css" rel="stylesheet"> | ||
<!-- Your custom styles (optional) --> | ||
<link href="css/style.min.css" rel="stylesheet"> | ||
<link href="css/custom.css" rel="stylesheet"> | ||
<link href="css/bootstrap.css" rel="stylesheet"> | ||
<link href="css/mdb.css" rel="stylesheet"> | ||
<link href="css/mdb.lite.css" rel="stylesheet"> | ||
<link href="css/mdb.lite.min.css" rel="stylesheet"> | ||
<link href="css/mdb.min.css" rel="stylesheet"> | ||
|
||
|
||
<style> | ||
.map-container { | ||
overflow: hidden; | ||
padding-bottom: 56.25%; | ||
position: relative; | ||
height: 0; | ||
} | ||
|
||
.map-container iframe { | ||
left: 0; | ||
top: 0; | ||
height: 100%; | ||
width: 100%; | ||
position: absolute; | ||
} | ||
</style> | ||
</head> | ||
|
||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"> | ||
</div> | ||
</body> | ||
<script type="text/javascript" src="./js/jquery-3.4.1.min.js" ></script> | ||
<script type="text/javascript" src="./js/popper.min.js"></script> | ||
<script type="text/javascript" src="./js/bootstrap.min.js"></script> | ||
<script type="text/javascript" src="./js/mdb.min.js"></script> | ||
|
||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Vision</title> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css"> | ||
<link href="css/bootstrap.min.css" rel="stylesheet"> | ||
<!-- Material Design Bootstrap --> | ||
<!-- Your custom styles (optional) --> | ||
<link href="css/style.min.css" rel="stylesheet"> | ||
<link href="css/custom.css" rel="stylesheet"> | ||
<link href="css/mdb.lite.min.css" rel="stylesheet"> | ||
<link href="css/mdb.min.css" rel="stylesheet"> | ||
|
||
|
||
<style> | ||
.map-container { | ||
overflow: hidden; | ||
padding-bottom: 56.25%; | ||
position: relative; | ||
height: 0; | ||
} | ||
|
||
.map-container iframe { | ||
left: 0; | ||
top: 0; | ||
height: 100%; | ||
width: 100%; | ||
position: absolute; | ||
} | ||
</style> | ||
</head> | ||
|
||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"> | ||
</div> | ||
</body> | ||
<script type="text/javascript" src="./js/jquery-3.4.1.min.js"></script> | ||
<script type="text/javascript" src="./js/popper.min.js"></script> | ||
<script type="text/javascript" src="./js/bootstrap.min.js"></script> | ||
<script type="text/javascript" src="./js/mdb.min.js"></script> | ||
|
||
|
||
</html> |
21 changes: 0 additions & 21 deletions
21
frontend/src/components/ImageTable/ImageCard/CardFront/index.js
This file was deleted.
Oops, something went wrong.
97 changes: 0 additions & 97 deletions
97
frontend/src/components/ImageTable/ImageCard/CardFront/style.css
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,35 @@ | ||
import React from "react"; | ||
|
||
import ImageCard from "./ImageCard"; | ||
|
||
import "./style.css"; | ||
|
||
export default function ImageTable({ images, currentPage, pageSize ,genre}) { | ||
export default function ImageTable({ images, currentPage, pageSize, genre }) { | ||
// console.log("genreimages"); | ||
// console.log(images); | ||
const currentImages = images.slice( | ||
(currentPage - 1) * pageSize, | ||
pageSize * currentPage | ||
); | ||
|
||
|
||
// console.log("images present in image table "); | ||
// console.log(currentImages); | ||
return ( | ||
<div className="movies-grid"> | ||
return ( | ||
<div className="row"> | ||
{!!images && | ||
currentImages.map((image) => ( | ||
<ImageCard image={image} key={image._id} /> | ||
))} | ||
currentImages.map((image) => { | ||
const encodedImage = new Buffer(image.img_buffer, "binary").toString( | ||
"base64" | ||
); | ||
const coverImage = "data:image/jpeg;base64," + encodedImage; | ||
return( <div className="col-3 "> | ||
<img src={coverImage} className="gallery-img" alt={"cover"} /> | ||
</div> | ||
|
||
|
||
|
||
) | ||
})} | ||
|
||
</div> | ||
); | ||
} | ||
|
Oops, something went wrong.