1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 23:35:31 +02:00

refactor(icons): replace fa icons [EE-4459] (#7907)

refactor(icons): remove fontawesome EE-4459

refactor(icon) replace feather with lucide EE-4472
This commit is contained in:
Ali 2022-11-28 15:00:28 +13:00 committed by GitHub
parent 9dfac98a26
commit d78b762f7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
498 changed files with 2102 additions and 2817 deletions

View file

@ -1,13 +1,13 @@
<form ng-if="applicationState.endpoint.apiVersion >= 1.3" id="service-configs" ng-submit="updateService(service)">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Configs"> </rd-widget-header>
<rd-widget-header icon="list" title-text="Configs"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<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)"> <pr-icon icon="'plus'" feather="true"></pr-icon> add config </a>
<a class="btn btn-default btn-sm" ng-click="addConfig(service, newConfig)"> <pr-icon icon="'plus'"></pr-icon> add config </a>
</div>
<table class="table" style="margin-top: 5px">
<thead>
@ -40,7 +40,7 @@
<td>{{ config.Mode }}</td>
<td authorization="DockerServiceUpdate">
<button class="btn btn-dangerlight pull-right" type="button" ng-click="removeConfig(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</td>
</tr>

View file

@ -1,9 +1,9 @@
<div ng-if="service.ServiceConstraints" id="service-placement-constraints">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Placement constraints">
<rd-widget-header icon="list" title-text="Placement constraints">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating || addPlacementConstraint(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> placement constraint
<pr-icon icon="'plus'"></pr-icon> placement constraint
</a>
</div>
</rd-widget-header>
@ -62,7 +62,7 @@
/>
<span class="input-group-btn" authorization="DockerServiceUpdate">
<button class="btn btn-dangerlight" type="button" ng-click="removePlacementConstraint(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</div>

View file

@ -1,6 +1,6 @@
<div>
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Container spec"></rd-widget-header>
<rd-widget-header icon="list" title-text="Container spec"></rd-widget-header>
<rd-widget-body classes="no-padding">
<table class="table">
<tbody>

View file

@ -1,9 +1,9 @@
<div id="service-container-labels">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Container labels">
<rd-widget-header icon="list" title-text="Container labels">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating ||addContainerLabel(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> container label
<pr-icon icon="'plus'"></pr-icon> container label
</a>
</div>
</rd-widget-header>
@ -48,7 +48,7 @@
/>
<span class="input-group-btn" authorization="DockerServiceUpdate">
<button class="btn btn-dangerlight" type="button" ng-click="removeContainerLabel(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</div>

View file

@ -1,9 +1,9 @@
<ng-form ng-if="service.EnvironmentVariables" id="service-env-variables" name="serviceEnvForm">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Environment variables">
<rd-widget-header icon="list" title-text="Environment variables">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating || addEnvironmentVariable(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> environment variable
<pr-icon icon="'plus'"></pr-icon> environment variable
</a>
</div>
</rd-widget-header>

View file

@ -1,9 +1,9 @@
<div>
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Hosts file entries">
<rd-widget-header icon="list" title-text="Hosts file entries">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating ||addHostsEntry(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> add host entry
<pr-icon icon="'plus'"></pr-icon> add host entry
</a>
</div>
</rd-widget-header>
@ -46,7 +46,7 @@
/>
<span class="input-group-btn" authorization="DockerServiceUpdate">
<button class="btn btn-dangerlight" type="button" ng-click="removeHostsEntry(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</div>

View file

@ -1,6 +1,6 @@
<div id="service-container-image" authorization="DockerServiceUpdate">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Change container image"> </rd-widget-header>
<rd-widget-header icon="list" title-text="Change container image"> </rd-widget-header>
<rd-widget-body ng-if="!isUpdating">
<form class="form-horizontal">
<por-image-registry

View file

@ -1,6 +1,6 @@
<div id="service-logging-driver">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Logging driver"> </rd-widget-header>
<rd-widget-header icon="list" title-text="Logging driver"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<div class="form-inline" style="padding: 10px" authorization="DockerServiceUpdate">
Driver:
@ -10,7 +10,7 @@
<option value="none">none</option>
</select>
<a class="btn btn-default btn-sm" ng-click="!service.LogDriverName || service.LogDriverName === 'none' || addLogDriverOpt(service)">
<pr-icon icon="'plus'" feather="true"></pr-icon> add logging driver option
<pr-icon icon="'plus'"></pr-icon> add logging driver option
</a>
</div>
<table class="table">
@ -42,7 +42,7 @@
/>
<span class="input-group-btn" authorization="DockerServiceUpdate">
<button class="btn btn-dangerlight" type="button" ng-click="removeLogDriverOpt(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</div>

View file

@ -1,10 +1,8 @@
<div ng-if="service.ServiceMounts" id="service-mounts">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Mounts">
<rd-widget-header icon="list" title-text="Mounts">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating ||addMount(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> mount
</a>
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating ||addMount(service)" ng-disabled="isUpdating"> <pr-icon icon="'plus'"></pr-icon> mount </a>
</div>
</rd-widget-header>
<rd-widget-body ng-if="service.ServiceMounts.length === 0">
@ -57,9 +55,7 @@
ng-disabled="isUpdating || (!isAdmin && !allowBindMounts && mount.Type === 'bind')"
ng-if="mount.Type === 'bind'"
/>
<div class="col-sm-12 small text-warning" ng-show="!mount.Source">
<pr-icon icon="'alert-triangle'" mode="'warning'" feather="true"></pr-icon> Source is required.
</div>
<div class="col-sm-12 small text-warning" ng-show="!mount.Source"> <pr-icon icon="'alert-triangle'" mode="'warning'"></pr-icon> Source is required. </div>
</td>
<td>
<input
@ -71,9 +67,7 @@
ng-disabled="isUpdating"
disable-authorization="DockerServiceUpdate"
/>
<div class="col-sm-12 small text-warning" ng-show="!mount.Target">
<pr-icon icon="'alert-triangle'" mode="'warning'" feather="true"></pr-icon> Target is required.
</div>
<div class="col-sm-12 small text-warning" ng-show="!mount.Target"> <pr-icon icon="'alert-triangle'" mode="'warning'"></pr-icon> Target is required. </div>
</td>
<td authorization="DockerServiceUpdate">
<input type="checkbox" class="form-control" ng-model="mount.ReadOnly" ng-change="updateMount(service, mount)" ng-disabled="isUpdating" />
@ -81,7 +75,7 @@
<td authorization="DockerServiceUpdate">
<span class="input-group-btn">
<button class="btn btn-dangerlight" type="button" ng-click="removeMount(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</td>

View file

@ -1,10 +1,8 @@
<div id="service-network-specs">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Networks">
<rd-widget-header icon="list" title-text="Networks">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating || addNetwork(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> network
</a>
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating || addNetwork(service)" ng-disabled="isUpdating"> <pr-icon icon="'plus'"></pr-icon> network </a>
</div>
</rd-widget-header>
<rd-widget-body ng-if="!service.Networks || service.Networks.length === 0">
@ -45,7 +43,7 @@
<td ng-if="network.Editable" authorization="DockerServiceUpdate">
<span class="input-group-btn">
<button class="btn btn-dangerlight" type="button" ng-click="removeNetwork(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</td>

View file

@ -1,9 +1,9 @@
<div ng-if="service.ServicePreferences" id="service-placement-preferences">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Placement preferences">
<rd-widget-header icon="list" title-text="Placement preferences">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating || addPlacementPreference(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> placement preference
<pr-icon icon="'plus'"></pr-icon> placement preference
</a>
</div>
</rd-widget-header>
@ -46,7 +46,7 @@
/>
<span class="input-group-btn" authorization="DockerServiceUpdate">
<button class="btn btn-dangerlight" type="button" ng-click="removePlacementPreference(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</div>

View file

@ -1,9 +1,9 @@
<div>
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Published ports">
<rd-widget-header icon="list" title-text="Published ports">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating ||addPublishedPort(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> port mapping
<pr-icon icon="'plus'"></pr-icon> port mapping
</a>
</div>
</rd-widget-header>
@ -82,7 +82,7 @@
<td authorization="DockerServiceUpdate">
<span class="input-group-btn">
<button class="btn btn-dangerlight" type="button" ng-click="removePortPublishedBinding(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</td>

View file

@ -1,6 +1,6 @@
<div id="service-resources">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Resource limits and reservations"> </rd-widget-header>
<rd-widget-header icon="list" title-text="Resource limits and reservations"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<table class="table">
<tbody>

View file

@ -1,6 +1,6 @@
<div id="service-restart-policy">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Restart policy"> </rd-widget-header>
<rd-widget-header icon="list" title-text="Restart policy"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<table class="table">
<tbody>

View file

@ -1,6 +1,6 @@
<div ng-if="applicationState.endpoint.apiVersion >= 1.25" id="service-secrets">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Secrets"> </rd-widget-header>
<rd-widget-header icon="list" title-text="Secrets"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<div class="form-inline" style="padding: 10px" authorization="DockerServiceUpdate">
Add a secret:
@ -15,7 +15,7 @@
<label class="btn btn-light" ng-model="state.addSecret.override" uib-btn-radio="false">Default location</label>
<label class="btn btn-light" ng-model="state.addSecret.override" uib-btn-radio="true">Override</label>
</div>
<a class="btn btn-default btn-sm" ng-click="addSecret(service, state.addSecret)"> <pr-icon icon="'plus'" feather="true"></pr-icon> add secret </a>
<a class="btn btn-default btn-sm" ng-click="addSecret(service, state.addSecret)"> <pr-icon icon="'plus'"></pr-icon> add secret </a>
</div>
<table class="table" style="margin-top: 5px">
<thead>
@ -39,7 +39,7 @@
<td>{{ secret.Mode }}</td>
<td authorization="DockerServiceUpdate">
<button class="btn btn-dangerlight pull-right" type="button" ng-click="removeSecret(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</td>
</tr>

View file

@ -1,10 +1,8 @@
<div id="service-labels">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Service labels">
<rd-widget-header icon="list" title-text="Service labels">
<div class="nopadding" authorization="DockerServiceUpdate">
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating || addLabel(service)" ng-disabled="isUpdating">
<pr-icon icon="'plus'" feather="true"></pr-icon> label
</a>
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating || addLabel(service)" ng-disabled="isUpdating"> <pr-icon icon="'plus'"></pr-icon> label </a>
</div>
</rd-widget-header>
<rd-widget-body ng-if="service.ServiceLabels.length === 0">
@ -48,7 +46,7 @@
/>
<span class="input-group-btn" authorization="DockerServiceUpdate">
<button class="btn btn-dangerlight" type="button" ng-click="removeLabel(service, $index)" ng-disabled="isUpdating">
<pr-icon icon="'trash-2'" feather="true" size="'md'"></pr-icon>
<pr-icon icon="'trash-2'" size="'md'"></pr-icon>
</button>
</span>
</div>

View file

@ -1,6 +1,6 @@
<div id="service-update-config">
<rd-widget>
<rd-widget-header icon="list" feather-icon="true" title-text="Update configuration"> </rd-widget-header>
<rd-widget-header icon="list" title-text="Update configuration"> </rd-widget-header>
<rd-widget-body classes="no-padding">
<table class="table">
<tbody>