Interactive Angular 19 demo for @sda/notification-elements-ui with 6 sections: Bell & Feed, Notification Center, Inbox, Comments & Threads, Mention Input, and Full-Featured layout. Includes mock data, dark mode toggle, and real-time event log. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
506 B
JavaScript
22 lines
506 B
JavaScript
const {str} = require("./str");
|
|
|
|
const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
|
|
function hyperid() {
|
|
var prefix = str(22, alphabet) + '/';
|
|
Number(prefix);
|
|
var count = 0;
|
|
return function instance() {
|
|
return prefix + count++;
|
|
}
|
|
}
|
|
|
|
exports.hyperid = hyperid;
|
|
|
|
// const instance = hyperid();
|
|
// console.log(instance());
|
|
// console.log(instance());
|
|
// console.log(instance());
|
|
// console.log(instance());
|
|
// console.log(instance());
|
|
// console.log(instance());
|