multiverseweb / Dataverse

This software is currently under development. It can be used to visualise data into various forms of plots ranging from primary to advanced level. It can also be used as a finance tracker.
https://multiverse-dataverse.netlify.app
MIT License
39 stars 109 forks source link

Fixed sidebar and login and signup page issues. #349

Closed amin-xiv closed 3 days ago

amin-xiv commented 3 days ago

Description

I have found out since the script types of login, signup and the main page has been changed to module, this causes the scripts to automatically use strict mode, which prevents any function in the global scope of the script to be used in the HTML on the onclick attributes (for example), which caused the problems not on the main page, but also in signup and login page.

Related Issue

Fixes #348

Type of change

Checklist

github-actions[bot] commented 3 days ago

🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer from team will review it as soon as possible. We appreciate your support in making Dataverse better.

netlify[bot] commented 3 days ago

Deploy Preview for multiverse-dataverse ready!

Name Link
Latest commit 2f876bbbdbb1af4e6409296b99cb274ee8b06e1b
Latest deploy log https://app.netlify.com/sites/multiverse-dataverse/deploys/673b57027092900008b88ee4
Deploy Preview https://deploy-preview-349--multiverse-dataverse.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

multiverseweb commented 3 days ago

@amin-xiv thanks for resolving the issue. Do you know why type=module attribute is added in the script tag? I didn't add it, maybe some contributor added it.

github-actions[bot] commented 3 days ago

🎉🎉 Thank you for your contribution! Your PR #349 has been merged! 🎉🎉

amin-xiv commented 3 days ago

Hi @multiverseweb, this type="module" has been added by me, when I replaced all of the alert()s in the signup and login page, by custom popups. Since I knew there might be lots of redundant code, its probably more efficient to create a module rather than just repeating the code everywhere, so I created the sharedUtilitites.js file, so that any pages that might have common code between them, import it directly from this file.