mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 14:44:26 +01:00
feat: initialize markr nostr bookmark client
- Add project structure with TypeScript, React, and Vite - Implement nostr authentication using browser extension (NIP-07) - Add NIP-51 compliant bookmark fetching and display - Create minimal UI with login and bookmark components - Integrate applesauce-core and applesauce-react libraries - Add responsive styling with dark/light mode support - Include comprehensive README with setup instructions This is a minimal MVP for a nostr bookmark client that allows users to view their bookmarks according to NIP-51 specification.
This commit is contained in:
19
node_modules/decode-named-character-reference/index.js
generated
vendored
Normal file
19
node_modules/decode-named-character-reference/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import {characterEntities} from 'character-entities'
|
||||
|
||||
// To do: next major: use `Object.hasOwn`.
|
||||
const own = {}.hasOwnProperty
|
||||
|
||||
/**
|
||||
* Decode a single character reference (without the `&` or `;`).
|
||||
* You probably only need this when you’re building parsers yourself that follow
|
||||
* different rules compared to HTML.
|
||||
* This is optimized to be tiny in browsers.
|
||||
*
|
||||
* @param {string} value
|
||||
* `notin` (named), `#123` (deci), `#x123` (hexa).
|
||||
* @returns {string|false}
|
||||
* Decoded reference.
|
||||
*/
|
||||
export function decodeNamedCharacterReference(value) {
|
||||
return own.call(characterEntities, value) ? characterEntities[value] : false
|
||||
}
|
||||
Reference in New Issue
Block a user