@learnpack/learnpack 5.0.280 → 5.0.282
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/lib/commands/serve.js +6 -3
- package/lib/models/creator.d.ts +1 -0
- package/lib/utils/rigoActions.js +2 -2
- package/lib/utils/templates/epub/epub.css +133 -0
- package/lib/utils/templates/gitignore.txt +20 -0
- package/lib/utils/templates/incremental/.github/workflows/learnpack-audit.yml +29 -0
- package/lib/utils/templates/incremental/.learn/assets/.gitkeep +0 -0
- package/lib/utils/templates/incremental/.learn/exercises/01-hello-world/README.es.md +24 -0
- package/lib/utils/templates/incremental/.learn/exercises/01-hello-world/README.md +24 -0
- package/lib/utils/templates/incremental/.vscode/schema.json +121 -0
- package/lib/utils/templates/incremental/.vscode/settings.json +14 -0
- package/lib/utils/templates/incremental/README.ejs +5 -0
- package/lib/utils/templates/incremental/README.es.ejs +5 -0
- package/lib/utils/templates/isolated/.github/workflows/learnpack-audit.yml +29 -0
- package/lib/utils/templates/isolated/.learn/assets/.gitkeep +0 -0
- package/lib/utils/templates/isolated/.vscode/schema.json +122 -0
- package/lib/utils/templates/isolated/.vscode/settings.json +14 -0
- package/lib/utils/templates/isolated/README.ejs +5 -0
- package/lib/utils/templates/isolated/README.es.ejs +5 -0
- package/lib/utils/templates/isolated/exercises/01-hello-world/README.es.md +26 -0
- package/lib/utils/templates/isolated/exercises/01-hello-world/README.md +26 -0
- package/lib/utils/templates/no-grading/README.ejs +5 -0
- package/lib/utils/templates/no-grading/README.es.ejs +5 -0
- package/lib/utils/templates/scorm/adlcp_rootv1p2.xsd +110 -0
- package/lib/utils/templates/scorm/config/api.js +175 -0
- package/lib/utils/templates/scorm/config/index.html +210 -0
- package/lib/utils/templates/scorm/ims_xml.xsd +1 -0
- package/lib/utils/templates/scorm/imscp_rootv1p1p2.xsd +345 -0
- package/lib/utils/templates/scorm/imsmanifest.xml +38 -0
- package/lib/utils/templates/scorm/imsmd_rootv1p2p1.xsd +573 -0
- package/package.json +4 -3
- package/src/commands/serve.ts +7 -3
- package/src/models/creator.ts +48 -47
- package/src/ui/_app/app.css +1 -1
- package/src/ui/_app/app.js +262 -262
- package/src/ui/app.tar.gz +0 -0
- package/src/utils/rigoActions.ts +503 -500
@@ -0,0 +1,573 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!-- edited by Thomas Wason -->
|
3
|
+
<xsd:schema targetNamespace="http://www.imsglobal.org/xsd/imsmd_rootv1p2p1"
|
4
|
+
xmlns:xml="http://www.w3.org/XML/1998/namespace"
|
5
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
6
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
7
|
+
xmlns="http://www.imsglobal.org/xsd/imsmd_rootv1p2p1"
|
8
|
+
elementFormDefault="qualified"
|
9
|
+
version="1.2:1.1 IMS:MD1.2">
|
10
|
+
|
11
|
+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="ims_xml.xsd"/>
|
12
|
+
|
13
|
+
<!-- ******************** -->
|
14
|
+
<!-- ** Change History ** -->
|
15
|
+
<!-- ******************** -->
|
16
|
+
<xsd:annotation>
|
17
|
+
<xsd:documentation>2001-04-26 T.D.Wason. IMS meta-data 1.2 XML-Schema. </xsd:documentation>
|
18
|
+
<xsd:documentation>2001-06-07 S.E.Thropp. Changed the multiplicity on all elements to match the </xsd:documentation>
|
19
|
+
<xsd:documentation>Final 1.2 Binding Specification. </xsd:documentation>
|
20
|
+
<xsd:documentation>Changed all elements that use the langstringType to a multiplicy of 1 or more </xsd:documentation>
|
21
|
+
<xsd:documentation>Changed centity in the contribute element to have a multiplicity of 0 or more. </xsd:documentation>
|
22
|
+
<xsd:documentation>Changed the requirement element to have a multiplicity of 0 or more. </xsd:documentation>
|
23
|
+
<xsd:documentation> 2001-07-25 Schawn Thropp. Updates to bring the XSD up to speed with the W3C </xsd:documentation>
|
24
|
+
<xsd:documentation> XML Schema Recommendation. The following changes were made: Change the </xsd:documentation>
|
25
|
+
<xsd:documentation> namespace to reference the 5/2/2001 W3C XML Schema Recommendation,the base </xsd:documentation>
|
26
|
+
<xsd:documentation> type for the durtimeType, simpleType, was changed from timeDuration to duration. </xsd:documentation>
|
27
|
+
<xsd:documentation> Any attribute declarations that have use="default" had to change to use="optional" </xsd:documentation>
|
28
|
+
<xsd:documentation> - attr.type. Any attribute declarations that have value ="somevalue" had to change </xsd:documentation>
|
29
|
+
<xsd:documentation> to default = "somevalue" - attr.type (URI) </xsd:documentation>
|
30
|
+
<xsd:documentation> 2001-09-04 Schawn Thropp </xsd:documentation>
|
31
|
+
<xsd:documentation> Changed the targetNamespace and namespace of schema to reflect version change </xsd:documentation>
|
32
|
+
</xsd:annotation>
|
33
|
+
|
34
|
+
<!-- *************************** -->
|
35
|
+
<!-- ** Attribute Declaration ** -->
|
36
|
+
<!-- *************************** -->
|
37
|
+
|
38
|
+
<xsd:attributeGroup name="attr.type">
|
39
|
+
<xsd:attribute name="type" use="optional" default="URI">
|
40
|
+
<xsd:simpleType>
|
41
|
+
<xsd:restriction base="xsd:string">
|
42
|
+
<xsd:enumeration value="URI"/>
|
43
|
+
<xsd:enumeration value="TEXT"/>
|
44
|
+
</xsd:restriction>
|
45
|
+
</xsd:simpleType>
|
46
|
+
</xsd:attribute>
|
47
|
+
</xsd:attributeGroup>
|
48
|
+
|
49
|
+
<xsd:group name="grp.any">
|
50
|
+
<xsd:annotation>
|
51
|
+
<xsd:documentation>Any namespaced element from any namespace may be used for an "any" element. The namespace for the imported element must be defined in the instance, and the schema must be imported. </xsd:documentation>
|
52
|
+
</xsd:annotation>
|
53
|
+
<xsd:sequence>
|
54
|
+
<xsd:any namespace="##any" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
|
55
|
+
</xsd:sequence>
|
56
|
+
</xsd:group>
|
57
|
+
|
58
|
+
<!-- ************************* -->
|
59
|
+
<!-- ** Element Declaration ** -->
|
60
|
+
<!-- ************************* -->
|
61
|
+
|
62
|
+
<xsd:element name="aggregationlevel" type="aggregationlevelType"/>
|
63
|
+
<xsd:element name="annotation" type="annotationType"/>
|
64
|
+
<xsd:element name="catalogentry" type="catalogentryType"/>
|
65
|
+
<xsd:element name="catalog" type="catalogType"/>
|
66
|
+
<xsd:element name="centity" type="centityType"/>
|
67
|
+
<xsd:element name="classification" type="classificationType"/>
|
68
|
+
<xsd:element name="context" type="contextType"/>
|
69
|
+
<xsd:element name="contribute" type="contributeType"/>
|
70
|
+
<xsd:element name="copyrightandotherrestrictions" type="copyrightandotherrestrictionsType"/>
|
71
|
+
<xsd:element name="cost" type="costType"/>
|
72
|
+
<xsd:element name="coverage" type="coverageType"/>
|
73
|
+
<xsd:element name="date" type="dateType"/>
|
74
|
+
<xsd:element name="datetime" type="datetimeType"/>
|
75
|
+
<xsd:element name="description" type="descriptionType"/>
|
76
|
+
<xsd:element name="difficulty" type="difficultyType"/>
|
77
|
+
<xsd:element name="educational" type="educationalType"/>
|
78
|
+
<xsd:element name="entry" type="entryType"/>
|
79
|
+
<xsd:element name="format" type="formatType"/>
|
80
|
+
<xsd:element name="general" type="generalType"/>
|
81
|
+
<xsd:element name="identifier" type="xsd:string"/>
|
82
|
+
<xsd:element name="intendedenduserrole" type="intendedenduserroleType"/>
|
83
|
+
<xsd:element name="interactivitylevel" type="interactivitylevelType"/>
|
84
|
+
<xsd:element name="interactivitytype" type="interactivitytypeType"/>
|
85
|
+
<xsd:element name="keyword" type="keywordType"/>
|
86
|
+
<xsd:element name="kind" type="kindType"/>
|
87
|
+
<xsd:element name="langstring" type="langstringType"/>
|
88
|
+
<xsd:element name="language" type="xsd:string"/>
|
89
|
+
<xsd:element name="learningresourcetype" type="learningresourcetypeType"/>
|
90
|
+
<xsd:element name="lifecycle" type="lifecycleType"/>
|
91
|
+
<xsd:element name="location" type="locationType"/>
|
92
|
+
<xsd:element name="lom" type="lomType"/>
|
93
|
+
<xsd:element name="maximumversion" type="minimumversionType"/>
|
94
|
+
<xsd:element name="metadatascheme" type="metadataschemeType"/>
|
95
|
+
<xsd:element name="metametadata" type="metametadataType"/>
|
96
|
+
<xsd:element name="minimumversion" type="maximumversionType"/>
|
97
|
+
<xsd:element name="name" type="nameType"/>
|
98
|
+
<xsd:element name="purpose" type="purposeType"/>
|
99
|
+
<xsd:element name="relation" type="relationType"/>
|
100
|
+
<xsd:element name="requirement" type="requirementType"/>
|
101
|
+
<xsd:element name="resource" type="resourceType"/>
|
102
|
+
<xsd:element name="rights" type="rightsType"/>
|
103
|
+
<xsd:element name="role" type="roleType"/>
|
104
|
+
<xsd:element name="semanticdensity" type="semanticdensityType"/>
|
105
|
+
<xsd:element name="size" type="sizeType"/>
|
106
|
+
<xsd:element name="source" type="sourceType"/>
|
107
|
+
<xsd:element name="status" type="statusType"/>
|
108
|
+
<xsd:element name="structure" type="structureType"/>
|
109
|
+
<xsd:element name="taxon" type="taxonType"/>
|
110
|
+
<xsd:element name="taxonpath" type="taxonpathType"/>
|
111
|
+
<xsd:element name="technical" type="technicalType"/>
|
112
|
+
<xsd:element name="title" type="titleType"/>
|
113
|
+
<xsd:element name="type" type="typeType"/>
|
114
|
+
<xsd:element name="typicalagerange" type="typicalagerangeType"/>
|
115
|
+
<xsd:element name="typicallearningtime" type="typicallearningtimeType"/>
|
116
|
+
<xsd:element name="value" type="valueType"/>
|
117
|
+
<xsd:element name="person" type="personType"/>
|
118
|
+
<xsd:element name="vcard" type="xsd:string"/>
|
119
|
+
<xsd:element name="version" type="versionType"/>
|
120
|
+
<xsd:element name="installationremarks" type="installationremarksType"/>
|
121
|
+
<xsd:element name="otherplatformrequirements" type="otherplatformrequirementsType"/>
|
122
|
+
<xsd:element name="duration" type="durationType"/>
|
123
|
+
<xsd:element name="id" type="idType"/>
|
124
|
+
|
125
|
+
<!-- ******************* -->
|
126
|
+
<!-- ** Complex Types ** -->
|
127
|
+
<!-- ******************* -->
|
128
|
+
|
129
|
+
<xsd:complexType name="aggregationlevelType">
|
130
|
+
<xsd:sequence>
|
131
|
+
<xsd:element ref="source"/>
|
132
|
+
<xsd:element ref="value"/>
|
133
|
+
</xsd:sequence>
|
134
|
+
</xsd:complexType>
|
135
|
+
|
136
|
+
<xsd:complexType name="annotationType" mixed="true">
|
137
|
+
<xsd:sequence>
|
138
|
+
<xsd:element ref="person" minOccurs="0"/>
|
139
|
+
<xsd:element ref="date" minOccurs="0"/>
|
140
|
+
<xsd:element ref="description" minOccurs="0"/>
|
141
|
+
<xsd:group ref="grp.any"/>
|
142
|
+
</xsd:sequence>
|
143
|
+
</xsd:complexType>
|
144
|
+
|
145
|
+
<xsd:complexType name="catalogentryType" mixed="true">
|
146
|
+
<xsd:sequence>
|
147
|
+
<xsd:element ref="catalog"/>
|
148
|
+
<xsd:element ref="entry"/>
|
149
|
+
<xsd:group ref="grp.any"/>
|
150
|
+
</xsd:sequence>
|
151
|
+
</xsd:complexType>
|
152
|
+
|
153
|
+
<xsd:complexType name="centityType">
|
154
|
+
<xsd:sequence>
|
155
|
+
<xsd:element ref="vcard"/>
|
156
|
+
</xsd:sequence>
|
157
|
+
</xsd:complexType>
|
158
|
+
|
159
|
+
<xsd:complexType name="classificationType" mixed="true">
|
160
|
+
<xsd:sequence>
|
161
|
+
<xsd:element ref="purpose" minOccurs="0"/>
|
162
|
+
<xsd:element ref="taxonpath" minOccurs="0" maxOccurs="unbounded"/>
|
163
|
+
<xsd:element ref="description" minOccurs="0"/>
|
164
|
+
<xsd:element ref="keyword" minOccurs="0" maxOccurs="unbounded"/>
|
165
|
+
<xsd:group ref="grp.any"/>
|
166
|
+
</xsd:sequence>
|
167
|
+
</xsd:complexType>
|
168
|
+
|
169
|
+
<xsd:complexType name="contextType">
|
170
|
+
<xsd:sequence>
|
171
|
+
<xsd:element ref="source"/>
|
172
|
+
<xsd:element ref="value"/>
|
173
|
+
</xsd:sequence>
|
174
|
+
</xsd:complexType>
|
175
|
+
|
176
|
+
<xsd:complexType name="contributeType" mixed="true">
|
177
|
+
<xsd:sequence>
|
178
|
+
<xsd:element ref="role"/>
|
179
|
+
<xsd:element ref="centity" minOccurs="0" maxOccurs="unbounded"/>
|
180
|
+
<xsd:element ref="date" minOccurs="0"/>
|
181
|
+
<xsd:group ref="grp.any"/>
|
182
|
+
</xsd:sequence>
|
183
|
+
</xsd:complexType>
|
184
|
+
|
185
|
+
<xsd:complexType name="copyrightandotherrestrictionsType">
|
186
|
+
<xsd:sequence>
|
187
|
+
<xsd:element ref="source"/>
|
188
|
+
<xsd:element ref="value"/>
|
189
|
+
</xsd:sequence>
|
190
|
+
</xsd:complexType>
|
191
|
+
|
192
|
+
<xsd:complexType name="costType">
|
193
|
+
<xsd:sequence>
|
194
|
+
<xsd:element ref="source"/>
|
195
|
+
<xsd:element ref="value"/>
|
196
|
+
</xsd:sequence>
|
197
|
+
</xsd:complexType>
|
198
|
+
|
199
|
+
<xsd:complexType name="coverageType">
|
200
|
+
<xsd:sequence>
|
201
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
202
|
+
</xsd:sequence>
|
203
|
+
</xsd:complexType>
|
204
|
+
|
205
|
+
<xsd:complexType name="dateType">
|
206
|
+
<xsd:sequence>
|
207
|
+
<xsd:element ref="datetime" minOccurs="0"/>
|
208
|
+
<xsd:element ref="description" minOccurs="0"/>
|
209
|
+
</xsd:sequence>
|
210
|
+
</xsd:complexType>
|
211
|
+
|
212
|
+
<xsd:complexType name="descriptionType">
|
213
|
+
<xsd:sequence>
|
214
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
215
|
+
</xsd:sequence>
|
216
|
+
</xsd:complexType>
|
217
|
+
|
218
|
+
<xsd:complexType name="difficultyType">
|
219
|
+
<xsd:sequence>
|
220
|
+
<xsd:element ref="source"/>
|
221
|
+
<xsd:element ref="value"/>
|
222
|
+
</xsd:sequence>
|
223
|
+
</xsd:complexType>
|
224
|
+
|
225
|
+
<xsd:complexType name="durationType">
|
226
|
+
<xsd:sequence>
|
227
|
+
<xsd:element ref="datetime" minOccurs="0"/>
|
228
|
+
<xsd:element ref="description" minOccurs="0"/>
|
229
|
+
</xsd:sequence>
|
230
|
+
</xsd:complexType>
|
231
|
+
|
232
|
+
<xsd:complexType name="educationalType" mixed="true">
|
233
|
+
<xsd:sequence>
|
234
|
+
<xsd:element ref="interactivitytype" minOccurs="0"/>
|
235
|
+
<xsd:element ref="learningresourcetype" minOccurs="0" maxOccurs="unbounded"/>
|
236
|
+
<xsd:element ref="interactivitylevel" minOccurs="0"/>
|
237
|
+
<xsd:element ref="semanticdensity" minOccurs="0"/>
|
238
|
+
<xsd:element ref="intendedenduserrole" minOccurs="0" maxOccurs="unbounded"/>
|
239
|
+
<xsd:element ref="context" minOccurs="0" maxOccurs="unbounded"/>
|
240
|
+
<xsd:element ref="typicalagerange" minOccurs="0" maxOccurs="unbounded"/>
|
241
|
+
<xsd:element ref="difficulty" minOccurs="0"/>
|
242
|
+
<xsd:element ref="typicallearningtime" minOccurs="0"/>
|
243
|
+
<xsd:element ref="description" minOccurs="0"/>
|
244
|
+
<xsd:element ref="language" minOccurs="0" maxOccurs="unbounded"/>
|
245
|
+
<xsd:group ref="grp.any"/>
|
246
|
+
</xsd:sequence>
|
247
|
+
</xsd:complexType>
|
248
|
+
|
249
|
+
<xsd:complexType name="entryType">
|
250
|
+
<xsd:sequence>
|
251
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
252
|
+
</xsd:sequence>
|
253
|
+
</xsd:complexType>
|
254
|
+
|
255
|
+
<xsd:complexType name="generalType" mixed="true">
|
256
|
+
<xsd:sequence>
|
257
|
+
<xsd:element ref="identifier" minOccurs="0"/>
|
258
|
+
<xsd:element ref="title" minOccurs="0"/>
|
259
|
+
<xsd:element ref="catalogentry" minOccurs="0" maxOccurs="unbounded"/>
|
260
|
+
<xsd:element ref="language" minOccurs="0" maxOccurs="unbounded"/>
|
261
|
+
<xsd:element ref="description" minOccurs="0" maxOccurs="unbounded"/>
|
262
|
+
<xsd:element ref="keyword" minOccurs="0" maxOccurs="unbounded"/>
|
263
|
+
<xsd:element ref="coverage" minOccurs="0" maxOccurs="unbounded"/>
|
264
|
+
<xsd:element ref="structure" minOccurs="0"/>
|
265
|
+
<xsd:element ref="aggregationlevel" minOccurs="0"/>
|
266
|
+
<xsd:group ref="grp.any"/>
|
267
|
+
</xsd:sequence>
|
268
|
+
</xsd:complexType>
|
269
|
+
|
270
|
+
<xsd:complexType name="installationremarksType">
|
271
|
+
<xsd:sequence>
|
272
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
273
|
+
</xsd:sequence>
|
274
|
+
</xsd:complexType>
|
275
|
+
|
276
|
+
<xsd:complexType name="intendedenduserroleType">
|
277
|
+
<xsd:sequence>
|
278
|
+
<xsd:element ref="source"/>
|
279
|
+
<xsd:element ref="value"/>
|
280
|
+
</xsd:sequence>
|
281
|
+
</xsd:complexType>
|
282
|
+
|
283
|
+
<xsd:complexType name="interactivitylevelType">
|
284
|
+
<xsd:sequence>
|
285
|
+
<xsd:element ref="source"/>
|
286
|
+
<xsd:element ref="value"/>
|
287
|
+
</xsd:sequence>
|
288
|
+
</xsd:complexType>
|
289
|
+
|
290
|
+
<xsd:complexType name="interactivitytypeType">
|
291
|
+
<xsd:sequence>
|
292
|
+
<xsd:element ref="source"/>
|
293
|
+
<xsd:element ref="value"/>
|
294
|
+
</xsd:sequence>
|
295
|
+
</xsd:complexType>
|
296
|
+
|
297
|
+
<xsd:complexType name="keywordType">
|
298
|
+
<xsd:sequence>
|
299
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
300
|
+
</xsd:sequence>
|
301
|
+
</xsd:complexType>
|
302
|
+
|
303
|
+
<xsd:complexType name="kindType">
|
304
|
+
<xsd:sequence>
|
305
|
+
<xsd:element ref="source"/>
|
306
|
+
<xsd:element ref="value"/>
|
307
|
+
</xsd:sequence>
|
308
|
+
</xsd:complexType>
|
309
|
+
|
310
|
+
<xsd:complexType name="langstringType">
|
311
|
+
<xsd:simpleContent>
|
312
|
+
<xsd:extension base="xsd:string">
|
313
|
+
<xsd:attribute ref="xml:lang"/>
|
314
|
+
</xsd:extension>
|
315
|
+
</xsd:simpleContent>
|
316
|
+
</xsd:complexType>
|
317
|
+
|
318
|
+
<xsd:complexType name="learningresourcetypeType">
|
319
|
+
<xsd:sequence>
|
320
|
+
<xsd:element ref="source"/>
|
321
|
+
<xsd:element ref="value"/>
|
322
|
+
</xsd:sequence>
|
323
|
+
</xsd:complexType>
|
324
|
+
|
325
|
+
<xsd:complexType name="lifecycleType" mixed="true">
|
326
|
+
<xsd:sequence>
|
327
|
+
<xsd:element ref="version" minOccurs="0"/>
|
328
|
+
<xsd:element ref="status" minOccurs="0"/>
|
329
|
+
<xsd:element ref="contribute" minOccurs="0" maxOccurs="unbounded"/>
|
330
|
+
<xsd:group ref="grp.any"/>
|
331
|
+
</xsd:sequence>
|
332
|
+
</xsd:complexType>
|
333
|
+
|
334
|
+
<xsd:complexType name="locationType">
|
335
|
+
<xsd:simpleContent>
|
336
|
+
<xsd:extension base="xsd:string">
|
337
|
+
<xsd:attributeGroup ref="attr.type"/>
|
338
|
+
</xsd:extension>
|
339
|
+
</xsd:simpleContent>
|
340
|
+
</xsd:complexType>
|
341
|
+
|
342
|
+
<xsd:complexType name="lomType">
|
343
|
+
<xsd:sequence>
|
344
|
+
<xsd:element ref="general" minOccurs="0"/>
|
345
|
+
<xsd:element ref="lifecycle" minOccurs="0"/>
|
346
|
+
<xsd:element ref="metametadata" minOccurs="0"/>
|
347
|
+
<xsd:element ref="technical" minOccurs="0"/>
|
348
|
+
<xsd:element ref="educational" minOccurs="0"/>
|
349
|
+
<xsd:element ref="rights" minOccurs="0"/>
|
350
|
+
<xsd:element ref="relation" minOccurs="0" maxOccurs="unbounded"/>
|
351
|
+
<xsd:element ref="annotation" minOccurs="0" maxOccurs="unbounded"/>
|
352
|
+
<xsd:element ref="classification" minOccurs="0" maxOccurs="unbounded"/>
|
353
|
+
</xsd:sequence>
|
354
|
+
</xsd:complexType>
|
355
|
+
|
356
|
+
<xsd:complexType name="metametadataType" mixed="true">
|
357
|
+
<xsd:sequence>
|
358
|
+
<xsd:element ref="identifier" minOccurs="0"/>
|
359
|
+
<xsd:element ref="catalogentry" minOccurs="0" maxOccurs="unbounded"/>
|
360
|
+
<xsd:element ref="contribute" minOccurs="0" maxOccurs="unbounded"/>
|
361
|
+
<xsd:element ref="metadatascheme" minOccurs="0" maxOccurs="unbounded"/>
|
362
|
+
<xsd:element ref="language" minOccurs="0"/>
|
363
|
+
<xsd:group ref="grp.any"/>
|
364
|
+
</xsd:sequence>
|
365
|
+
</xsd:complexType>
|
366
|
+
|
367
|
+
<xsd:complexType name="nameType">
|
368
|
+
<xsd:sequence>
|
369
|
+
<xsd:element ref="source"/>
|
370
|
+
<xsd:element ref="value"/>
|
371
|
+
</xsd:sequence>
|
372
|
+
</xsd:complexType>
|
373
|
+
|
374
|
+
<xsd:complexType name="otherplatformrequirementsType">
|
375
|
+
<xsd:sequence>
|
376
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
377
|
+
</xsd:sequence>
|
378
|
+
</xsd:complexType>
|
379
|
+
|
380
|
+
<xsd:complexType name="personType">
|
381
|
+
<xsd:sequence>
|
382
|
+
<xsd:element ref="vcard"/>
|
383
|
+
</xsd:sequence>
|
384
|
+
</xsd:complexType>
|
385
|
+
|
386
|
+
<xsd:complexType name="purposeType">
|
387
|
+
<xsd:sequence>
|
388
|
+
<xsd:element ref="source"/>
|
389
|
+
<xsd:element ref="value"/>
|
390
|
+
</xsd:sequence>
|
391
|
+
</xsd:complexType>
|
392
|
+
|
393
|
+
<xsd:complexType name="relationType" mixed="true">
|
394
|
+
<xsd:sequence>
|
395
|
+
<xsd:element ref="kind" minOccurs="0"/>
|
396
|
+
<xsd:element ref="resource" minOccurs="0"/>
|
397
|
+
<xsd:group ref="grp.any"/>
|
398
|
+
</xsd:sequence>
|
399
|
+
</xsd:complexType>
|
400
|
+
|
401
|
+
<xsd:complexType name="requirementType" mixed="true">
|
402
|
+
<xsd:sequence>
|
403
|
+
<xsd:element ref="type" minOccurs="0"/>
|
404
|
+
<xsd:element ref="name" minOccurs="0"/>
|
405
|
+
<xsd:element ref="minimumversion" minOccurs="0"/>
|
406
|
+
<xsd:element ref="maximumversion" minOccurs="0"/>
|
407
|
+
<xsd:group ref="grp.any"/>
|
408
|
+
</xsd:sequence>
|
409
|
+
</xsd:complexType>
|
410
|
+
|
411
|
+
<xsd:complexType name="resourceType" mixed="true">
|
412
|
+
<xsd:sequence>
|
413
|
+
<xsd:element ref="identifier" minOccurs="0"/>
|
414
|
+
<xsd:element ref="description" minOccurs="0"/>
|
415
|
+
<xsd:element ref="catalogentry" minOccurs="0" maxOccurs="unbounded"/>
|
416
|
+
<xsd:group ref="grp.any"/>
|
417
|
+
</xsd:sequence>
|
418
|
+
</xsd:complexType>
|
419
|
+
|
420
|
+
<xsd:complexType name="rightsType" mixed="true">
|
421
|
+
<xsd:sequence>
|
422
|
+
<xsd:element ref="cost" minOccurs="0"/>
|
423
|
+
<xsd:element ref="copyrightandotherrestrictions" minOccurs="0"/>
|
424
|
+
<xsd:element ref="description" minOccurs="0"/>
|
425
|
+
<xsd:group ref="grp.any"/>
|
426
|
+
</xsd:sequence>
|
427
|
+
</xsd:complexType>
|
428
|
+
|
429
|
+
<xsd:complexType name="roleType">
|
430
|
+
<xsd:sequence>
|
431
|
+
<xsd:element ref="source"/>
|
432
|
+
<xsd:element ref="value"/>
|
433
|
+
</xsd:sequence>
|
434
|
+
</xsd:complexType>
|
435
|
+
|
436
|
+
<xsd:complexType name="semanticdensityType">
|
437
|
+
<xsd:sequence>
|
438
|
+
<xsd:element ref="source"/>
|
439
|
+
<xsd:element ref="value"/>
|
440
|
+
</xsd:sequence>
|
441
|
+
</xsd:complexType>
|
442
|
+
|
443
|
+
<xsd:complexType name="sourceType">
|
444
|
+
<xsd:sequence>
|
445
|
+
<xsd:element ref="langstring"/>
|
446
|
+
</xsd:sequence>
|
447
|
+
</xsd:complexType>
|
448
|
+
|
449
|
+
<xsd:complexType name="statusType">
|
450
|
+
<xsd:sequence>
|
451
|
+
<xsd:element ref="source"/>
|
452
|
+
<xsd:element ref="value"/>
|
453
|
+
</xsd:sequence>
|
454
|
+
</xsd:complexType>
|
455
|
+
|
456
|
+
<xsd:complexType name="stringType">
|
457
|
+
<xsd:simpleContent>
|
458
|
+
<xsd:extension base="xsd:string">
|
459
|
+
<xsd:attribute ref="xml:lang"/>
|
460
|
+
</xsd:extension>
|
461
|
+
</xsd:simpleContent>
|
462
|
+
</xsd:complexType>
|
463
|
+
|
464
|
+
<xsd:complexType name="structureType">
|
465
|
+
<xsd:sequence>
|
466
|
+
<xsd:element ref="source"/>
|
467
|
+
<xsd:element ref="value"/>
|
468
|
+
</xsd:sequence>
|
469
|
+
</xsd:complexType>
|
470
|
+
|
471
|
+
<xsd:complexType name="taxonpathType">
|
472
|
+
<xsd:sequence>
|
473
|
+
<xsd:element ref="source" minOccurs="0"/>
|
474
|
+
<xsd:element ref="taxon" minOccurs="0" maxOccurs="1"/>
|
475
|
+
</xsd:sequence>
|
476
|
+
</xsd:complexType>
|
477
|
+
|
478
|
+
<xsd:complexType name="taxonType">
|
479
|
+
<xsd:sequence>
|
480
|
+
<xsd:element ref="id" minOccurs="0"/>
|
481
|
+
<xsd:element ref="entry" minOccurs="0"/>
|
482
|
+
<xsd:element ref="taxon" minOccurs="0" maxOccurs="1"/>
|
483
|
+
</xsd:sequence>
|
484
|
+
</xsd:complexType>
|
485
|
+
|
486
|
+
<xsd:complexType name="technicalType" mixed="true">
|
487
|
+
<xsd:sequence>
|
488
|
+
<xsd:element ref="format" minOccurs="0" maxOccurs="unbounded"/>
|
489
|
+
<xsd:element ref="size" minOccurs="0"/>
|
490
|
+
<xsd:element ref="location" minOccurs="0" maxOccurs="unbounded"/>
|
491
|
+
<xsd:element ref="requirement" minOccurs="0" maxOccurs="unbounded"/>
|
492
|
+
<xsd:element ref="installationremarks" minOccurs="0"/>
|
493
|
+
<xsd:element ref="otherplatformrequirements" minOccurs="0"/>
|
494
|
+
<xsd:element ref="duration" minOccurs="0"/>
|
495
|
+
<xsd:group ref="grp.any"/>
|
496
|
+
</xsd:sequence>
|
497
|
+
</xsd:complexType>
|
498
|
+
|
499
|
+
<xsd:complexType name="titleType">
|
500
|
+
<xsd:sequence>
|
501
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
502
|
+
</xsd:sequence>
|
503
|
+
</xsd:complexType>
|
504
|
+
|
505
|
+
<xsd:complexType name="typeType">
|
506
|
+
<xsd:sequence>
|
507
|
+
<xsd:element ref="source"/>
|
508
|
+
<xsd:element ref="value"/>
|
509
|
+
</xsd:sequence>
|
510
|
+
</xsd:complexType>
|
511
|
+
|
512
|
+
<xsd:complexType name="typicalagerangeType">
|
513
|
+
<xsd:sequence>
|
514
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
515
|
+
</xsd:sequence>
|
516
|
+
</xsd:complexType>
|
517
|
+
|
518
|
+
<xsd:complexType name="typicallearningtimeType">
|
519
|
+
<xsd:sequence>
|
520
|
+
<xsd:element ref="datetime" minOccurs="0"/>
|
521
|
+
<xsd:element ref="description" minOccurs="0"/>
|
522
|
+
</xsd:sequence>
|
523
|
+
</xsd:complexType>
|
524
|
+
|
525
|
+
<xsd:complexType name="valueType">
|
526
|
+
<xsd:sequence>
|
527
|
+
<xsd:element ref="langstring"/>
|
528
|
+
</xsd:sequence>
|
529
|
+
</xsd:complexType>
|
530
|
+
|
531
|
+
<xsd:complexType name="versionType">
|
532
|
+
<xsd:sequence>
|
533
|
+
<xsd:element ref="langstring" minOccurs="1" maxOccurs="unbounded"/>
|
534
|
+
</xsd:sequence>
|
535
|
+
</xsd:complexType>
|
536
|
+
|
537
|
+
<!-- ****************** -->
|
538
|
+
<!-- ** Simple Types ** -->
|
539
|
+
<!-- ****************** -->
|
540
|
+
|
541
|
+
<xsd:simpleType name="formatType">
|
542
|
+
<xsd:restriction base="xsd:string"/>
|
543
|
+
</xsd:simpleType>
|
544
|
+
|
545
|
+
<xsd:simpleType name="sizeType">
|
546
|
+
<xsd:restriction base="xsd:int"/>
|
547
|
+
</xsd:simpleType>
|
548
|
+
|
549
|
+
<xsd:simpleType name="datetimeType">
|
550
|
+
<xsd:restriction base="xsd:string"/>
|
551
|
+
</xsd:simpleType>
|
552
|
+
|
553
|
+
<xsd:simpleType name="idType">
|
554
|
+
<xsd:restriction base="xsd:string"/>
|
555
|
+
</xsd:simpleType>
|
556
|
+
|
557
|
+
<xsd:simpleType name="metadataschemeType">
|
558
|
+
<xsd:restriction base="xsd:string"/>
|
559
|
+
</xsd:simpleType>
|
560
|
+
|
561
|
+
<xsd:simpleType name="catalogType">
|
562
|
+
<xsd:restriction base="xsd:string"/>
|
563
|
+
</xsd:simpleType>
|
564
|
+
|
565
|
+
<xsd:simpleType name="minimumversionType">
|
566
|
+
<xsd:restriction base="xsd:string"/>
|
567
|
+
</xsd:simpleType>
|
568
|
+
|
569
|
+
<xsd:simpleType name="maximumversionType">
|
570
|
+
<xsd:restriction base="xsd:string"/>
|
571
|
+
</xsd:simpleType>
|
572
|
+
|
573
|
+
</xsd:schema>
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@learnpack/learnpack",
|
3
3
|
"description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
|
4
|
-
"version": "5.0.
|
4
|
+
"version": "5.0.282",
|
5
5
|
"author": "Alejandro Sanchez @alesanchezr",
|
6
6
|
"contributors": [
|
7
7
|
{
|
@@ -121,7 +121,8 @@
|
|
121
121
|
"/oclif.manifest.json",
|
122
122
|
"/src",
|
123
123
|
"/lib",
|
124
|
-
"/src/creatorDist"
|
124
|
+
"/src/creatorDist",
|
125
|
+
"/src/utils/templates"
|
125
126
|
],
|
126
127
|
"homepage": "https://github.com/learnpack/learnpack-cli",
|
127
128
|
"keywords": [
|
@@ -155,7 +156,7 @@
|
|
155
156
|
]
|
156
157
|
},
|
157
158
|
"scripts": {
|
158
|
-
"copy-assets": "npx cpy src/creatorDist/**/* lib/creatorDist --parents --verbose",
|
159
|
+
"copy-assets": "npx cpy src/creatorDist/**/* lib/creatorDist --parents --verbose && npx cpy src/utils/templates/**/* lib/utils/templates --parents --verbose",
|
159
160
|
"tsc": "tsc -b",
|
160
161
|
"postpack": "rm -f oclif.manifest.json && eslint . --ext .ts --config .eslintrc",
|
161
162
|
"prepack": "rm -rf lib && tsc -b && npm run copy-assets",
|
package/src/commands/serve.ts
CHANGED
@@ -252,7 +252,7 @@ async function startExerciseGeneration(
|
|
252
252
|
console.log("WEBHOOK URL", webhookUrl)
|
253
253
|
|
254
254
|
const res = await readmeCreator(
|
255
|
-
rigoToken,
|
255
|
+
rigoToken.trim(),
|
256
256
|
{
|
257
257
|
title: `${exercise.id} - ${exercise.title}`,
|
258
258
|
output_lang: packageContext.language || "en",
|
@@ -618,7 +618,7 @@ export default class ServeCommand extends SessionCommand {
|
|
618
618
|
"/actions/continue-generating/:courseSlug/:position",
|
619
619
|
async (req, res) => {
|
620
620
|
const { courseSlug, position } = req.params
|
621
|
-
const { feedback } = req.body
|
621
|
+
const { feedback, mode } = req.body
|
622
622
|
const rigoToken = req.header("x-rigo-token")
|
623
623
|
|
624
624
|
if (!rigoToken) {
|
@@ -686,6 +686,8 @@ export default class ServeCommand extends SessionCommand {
|
|
686
686
|
syllabusJson.feedback = feedback
|
687
687
|
}
|
688
688
|
|
689
|
+
syllabusJson.generationMode = mode
|
690
|
+
|
689
691
|
await uploadFileToBucket(
|
690
692
|
bucket,
|
691
693
|
JSON.stringify(syllabusJson),
|
@@ -811,7 +813,9 @@ export default class ServeCommand extends SessionCommand {
|
|
811
813
|
let nextCompletionId: number | null = null
|
812
814
|
if (
|
813
815
|
nextExercise &&
|
814
|
-
(exerciseIndex === 0 ||
|
816
|
+
(exerciseIndex === 0 ||
|
817
|
+
!(exerciseIndex % 3 === 0) ||
|
818
|
+
syllabusJson.generationMode === "continue-with-all")
|
815
819
|
) {
|
816
820
|
let feedback = ""
|
817
821
|
if (syllabusJson.feedback) {
|