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

Fixed sidebar and login and signup page issues. #349

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

amin-xiv
Copy link
Contributor

@amin-xiv amin-xiv commented Nov 18, 2024

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

  • Bug fix
  • New feature

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Contributor

🎉 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.

Copy link

netlify bot commented Nov 18, 2024

Deploy Preview for multiverse-dataverse ready!

Name Link
🔨 Latest commit 2f876bb
🔍 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
Copy link
Owner

@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.

@multiverseweb multiverseweb merged commit c081041 into multiverseweb:main Nov 18, 2024
6 checks passed
Copy link
Contributor

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

@amin-xiv
Copy link
Contributor Author

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.

@amin-xiv amin-xiv deleted the sidebar-fix branch November 18, 2024 15:55
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.

Sidebar not showing.
2 participants