-
Notifications
You must be signed in to change notification settings - Fork 58
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
Uses light prism and manually selects syntax highlighte rs #202
Closed
elliotBraem
wants to merge
36
commits into
NearSocial:master
from
NEARBuilders:feat/syntax-highlighter
Closed
Uses light prism and manually selects syntax highlighte rs #202
elliotBraem
wants to merge
36
commits into
NearSocial:master
from
NEARBuilders:feat/syntax-highlighter
Conversation
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
Before this commit, each time updateAccount was triggered the VM checked if the selector was connected - i.e. had an access key - to a contract different from SocialDB, and proceed to logout the user if that was the case. This commit removes this constraint, allowing users to connect to both SocialDB and other contracts.
chore: specify which contract is allowed to be logged-in
feat: clear location hash method added
…anged to be more familiar to developers
The current packages being used for sass are no longer supported, and create an error when using node v20 & v22 This commit updates the dependencies, to use packages are maintained and are thus compatible with current node versions
…-to-loading Adds 2s animation delay to the loading spinner.
…it's an object, then it passes it directly
# Conflicts: # CHANGELOG.md # dist/index.js
feat: Sign message This PR enables the use of the signMessage method from the wallet-selector. The user can sign a message with any of the connected wallets for further [signature verification](https://docs.near.org/build/web3-apps/backend/) on a third-party authentication server. - Add `Near.signMessage` function to sign arbitrary message with NEAR account. The message that the user needs to sign contains 4 fields: - `message`: The message that the user is signing. - `recipient`: The recipient of the message. - `nonce`: The challenge that the user is signing. - `callbackUrl`: The URL that the wallet will call with the signature. How to verify the signature: https://docs.near.org/build/web3-apps/backend/#3-verify-the-signature - Add get/set methods for `window.location.hash`. `Set` method only accepts an empty string as a value.
…contracts fix index.js
…nto feat/rspack
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to reduce bundle size of near-bos-webcomponent , we manually select the syntax highlighters to use.
It uses:
javascript
typescript
jsx
bash
css
json
rust
from the full list here: https://github.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/AVAILABLE_LANGUAGES_PRISM.MD
This has no outcome on the near-social-vm bundle, although converting to an ESM module may make this effort unnecessary (tree shaking will be handled correctly)