mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 11:18:51 +02:00
Use icons for info provider settings
This commit is contained in:
parent
47830dcd08
commit
99c10ffe85
4 changed files with 8 additions and 0 deletions
|
@ -23,12 +23,14 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Settings\InfoProviderSystem;
|
namespace App\Settings\InfoProviderSystem;
|
||||||
|
|
||||||
|
use App\Settings\SettingsIcon;
|
||||||
use Jbtronics\SettingsBundle\Settings\Settings;
|
use Jbtronics\SettingsBundle\Settings\Settings;
|
||||||
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
||||||
use Jbtronics\SettingsBundle\Settings\SettingsTrait;
|
use Jbtronics\SettingsBundle\Settings\SettingsTrait;
|
||||||
use Symfony\Component\Translation\TranslatableMessage as TM;
|
use Symfony\Component\Translation\TranslatableMessage as TM;
|
||||||
|
|
||||||
#[Settings(label: new TM("settings.ips.element14"))]
|
#[Settings(label: new TM("settings.ips.element14"))]
|
||||||
|
#[SettingsIcon("fa-plug")]
|
||||||
class Element14Settings
|
class Element14Settings
|
||||||
{
|
{
|
||||||
use SettingsTrait;
|
use SettingsTrait;
|
||||||
|
|
|
@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Settings\InfoProviderSystem;
|
namespace App\Settings\InfoProviderSystem;
|
||||||
|
|
||||||
|
use App\Settings\SettingsIcon;
|
||||||
use Jbtronics\SettingsBundle\Settings\Settings;
|
use Jbtronics\SettingsBundle\Settings\Settings;
|
||||||
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
||||||
use Jbtronics\SettingsBundle\Settings\SettingsTrait;
|
use Jbtronics\SettingsBundle\Settings\SettingsTrait;
|
||||||
|
@ -31,6 +32,7 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||||
use Symfony\Component\Translation\TranslatableMessage as TM;
|
use Symfony\Component\Translation\TranslatableMessage as TM;
|
||||||
|
|
||||||
#[Settings(label: new TM("settings.ips.lcsc"), description: new TM("settings.ips.lcsc.help"))]
|
#[Settings(label: new TM("settings.ips.lcsc"), description: new TM("settings.ips.lcsc.help"))]
|
||||||
|
#[SettingsIcon("fa-plug")]
|
||||||
class LCSCSettings
|
class LCSCSettings
|
||||||
{
|
{
|
||||||
use SettingsTrait;
|
use SettingsTrait;
|
||||||
|
|
|
@ -23,12 +23,14 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Settings\InfoProviderSystem;
|
namespace App\Settings\InfoProviderSystem;
|
||||||
|
|
||||||
|
use App\Settings\SettingsIcon;
|
||||||
use Jbtronics\SettingsBundle\Settings\Settings;
|
use Jbtronics\SettingsBundle\Settings\Settings;
|
||||||
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
||||||
use Symfony\Component\Validator\Constraints as Assert;
|
use Symfony\Component\Validator\Constraints as Assert;
|
||||||
use Symfony\Component\Translation\TranslatableMessage as TM;
|
use Symfony\Component\Translation\TranslatableMessage as TM;
|
||||||
|
|
||||||
#[Settings(label: new TM("settings.ips.mouser"))]
|
#[Settings(label: new TM("settings.ips.mouser"))]
|
||||||
|
#[SettingsIcon("fa-plug")]
|
||||||
class MouserSettings
|
class MouserSettings
|
||||||
{
|
{
|
||||||
#[SettingsParameter(label: new TM("settings.ips.mouser.apiKey"), description: new TM("settings.ips.mouser.apiKey.help"), formOptions: ["help_html" => true], envVar: "PROVIDER_MOUSER_KEY")]
|
#[SettingsParameter(label: new TM("settings.ips.mouser.apiKey"), description: new TM("settings.ips.mouser.apiKey.help"), formOptions: ["help_html" => true], envVar: "PROVIDER_MOUSER_KEY")]
|
||||||
|
|
|
@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Settings\InfoProviderSystem;
|
namespace App\Settings\InfoProviderSystem;
|
||||||
|
|
||||||
|
use App\Settings\SettingsIcon;
|
||||||
use Jbtronics\SettingsBundle\Settings\Settings;
|
use Jbtronics\SettingsBundle\Settings\Settings;
|
||||||
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
||||||
use Jbtronics\SettingsBundle\Settings\SettingsTrait;
|
use Jbtronics\SettingsBundle\Settings\SettingsTrait;
|
||||||
|
@ -33,6 +34,7 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||||
use Symfony\Component\Translation\TranslatableMessage as TM;
|
use Symfony\Component\Translation\TranslatableMessage as TM;
|
||||||
|
|
||||||
#[Settings(label: new TM("settings.ips.tme"))]
|
#[Settings(label: new TM("settings.ips.tme"))]
|
||||||
|
#[SettingsIcon("fa-plug")]
|
||||||
class TMESettings
|
class TMESettings
|
||||||
{
|
{
|
||||||
use SettingsTrait;
|
use SettingsTrait;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue