tangled
alpha
login
or
join now
dunkirk.sh
/
traverse
1
fork
atom
snatching amp's walkthrough for my own purposes mwhahaha
traverse.dunkirk.sh/diagram/6121f05c-a5ef-4ecf-8ffc-02534c5e767c
1
fork
atom
overview
issues
pulls
pipelines
chore: move og node count over to the top right
dunkirk.sh
1 month ago
7017c0ad
12a46941
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+34
-49
1 changed file
expand all
collapse all
unified
split
src
og.ts
+34
-49
src/og.ts
···
44
44
fontFamily: "Inter",
45
45
},
46
46
children: [
47
47
-
// Top: Traverse label
47
47
+
// Top: Traverse label + node count
48
48
{
49
49
type: "div",
50
50
props: {
51
51
style: {
52
52
display: "flex",
53
53
alignItems: "center",
54
54
-
gap: "10px",
54
54
+
justifyContent: "space-between",
55
55
},
56
56
children: [
57
57
{
···
67
67
children: "Traverse",
68
68
},
69
69
},
70
70
+
{
71
71
+
type: "div",
72
72
+
props: {
73
73
+
style: {
74
74
+
fontSize: "16px",
75
75
+
color: "#666",
76
76
+
},
77
77
+
children: `${nodeCount} node${nodeCount !== 1 ? "s" : ""}`,
78
78
+
},
79
79
+
},
70
80
],
71
81
},
72
82
},
···
99
109
],
100
110
},
101
111
},
102
102
-
// Bottom: Node pills + count
112
112
+
// Bottom: Node pills
103
113
{
104
114
type: "div",
105
115
props: {
106
116
style: {
107
117
display: "flex",
108
108
-
alignItems: "center",
109
109
-
justifyContent: "space-between",
110
110
-
gap: "16px",
118
118
+
flexWrap: "wrap",
119
119
+
gap: "8px",
111
120
},
112
121
children: [
113
113
-
{
122
122
+
...displayNodes.map((name) => ({
114
123
type: "div",
115
124
props: {
116
125
style: {
117
117
-
display: "flex",
118
118
-
flexWrap: "wrap",
119
119
-
gap: "8px",
120
120
-
flex: 1,
126
126
+
fontSize: "14px",
127
127
+
color: "#a3a3a3",
128
128
+
backgroundColor: "#1c1c1e",
129
129
+
padding: "4px 12px",
130
130
+
borderRadius: "6px",
131
131
+
border: "1px solid #262626",
121
132
},
122
122
-
children: [
123
123
-
...displayNodes.map((name) => ({
133
133
+
children: name,
134
134
+
},
135
135
+
})),
136
136
+
...(extra > 0
137
137
+
? [
138
138
+
{
124
139
type: "div",
125
140
props: {
126
141
style: {
127
142
fontSize: "14px",
128
128
-
color: "#a3a3a3",
129
129
-
backgroundColor: "#1c1c1e",
130
130
-
padding: "4px 12px",
131
131
-
borderRadius: "6px",
132
132
-
border: "1px solid #262626",
143
143
+
color: "#666",
144
144
+
padding: "4px 8px",
133
145
},
134
134
-
children: name,
146
146
+
children: `+${extra} more`,
135
147
},
136
136
-
})),
137
137
-
...(extra > 0
138
138
-
? [
139
139
-
{
140
140
-
type: "div",
141
141
-
props: {
142
142
-
style: {
143
143
-
fontSize: "14px",
144
144
-
color: "#666",
145
145
-
padding: "4px 8px",
146
146
-
},
147
147
-
children: `+${extra} more`,
148
148
-
},
149
149
-
},
150
150
-
]
151
151
-
: []),
152
152
-
],
153
153
-
},
154
154
-
},
155
155
-
{
156
156
-
type: "div",
157
157
-
props: {
158
158
-
style: {
159
159
-
fontSize: "16px",
160
160
-
color: "#666",
161
161
-
flexShrink: 0,
162
162
-
},
163
163
-
children: `${nodeCount} node${nodeCount !== 1 ? "s" : ""}`,
164
164
-
},
165
165
-
},
148
148
+
},
149
149
+
]
150
150
+
: []),
166
151
],
167
152
},
168
153
},