Commit 8a01c89
Christopher Willis-Ford
feat: create
The list of helpers in `ScratchStorage` is no longer fixed: now it's
possible to add a new helper using the `addHelper` method. Helpers are
sorted by their relative priority values, which are provided at add
time.
As a follow-up task, `WebHelper` should probably be adjusted to
represent only one endpoint, with create/update/delete features for that
one endpoint. A normal Scratch session might then have one `WebHelper`
for projects and a second for images and sounds. The main reason to do
this would be to concentrate the "try the next place" logic in
`ScratchStorage` instead of having a second version of it in
`WebHelper`.addHelper to add helper w/ priority1 parent 9ec8c38 commit 8a01c89
1 file changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
17 | 28 | | |
18 | 29 | | |
19 | 30 | | |
| |||
58 | 69 | | |
59 | 70 | | |
60 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
61 | 84 | | |
62 | 85 | | |
63 | 86 | | |
| |||
152 | 175 | | |
153 | 176 | | |
154 | 177 | | |
155 | | - | |
| 178 | + | |
156 | 179 | | |
157 | 180 | | |
158 | 181 | | |
| |||
0 commit comments