Skip to content
Snippets Groups Projects

Draft: Resolve "Add artifacts viewer"

2 files
+ 41
27
Compare changes
  • Side-by-side
  • Inline

Files

+ 20
8
class Artifacts {
class Artifact {
constructor(type, path, desc, job, repo, imagePdf = null, imageCategory = null, imageTag= null) {
constructor(type, path, desc, job, repo, imagePdf = null, imageCategory = null, imageTag= null) {
this.type = type;
this.type = type;
this.path = path;
this.path = path;
@@ -11,9 +11,11 @@ class Artifacts {
@@ -11,9 +11,11 @@ class Artifacts {
this.imageCategory = imageCategory;
this.imageCategory = imageCategory;
this.imageTag = imageTag;
this.imageTag = imageTag;
}
}
 
 
/** @type {List<Artifact>} Список артефактов */
static list = [
static list = [
new Artifacts(
new Artifact(
"image", // type [image, gdml, root]
"image", // type [image, gdml, root]
"images/view01_top.png ", // artifact path
"images/view01_top.png ", // artifact path
"Top image of inclosure ", // description of the artifact
"Top image of inclosure ", // description of the artifact
@@ -23,28 +25,38 @@ class Artifacts {
@@ -23,28 +25,38 @@ class Artifacts {
"main", // Category
"main", // Category
"central-detector ", // Tag
"central-detector ", // Tag
),
),
new Artifacts(
new Artifact(
"file", // general file, just downloads if clicked
"file", // general file, just downloads if clicked
"geo/athena.gdml",
"geo/athena.gdml",
"ATHENA full geometry in GDML",
"ATHENA full geometry in GDML",
"report",
"report",
"athena",
"athena",
),
),
new Artifacts(
new Artifact(
"georoot", // geometry in ROOT format (opens in Geometry Browser)
"georoot", // geometry in ROOT format (opens in Geometry Browser)
"geo/detector_geo.root",
"geo/detector_geo.root",
"ATHENA central detector in ROOT",
"ATHENA central detector in ROOT",
"report",
"report",
"athena",
"athena",
),
),
new Artifacts(
new Artifact(
"constants", // File with constants listing (opens in constants browser (TODO in future))
"constants", // File with constants listing (opens in constants browser (TODO in future))
"doc/constants.out",
"doc/constants.out",
"List of all calculated constants",
"List of all calculated constants",
"report",
"report",
"athena"
"athena"
)
),
new Artifact(
 
"image", // type [image, gdml, root]
 
"images/view02a.png", // artifact path
 
"Top image of inclosure ", // description of the artifact
 
"report", // creator job name
 
"athena", // repository
 
"images/view01_top.pdf ", // PDF version of the image
 
"main", // Category
 
"central-detector ", // Tag
 
),
 
]
]
}
}
export default Artifacts;
export default Artifact;
Loading