Initial commit: notification-elements-demo app

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>
This commit is contained in:
Giuliano Silvestro
2026-02-13 21:49:19 +10:00
commit 5d0c9ec7eb
36473 changed files with 3778146 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Synchronous `fs` in browser
This demo executes tests of **synchronous** Node.js API built on top of File
System Access API in browser.
There are two tests:
- OPFS &mdash; virtual file system built into browsers.
- Native File System Access API folder &mdash; a real folder that user explicitly grants permission to.
See the assertions run in the browser console.
https://github.com/streamich/memfs/assets/9773803/f841b6cc-728d-4341-b426-3daa6b43f8ac
Run:
```
demo:fsa-to-node-sync-tests
```

17
node_modules/memfs/demo/fsa-to-node-zipfile/README.md generated vendored Normal file
View File

@@ -0,0 +1,17 @@
This demo shows how `tar-stream` package can be used to create a zip file from
a folder selected with File System Access API.
Below demo uses the File System Access API in the browser to get access to a real folder
on the file system. It then converts a [`FileSystemDirectoryHandle`](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle) instance
to a Node-like `fs` file system.
It then creates two text files using `fs.promises.writeFile`, and then uses `tar-stream` package to create a zip file
and write it back got the file system using Node's `fs.createWriteStream`.
https://github.com/streamich/memfs/assets/9773803/8dc61d1e-61bf-4dfc-973b-028332fd4473
Run:
```
demo:fsa-to-node-zipfile
```

18
node_modules/memfs/demo/git-fsa/README.md generated vendored Normal file
View File

@@ -0,0 +1,18 @@
This demo showcase how to run Git in browser but write to a real user file system
folder. It is possible through File System Access API. The API allows to request
a folder from user and then use it as a real file system in browser.
In this demo we use `memfs` to create a Node `fs`-like file system in browser
out of the folder provided by File System Access API. We then use `isomorphic-git`
to run Git commands on that file system.
In the demo itself we initiate a Git repo, then we create a `README.md` file, we
stage it, and finally we commit it.
https://github.com/streamich/memfs/assets/9773803/c15212e8-3ee2-4d2a-b325-9fbdcc377c12
Run:
```
yarn demo:git-fsa
```

20
node_modules/memfs/demo/git-opfs/README.md generated vendored Normal file
View File

@@ -0,0 +1,20 @@
This demo showcase how to run Git in browser built-int OPFS file system. OPFS
stands for (Origin Private File System) it is a virtual file system available
in browser and it requires no permission to access.
In this demo we use `memfs` to create a Node `fs`-like file system in browser
out of OPFS. We then use `isomorphic-git` to run Git commands on that file system.
In the demo itself we initiate a Git repo, then we create a `README.md` file, we
stage it, and finally we commit it.
https://github.com/streamich/memfs/assets/9773803/bbc83f3f-98ad-48cc-9259-b6f543aa1a03
Run:
```
yarn demo:git-opfs
```
You can install [OPFS Explorer](https://chrome.google.com/webstore/detail/opfs-explorer/acndjpgkpaclldomagafnognkcgjignd) Chrome
extension to verify the contents of the OPFS file system.

16
node_modules/memfs/demo/git/README.md generated vendored Normal file
View File

@@ -0,0 +1,16 @@
# `isomorphic-git` running on `memfs` in-memory file system
This demo shows how to run `isomorphic-git` on `memfs` in-memory file system. It
creates a new folder `/repo`, then inits a Git repository there, then creates a
a file `/repo/README.md` and commits it.
![](https://github.com/streamich/memfs/assets/9773803/021af8ea-690d-4e4e-9d05-d3e0dea60672)
Run:
```
yarn
npx ts-node demo/git/index.ts
```
The demo will print the snapshot of the file system after each step.

5
node_modules/memfs/demo/runkit.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
const { fs } = require('memfs');
fs.writeFileSync('/hello.txt', 'Hello World');
console.log(fs.readFileSync('/hello.txt', 'utf8'));