examples: regenerate diagrams using latest version of d2
This commit is contained in:
parent
e36d9f8544
commit
e0bb79dbdb
7 changed files with 235 additions and 43 deletions
4
Makefile
4
Makefile
|
@ -3,13 +3,11 @@ COV := $(DENO) coverage cov_profile
|
||||||
FMT := $(DENO) fmt *.ts examples/*.ts
|
FMT := $(DENO) fmt *.ts examples/*.ts
|
||||||
NPM_PUB := npm publish
|
NPM_PUB := npm publish
|
||||||
|
|
||||||
D2 := nix run git+https://git.pleshevski.ru/mynix/tools\\\#d2 --
|
D2 := wd2
|
||||||
DIAGRAMS := \
|
DIAGRAMS := \
|
||||||
turnstile \
|
turnstile \
|
||||||
project
|
project
|
||||||
|
|
||||||
turnstile_theme_args := --layout elk --theme 101
|
|
||||||
|
|
||||||
dev: fmt tests cov
|
dev: fmt tests cov
|
||||||
|
|
||||||
ci: fmt-check tests-cov
|
ci: fmt-check tests-cov
|
||||||
|
|
|
@ -1,20 +1,30 @@
|
||||||
|
# port: 43333
|
||||||
|
# layout: dagre
|
||||||
|
# theme: 101
|
||||||
|
# pad: 0
|
||||||
|
# sketch: true
|
||||||
|
|
||||||
direction: right
|
direction: right
|
||||||
|
|
||||||
Project: {
|
Project: {
|
||||||
pen: Pending {
|
pen: Pending {
|
||||||
shape: circle
|
shape: circle
|
||||||
|
width: 110
|
||||||
}
|
}
|
||||||
act: Active {
|
act: Active {
|
||||||
shape: circle
|
shape: circle
|
||||||
style.fill: "#9ae49a"
|
style.fill: "#9ae49a"
|
||||||
|
width: 110
|
||||||
}
|
}
|
||||||
com: Completed {
|
com: Completed {
|
||||||
shape: circle
|
shape: circle
|
||||||
style.fill: "#eaea7e"
|
style.fill: "#eaea7e"
|
||||||
|
width: 110
|
||||||
}
|
}
|
||||||
arc: Archived {
|
arc: Archived {
|
||||||
shape: circle
|
shape: circle
|
||||||
style.fill: "#ff7e7e"
|
style.fill: "#ff7e7e"
|
||||||
|
width: 110
|
||||||
}
|
}
|
||||||
|
|
||||||
pen -> act: Activate
|
pen -> act: Activate
|
||||||
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 471 KiB After Width: | Height: | Size: 313 KiB |
|
@ -1,15 +1,23 @@
|
||||||
|
# port: 43334
|
||||||
|
# layout: elk
|
||||||
|
# theme: 101
|
||||||
|
# pad: 0
|
||||||
|
# sketch: true
|
||||||
|
|
||||||
direction: right
|
direction: right
|
||||||
|
|
||||||
Turnstile: {
|
Turnstile: {
|
||||||
l: Locked {
|
l: Locked {
|
||||||
shape: circle
|
shape: circle
|
||||||
style.fill: "#fd7373"
|
style.fill: "#fd7373"
|
||||||
|
width: 110
|
||||||
}
|
}
|
||||||
u: Unlocked {
|
u: Unlocked {
|
||||||
shape: circle
|
shape: circle
|
||||||
style.fill: "#59c061"
|
style.fill: "#59c061"
|
||||||
|
width: 110
|
||||||
}
|
}
|
||||||
|
|
||||||
l -> l: push
|
l -> l: push
|
||||||
u -> l: push
|
u -> l: push
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 470 KiB After Width: | Height: | Size: 307 KiB |
106
flake.lock
106
flake.lock
|
@ -1,6 +1,36 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676283394,
|
||||||
|
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676283394,
|
||||||
|
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667395993,
|
"lastModified": 1667395993,
|
||||||
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||||
|
@ -17,11 +47,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1668852955,
|
"lastModified": 1676518424,
|
||||||
"narHash": "sha256-1ozaNW9uFRvm3cP9M6FPx+hdqyFQnf49M3HrLQ6nqrk=",
|
"narHash": "sha256-OsJSBwl9Hayh/bmxDtUyxm2U6btaBHuLvviE9KpMmwQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2fb6f9fb0ef3ca727cbd9ae30b90d1ce49d5fcca",
|
"rev": "a592a97fcedae7a06b8506623b25fd38a032ad13",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -31,10 +61,78 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676518424,
|
||||||
|
"narHash": "sha256-OsJSBwl9Hayh/bmxDtUyxm2U6btaBHuLvviE9KpMmwQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "a592a97fcedae7a06b8506623b25fd38a032ad13",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1669261230,
|
||||||
|
"narHash": "sha256-AjddxRPd5y5jge77281P3O8+Cnafj842Xg59rwV4x+0=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "8e8b5f3b1e899bf5d250279578c0283705b8cdb4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"wd2": "wd2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tools": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_3",
|
||||||
|
"nixpkgs": "nixpkgs_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676488781,
|
||||||
|
"narHash": "sha256-lP2UWGwangM1OSBOx0EFXOtnSBuyTJn3yza3Ujb9/C8=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "5f07d4e256c1d8caefd52563737b1e3c023b5d35",
|
||||||
|
"revCount": 21,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.pleshevski.ru/mynix/tools"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.pleshevski.ru/mynix/tools"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"wd2": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_2",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"tools": "tools"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676583860,
|
||||||
|
"narHash": "sha256-LuGEJMECOtqFJHw65ErtEDa7MnF5e+QmiGO583ZK9BE=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "1e05739a5e39b982e3670997a3845ab9741f4ca1",
|
||||||
|
"revCount": 13,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.pleshevski.ru/pleshevskiy/wd2"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.pleshevski.ru/pleshevskiy/wd2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
wd2.url = "git+https://git.pleshevski.ru/pleshevskiy/wd2";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, ... }:
|
outputs = { self, nixpkgs, flake-utils, wd2, ... }:
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
@ -12,6 +13,7 @@
|
||||||
{
|
{
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
wd2.packages.${system}.default
|
||||||
deno
|
deno
|
||||||
nodejs-18_x
|
nodejs-18_x
|
||||||
nodePackages.typescript
|
nodePackages.typescript
|
||||||
|
|
Loading…
Reference in a new issue