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
|
||||
NPM_PUB := npm publish
|
||||
|
||||
D2 := nix run git+https://git.pleshevski.ru/mynix/tools\\\#d2 --
|
||||
D2 := wd2
|
||||
DIAGRAMS := \
|
||||
turnstile \
|
||||
project
|
||||
|
||||
turnstile_theme_args := --layout elk --theme 101
|
||||
|
||||
dev: fmt tests cov
|
||||
|
||||
ci: fmt-check tests-cov
|
||||
|
|
|
@ -1,20 +1,30 @@
|
|||
# port: 43333
|
||||
# layout: dagre
|
||||
# theme: 101
|
||||
# pad: 0
|
||||
# sketch: true
|
||||
|
||||
direction: right
|
||||
|
||||
Project: {
|
||||
pen: Pending {
|
||||
shape: circle
|
||||
width: 110
|
||||
}
|
||||
act: Active {
|
||||
shape: circle
|
||||
style.fill: "#9ae49a"
|
||||
width: 110
|
||||
}
|
||||
com: Completed {
|
||||
shape: circle
|
||||
style.fill: "#eaea7e"
|
||||
width: 110
|
||||
}
|
||||
arc: Archived {
|
||||
shape: circle
|
||||
style.fill: "#ff7e7e"
|
||||
width: 110
|
||||
}
|
||||
|
||||
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,13 +1,21 @@
|
|||
# port: 43334
|
||||
# layout: elk
|
||||
# theme: 101
|
||||
# pad: 0
|
||||
# sketch: true
|
||||
|
||||
direction: right
|
||||
|
||||
Turnstile: {
|
||||
l: Locked {
|
||||
shape: circle
|
||||
style.fill: "#fd7373"
|
||||
width: 110
|
||||
}
|
||||
u: Unlocked {
|
||||
shape: circle
|
||||
style.fill: "#59c061"
|
||||
width: 110
|
||||
}
|
||||
|
||||
l -> 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": {
|
||||
"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": {
|
||||
"lastModified": 1667395993,
|
||||
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||
|
@ -17,11 +47,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1668852955,
|
||||
"narHash": "sha256-1ozaNW9uFRvm3cP9M6FPx+hdqyFQnf49M3HrLQ6nqrk=",
|
||||
"lastModified": 1676518424,
|
||||
"narHash": "sha256-OsJSBwl9Hayh/bmxDtUyxm2U6btaBHuLvviE9KpMmwQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2fb6f9fb0ef3ca727cbd9ae30b90d1ce49d5fcca",
|
||||
"rev": "a592a97fcedae7a06b8506623b25fd38a032ad13",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -31,10 +61,78 @@
|
|||
"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": {
|
||||
"inputs": {
|
||||
"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 = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
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:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
@ -12,6 +13,7 @@
|
|||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
wd2.packages.${system}.default
|
||||
deno
|
||||
nodejs-18_x
|
||||
nodePackages.typescript
|
||||
|
|
Loading…
Reference in a new issue