@learncard/create-http-bridge 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +400 -0
- package/LICENSE +25 -0
- package/README.md +34 -0
- package/cli/App.tsx +74 -0
- package/cli/Banner.tsx +18 -0
- package/cli/Button.tsx +62 -0
- package/cli/Cloning.tsx +51 -0
- package/cli/Form.tsx +80 -0
- package/cli/FullScreenBox.tsx +19 -0
- package/cli/Info.tsx +79 -0
- package/cli/Input.tsx +33 -0
- package/cli/curriedStateSlice.ts +565 -0
- package/cli/index.tsx +17 -0
- package/cli/random.ts +3 -0
- package/cli/types.ts +8 -0
- package/dist/index.js +803 -0
- package/esbuildWasmPlugin.cjs +31 -0
- package/lambda.ts +18 -0
- package/package.json +56 -0
- package/project.json +22 -0
- package/rollup.config.js +12 -0
- package/serverless.yml +56 -0
- package/src/app.ts +297 -0
- package/src/didkit_wasm_bg.wasm +0 -0
- package/src/learn-card.ts +13 -0
- package/src/types.helpers.ts +7 -0
- package/src/validators.ts +59 -0
- package/tsconfig.json +36 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
# @learncard/create-http-bridge
|
|
2
|
+
|
|
3
|
+
## 1.1.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`82289ba`](https://github.com/learningeconomy/LearnCard/commit/82289bacb997880ae25eaf833afe5c9e4ad68c37)]:
|
|
8
|
+
- @learncard/types@5.2.6
|
|
9
|
+
- @learncard/core@8.5.4
|
|
10
|
+
|
|
11
|
+
## 1.1.33
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`37133bf`](https://github.com/learningeconomy/LearnCard/commit/37133bf375a883c8086ba837c2155a609dea1912)]:
|
|
16
|
+
- @learncard/types@5.2.5
|
|
17
|
+
- @learncard/core@8.5.4
|
|
18
|
+
|
|
19
|
+
## 1.1.32
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`f6abbd4`](https://github.com/learningeconomy/LearnCard/commit/f6abbd490e02f65d56465ec5853aa31cfd2ae40c)]:
|
|
24
|
+
- @learncard/core@8.5.4
|
|
25
|
+
- @learncard/types@5.2.4
|
|
26
|
+
|
|
27
|
+
## 1.1.31
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#249](https://github.com/learningeconomy/LearnCard/pull/249) [`6a1a143`](https://github.com/learningeconomy/LearnCard/commit/6a1a1431a3bfdec261e1c9386a774cadbca6a5a1) Thanks [@goblincore](https://github.com/goblincore)! - Republish
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [[`6a1a143`](https://github.com/learningeconomy/LearnCard/commit/6a1a1431a3bfdec261e1c9386a774cadbca6a5a1)]:
|
|
34
|
+
- @learncard/core@8.5.3
|
|
35
|
+
- @learncard/types@5.2.3
|
|
36
|
+
|
|
37
|
+
## 1.1.30
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [[`f1a8679`](https://github.com/learningeconomy/LearnCard/commit/f1a86796817fa20a0667a6b717b56d22038028c1)]:
|
|
42
|
+
- @learncard/core@8.5.2
|
|
43
|
+
|
|
44
|
+
## 1.1.29
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [[`e69af5a`](https://github.com/learningeconomy/LearnCard/commit/e69af5ab09b88d111ddf207f413552aa0bac991a)]:
|
|
49
|
+
- @learncard/types@5.2.2
|
|
50
|
+
- @learncard/core@8.5.1
|
|
51
|
+
|
|
52
|
+
## 1.1.28
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- Updated dependencies [[`13d0393`](https://github.com/learningeconomy/LearnCard/commit/13d0393725d9d5e17b02de7a8088f46bda688d92), [`ed3c460`](https://github.com/learningeconomy/LearnCard/commit/ed3c460fadae88702c1244795ab3b7483d97bab7)]:
|
|
57
|
+
- @learncard/core@8.5.1
|
|
58
|
+
- @learncard/types@5.2.1
|
|
59
|
+
|
|
60
|
+
## 1.1.27
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Updated dependencies [[`2508bba`](https://github.com/learningeconomy/LearnCard/commit/2508bba1950faed5ebe4c92f6a5e3bf82114b9fe), [`2508bba`](https://github.com/learningeconomy/LearnCard/commit/2508bba1950faed5ebe4c92f6a5e3bf82114b9fe), [`2508bba`](https://github.com/learningeconomy/LearnCard/commit/2508bba1950faed5ebe4c92f6a5e3bf82114b9fe), [`2508bba`](https://github.com/learningeconomy/LearnCard/commit/2508bba1950faed5ebe4c92f6a5e3bf82114b9fe), [`2508bba`](https://github.com/learningeconomy/LearnCard/commit/2508bba1950faed5ebe4c92f6a5e3bf82114b9fe), [`2508bba`](https://github.com/learningeconomy/LearnCard/commit/2508bba1950faed5ebe4c92f6a5e3bf82114b9fe), [`2508bba`](https://github.com/learningeconomy/LearnCard/commit/2508bba1950faed5ebe4c92f6a5e3bf82114b9fe)]:
|
|
65
|
+
- @learncard/core@8.5.0
|
|
66
|
+
- @learncard/types@5.2.0
|
|
67
|
+
|
|
68
|
+
## 1.1.26
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- Updated dependencies [[`9652a2f`](https://github.com/learningeconomy/LearnCard/commit/9652a2f59bc305ed3ef4cd7d53731608f81a54c6)]:
|
|
73
|
+
- @learncard/core@8.4.2
|
|
74
|
+
|
|
75
|
+
## 1.1.25
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- Updated dependencies [[`d2e5817`](https://github.com/learningeconomy/LearnCard/commit/d2e581790d63a75d304c2ace8b02133ce122c7ce)]:
|
|
80
|
+
- @learncard/core@8.4.1
|
|
81
|
+
|
|
82
|
+
## 1.1.24
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- Updated dependencies [[`e78c77d`](https://github.com/learningeconomy/LearnCard/commit/e78c77dc8dfa6c69d7163ed49b551bd739de2f09)]:
|
|
87
|
+
- @learncard/core@8.4.0
|
|
88
|
+
|
|
89
|
+
## 1.1.23
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Updated dependencies [[`d6ebc5b`](https://github.com/learningeconomy/LearnCard/commit/d6ebc5baa52eab591398e81267adb40b3dce74f3)]:
|
|
94
|
+
- @learncard/core@8.3.1
|
|
95
|
+
|
|
96
|
+
## 1.1.22
|
|
97
|
+
|
|
98
|
+
### Patch Changes
|
|
99
|
+
|
|
100
|
+
- Updated dependencies [[`9aeb9f1`](https://github.com/learningeconomy/LearnCard/commit/9aeb9f1c175fd5ab7f2b94addaa9132bcc9cb4cf)]:
|
|
101
|
+
- @learncard/types@5.1.1
|
|
102
|
+
- @learncard/core@8.3.0
|
|
103
|
+
|
|
104
|
+
## 1.1.21
|
|
105
|
+
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- Updated dependencies [[`d817fde`](https://github.com/learningeconomy/LearnCard/commit/d817fdecfc98023b3907451750338561df9d577c)]:
|
|
109
|
+
- @learncard/core@8.3.0
|
|
110
|
+
|
|
111
|
+
## 1.1.20
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- Updated dependencies [[`ace9b60`](https://github.com/learningeconomy/LearnCard/commit/ace9b60b02932e36090e7392a1b7b6a13a9593b8)]:
|
|
116
|
+
- @learncard/core@8.2.0
|
|
117
|
+
|
|
118
|
+
## 1.1.19
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- Updated dependencies [[`42d02db`](https://github.com/learningeconomy/LearnCard/commit/42d02dba24129983664aceb7da5aaeb4039f8b04)]:
|
|
123
|
+
- @learncard/core@8.1.1
|
|
124
|
+
|
|
125
|
+
## 1.1.18
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- Updated dependencies [[`36e938b`](https://github.com/learningeconomy/LearnCard/commit/36e938b1211b53b96962663e8b33b50f24b2ca51), [`36e938b`](https://github.com/learningeconomy/LearnCard/commit/36e938b1211b53b96962663e8b33b50f24b2ca51)]:
|
|
130
|
+
- @learncard/core@8.1.0
|
|
131
|
+
|
|
132
|
+
## 1.1.17
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- Updated dependencies [[`c388fd4`](https://github.com/learningeconomy/LearnCard/commit/c388fd49f2832cadcb201779de17d45d3fe7b660)]:
|
|
137
|
+
- @learncard/core@8.0.7
|
|
138
|
+
|
|
139
|
+
## 1.1.16
|
|
140
|
+
|
|
141
|
+
### Patch Changes
|
|
142
|
+
|
|
143
|
+
- Updated dependencies [[`b3ae77e`](https://github.com/learningeconomy/LearnCard/commit/b3ae77ef20a10dee303a2c8318faa8bf28344215)]:
|
|
144
|
+
- @learncard/core@8.0.6
|
|
145
|
+
|
|
146
|
+
## 1.1.15
|
|
147
|
+
|
|
148
|
+
### Patch Changes
|
|
149
|
+
|
|
150
|
+
- Updated dependencies [[`a3aafb3`](https://github.com/learningeconomy/LearnCard/commit/a3aafb39db6fccae19e999fb4fc89a588bc14555)]:
|
|
151
|
+
- @learncard/core@8.0.5
|
|
152
|
+
|
|
153
|
+
## 1.1.14
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- Updated dependencies [[`86f3541`](https://github.com/learningeconomy/LearnCard/commit/86f35413e6006a17a596d71ea3f186f915e90f28)]:
|
|
158
|
+
- @learncard/core@8.0.4
|
|
159
|
+
|
|
160
|
+
## 1.1.13
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- Updated dependencies [[`982bd41`](https://github.com/learningeconomy/LearnCard/commit/982bd4151d485ec6977c0bf774fe1cf243b8db74)]:
|
|
165
|
+
- @learncard/types@5.1.0
|
|
166
|
+
- @learncard/core@8.0.3
|
|
167
|
+
|
|
168
|
+
## 1.1.12
|
|
169
|
+
|
|
170
|
+
### Patch Changes
|
|
171
|
+
|
|
172
|
+
- Updated dependencies [[`8ba3a12`](https://github.com/learningeconomy/LearnCard/commit/8ba3a128602a1dee4ce1d3a73652cb6f96efc2d3), [`8ba3a12`](https://github.com/learningeconomy/LearnCard/commit/8ba3a128602a1dee4ce1d3a73652cb6f96efc2d3)]:
|
|
173
|
+
- @learncard/types@5.0.1
|
|
174
|
+
- @learncard/core@8.0.3
|
|
175
|
+
|
|
176
|
+
## 1.1.11
|
|
177
|
+
|
|
178
|
+
### Patch Changes
|
|
179
|
+
|
|
180
|
+
- Updated dependencies [[`7c6945c`](https://github.com/learningeconomy/LearnCard/commit/7c6945cfe4be8574c869c2515f7806123c372765)]:
|
|
181
|
+
- @learncard/core@8.0.2
|
|
182
|
+
|
|
183
|
+
## 1.1.10
|
|
184
|
+
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- Updated dependencies [[`1cafab4`](https://github.com/learningeconomy/LearnCard/commit/1cafab43a6c053914305e0a8b938748ed2a5fd31)]:
|
|
188
|
+
- @learncard/core@8.0.1
|
|
189
|
+
|
|
190
|
+
## 1.1.9
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- Updated dependencies [[`e7cfb63`](https://github.com/learningeconomy/LearnCard/commit/e7cfb636b21cfdd834e3b0cb028036819326a2f9), [`e7cfb63`](https://github.com/learningeconomy/LearnCard/commit/e7cfb636b21cfdd834e3b0cb028036819326a2f9), [`e7cfb63`](https://github.com/learningeconomy/LearnCard/commit/e7cfb636b21cfdd834e3b0cb028036819326a2f9)]:
|
|
195
|
+
- @learncard/core@8.0.0
|
|
196
|
+
- @learncard/types@5.0.0
|
|
197
|
+
|
|
198
|
+
## 1.1.8
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- Updated dependencies [[`2a4f635`](https://github.com/learningeconomy/LearnCard/commit/2a4f63521b2ce68961868359873064a25394dd99)]:
|
|
203
|
+
- @learncard/core@7.0.3
|
|
204
|
+
|
|
205
|
+
## 1.1.7
|
|
206
|
+
|
|
207
|
+
### Patch Changes
|
|
208
|
+
|
|
209
|
+
- Updated dependencies [[`00b119a`](https://github.com/learningeconomy/LearnCard/commit/00b119a56769bcdc921502a5ad0591d07ad667e8)]:
|
|
210
|
+
- @learncard/core@7.0.2
|
|
211
|
+
|
|
212
|
+
## 1.1.6
|
|
213
|
+
|
|
214
|
+
### Patch Changes
|
|
215
|
+
|
|
216
|
+
- Updated dependencies [[`e8f1ba3`](https://github.com/learningeconomy/LearnCard/commit/e8f1ba3594bc749caf18959962da4b85c97db4a6)]:
|
|
217
|
+
- @learncard/core@7.0.1
|
|
218
|
+
|
|
219
|
+
## 1.1.5
|
|
220
|
+
|
|
221
|
+
### Patch Changes
|
|
222
|
+
|
|
223
|
+
- Updated dependencies [[`efab28a`](https://github.com/learningeconomy/LearnCard/commit/efab28ae5c9487239537d220316f5a216d64fe58)]:
|
|
224
|
+
- @learncard/types@4.0.1
|
|
225
|
+
- @learncard/core@7.0.0
|
|
226
|
+
|
|
227
|
+
## 1.1.4
|
|
228
|
+
|
|
229
|
+
### Patch Changes
|
|
230
|
+
|
|
231
|
+
- Updated dependencies [[`25349fe`](https://github.com/learningeconomy/LearnCard/commit/25349fe064c751a004092bcab24e1674fadfd5fe), [`25349fe`](https://github.com/learningeconomy/LearnCard/commit/25349fe064c751a004092bcab24e1674fadfd5fe)]:
|
|
232
|
+
- @learncard/types@4.0.0
|
|
233
|
+
- @learncard/core@7.0.0
|
|
234
|
+
|
|
235
|
+
## 1.1.3
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- Updated dependencies [[`27e4ecd`](https://github.com/learningeconomy/LearnCard/commit/27e4ecd6641cf16b97d198434250f55135d09e97), [`27e4ecd`](https://github.com/learningeconomy/LearnCard/commit/27e4ecd6641cf16b97d198434250f55135d09e97)]:
|
|
240
|
+
- @learncard/core@6.4.0
|
|
241
|
+
- @learncard/types@3.1.0
|
|
242
|
+
|
|
243
|
+
## 1.1.2
|
|
244
|
+
|
|
245
|
+
### Patch Changes
|
|
246
|
+
|
|
247
|
+
- Updated dependencies [[`d3e542d`](https://github.com/learningeconomy/LearnCard/commit/d3e542d412eb20644b2d14efa3d728cecdf53adc)]:
|
|
248
|
+
- @learncard/types@3.0.2
|
|
249
|
+
- @learncard/core@6.3.1
|
|
250
|
+
|
|
251
|
+
## 1.1.1
|
|
252
|
+
|
|
253
|
+
### Patch Changes
|
|
254
|
+
|
|
255
|
+
- Updated dependencies [[`e085abd`](https://github.com/learningeconomy/LearnCard/commit/e085abd72d3b4c085cdfc5c623864b40e35cf302)]:
|
|
256
|
+
- @learncard/core@6.3.1
|
|
257
|
+
|
|
258
|
+
## 1.1.0
|
|
259
|
+
|
|
260
|
+
### Minor Changes
|
|
261
|
+
|
|
262
|
+
- [#100](https://github.com/learningeconomy/LearnCard/pull/100) [`f6734b2`](https://github.com/learningeconomy/LearnCard/commit/f6734b2dff7eade58dca5a03b8f46f058773c3b0) Thanks [@TaylorBeeston](https://github.com/TaylorBeeston)! - Add /did and /presentations/issue non-standard routes
|
|
263
|
+
|
|
264
|
+
### Patch Changes
|
|
265
|
+
|
|
266
|
+
- Updated dependencies [[`f6734b2`](https://github.com/learningeconomy/LearnCard/commit/f6734b2dff7eade58dca5a03b8f46f058773c3b0), [`f6734b2`](https://github.com/learningeconomy/LearnCard/commit/f6734b2dff7eade58dca5a03b8f46f058773c3b0)]:
|
|
267
|
+
- @learncard/types@3.0.1
|
|
268
|
+
- @learncard/core@6.3.0
|
|
269
|
+
|
|
270
|
+
## 1.0.18
|
|
271
|
+
|
|
272
|
+
### Patch Changes
|
|
273
|
+
|
|
274
|
+
- Updated dependencies [[`02c7de0`](https://github.com/learningeconomy/LearnCard/commit/02c7de09f88ae78882d59c9f8ac898a7d5bac342), [`02c7de0`](https://github.com/learningeconomy/LearnCard/commit/02c7de09f88ae78882d59c9f8ac898a7d5bac342), [`02c7de0`](https://github.com/learningeconomy/LearnCard/commit/02c7de09f88ae78882d59c9f8ac898a7d5bac342), [`02c7de0`](https://github.com/learningeconomy/LearnCard/commit/02c7de09f88ae78882d59c9f8ac898a7d5bac342)]:
|
|
275
|
+
- @learncard/core@6.2.0
|
|
276
|
+
|
|
277
|
+
## 1.0.17
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- Updated dependencies [[`c1befdc`](https://github.com/learningeconomy/LearnCard/commit/c1befdc8a30d3cc111d938c530493b1a5b87aa00), [`c1befdc`](https://github.com/learningeconomy/LearnCard/commit/c1befdc8a30d3cc111d938c530493b1a5b87aa00)]:
|
|
282
|
+
- @learncard/core@6.1.0
|
|
283
|
+
- @learncard/types@3.0.0
|
|
284
|
+
|
|
285
|
+
## 1.0.16
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- [#82](https://github.com/learningeconomy/LearnCard/pull/82) [`7d6f1a4`](https://github.com/learningeconomy/LearnCard/commit/7d6f1a41656329f99c4acf560da3ec59d9e29104) Thanks [@TaylorBeeston](https://github.com/TaylorBeeston)! - Update ReadMe
|
|
290
|
+
|
|
291
|
+
- Updated dependencies [[`7d6f1a4`](https://github.com/learningeconomy/LearnCard/commit/7d6f1a41656329f99c4acf560da3ec59d9e29104), [`7d6f1a4`](https://github.com/learningeconomy/LearnCard/commit/7d6f1a41656329f99c4acf560da3ec59d9e29104), [`7d6f1a4`](https://github.com/learningeconomy/LearnCard/commit/7d6f1a41656329f99c4acf560da3ec59d9e29104)]:
|
|
292
|
+
- @learncard/core@6.0.0
|
|
293
|
+
- @learncard/types@2.2.1
|
|
294
|
+
|
|
295
|
+
## 1.0.15
|
|
296
|
+
|
|
297
|
+
### Patch Changes
|
|
298
|
+
|
|
299
|
+
- Updated dependencies [[`8a10504`](https://github.com/learningeconomy/LearnCard/commit/8a105049df0d1f4f8ede062ca72fecbf55896562), [`074989f`](https://github.com/learningeconomy/LearnCard/commit/074989f2eb4b7d8cb9b2d6a62451cdcf047d72d5), [`120744b`](https://github.com/learningeconomy/LearnCard/commit/120744bc4cf9d03254049fcf37707763b10ddeab), [`8a10504`](https://github.com/learningeconomy/LearnCard/commit/8a105049df0d1f4f8ede062ca72fecbf55896562), [`8a10504`](https://github.com/learningeconomy/LearnCard/commit/8a105049df0d1f4f8ede062ca72fecbf55896562)]:
|
|
300
|
+
- @learncard/core@5.1.1
|
|
301
|
+
- @learncard/types@2.2.0
|
|
302
|
+
|
|
303
|
+
## 1.0.14
|
|
304
|
+
|
|
305
|
+
### Patch Changes
|
|
306
|
+
|
|
307
|
+
- Updated dependencies [[`9942f25`](https://github.com/WeLibraryOS/LearnCard/commit/9942f25ccc39797bc74ad63cf7d4878b2619b208), [`9942f25`](https://github.com/WeLibraryOS/LearnCard/commit/9942f25ccc39797bc74ad63cf7d4878b2619b208), [`9942f25`](https://github.com/WeLibraryOS/LearnCard/commit/9942f25ccc39797bc74ad63cf7d4878b2619b208)]:
|
|
308
|
+
- @learncard/core@5.1.0
|
|
309
|
+
|
|
310
|
+
## 1.0.13
|
|
311
|
+
|
|
312
|
+
### Patch Changes
|
|
313
|
+
|
|
314
|
+
- Updated dependencies [[`5c5f28b`](https://github.com/WeLibraryOS/LearnCard/commit/5c5f28b1db1a9527e56946522ea94d444a7f1eed), [`fab5557`](https://github.com/WeLibraryOS/LearnCard/commit/fab55579a1e75b438425ea019a1ac63ecb5634fe)]:
|
|
315
|
+
- @learncard/core@5.0.0
|
|
316
|
+
|
|
317
|
+
## 1.0.12
|
|
318
|
+
|
|
319
|
+
### Patch Changes
|
|
320
|
+
|
|
321
|
+
- Updated dependencies [[`100899e`](https://github.com/WeLibraryOS/LearnCard/commit/100899e32db4385758dc1b3559da7b64f705d305)]:
|
|
322
|
+
- @learncard/core@4.1.0
|
|
323
|
+
|
|
324
|
+
## 1.0.11
|
|
325
|
+
|
|
326
|
+
### Patch Changes
|
|
327
|
+
|
|
328
|
+
- Updated dependencies [[`7d40878`](https://github.com/WeLibraryOS/LearnCard/commit/7d40878f7f15d80b03701bdec859f2e7135559dd), [`7d40878`](https://github.com/WeLibraryOS/LearnCard/commit/7d40878f7f15d80b03701bdec859f2e7135559dd)]:
|
|
329
|
+
- @learncard/core@4.0.0
|
|
330
|
+
|
|
331
|
+
## 1.0.10
|
|
332
|
+
|
|
333
|
+
### Patch Changes
|
|
334
|
+
|
|
335
|
+
- Updated dependencies [[`60e0f5b`](https://github.com/WeLibraryOS/LearnCard/commit/60e0f5b6ddaeb124959e87ac61189b2638c0b32b)]:
|
|
336
|
+
- @learncard/core@3.0.0
|
|
337
|
+
|
|
338
|
+
## 1.0.9
|
|
339
|
+
|
|
340
|
+
### Patch Changes
|
|
341
|
+
|
|
342
|
+
- Updated dependencies [[`4c6c11f`](https://github.com/WeLibraryOS/LearnCard/commit/4c6c11f30b81b103017883d7f57bd89e2f7d623e), [`7c09ebf`](https://github.com/WeLibraryOS/LearnCard/commit/7c09ebf0106ec207ac1aa2d7bcf1437d275328d7)]:
|
|
343
|
+
- @learncard/core@2.1.0
|
|
344
|
+
|
|
345
|
+
## 1.0.8
|
|
346
|
+
|
|
347
|
+
### Patch Changes
|
|
348
|
+
|
|
349
|
+
- Updated dependencies [[`7adc30e`](https://github.com/WeLibraryOS/LearnCard/commit/7adc30eba700da4c6886a086d48c40b9820dc05a), [`b07187c`](https://github.com/WeLibraryOS/LearnCard/commit/b07187c4384152ec7f4c5be35a8f2b31a3aff079)]:
|
|
350
|
+
- @learncard/core@2.0.1
|
|
351
|
+
|
|
352
|
+
## 1.0.7
|
|
353
|
+
|
|
354
|
+
### Patch Changes
|
|
355
|
+
|
|
356
|
+
- Updated dependencies [[`a131966`](https://github.com/WeLibraryOS/LearnCard/commit/a13196655378bcb51c35aaad2165b9bccac0526c)]:
|
|
357
|
+
- @learncard/core@2.0.0
|
|
358
|
+
|
|
359
|
+
## 1.0.6
|
|
360
|
+
|
|
361
|
+
### Patch Changes
|
|
362
|
+
|
|
363
|
+
- Updated dependencies [[`4028716`](https://github.com/WeLibraryOS/LearnCard/commit/40287160de54d06f7baff000dee6f59f08f8623a)]:
|
|
364
|
+
- @learncard/core@1.5.1
|
|
365
|
+
|
|
366
|
+
## 1.0.5
|
|
367
|
+
|
|
368
|
+
### Patch Changes
|
|
369
|
+
|
|
370
|
+
- Updated dependencies [[`de4e724`](https://github.com/WeLibraryOS/LearnCard/commit/de4e7244961f0ef91b91e6cbf32a43f29ff58b96)]:
|
|
371
|
+
- @learncard/core@1.5.0
|
|
372
|
+
|
|
373
|
+
## 1.0.4
|
|
374
|
+
|
|
375
|
+
### Patch Changes
|
|
376
|
+
|
|
377
|
+
- Updated dependencies [[`e72b559`](https://github.com/WeLibraryOS/LearnCard/commit/e72b55994495e4bc6156b08abdd166c77fae67b7)]:
|
|
378
|
+
- @learncard/core@1.4.0
|
|
379
|
+
|
|
380
|
+
## 1.0.3
|
|
381
|
+
|
|
382
|
+
### Patch Changes
|
|
383
|
+
|
|
384
|
+
- Updated dependencies [[`da81189`](https://github.com/WeLibraryOS/LearnCard/commit/da811895ae672f4287fbcd2026bf1aac5a6447e1)]:
|
|
385
|
+
- @learncard/core@1.3.1
|
|
386
|
+
|
|
387
|
+
## 1.0.2
|
|
388
|
+
|
|
389
|
+
### Patch Changes
|
|
390
|
+
|
|
391
|
+
- Updated dependencies []:
|
|
392
|
+
- @learncard/core@1.3.0
|
|
393
|
+
|
|
394
|
+
## 1.0.1
|
|
395
|
+
|
|
396
|
+
### Patch Changes
|
|
397
|
+
|
|
398
|
+
- Updated dependencies
|
|
399
|
+
- @learncard/core@1.2.0
|
|
400
|
+
- @learncard/types@2.1.2
|
package/LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Learning Economy Foundation <sdk@learningeconomy.io>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
Footer
|
|
23
|
+
© 2022 GitHub, Inc.
|
|
24
|
+
Footer navigation
|
|
25
|
+
Terms
|
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[<img src="https://user-images.githubusercontent.com/2185016/190510561-294db809-09fd-4771-9749-6c0e0f4144fd.png" width="215"/>](https://learncard.com)
|
|
2
|
+
|
|
3
|
+
# @learncard/http-bridge
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@learncard/http-bridge)
|
|
6
|
+
[](https://www.npmjs.com/package/@learncard/http-bridge)
|
|
7
|
+
[](https://www.npmjs.com/package/@learncard/http-bridge)
|
|
8
|
+
|
|
9
|
+
**LearnCard Bridge - HTTP** is a suite of tools with a simple CLI for deploying a serverless execution environment for LearnCard Core exposed over an HTTP API.
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
All LearnCard documentation can be found at:
|
|
13
|
+
https://docs.learncard.com
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
- Clone this repo
|
|
18
|
+
- Set up AWS CLI
|
|
19
|
+
- Add a .env file exporting a wallet seed (e.g. `WALLET_SEED=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`)
|
|
20
|
+
- Run `pnpm serverless-deploy`
|
|
21
|
+
|
|
22
|
+
## Contributing
|
|
23
|
+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
|
24
|
+
|
|
25
|
+
Please make sure to update tests as appropriate.
|
|
26
|
+
|
|
27
|
+
## Who is Learning Economy Foundation?
|
|
28
|
+
|
|
29
|
+
**[Learning Economy Foundation (LEF)](https://www.learningeconomy.io)** is a 501(c)(3) non-profit organization leveraging global standards and web3 protocols to bring quality skills and equal opportunity to every human on earth, and address the persistent inequities that exist around the globe in education and employment. We help you build the future of education and work with:
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
MIT © [Learning Economy Foundation](https://github.com/Learning-Economy-Foundation)
|
package/cli/App.tsx
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { writeFile } from 'node:fs/promises';
|
|
3
|
+
|
|
4
|
+
import React, { useState } from 'react';
|
|
5
|
+
import { Box, useApp } from 'ink';
|
|
6
|
+
import { useImmer } from 'use-immer';
|
|
7
|
+
|
|
8
|
+
import FullScreenBox from './FullScreenBox';
|
|
9
|
+
import Banner from './Banner';
|
|
10
|
+
import Form from './Form';
|
|
11
|
+
import Cloning from './Cloning';
|
|
12
|
+
import Info from './Info';
|
|
13
|
+
|
|
14
|
+
import { generateRandomSeed } from './random';
|
|
15
|
+
|
|
16
|
+
import { FormState } from './types';
|
|
17
|
+
|
|
18
|
+
type Step = 'form' | 'cloning' | 'info';
|
|
19
|
+
|
|
20
|
+
type AppProps = {
|
|
21
|
+
name?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const randomSeed = generateRandomSeed();
|
|
25
|
+
|
|
26
|
+
const App: React.FC<AppProps> = ({ name = 'LearnCardHTTPBridge' }) => {
|
|
27
|
+
const app = useApp();
|
|
28
|
+
|
|
29
|
+
const [step, setStep] = useState<Step>('form');
|
|
30
|
+
|
|
31
|
+
const [state, setState] = useImmer<FormState>({
|
|
32
|
+
name,
|
|
33
|
+
seed: randomSeed,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const postClone = async () => {
|
|
37
|
+
await writeFile(
|
|
38
|
+
path.join(process.cwd(), `${state.name}/packages/learn-card-bridge-http`, '.env'),
|
|
39
|
+
`WALLET_SEED=${state.seed}`
|
|
40
|
+
);
|
|
41
|
+
setStep('info');
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const COMPONENTS: Record<Step, React.ReactNode> = {
|
|
45
|
+
form: (
|
|
46
|
+
<Form
|
|
47
|
+
state={state}
|
|
48
|
+
setState={setState}
|
|
49
|
+
onSubmit={() => setStep('cloning')}
|
|
50
|
+
onCancel={() => app.exit()}
|
|
51
|
+
/>
|
|
52
|
+
),
|
|
53
|
+
cloning: <Cloning path={state.name} onFinished={postClone} />,
|
|
54
|
+
info: <Info path={state.name} />,
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<FullScreenBox
|
|
59
|
+
flexDirection="column"
|
|
60
|
+
justifyContent="center"
|
|
61
|
+
alignItems="center"
|
|
62
|
+
borderStyle="double"
|
|
63
|
+
borderColor="green"
|
|
64
|
+
>
|
|
65
|
+
<Box flexDirection="column" padding={2} height="100%">
|
|
66
|
+
<Banner />
|
|
67
|
+
|
|
68
|
+
{COMPONENTS[step]}
|
|
69
|
+
</Box>
|
|
70
|
+
</FullScreenBox>
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export default App;
|
package/cli/Banner.tsx
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text, Box } from 'ink';
|
|
3
|
+
import Gradient from 'ink-gradient';
|
|
4
|
+
import figlet from 'figlet';
|
|
5
|
+
|
|
6
|
+
const banner = figlet.textSync('Learn Card', 'Big Money-ne');
|
|
7
|
+
|
|
8
|
+
const Banner: React.FC = () => {
|
|
9
|
+
return (
|
|
10
|
+
<Box marginBottom={4}>
|
|
11
|
+
<Gradient colors={['cyan', 'green']}>
|
|
12
|
+
<Text>{banner}</Text>
|
|
13
|
+
</Gradient>
|
|
14
|
+
</Box>
|
|
15
|
+
);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default Banner;
|
package/cli/Button.tsx
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { Text, Box, useFocus, useFocusManager, useInput, DOMElement } from 'ink';
|
|
3
|
+
|
|
4
|
+
type RawButtonProps = ComponentPropsWithRef<typeof Box> & {
|
|
5
|
+
autoFocus?: boolean;
|
|
6
|
+
focusId?: string;
|
|
7
|
+
focusedProps?: Partial<ComponentPropsWithRef<typeof Box>>;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const RawButton = React.forwardRef<DOMElement, RawButtonProps>(function RawButton(
|
|
12
|
+
{ children, autoFocus = false, focusId, focusedProps = {}, onClick, ...props },
|
|
13
|
+
ref
|
|
14
|
+
) {
|
|
15
|
+
const { focusPrevious, focusNext } = useFocusManager();
|
|
16
|
+
const { isFocused } = useFocus({ autoFocus, id: focusId });
|
|
17
|
+
useInput((input, key) => {
|
|
18
|
+
if (isFocused) {
|
|
19
|
+
if (key.leftArrow || key.upArrow || input === 'h' || input === 'k') focusPrevious();
|
|
20
|
+
if (key.rightArrow || key.downArrow || input === 'l' || input === 'j') focusNext();
|
|
21
|
+
if (key.return || input === ' ') onClick();
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
27
|
+
<Box {...props} ref={ref} {...(isFocused ? focusedProps : {})}>
|
|
28
|
+
{children}
|
|
29
|
+
</Box>
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
type ButtonProps = ComponentPropsWithRef<typeof Box> & {
|
|
34
|
+
autoFocus?: boolean;
|
|
35
|
+
focusId?: string;
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const Button = React.forwardRef<DOMElement, ButtonProps>(function Button(
|
|
40
|
+
{ children, ...props },
|
|
41
|
+
ref
|
|
42
|
+
) {
|
|
43
|
+
return (
|
|
44
|
+
<RawButton
|
|
45
|
+
height={3}
|
|
46
|
+
width={15}
|
|
47
|
+
borderStyle="round"
|
|
48
|
+
justifyContent="center"
|
|
49
|
+
alignItems="center"
|
|
50
|
+
focusedProps={{
|
|
51
|
+
borderColor: 'cyan',
|
|
52
|
+
}}
|
|
53
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
54
|
+
{...props}
|
|
55
|
+
ref={ref}
|
|
56
|
+
>
|
|
57
|
+
<Text>{children}</Text>
|
|
58
|
+
</RawButton>
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export default Button;
|
package/cli/Cloning.tsx
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import { Text, Box, useApp } from 'ink';
|
|
3
|
+
import simpleGit from 'simple-git';
|
|
4
|
+
import Gradient from 'ink-gradient';
|
|
5
|
+
import Spinner from 'ink-spinner';
|
|
6
|
+
|
|
7
|
+
const git = simpleGit();
|
|
8
|
+
|
|
9
|
+
type CloningProps = {
|
|
10
|
+
path: string;
|
|
11
|
+
onFinished: () => void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const Cloning: React.FC<CloningProps> = ({ path, onFinished }) => {
|
|
15
|
+
const app = useApp();
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
git.clone('https://github.com/TaylorBeeston/LCHTTPTest', path, ['-q'])
|
|
19
|
+
.then(onFinished)
|
|
20
|
+
.catch(error => {
|
|
21
|
+
app.exit();
|
|
22
|
+
console.error(error);
|
|
23
|
+
});
|
|
24
|
+
}, []);
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<Box
|
|
28
|
+
flexGrow={1}
|
|
29
|
+
flexDirection="column"
|
|
30
|
+
justifyContent="center"
|
|
31
|
+
alignItems="center"
|
|
32
|
+
padding={2}
|
|
33
|
+
borderStyle="round"
|
|
34
|
+
borderColor="yellow"
|
|
35
|
+
>
|
|
36
|
+
<Gradient name="rainbow">
|
|
37
|
+
<Text>
|
|
38
|
+
<Spinner type="material" />
|
|
39
|
+
</Text>
|
|
40
|
+
</Gradient>
|
|
41
|
+
<Text>Cloning into {path}...</Text>
|
|
42
|
+
<Gradient name="rainbow">
|
|
43
|
+
<Text>
|
|
44
|
+
<Spinner type="material" />
|
|
45
|
+
</Text>
|
|
46
|
+
</Gradient>
|
|
47
|
+
</Box>
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default Cloning;
|