-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sharp resolution #30
base: main
Are you sure you want to change the base?
Sharp resolution #30
Conversation
5a61b32
to
ab38478
Compare
console.log("percen-->",now); | ||
return <ProgressBar now={now} label={`${now}%`} />; | ||
let val = Math.floor(props.percentage); | ||
console.log("percen-->",val); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
// BootstrapProgressBar.propTypes = { | ||
// percentage: PropTypes.number.isRequired, | ||
// }; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
let now = Math.floor(props.percentage); | ||
console.log("percen-->",now); | ||
return <ProgressBar now={now} label={`${now}%`} />; | ||
let val = Math.floor(props.percentage); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use const val
client/src/components/statusInfo.js
Outdated
|
||
const StatusInfo = (props) => { | ||
const [showThumbnails, setShowThumbnails] = useState(false); | ||
|
||
return ( | ||
<div> | ||
{console.log("statusinfo files props --->",props.uploadPercentage)} | ||
{console.log("statusinfo files props --->", props.uploadPercentage)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console logs
server/routes/objects.js
Outdated
try { | ||
let user = await get_user_bucket(req.user.user_email); // get this from database (sql) | ||
let bucketName = "datadrive-dev"; | ||
if (user == undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!user
will work here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments in this file
// let filePath; | ||
// let cnt = 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
childProcess.stdout.on('data', data => { | ||
// Handle standard output data | ||
// console.error(`stdout: ${data}`); | ||
const matches = String(data).match(/:\s*(\d+)/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write a comment here, what we are trying to do here.
const targetWidth = 500; | ||
const targetHeight = 400; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in constants.js
and 500x400 is still large right?
); | ||
// console.error("Directory delete successful", tmpDirPath); | ||
}); | ||
}, 1000 * 1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this also to constants
TMP_DELETE_TIME = 5601000 // 5 mins
Sharp resolution and changes in semaphore (made it async)