Skip to content

Commit b0dab4b

Browse files
committed
clean up block config
1 parent 9a1a0e8 commit b0dab4b

File tree

3 files changed

+60
-80
lines changed

3 files changed

+60
-80
lines changed

blocks.config.json

Lines changed: 55 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,58 @@
22
{
33
"type": "file",
44
"id": "code-block",
5-
"title": "Code block",
6-
"description": "A basic code block",
5+
"title": "Code",
6+
"description": "Read & edit code",
77
"sandbox": false,
88
"entry": "blocks/file-blocks/code/index.tsx",
99
"matches": ["*"],
1010
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/Aside.jsx"
1111
},
1212
{
1313
"type": "file",
14-
"id": "excalidraw-block",
15-
"title": "Drawing block",
16-
"description": "A whiteboard tool",
14+
"id": "excalidraw",
15+
"title": "Excalidraw diagram",
16+
"description": "View and edit Excalidraw diagrams",
1717
"sandbox": false,
1818
"entry": "blocks/file-blocks/excalidraw/index.tsx",
1919
"matches": ["*.excalidraw"],
2020
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/drawing.excalidraw"
2121
},
2222
{
2323
"type": "file",
24-
"id": "html-block",
25-
"title": "HTML block",
26-
"description": "View HTML content",
24+
"id": "html",
25+
"title": "HTML",
26+
"description": "View basic HTML content",
2727
"sandbox": false,
2828
"entry": "blocks/file-blocks/html.tsx",
2929
"matches": ["*.html", "*.svelte"],
3030
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/photos.html"
3131
},
3232
{
3333
"type": "file",
34-
"id": "css-block",
35-
"title": "Styleguide block",
36-
"description": "View selectors in a css file",
34+
"id": "css",
35+
"title": "CSS Styleguide",
36+
"description": "View CSS styles in an example styleguide",
3737
"sandbox": false,
3838
"entry": "blocks/file-blocks/css.tsx",
3939
"matches": ["*.css"],
4040
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/global.css"
4141
},
4242
{
4343
"type": "file",
44-
"id": "image-block",
45-
"title": "Image block",
46-
"description": "View images",
44+
"id": "image",
45+
"title": "Image",
46+
"description": "View PNG, JPG, GIF, and SVG images",
4747
"sandbox": false,
4848
"entry": "blocks/file-blocks/image.tsx",
4949
"matches": ["*.png", "*.jpg", "*.jpeg", "*.gif", "*.svg"],
5050
"example_path": "https://github.com/pmndrs/react-spring/blob/HEAD/assets/projects/aragon.png?raw=true"
5151
},
5252
{
5353
"type": "file",
54-
"id": "json-block",
55-
"title": "Object explorer",
56-
"description": "An interactive view of JSON objects",
54+
"id": "json",
55+
"title": "JSON explorer",
56+
"description": "An interactive view of JSON data",
5757
"sandbox": false,
5858
"entry": "blocks/file-blocks/json.tsx",
5959
"matches": [
@@ -69,7 +69,7 @@
6969
},
7070
{
7171
"type": "file",
72-
"id": "geojson-block",
72+
"id": "geojson",
7373
"title": "GeoJSON explorer",
7474
"description": "View & edit GeoJSON data",
7575
"sandbox": false,
@@ -79,39 +79,29 @@
7979
},
8080
{
8181
"type": "file",
82-
"id": "3d-model-block",
83-
"title": "3D block",
84-
"description": "A block for 3d files",
82+
"id": "3d-model",
83+
"title": "3D model",
84+
"description": "View 3D models",
8585
"sandbox": false,
8686
"entry": "blocks/file-blocks/3d-files.tsx",
8787
"matches": ["*.gltf", "*.glb"],
8888
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/avocado.glb"
8989
},
9090
{
9191
"type": "file",
92-
"id": "flat-block",
93-
"title": "Flat data block",
94-
"description": "A block for flat data files",
92+
"id": "flat",
93+
"title": "Spreadsheet",
94+
"description": "View & edit CSV and YAML files in a spreadsheet",
9595
"sandbox": false,
9696
"entry": "blocks/file-blocks/flat.tsx",
9797
"matches": ["*.csv", "*.yml", "*.yaml"],
9898
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/data.csv"
9999
},
100100
{
101101
"type": "file",
102-
"id": "simple-poll-block",
103-
"title": "Poll block",
104-
"description": "View simple polls beautifully",
105-
"sandbox": false,
106-
"entry": "blocks/file-blocks/poll.tsx",
107-
"matches": ["*.json"],
108-
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/poll.json"
109-
},
110-
{
111-
"type": "file",
112-
"id": "chart-block",
113-
"title": "Chart block",
114-
"description": "An interactive chart block",
102+
"id": "chart",
103+
"title": "Chart",
104+
"description": "Visualize CSV data in a few different chart types",
115105
"sandbox": false,
116106
"entry": "blocks/file-blocks/charts/index.tsx",
117107
"matches": ["*.csv"],
@@ -120,67 +110,57 @@
120110
{
121111
"type": "file",
122112
"id": "markdown-block",
123-
"title": "Markdown block",
124-
"description": "View and edit Markdown content",
113+
"title": "Markdown",
114+
"description": "View and edit Markdown content, with the ability to embed other blocks",
125115
"sandbox": false,
126116
"entry": "blocks/file-blocks/markdown-edit/index.tsx",
127117
"matches": ["*.md", "*.markdown", "*.mdx", "*"],
128118
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/README.md"
129119
},
130120
{
131121
"type": "file",
132-
"id": "sandbox-block",
133-
"title": "JS Sandbox block",
134-
"description": "Execute Javascript code",
122+
"id": "sandbox",
123+
"title": "JS Sandbox",
124+
"description": "Run JavaScript code in a sandbox",
135125
"sandbox": false,
136126
"entry": "blocks/file-blocks/sandbox/index.tsx",
137127
"matches": ["*.js", "*.ts", "*.tsx", "*.jsx"],
138128
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/README.md"
139129
},
140130
{
141131
"type": "file",
142-
"id": "use-case-block",
143-
"title": "Blocks use case",
144-
"description": "View Blocks use case writeups",
145-
"sandbox": false,
146-
"entry": "blocks/file-blocks/use-case/index.tsx",
147-
"matches": ["*.md", "*.mdx"],
148-
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/README.md"
149-
},
150-
{
151-
"type": "file",
152-
"id": "react-feedback-block",
132+
"id": "react-feedback",
153133
"title": "React component feedback",
154-
"description": "Give feedback on a React component",
134+
"description": "View & give feedback on a React component",
155135
"sandbox": false,
156136
"entry": "blocks/file-blocks/annotate-react/index.tsx",
157137
"matches": ["*.jsx", "*.tsx"],
158138
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/Aside.jsx"
159139
},
160140
{
161141
"type": "file",
162-
"id": "sentence-encoder-block",
163-
"title": "Sentence encoder block",
164-
"description": "Experiment with your sentence-encoder",
142+
"id": "sentence-encoder",
143+
"title": "Sentence encoder",
144+
"description": "Experiment with a sentence-encoder",
165145
"sandbox": false,
166146
"entry": "blocks/file-blocks/sentence-encoder.tsx",
167147
"matches": ["*.json"],
168148
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/queries.json"
169149
},
170150
{
171151
"type": "file",
172-
"id": "processing-block",
173-
"title": "Processing block",
174-
"description": "Run your p5.js sketches",
152+
"id": "processing",
153+
"title": "p5.js",
154+
"description": "Run a p5.js sketch",
175155
"sandbox": true,
176156
"entry": "blocks/file-blocks/processing.tsx",
177157
"matches": ["*.js"],
178158
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/processing-sketch.js"
179159
},
180160
{
181161
"type": "file",
182-
"id": "summarize-block",
183-
"title": "Summarize block",
162+
"id": "summarize",
163+
"title": "Summarize",
184164
"description": "Summarize parts of a file using ML",
185165
"sandbox": false,
186166
"entry": "blocks/file-blocks/summarize/index.tsx",
@@ -189,8 +169,8 @@
189169
},
190170
{
191171
"type": "file",
192-
"id": "explain-block",
193-
"title": "Explain block",
172+
"id": "explain",
173+
"title": "Explain",
194174
"description": "Explain parts of a file using ML",
195175
"sandbox": false,
196176
"entry": "blocks/file-blocks/explain/index.tsx",
@@ -199,8 +179,8 @@
199179
},
200180
{
201181
"type": "file",
202-
"id": "edit-block",
203-
"title": "Edit code",
182+
"id": "edit",
183+
"title": "Edit code with ML",
204184
"description": "Edit code by prompting a Machine Learning model",
205185
"sandbox": false,
206186
"entry": "blocks/file-blocks/edit/index.tsx",
@@ -209,7 +189,7 @@
209189
},
210190
{
211191
"type": "file",
212-
"id": "edit-and-preview-block",
192+
"id": "edit-and-preview",
213193
"title": "Edit with Preview",
214194
"description": "Edit code side-by-side with a preview",
215195
"sandbox": false,
@@ -219,34 +199,34 @@
219199
},
220200
{
221201
"type": "folder",
222-
"id": "minimap-block",
202+
"id": "minimap",
223203
"title": "Minimap",
224-
"description": "A visualization of your folders and files",
204+
"description": "Visualize your folders and files in a minimap",
225205
"sandbox": false,
226206
"entry": "blocks/folder-blocks/minimap/index.tsx",
227207
"example_path": "https://github.com/githubnext/blocks-tutorial"
228208
},
229209
{
230210
"type": "folder",
231-
"id": "overview-block",
211+
"id": "overview",
232212
"title": "Overview",
233-
"description": "An overview of a folder: including README, license, and recent activity",
213+
"description": "View an overview of a folder: including README, license, and recent activity",
234214
"sandbox": false,
235215
"entry": "blocks/folder-blocks/overview/index.tsx",
236216
"example_path": "https://github.com/githubnext/blocks-tutorial"
237217
},
238218
{
239219
"type": "folder",
240-
"id": "dashboard-block",
220+
"id": "dashboard",
241221
"title": "Dashboard",
242-
"description": "A dashboard of Blocks",
222+
"description": "View other blocks in a dashboard view",
243223
"sandbox": false,
244224
"entry": "blocks/folder-blocks/dashboard/index.tsx",
245225
"example_path": "https://github.com/githubnext/blocks-tutorial"
246226
},
247227
{
248228
"type": "folder",
249-
"id": "code-tour-block",
229+
"id": "code-tour",
250230
"title": "Code Tour",
251231
"description": "Create documented tours of your code",
252232
"sandbox": false,
@@ -255,7 +235,7 @@
255235
},
256236
{
257237
"type": "folder",
258-
"id": "infinite-canvas-block",
238+
"id": "infinite-canvas",
259239
"title": "Infinite Canvas",
260240
"description": "View and annotate your files in an infinite canvas",
261241
"sandbox": false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@excalidraw/excalidraw": "^0.10.0",
2323
"@fullstackio/cq": "^6.0.9",
2424
"@fullstackio/remark-cq": "^6.1.2",
25-
"@githubnext/blocks": "^2.1.1",
25+
"@githubnext/blocks": "^2.2.0",
2626
"@githubocto/flat-ui": "^0.14.1",
2727
"@lezer/highlight": "^1.0.0",
2828
"@lezer/markdown": "^1.0.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -910,10 +910,10 @@
910910
unist-util-visit "^1.0.0"
911911
uuid "^3.3.2"
912912

913-
"@githubnext/blocks@^2.1.1":
914-
version "2.1.1"
915-
resolved "https://registry.yarnpkg.com/@githubnext/blocks/-/blocks-2.1.1.tgz#73c65f2ff3d75b2fb8203fdf8cc1e3083e7c1a4e"
916-
integrity sha512-53YsSBZRagNRjbaRRlUe9E47Vz20YPx+ZxsB9TuUjdzmnI4h4WzewJprk/L2sjNh9WcVMVCtKNB6lQGA9A6Hbw==
913+
"@githubnext/blocks@^2.2.0":
914+
version "2.2.0"
915+
resolved "https://registry.yarnpkg.com/@githubnext/blocks/-/blocks-2.2.0.tgz#e060b8718621fd7917f4dca4c68d178d9e7b93b8"
916+
integrity sha512-as89UwPi3tQPYDjaAmRKYa/lndUH6ZW9gcZIuXiUnGWSpzn6qZyQTMA2NNpm7sjy9nOy6mtw3RYGt/EfJeIqdw==
917917
dependencies:
918918
"@loadable/component" "^5.15.0"
919919
"@octokit/openapi-types" "^11.2.0"

0 commit comments

Comments
 (0)