File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ class EnsembleConfig {
402
402
}
403
403
Map <String , ParsedCode >? importMap = {};
404
404
Map ? globals = getResources ();
405
- globals? [ResourceArtifactEntry .Code .name]? .forEach ((key, value) {
405
+ globals? [ResourceArtifactEntry .Scripts .name]? .forEach ((key, value) {
406
406
if (imports.contains (key)) {
407
407
if (value is String ) {
408
408
try {
Original file line number Diff line number Diff line change @@ -324,10 +324,10 @@ class AppModel {
324
324
if (value is YamlMap ) {
325
325
widgets.addAll (value.value);
326
326
}
327
- } else if (key == ResourceArtifactEntry .Code .name) {
327
+ } else if (key == ResourceArtifactEntry .Scripts .name) {
328
328
if (value is YamlMap ) {
329
329
//code will be in the format -
330
- // Code :
330
+ // Scripts :
331
331
// #apiUtils is the name of the code artifact
332
332
// apiUtils: |-
333
333
// function callAPI(name,payload) {
@@ -376,7 +376,7 @@ class AppModel {
376
376
377
377
// finally add the widgets and code to the output
378
378
output[ResourceArtifactEntry .Widgets .name] = widgets;
379
- output[ResourceArtifactEntry .Code .name] = code;
379
+ output[ResourceArtifactEntry .Scripts .name] = code;
380
380
//log(">>" + output.toString());
381
381
//return YamlMap.wrap(output);
382
382
return output;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ enum ArtifactType {
23
23
}
24
24
25
25
// the root entries of the Resource artifact
26
- enum ResourceArtifactEntry { Widgets , Code , API }
26
+ enum ResourceArtifactEntry { Widgets , Scripts , API }
27
27
28
28
abstract class DefinitionProvider {
29
29
static Map <String , dynamic > cache = {};
You can’t perform that action at this time.
0 commit comments