1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 07:45:22 +02:00

fix(app): add github action for linting and formatting [EE-2344] (#6356)

This commit is contained in:
Chaim Lev-Ari 2022-01-17 07:53:32 +02:00 committed by GitHub
parent 34cc8ea96a
commit 1b1a50d6b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
313 changed files with 2685 additions and 3873 deletions

View file

@ -2,14 +2,14 @@
<rd-widget>
<rd-widget-header icon="fa-tasks" title-text="Configs"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<div class="form-inline" style="padding: 10px;" authorization="DockerServiceUpdate">
<div class="form-inline" style="padding: 10px" authorization="DockerServiceUpdate">
Add a config:
<select class="form-control" ng-options="config.Name for config in configs | orderBy: 'Name'" ng-model="newConfig">
<option selected disabled hidden value="">Select a config</option>
</select>
<a class="btn btn-default btn-sm" ng-click="addConfig(service, newConfig)"> <i class="fa fa-plus-circle" aria-hidden="true"></i> add config </a>
</div>
<table class="table" style="margin-top: 5px;">
<table class="table" style="margin-top: 5px">
<thead>
<tr>
<th>Name</th>

View file

@ -10,9 +10,7 @@
><code ng-if="service.Command">{{ service.Command | command }}</code></td
>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Command to execute.
</p>
<p class="small text-muted" style="margin-top: 10px"> Command to execute. </p>
</td>
</tr>
<tr>
@ -21,36 +19,28 @@
><code ng-if="service.Arguments">{{ service.Arguments }}</code></td
>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Arguments passed to command in container.
</p>
<p class="small text-muted" style="margin-top: 10px"> Arguments passed to command in container. </p>
</td>
</tr>
<tr>
<td>User</td>
<td>{{ service.User }}</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Username or UID.
</p>
<p class="small text-muted" style="margin-top: 10px"> Username or UID. </p>
</td>
</tr>
<tr>
<td>Working directory</td>
<td>{{ service.Dir }}</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Working directory inside the container.
</p>
<p class="small text-muted" style="margin-top: 10px"> Working directory inside the container. </p>
</td>
</tr>
<tr>
<td>Stop grace period</td>
<td>{{ service.StopGracePeriod }}</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Time to wait before force killing a container (default none).
</p>
<p class="small text-muted" style="margin-top: 10px"> Time to wait before force killing a container (default none). </p>
</td>
</tr>
</tbody>

View file

@ -2,7 +2,7 @@
<rd-widget>
<rd-widget-header icon="fa-tasks" title-text="Logging driver"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<div class="form-inline" style="padding: 10px;" authorization="DockerServiceUpdate">
<div class="form-inline" style="padding: 10px" authorization="DockerServiceUpdate">
Driver:
<select class="form-control" ng-model="service.LogDriverName" ng-change="updateLogDriverName(service)" ng-disabled="isUpdating">
<option selected value="">Default logging driver</option>

View file

@ -30,7 +30,7 @@
ng-change="updateNetwork(service)"
ng-options="net.Id as net.Name for net in filterNetworks(swarmNetworks, network)"
disable-authorization="DockerServiceUpdate"
style="width: initial; min-width: 50%;"
style="width: initial; min-width: 50%"
>
<option disabled value="" selected>Select a network</option>
</select>

View file

@ -5,9 +5,7 @@
<table class="table">
<tbody>
<tr>
<td style="vertical-align: middle;">
Memory reservation (MB)
</td>
<td style="vertical-align: middle"> Memory reservation (MB) </td>
<td>
<input
class="input-sm"
@ -19,16 +17,12 @@
disable-authorization="DockerServiceUpdate"
/>
</td>
<td style="vertical-align: middle;">
<p class="small text-muted">
Minimum memory available on a node to run a task (set to 0 for unlimited)
</p>
<td style="vertical-align: middle">
<p class="small text-muted"> Minimum memory available on a node to run a task (set to 0 for unlimited) </p>
</td>
</tr>
<tr>
<td style="vertical-align: middle;">
Memory limit (MB)
</td>
<td style="vertical-align: middle"> Memory limit (MB) </td>
<td>
<input
class="input-sm"
@ -40,17 +34,13 @@
disable-authorization="DockerServiceUpdate"
/>
</td>
<td style="vertical-align: middle;">
<p class="small text-muted">
Maximum memory usage per task (set to 0 for unlimited)
</p>
<td style="vertical-align: middle">
<p class="small text-muted"> Maximum memory usage per task (set to 0 for unlimited) </p>
</td>
</tr>
<tr>
<td style="vertical-align: middle;">
<div>
CPU reservation
</div>
<td style="vertical-align: middle">
<div> CPU reservation </div>
</td>
<td>
<slider
@ -64,17 +54,13 @@
disable-authorization="DockerServiceUpdate"
></slider>
</td>
<td style="vertical-align: middle;">
<p class="small text-muted">
Minimum CPU available on a node to run a task
</p>
<td style="vertical-align: middle">
<p class="small text-muted"> Minimum CPU available on a node to run a task </p>
</td>
</tr>
<tr>
<td style="vertical-align: middle;">
<div>
CPU limit
</div>
<td style="vertical-align: middle">
<div> CPU limit </div>
</td>
<td>
<slider
@ -88,10 +74,8 @@
disable-authorization="DockerServiceUpdate"
></slider>
</td>
<td style="vertical-align: middle;">
<p class="small text-muted">
Maximum CPU usage per task
</p>
<td style="vertical-align: middle">
<p class="small text-muted"> Maximum CPU usage per task </p>
</td>
</tr>
</tbody>

View file

@ -21,9 +21,7 @@
</div>
</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Condition for restart.
</p>
<p class="small text-muted" style="margin-top: 10px"> Condition for restart. </p>
</td>
</tr>
<tr>
@ -39,7 +37,7 @@
/>
</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
<p class="small text-muted" style="margin-top: 10px">
Delay between restart attempts expressed by a number followed by unit (ns|us|ms|s|m|h). Default value is 5s, 5 seconds.
</p>
</td>
@ -56,9 +54,7 @@
/>
</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Maximum attempts to restart a given task before giving up (default value is 0, which means unlimited).
</p>
<p class="small text-muted" style="margin-top: 10px"> Maximum attempts to restart a given task before giving up (default value is 0, which means unlimited). </p>
</td>
</tr>
<tr>
@ -74,7 +70,7 @@
/>
</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
<p class="small text-muted" style="margin-top: 10px">
Time window to evaluate restart attempts expressed by a number followed by unit (ns|us|ms|s|m|h). Default value is 0 seconds, which is unbounded.
</p>
</td>

View file

@ -2,7 +2,7 @@
<rd-widget>
<rd-widget-header icon="fa-tasks" title-text="Secrets"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<div class="form-inline" style="padding: 10px;" authorization="DockerServiceUpdate">
<div class="form-inline" style="padding: 10px" authorization="DockerServiceUpdate">
Add a secret:
<select class="form-control" ng-options="secret.Name for secret in secrets | orderBy: 'Name'" ng-model="state.addSecret.secret">
<option selected disabled hidden value="">Select a secret</option>
@ -17,7 +17,7 @@
</div>
<a class="btn btn-default btn-sm" ng-click="addSecret(service, state.addSecret)"> <i class="fa fa-plus-circle" aria-hidden="true"></i> add secret </a>
</div>
<table class="table" style="margin-top: 5px;">
<table class="table" style="margin-top: 5px">
<thead>
<tr>
<th>Name</th>

View file

@ -14,12 +14,8 @@
<table class="table">
<thead>
<tr>
<th>
Label
</th>
<th>
Value
</th>
<th> Label </th>
<th> Value </th>
</tr>
</thead>
<tbody>

View file

@ -16,9 +16,7 @@
/>
</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Maximum number of tasks to be updated simultaneously (0 to update all at once).
</p>
<p class="small text-muted" style="margin-top: 10px"> Maximum number of tasks to be updated simultaneously (0 to update all at once). </p>
</td>
</tr>
<tr>
@ -34,9 +32,7 @@
/>
</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Amount of time between updates expressed by a number followed by unit (ns|us|ms|s|m|h). Example: 1m.
</p>
<p class="small text-muted" style="margin-top: 10px"> Amount of time between updates expressed by a number followed by unit (ns|us|ms|s|m|h). Example: 1m. </p>
</td>
</tr>
<tr>
@ -68,9 +64,7 @@
</div>
</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Action taken on failure to start after update.
</p>
<p class="small text-muted" style="margin-top: 10px"> Action taken on failure to start after update. </p>
</td>
</tr>
<tr ng-if="applicationState.endpoint.apiVersion >= 1.29">
@ -102,9 +96,7 @@
</div>
</td>
<td>
<p class="small text-muted" style="margin-top: 10px;">
Operation order on failure.
</p>
<p class="small text-muted" style="margin-top: 10px"> Operation order on failure. </p>
</td>
</tr>
</tbody>

View file

@ -81,7 +81,7 @@
position="top"
message="Webhook (or callback URI) used to automate the update of this service. Sending a POST request to this callback URI (without requiring any authentication) will pull the most up-to-date version of the associated image and re-deploy this service."
></portainer-tooltip>
<label class="switch" style="margin-left: 20px;">
<label class="switch" style="margin-left: 20px">
<input disable-authorization="DockerServiceUpdate" type="checkbox" ng-model="WebhookExists" ng-click="updateWebhook(service)" /><i></i>
</label>
</td>
@ -91,7 +91,7 @@
<span><i class="fa fa-copy space-right" aria-hidden="true"></i>Copy link</span>
</button>
<span>
<i id="copyNotification" class="fa fa-check green-icon" aria-hidden="true" style="margin-left: 7px; display: none;"></i>
<i id="copyNotification" class="fa fa-check green-icon" aria-hidden="true" style="margin-left: 7px; display: none"></i>
</span>
</td>
</tr>