-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Paul Moeller <moeller@radiasoft.net>
- Loading branch information
1 parent
2c660bb
commit dc6ad1e
Showing
14 changed files
with
1,146 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ | |
_NON_PROD_FOSS_CODES = frozenset( | ||
( | ||
"epicsllrf", | ||
"impactt", | ||
"myapp", | ||
"hellweg", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div class="container-fluid"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-6 col-xl-4"> | ||
<div data-simple-panel="simulationStatus"> | ||
<div data-sim-status-panel="visualization.simState"></div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
'use strict'; | ||
|
||
var srlog = SIREPO.srlog; | ||
var srdbg = SIREPO.srdbg; | ||
|
||
SIREPO.app.config(function() { | ||
SIREPO.appFieldEditors += ``; | ||
SIREPO.lattice = { | ||
elementColor: { | ||
MULTIPOLE: 'yellow', | ||
QUADRUPOLE: 'red', | ||
DIPOLE: 'lightgreen', | ||
SOLENOID: 'red', | ||
DRIFT: 'grey', | ||
}, | ||
elementPic: { | ||
drift: ['DRIFT'], | ||
lens: ['ROTATIONALLY_SYMMETRIC_TO_3D'], | ||
magnet: ['MULTIPOLE', 'QUADRUPOLE', 'DIPOLE'], | ||
solenoid: ['SOLENOID', 'SOLENOIDRF'], | ||
watch: ['WRITE_BEAM'], | ||
zeroLength: [ | ||
'CHANGE_TIMESTEP', | ||
'SPACECHARGE', | ||
'WAKEFIELD', | ||
'STOP', | ||
], | ||
}, | ||
}; | ||
}); | ||
|
||
SIREPO.app.factory('impacttService', function(appState) { | ||
const self = {}; | ||
|
||
self.computeModel = () => 'impacttReport'; | ||
|
||
appState.setAppService(self); | ||
return self; | ||
}); | ||
|
||
|
||
SIREPO.app.controller('SourceController', function(appState, $scope) { | ||
var self = this; | ||
}); | ||
|
||
SIREPO.app.controller('VisualizationController', function (appState, panelState, persistentSimulation, impacttService, $scope) { | ||
const self = this; | ||
self.simScope = $scope; | ||
|
||
self.simHandleStatus = data => {}; | ||
self.simState = persistentSimulation.initSimulationState(self); | ||
}); | ||
|
||
SIREPO.app.controller('LatticeController', function(latticeService, appState) { | ||
var self = this; | ||
self.latticeService = latticeService; | ||
|
||
self.advancedNames = SIREPO.APP_SCHEMA.constants.advancedElementNames; | ||
self.basicNames = SIREPO.APP_SCHEMA.constants.basicElementNames; | ||
|
||
self.titleForName = function(name) { | ||
return SIREPO.APP_SCHEMA.view[name].description; | ||
}; | ||
|
||
}); | ||
|
||
SIREPO.app.directive('appFooter', function() { | ||
return { | ||
restrict: 'A', | ||
scope: { | ||
nav: '=appFooter', | ||
}, | ||
template: ` | ||
<div data-common-footer="nav"></div> | ||
`, | ||
}; | ||
}); | ||
|
||
SIREPO.app.directive('appHeader', function(appState, panelState) { | ||
return { | ||
restrict: 'A', | ||
scope: { | ||
nav: '=appHeader', | ||
}, | ||
template: ` | ||
<div data-app-header-brand="nav"></div> | ||
<div data-app-header-left="nav"></div> | ||
<div data-app-header-right="nav"> | ||
<app-header-right-sim-loaded> | ||
<div data-sim-sections=""> | ||
<li class="sim-section" data-ng-class="{active: nav.isActive('lattice')}"><a href data-ng-click="nav.openSection('lattice')"><span class="glyphicon glyphicon-flash"></span> Lattice</a></li> | ||
<li class="sim-section" data-ng-class="{active: nav.isActive('source')}"><a href data-ng-click="nav.openSection('source')"><span class="glyphicon glyphicon-flash"></span> Source</a></li> | ||
<li class="sim-section" data-ng-class="{active: nav.isActive('visualization')}"><a href data-ng-click="nav.openSection('visualization')"><span class="glyphicon glyphicon-flash"></span> Visualization</a></li> | ||
</div> | ||
</app-header-right-sim-loaded> | ||
<app-settings> | ||
</app-settings> | ||
<app-header-right-sim-list> | ||
</app-header-right-sim-list> | ||
</div> | ||
`, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.