-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial: add a diagram for storage model
Fixes #151. Co-authored-by: Anne van Kesteren <[email protected]> Co-authored-by: Domenic Denicola <[email protected]>
- Loading branch information
1 parent
35e436d
commit 8b93c4c
Showing
8 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/storage.spec.whatwg.org/ | ||
/deploy.sh | ||
/storage.html | ||
/node_modules/ | ||
/package-lock.json |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
erDiagram | ||
|
||
%% This is the source file for `assets/model-diagram.svg`. | ||
%% Build command: `npm i && npm run build-diagram` | ||
%% Don't forget to adjust the size in storage.bs when modifying this. | ||
%% (See viewBox attribute of the resulting SVG) | ||
|
||
"User agent" ||--|| "Storage shed" : "holds (local)" | ||
"Traversable navigable" ||--|| "Storage shed" : "holds (session)" | ||
"Storage shed" ||--o{ "Storage shelf" : "for each storage key" | ||
"Storage shelf" ||--|| "Storage bucket" : "holds (default)" | ||
"Storage bucket" ||--|{ "Storage bottle" : "for each storage endpoint" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"private": true, | ||
"description": "Builds and compresses the diagram", | ||
"dependencies": { | ||
"@mermaid-js/mermaid-cli": "^9.2.2", | ||
"svgo": "^3.0.2" | ||
}, | ||
"scripts": { | ||
"mmdc": "mmdc -c scripts/mmdc.config.json -i model-diagram.mmd -o assets/model-diagram.svg", | ||
"svgo": "svgo --config scripts/svgo.config.js -f assets -o assets/", | ||
"build-diagram": "npm run mmdc && npm run svgo" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"useMaxWidth": false, | ||
"er": { | ||
"fontSize": 16 | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
multipass: true, | ||
js2svg: { | ||
indent: 2, | ||
pretty: true, | ||
}, | ||
}; |
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