Skip to content

Commit

Permalink
#6684 - removed escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
git-user committed Jan 26, 2024
1 parent bad43d1 commit 19c17d9
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions sirepo/package_data/static/js/sirepo-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ SIREPO.app.directive('advancedEditorPane', function(appState, panelState, utilit
fieldDef: '@',
},
template: `
<h5 data-ng-if="::description && fieldDef == \'advanced\'"><span data-text-with-math="description"></span></h5>
<h5 data-ng-if="::description && fieldDef == 'advanced'"><span data-text-with-math="description"></span></h5>
<form name="form" class="form-horizontal" autocomplete="off" novalidate>
<ul data-ng-if="pages" class="nav nav-tabs">
<li data-ng-repeat="page in pages" role="presentation" class="{{page.class}}" data-ng-class="{active: page.isActive}"><a href data-ng-click="setActivePage(page)">{{ page.name }}</a></li>
Expand Down Expand Up @@ -260,7 +260,7 @@ SIREPO.app.directive('basicEditorPanel', function(appState, panelState) {
panelTitle: '@',
},
template: `
<div class="panel panel-info" id="{{ \'sr-\' + viewName + \'-basicEditor\' }}">
<div class="panel panel-info" id="sr-{{ viewName }}-basicEditor">
<div class="panel-heading clearfix" data-panel-heading="{{ panelTitle }}" data-model-key="modelKey" data-view-name="{{ viewName }}"></div>
<div class="panel-body" data-ng-hide="panelState.isHidden(modelKey)">
<div data-advanced-editor-pane="" data-view-name="viewName" data-want-buttons="{{ wantButtons }}" data-field-def="basic" data-model-data="modelData" data-parent-controller="parentController"></div>
Expand Down Expand Up @@ -409,7 +409,7 @@ SIREPO.app.directive('confirmationModal', function() {
isRequired: '@',
},
template: `
<div class="modal fade" data-backdrop="{{ isRequired ? \'static\' : true }}" id="{{ id }}" tabindex="-1" role="dialog">
<div class="modal fade" data-backdrop="{{ isRequired ? 'static' : true }}" id="{{ id }}" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header bg-warning">
Expand All @@ -426,7 +426,7 @@ SIREPO.app.directive('confirmationModal', function() {
<div class="row">
<div class="col-sm-6 pull-right" style="margin-top: 1em">
<button data-ng-if="okText" data-ng-disabled="! isValid()" data-ng-click="clicked()" class="btn btn-default sr-button-size">{{ okText }}</button>
<button data-ng-if="! isRequired" data-dismiss="modal" class="btn btn-default sr-button-size">{{ cancelText || \'Cancel\' }}</button>
<button data-ng-if="! isRequired" data-dismiss="modal" class="btn btn-default sr-button-size">{{ cancelText || 'Cancel' }}</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -481,7 +481,7 @@ SIREPO.app.directive('copyConfirmation', function(appState, fileManager, strings
disabled: '<',
},
template: `
<div data-confirmation-modal="" data-id="sr-copy-confirmation" data-title="Copy {{ ::stringsService.formatKey(\'simulationDataType\') }}" data-ok-text="Create Copy" data-ok-clicked="copy()">
<div data-confirmation-modal="" data-id="sr-copy-confirmation" data-title="Copy {{ ::stringsService.formatKey('simulationDataType') }}" data-ok-text="Create Copy" data-ok-clicked="copy()">
<form class="form-horizontal" autocomplete="off">
<div class="form-group">
<label class="col-sm-3 control-label">New Name</label>
Expand All @@ -493,7 +493,7 @@ SIREPO.app.directive('copyConfirmation', function(appState, fileManager, strings
<div class="form-group" data-ng-if="showFolders()">
<label class="col-sm-3 control-label">Folder</label>
<div class="col-sm-9">
<div data-user-folder-list="" data-model="copyCfg" data-field="\'copyFolder\'"></div>
<div data-user-folder-list="" data-model="copyCfg" data-field="'copyFolder'"></div>
</div>
</div>
</form>
Expand Down Expand Up @@ -776,7 +776,7 @@ SIREPO.app.directive('fieldEditor', function(appState, keypressService, panelSta
<div class="sr-input-warning" data-ng-show="showWarning">{{warningText}}</div>
</div>
<div data-ng-switch-when="SimulationName" data-ng-class="fieldClass">
<input data-safe-path="" data-ng-model="model[field]" class="form-control" required data-ng-readonly="model[\'isExample\']" data-lpignore="true" />
<input data-safe-path="" data-ng-model="model[field]" class="form-control" required data-ng-readonly="model['isExample']" data-lpignore="true" />
<div class="sr-input-warning" data-ng-show="showWarning">{{warningText}}</div>
</div>
<div data-ng-switch-when="InputFile" class="col-sm-7">
Expand Down Expand Up @@ -813,7 +813,7 @@ SIREPO.app.directive('fieldEditor', function(appState, keypressService, panelSta
${SIREPO.appFieldEditors}
<div data-ng-switch-default data-ng-class="fieldClass">
<div data-ng-if="wantEnumButtons" class="btn-group">
<button type="button" class="btn sr-enum-button" data-ng-repeat="item in enum[info[1]]" data-ng-click="model[field] = item[0]" data-ng-class="{\'active btn-primary\': isSelectedValue(item[0]), \'btn-default\': ! isSelectedValue(item[0])}">{{ item[1] }}</button>
<button type="button" class="btn sr-enum-button" data-ng-repeat="item in enum[info[1]]" data-ng-click="model[field] = item[0]" data-ng-class="{'active btn-primary': isSelectedValue(item[0]), 'btn-default': ! isSelectedValue(item[0])}">{{ item[1] }}</button>
</div>
<select data-ng-if="! wantEnumButtons" number-to-string class="form-control" data-ng-model="model[field]" data-ng-options="item[0] as item[1] for item in enum[info[1]]"></select>
<div class="sr-input-warning"></div>
Expand Down Expand Up @@ -985,7 +985,7 @@ SIREPO.app.directive('fileField', function(errorService, panelState, requestSend
},
template: `
<div class="btn-group" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-ng-class="{\'btn-invalid\': selectionRequired && ! hasValidFileSelected()}" data-toggle="dropdown">{{ model[fileField] || emptySelectionText }} <span class="caret"></span></button>
<button type="button" class="btn btn-default dropdown-toggle" data-ng-class="{'btn-invalid': selectionRequired && ! hasValidFileSelected()}" data-toggle="dropdown">{{ model[fileField] || emptySelectionText }} <span class="caret"></span></button>
<ul class="dropdown-menu">
<li data-ng-repeat="item in itemList()" class="sr-model-list-item"><a href data-ng-click="selectItem(item)">{{ item }}<span data-ng-show="! isSelectedItem(item)" data-ng-click="confirmDeleteItem(item, $event)" class="glyphicon glyphicon-remove"></span></a></li>
<li class="divider"></li>
Expand Down Expand Up @@ -1999,7 +1999,7 @@ SIREPO.app.directive('colorMapMenu', function(appState, plotting) {
<button type="button" class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"><span class="sr-color-map-indicator" data-ng-style="itemStyle[model[field]]"></span> {{ colorMapDescription(model[field]) }} <span class="caret"></span></button>
<ul class="dropdown-menu sr-button-menu">
<li data-ng-repeat="item in items" class="sr-button-menu">
<button type="button" class="btn btn-block" data-ng-class="{\'sr-button-menu-selected\': isSelectedMap(item[0]), \'sr-button-menu-unselected\': ! isSelectedMap(item[0])}" data-ng-click="setColorMap(item[0])">
<button type="button" class="btn btn-block" data-ng-class="{'sr-button-menu-selected': isSelectedMap(item[0]), 'sr-button-menu-unselected': ! isSelectedMap(item[0])}" data-ng-click="setColorMap(item[0])">
<span class="sr-color-map-indicator" data-ng-style="itemStyle[item[0]]"></span> {{item[1]}} <span data-ng-if="isDefaultMap(item[0])" class="glyphicon glyphicon-star-empty"></span><span data-ng-if="isSelectedMap(item[0])" class="glyphicon glyphicon-ok"></span>
</button>
</li>
Expand Down Expand Up @@ -2061,7 +2061,7 @@ SIREPO.app.directive('collapsableNotes', function() {
template: `
<div>
<a href data-ng-click="toggleNotes()" style="text-decoration: none;">
<span class="glyphicon" data-ng-class="{\'glyphicon-chevron-down\': ! showNotes, \'glyphicon-chevron-up\': showNotes}" style="font-size:16px;"></span>
<span class="glyphicon" data-ng-class="{'glyphicon-chevron-down': ! showNotes, 'glyphicon-chevron-up': showNotes}" style="font-size:16px;"></span>
<span data-ng-show="! openNotes() && hasNotes()">...</span>
<span data-ng-show="! openNotes() && ! hasNotes()" style="font-style: italic; font-size: small">click to enter notes</span>
</a>
Expand Down Expand Up @@ -2123,7 +2123,7 @@ SIREPO.app.directive('numberList', function(appState, utilities) {
},
template: `
<div data-ng-repeat="defaultSelection in parseValues() track by $index" style="display: inline-block" >
<label data-text-with-math="valueLabels[$index] || \'Plane \' + $index" style="margin-right: 1ex"></label>
<label data-text-with-math="valueLabels[$index] || 'Plane ' + $index" style="margin-right: 1ex"></label>
<input class="form-control sr-number-list" data-string-to-number="{{ numberType }}" data-ng-model="values[$index]" data-ng-change="didChange()" class="form-control" style="text-align: right; {{ customStyle }}" required />
</div>
`,
Expand Down Expand Up @@ -2186,7 +2186,7 @@ SIREPO.app.directive('simpleHeading', function(panelState, utilities) {
template: `
<span class="sr-panel-heading">{{ simpleHeading }}</span>
<div class="sr-panel-options pull-right">
<a href data-ng-class="{\'sr-disabled-link\': utilities.isFullscreen()}" data-ng-click="toggleHidden()" data-ng-hide="panelState.isHidden(modelKey) || utilities.isFullscreen()" title="Hide"><span class="sr-panel-heading glyphicon glyphicon-chevron-up"></span></a>
<a href data-ng-class="{'sr-disabled-link': utilities.isFullscreen()}" data-ng-click="toggleHidden()" data-ng-hide="panelState.isHidden(modelKey) || utilities.isFullscreen()" title="Hide"><span class="sr-panel-heading glyphicon glyphicon-chevron-up"></span></a>
<a href data-ng-click="panelState.toggleHiddenAndNotify(modelKey)" data-ng-show="panelState.isHidden(modelKey)" title="Show"><span class="sr-panel-heading glyphicon glyphicon-chevron-down"></span></a>
</div>
<div class="sr-panel-options pull-right" data-ng-transclude="" ></div>
Expand Down Expand Up @@ -2231,7 +2231,7 @@ SIREPO.app.directive('panelHeading', function(appState, frameCache, panelState,
<li data-ng-if="::hasDataFile" data-ng-repeat="l in panelDownloadLinks"><a data-ng-href="{{ dataFileURL(l.suffix) }}" target="_blank">{{ l.title }}</a></li>
</ul>
</div>
<a href data-ng-if="::canFullScreen" data-ng-show="isReport && ! panelState.isHidden(modelKey)" data-ng-attr-title="{{ fullscreenIconTitle() }}" data-ng-click="toggleFullScreen()"><span class="sr-panel-heading glyphicon" data-ng-class="{\'glyphicon-resize-full\': ! utilities.isFullscreen(), \'glyphicon-resize-small\': utilities.isFullscreen()}"></span></a>
<a href data-ng-if="::canFullScreen" data-ng-show="isReport && ! panelState.isHidden(modelKey)" data-ng-attr-title="{{ fullscreenIconTitle() }}" data-ng-click="toggleFullScreen()"><span class="sr-panel-heading glyphicon" data-ng-class="{'glyphicon-resize-full': ! utilities.isFullscreen(), 'glyphicon-resize-small': utilities.isFullscreen()}"></span></a>
</div>
`,
controller: function($scope, $element) {
Expand Down Expand Up @@ -2361,7 +2361,7 @@ SIREPO.app.directive('reportContent', function(panelState) {
},
template: `
<div data-show-loading-and-error="" data-model-key="{{ modelKey }}">
<div data-ng-switch="reportContent" class="{{ panelState.getError(modelKey) ? \'sr-hide-report\' : \'\' }}">
<div data-ng-switch="reportContent" class="{{ panelState.getError(modelKey) ? 'sr-hide-report' : '' }}">
<div data-ng-switch-when="2d" data-plot2d="" class="sr-plot sr-screenshot" data-model-name="{{ modelKey }}" data-report-id="reportId"></div>
<div data-ng-switch-when="3d" data-plot3d="" class="sr-plot sr-screenshot" data-model-name="{{ modelKey }}" data-report-id="reportId"></div>
<div data-ng-switch-when="heatmap" data-heatmap="" class="sr-plot sr-screenshot" data-model-name="{{ modelKey }}"></div>
Expand Down Expand Up @@ -2463,7 +2463,7 @@ SIREPO.app.directive('appHeaderLeft', function(appState, authState, panelState)
},
template: `
<ul class="nav navbar-nav" data-ng-if=":: authState.isLoggedIn">
<li data-ng-class="{active: nav.isActive(\'simulations\')}"><a href data-ng-click="nav.openSection(\'simulations\')"><span class="glyphicon glyphicon-th-list"></span> {{ simulationsLinkText }}</a></li>
<li data-ng-class="{active: nav.isActive('simulations')}"><a href data-ng-click="nav.openSection('simulations')"><span class="glyphicon glyphicon-th-list"></span> {{ simulationsLinkText }}</a></li>
</ul>
<div data-ng-if="showTitle()" class="navbar-text">
<a href data-ng-click="showSimulationModal()"><span data-ng-if="nav.sectionTitle()" class="glyphicon glyphicon-pencil"></span> <strong data-ng-bind="nav.sectionTitle()"></strong></a>
Expand Down Expand Up @@ -3131,12 +3131,12 @@ SIREPO.app.directive('emailLogin', function(requestSender, errorService) {
scope: {},
template: `
<div data-ng-show="isJupyterhub" class="alert alert-info col-sm-offset-2 col-sm-10" role="alert">
We\'re improving your Jupyter experience by making both Jupyter and Sirepo accessible via a single email login. Simply follow the directions below to complete this process.
We're improving your Jupyter experience by making both Jupyter and Sirepo accessible via a single email login. Simply follow the directions below to complete this process.
</div>
<form class="form-horizontal" autocomplete="off" novalidate>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<p>Enter your email address and we\'ll send an authorization link to your inbox.</p>
<p>Enter your email address and we'll send an authorization link to your inbox.</p>
</div>
</div>
<div class="form-group">
Expand All @@ -3151,12 +3151,12 @@ SIREPO.app.directive('emailLogin', function(requestSender, errorService) {
<div data-disable-after-click="">
<button data-ng-click="login()" class="btn btn-primary">Continue</button>
</div>
<p class="help-block">By signing up for Sirepo you agree to Sirepo\'s <a href="en/privacy.html">privacy policy</a> and <a href="en/terms.html">terms and conditions</a>, and to receive informational and marketing communications from RadiaSoft. You may unsubscribe at any time.</p>
<p class="help-block">By signing up for Sirepo you agree to Sirepo's <a href="en/privacy.html">privacy policy</a> and <a href="en/terms.html">terms and conditions</a>, and to receive informational and marketing communications from RadiaSoft. You may unsubscribe at any time.</p>
</div>
</div>
</form>
<div data-confirmation-modal="" data-is-required="true" data-id="sr-email-login-done" data-title="Check your inbox" data-ok-text="" data-cancel-text="">
<p>We just emailed a confirmation link to {{ data.sentEmail }}. Click the link and you\'ll be signed in. You may close this window.</p>
<p>We just emailed a confirmation link to {{ data.sentEmail }}. Click the link and you'll be signed in. You may close this window.</p>
</div>
`,
controller: function($scope) {
Expand Down Expand Up @@ -3250,7 +3250,7 @@ SIREPO.app.directive('ldapLogin', function (requestSender) {
<button data-ng-click="login()" class="btn btn-primary">Continue</button>
</div>
<div class="sr-input-warning" data-ng-show="showWarning">{{ warningText }}</div>
<p class="help-block">By signing up for Sirepo you agree to Sirepo\'s <a href="en/privacy.html">privacy policy</a> and <a href="en/terms.html">terms and conditions</a>, and to receive informational and marketing communications from RadiaSoft. You may unsubscribe at any time.</p>
<p class="help-block">By signing up for Sirepo you agree to Sirepo's <a href="en/privacy.html">privacy policy</a> and <a href="en/terms.html">terms and conditions</a>, and to receive informational and marketing communications from RadiaSoft. You may unsubscribe at any time.</p>
</div>
</div>
</form>
Expand Down Expand Up @@ -3319,7 +3319,7 @@ SIREPO.app.directive('simConversionModal', function(appState, requestSender) {
convMethod: '@',
},
template: `
<div data-confirmation-modal="" data-is-required="" data-id="sr-conv-dialog" data-title="Open as a New {{ title }} Simulation" data-modal-closed="resetURL()" data-cancel-text="{{ displayLink() ? \'Close\' : \'Cancel\' }}" data-ok-text="{{ displayLink() ? \'\' : \'Create\' }}" data-ok-clicked="openConvertedSimulation()">
<div data-confirmation-modal="" data-is-required="" data-id="sr-conv-dialog" data-title="Open as a New {{ title }} Simulation" data-modal-closed="resetURL()" data-cancel-text="{{ displayLink() ? 'Close' : 'Cancel' }}" data-ok-text="{{ displayLink() ? '' : 'Create' }}" data-ok-clicked="openConvertedSimulation()">
<div data-ng-if="! displayLink()"> Create a {{ title }} simulation with an equivalent beamline? </div>
<div data-ng-if="displayLink()">
{{ title }} simulation created: <a data-ng-click="closeModal()" href="{{ newSimURL }}" target="_blank">{{ newSimURL }} </a>
Expand Down Expand Up @@ -4507,7 +4507,7 @@ SIREPO.app.directive('simSections', function(utilities) {
restrict: 'A',
transclude: true,
template: `
<ul data-ng-transclude="" class="nav navbar-nav sr-navbar-right" data-ng-class="{\'nav-tabs\': isWide()}"></ul>
<ul data-ng-transclude="" class="nav navbar-nav sr-navbar-right" data-ng-class="{'nav-tabs': isWide()}"></ul>
`,
controller: function($scope) {
$scope.isWide = function() {
Expand Down Expand Up @@ -4547,7 +4547,7 @@ SIREPO.app.directive('simStatusPanel', function(appState) {
</div>
<div data-ng-if="simState.showJobSettings()">
<div class="form-group form-group-sm">
<div data-model-field="\'jobRunMode\'" data-model-name="simState.model" data-label-size="6" data-field-size="6"></div>
<div data-model-field="'jobRunMode'" data-model-name="simState.model" data-label-size="6" data-field-size="6"></div>
</div>
<div data-sbatch-options="simState"></div>
</div>
Expand Down

0 comments on commit 19c17d9

Please sign in to comment.