Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Sharp resolution #30

wants to merge 4 commits into from

Conversation

UmangSharma5
Copy link
Owner

Sharp resolution and changes in semaphore (made it async)

console.log("percen-->",now);
return <ProgressBar now={now} label={`${now}%`} />;
let val = Math.floor(props.percentage);
console.log("percen-->",val);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Comment on lines 9 to 12
// BootstrapProgressBar.propTypes = {
// percentage: PropTypes.number.isRequired,
// };

Copy link
Collaborator

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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const val


const StatusInfo = (props) => {
const [showThumbnails, setShowThumbnails] = useState(false);

return (
<div>
{console.log("statusinfo files props --->",props.uploadPercentage)}
{console.log("statusinfo files props --->", props.uploadPercentage)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove console logs

try {
let user = await get_user_bucket(req.user.user_email); // get this from database (sql)
let bucketName = "datadrive-dev";
if (user == undefined) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!user will work here

Copy link
Collaborator

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

Comment on lines +193 to +195
// let filePath;
// let cnt = 0;

Copy link
Collaborator

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+)/);
Copy link
Collaborator

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.

Comment on lines +342 to +343
const targetWidth = 500;
const targetHeight = 400;
Copy link
Collaborator

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);
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants