Skip to content

Commit 07af079

Browse files
author
Amelia Wattenberger
authored
Merge pull request #70 from githubnext/aw/cleanup
Clean up block config
2 parents 9a1a0e8 + a63cadd commit 07af079

File tree

3 files changed

+60
-103
lines changed

3 files changed

+60
-103
lines changed

blocks.config.json

+55-98
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,53 @@
22
{
33
"type": "file",
44
"id": "code-block",
5-
"title": "Code block",
6-
"description": "A basic code block",
7-
"sandbox": false,
5+
"title": "Code",
6+
"description": "Read & edit code",
87
"entry": "blocks/file-blocks/code/index.tsx",
98
"matches": ["*"],
109
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/Aside.jsx"
1110
},
1211
{
1312
"type": "file",
14-
"id": "excalidraw-block",
15-
"title": "Drawing block",
16-
"description": "A whiteboard tool",
17-
"sandbox": false,
13+
"id": "excalidraw",
14+
"title": "Excalidraw diagram",
15+
"description": "View and edit Excalidraw diagrams",
1816
"entry": "blocks/file-blocks/excalidraw/index.tsx",
1917
"matches": ["*.excalidraw"],
2018
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/drawing.excalidraw"
2119
},
2220
{
2321
"type": "file",
24-
"id": "html-block",
25-
"title": "HTML block",
26-
"description": "View HTML content",
27-
"sandbox": false,
22+
"id": "html",
23+
"title": "HTML",
24+
"description": "View basic HTML content",
2825
"entry": "blocks/file-blocks/html.tsx",
2926
"matches": ["*.html", "*.svelte"],
3027
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/photos.html"
3128
},
3229
{
3330
"type": "file",
34-
"id": "css-block",
35-
"title": "Styleguide block",
36-
"description": "View selectors in a css file",
37-
"sandbox": false,
31+
"id": "css",
32+
"title": "CSS Styleguide",
33+
"description": "View CSS styles in an example styleguide",
3834
"entry": "blocks/file-blocks/css.tsx",
3935
"matches": ["*.css"],
4036
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/global.css"
4137
},
4238
{
4339
"type": "file",
44-
"id": "image-block",
45-
"title": "Image block",
46-
"description": "View images",
47-
"sandbox": false,
40+
"id": "image",
41+
"title": "Image",
42+
"description": "View PNG, JPG, GIF, and SVG images",
4843
"entry": "blocks/file-blocks/image.tsx",
4944
"matches": ["*.png", "*.jpg", "*.jpeg", "*.gif", "*.svg"],
5045
"example_path": "https://github.com/pmndrs/react-spring/blob/HEAD/assets/projects/aragon.png?raw=true"
5146
},
5247
{
5348
"type": "file",
54-
"id": "json-block",
55-
"title": "Object explorer",
56-
"description": "An interactive view of JSON objects",
57-
"sandbox": false,
49+
"id": "json",
50+
"title": "JSON explorer",
51+
"description": "An interactive view of JSON data",
5852
"entry": "blocks/file-blocks/json.tsx",
5953
"matches": [
6054
"*.json",
@@ -69,196 +63,159 @@
6963
},
7064
{
7165
"type": "file",
72-
"id": "geojson-block",
66+
"id": "geojson",
7367
"title": "GeoJSON explorer",
7468
"description": "View & edit GeoJSON data",
75-
"sandbox": false,
7669
"entry": "blocks/file-blocks/geojson.tsx",
7770
"matches": ["*.geo.json", "*.geojson"],
7871
"example_path": "https://github.com/d3/d3-geo/blob/main/package.json"
7972
},
8073
{
8174
"type": "file",
82-
"id": "3d-model-block",
83-
"title": "3D block",
84-
"description": "A block for 3d files",
85-
"sandbox": false,
75+
"id": "3d-model",
76+
"title": "3D model",
77+
"description": "View 3D models",
8678
"entry": "blocks/file-blocks/3d-files.tsx",
8779
"matches": ["*.gltf", "*.glb"],
8880
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/avocado.glb"
8981
},
9082
{
9183
"type": "file",
92-
"id": "flat-block",
93-
"title": "Flat data block",
94-
"description": "A block for flat data files",
95-
"sandbox": false,
84+
"id": "flat",
85+
"title": "Spreadsheet",
86+
"description": "View & edit CSV and YAML files in a spreadsheet",
9687
"entry": "blocks/file-blocks/flat.tsx",
9788
"matches": ["*.csv", "*.yml", "*.yaml"],
9889
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/data.csv"
9990
},
10091
{
10192
"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",
115-
"sandbox": false,
93+
"id": "chart",
94+
"title": "Chart",
95+
"description": "Visualize CSV data in a few different chart types",
11696
"entry": "blocks/file-blocks/charts/index.tsx",
11797
"matches": ["*.csv"],
11898
"example_path": "https://github.com/the-pudding/data/blob/master/pockets/measurements.csv"
11999
},
120100
{
121101
"type": "file",
122102
"id": "markdown-block",
123-
"title": "Markdown block",
124-
"description": "View and edit Markdown content",
125-
"sandbox": false,
103+
"title": "Markdown",
104+
"description": "View and edit Markdown content, with the ability to embed other blocks",
126105
"entry": "blocks/file-blocks/markdown-edit/index.tsx",
127106
"matches": ["*.md", "*.markdown", "*.mdx", "*"],
128107
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/README.md"
129108
},
130109
{
131110
"type": "file",
132-
"id": "sandbox-block",
133-
"title": "JS Sandbox block",
134-
"description": "Execute Javascript code",
135-
"sandbox": false,
111+
"id": "sandbox",
112+
"title": "JS Sandbox",
113+
"description": "Run JavaScript code in a sandbox",
136114
"entry": "blocks/file-blocks/sandbox/index.tsx",
137115
"matches": ["*.js", "*.ts", "*.tsx", "*.jsx"],
138116
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/README.md"
139117
},
140118
{
141119
"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",
120+
"id": "react-feedback",
153121
"title": "React component feedback",
154-
"description": "Give feedback on a React component",
155-
"sandbox": false,
122+
"description": "View & give feedback on a React component",
156123
"entry": "blocks/file-blocks/annotate-react/index.tsx",
157124
"matches": ["*.jsx", "*.tsx"],
158125
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/Aside.jsx"
159126
},
160127
{
161128
"type": "file",
162-
"id": "sentence-encoder-block",
163-
"title": "Sentence encoder block",
164-
"description": "Experiment with your sentence-encoder",
165-
"sandbox": false,
129+
"id": "sentence-encoder",
130+
"title": "Sentence encoder",
131+
"description": "Experiment with a sentence-encoder",
166132
"entry": "blocks/file-blocks/sentence-encoder.tsx",
167133
"matches": ["*.json"],
168134
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/queries.json"
169135
},
170136
{
171137
"type": "file",
172-
"id": "processing-block",
173-
"title": "Processing block",
174-
"description": "Run your p5.js sketches",
138+
"id": "processing",
139+
"title": "p5.js",
140+
"description": "Run a p5.js sketch",
175141
"sandbox": true,
176142
"entry": "blocks/file-blocks/processing.tsx",
177143
"matches": ["*.js"],
178144
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/processing-sketch.js"
179145
},
180146
{
181147
"type": "file",
182-
"id": "summarize-block",
183-
"title": "Summarize block",
148+
"id": "summarize",
149+
"title": "Summarize",
184150
"description": "Summarize parts of a file using ML",
185-
"sandbox": false,
186151
"entry": "blocks/file-blocks/summarize/index.tsx",
187152
"matches": ["*.js", "*.ts", "*.tsx", "*.jsx"],
188153
"example_path": "https://github.com/mattdesl/canvas-sketch/blob/master/lib/save.js"
189154
},
190155
{
191156
"type": "file",
192-
"id": "explain-block",
193-
"title": "Explain block",
157+
"id": "explain",
158+
"title": "Explain",
194159
"description": "Explain parts of a file using ML",
195-
"sandbox": false,
196160
"entry": "blocks/file-blocks/explain/index.tsx",
197161
"matches": ["*.js", "*.ts", "*.tsx", "*.jsx", "*.rb", "*.py"],
198162
"example_path": "https://github.com/mattdesl/canvas-sketch/blob/master/lib/save.js"
199163
},
200164
{
201165
"type": "file",
202-
"id": "edit-block",
203-
"title": "Edit code",
166+
"id": "edit",
167+
"title": "Edit code with ML",
204168
"description": "Edit code by prompting a Machine Learning model",
205-
"sandbox": false,
206169
"entry": "blocks/file-blocks/edit/index.tsx",
207170
"matches": ["*"],
208171
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/processing-sketch.js"
209172
},
210173
{
211174
"type": "file",
212-
"id": "edit-and-preview-block",
175+
"id": "edit-and-preview",
213176
"title": "Edit with Preview",
214177
"description": "Edit code side-by-side with a preview",
215-
"sandbox": false,
216178
"entry": "blocks/file-blocks/edit-and-preview/index.tsx",
217179
"matches": ["*"],
218180
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/README.md"
219181
},
220182
{
221183
"type": "folder",
222-
"id": "minimap-block",
184+
"id": "minimap",
223185
"title": "Minimap",
224-
"description": "A visualization of your folders and files",
225-
"sandbox": false,
186+
"description": "Visualize your folders and files in a minimap",
226187
"entry": "blocks/folder-blocks/minimap/index.tsx",
227188
"example_path": "https://github.com/githubnext/blocks-tutorial"
228189
},
229190
{
230191
"type": "folder",
231-
"id": "overview-block",
192+
"id": "overview",
232193
"title": "Overview",
233-
"description": "An overview of a folder: including README, license, and recent activity",
234-
"sandbox": false,
194+
"description": "View an overview of a folder: including README, license, and recent activity",
235195
"entry": "blocks/folder-blocks/overview/index.tsx",
236196
"example_path": "https://github.com/githubnext/blocks-tutorial"
237197
},
238198
{
239199
"type": "folder",
240-
"id": "dashboard-block",
200+
"id": "dashboard",
241201
"title": "Dashboard",
242-
"description": "A dashboard of Blocks",
243-
"sandbox": false,
202+
"description": "View other blocks in a dashboard view",
244203
"entry": "blocks/folder-blocks/dashboard/index.tsx",
245204
"example_path": "https://github.com/githubnext/blocks-tutorial"
246205
},
247206
{
248207
"type": "folder",
249-
"id": "code-tour-block",
208+
"id": "code-tour",
250209
"title": "Code Tour",
251210
"description": "Create documented tours of your code",
252-
"sandbox": false,
253211
"entry": "blocks/folder-blocks/code-tour/index.tsx",
254212
"example_path": "https://github.com/githubnext/blocks-tutorial"
255213
},
256214
{
257215
"type": "folder",
258-
"id": "infinite-canvas-block",
216+
"id": "infinite-canvas",
259217
"title": "Infinite Canvas",
260218
"description": "View and annotate your files in an infinite canvas",
261-
"sandbox": false,
262219
"entry": "blocks/folder-blocks/infinite-canvas/index.tsx",
263220
"example_path": "https://github.com/githubnext/blocks-tutorial"
264221
}

package.json

+1-1
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

+4-4
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)