Skip to content

Commit

Permalink
Merge branch 'Simon-Initiative:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
dtiwarATS committed Mar 13, 2024
2 parents c34f403 + a7eaa96 commit c4d879b
Show file tree
Hide file tree
Showing 29 changed files with 1,717 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const ExternalActivity: React.FC<PartComponentProps<CapiIframeModel>> = (props)
setScriptEnv(env);
}
simLife.domain = initResult.context.domain || 'stage';
simLife.simId = id;
processInitStateVariable(currentStateSnapshot, simLife.domain);
}, []);

Expand Down Expand Up @@ -681,6 +682,7 @@ const ExternalActivity: React.FC<PartComponentProps<CapiIframeModel>> = (props)
configData: filterVars,
});
Object.keys(filterVars).forEach((variable: any) => {
const simKey = `${simLife.domain}.${simLife.simId}.${variable}`;
const formatted: Record<string, any> = {};
formatted[variable] = filterVars[variable];
if (context !== contexts.REVIEW) {
Expand All @@ -697,7 +699,7 @@ const ExternalActivity: React.FC<PartComponentProps<CapiIframeModel>> = (props)
scriptEnv,
true,
false,
variable,
simKey,
);
} else if (typeof value === 'string' && isMathExpr) {
if (value.search(/app\.|variables\.|stage\.|session\./) >= 0) {
Expand All @@ -707,7 +709,8 @@ const ExternalActivity: React.FC<PartComponentProps<CapiIframeModel>> = (props)
simLife.snapshot,
scriptEnv,
true,
variable,
false,
simKey,
);
}
}
Expand Down
243 changes: 243 additions & 0 deletions assets/static/images/cc_logos/by-nc-nd.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
202 changes: 202 additions & 0 deletions assets/static/images/cc_logos/by-nc-sa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
190 changes: 190 additions & 0 deletions assets/static/images/cc_logos/by-nc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c4d879b

Please sign in to comment.