Skip to content

Commit

Permalink
better template
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Metelkin committed Dec 22, 2023
1 parent b1a16ca commit 1b873b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
4 changes: 0 additions & 4 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# TODO list

- better default code
- hot keys for InfoPage
- nice css styles
- support of smartphones
- load files with full path
- use JSZip for storing in localStorage
- extend info modal
- syntax highlights heta for `abstract namespace xxx`
? not to display output.log
? autocomplete in heta syntax
? Matlab highliting support
Expand All @@ -17,5 +15,3 @@
## Errors

- highlight namespace


22 changes: 15 additions & 7 deletions src/heta-templates/index.heta.template.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
export default `/*
template file for creating platform
template file for creating platform
*/
// add qsp units
// add file with units
//include ./qsp-units.heta;
// add another files
// include module.heta type heta;
// include table.xlsx type table with { sheet: 0, omitRows: 3 };
// include addon.json type json;
// include addon.yml type yaml;
p1 @Record .= 1;
comp1 @Compartment {units: litre} .= 5.5;
S1 @Species {compartment: comp1, units: (1e-6 mole)/litre} .= 10;
P1 @Species {compartment: comp1, units: (1e-6 mole)/litre} .= 0;
r1 @Reaction {actors: S1=>P1, units: (1e-6 mole)/second}
:= Vmax * S1 / (S1 + Km) * comp1;
Vmax @Const {units: (1e-6 mole)/litre/second} = 1e-5;
Km @Const {units: (1e-6 mole)/litre} = 3.3;
// exports
#export { format: JSON };
#export { format: YAML };
//#export { format: YAML };
#export { format: XLSX, omitRows: 3, splitByClass: true };
#export { format: SBML, version: L2V4 };
//#export { format: SLV, eventsOff: false };
Expand All @@ -22,6 +30,6 @@ p1 @Record .= 1;
//#export { format: Mrgsolve };
//#export { format: Matlab };
//#export { format: HetaCode };
//#export { format: Julia };
#export { format: Dot };
#export { format: Julia };
`;

0 comments on commit 1b873b0

Please sign in to comment.