Revert "Remove plugin center authentication"

This reverts commit d353c9a96b.
This commit is contained in:
Till-André Diegeler
2025-06-06 11:27:16 +02:00
parent d353c9a96b
commit 6165bd3d63
89 changed files with 3135 additions and 76 deletions

View File

@@ -26,7 +26,6 @@ import classNames from "classnames";
type Props = {
realmDescription: string;
loginInfoUrl: string;
pluginUrl: string;
disableGroupingGrid: boolean;
dateFormat: string;
anonymousMode: AnonymousMode;
@@ -45,7 +44,6 @@ type Props = {
const GeneralSettings: FC<Props> = ({
realmDescription,
loginInfoUrl,
pluginUrl,
anonymousMode,
alertsUrl,
releaseFeedUrl,
@@ -64,9 +62,6 @@ const GeneralSettings: FC<Props> = ({
const handleLoginInfoUrlChange = (value: string) => {
onChange(true, value, "loginInfoUrl");
};
const handlePluginCenterUrlChange = (value: string) => {
onChange(true, value, "pluginUrl");
};
const handleRealmDescriptionChange = (value: string) => {
onChange(true, value, "realmDescription");
};
@@ -132,17 +127,6 @@ const GeneralSettings: FC<Props> = ({
/>
</div>
</div>
<div className="columns">
<div className="column">
<InputField
label={t("general-settings.pluginUrl")}
onChange={handlePluginCenterUrlChange}
value={pluginUrl}
disabled={!hasUpdatePermission}
helpText={t("help.pluginUrlHelpText")}
/>
</div>
</div>
<div className="columns">
<div className="column">
<Checkbox
@@ -164,9 +148,9 @@ const GeneralSettings: FC<Props> = ({
disabled={!hasUpdatePermission}
className="is-fullwidth"
options={[
{label: t("general-settings.anonymousMode.full"), value: "FULL"},
{label: t("general-settings.anonymousMode.protocolOnly"), value: "PROTOCOL_ONLY"},
{label: t("general-settings.anonymousMode.off"), value: "OFF"},
{ label: t("general-settings.anonymousMode.full"), value: "FULL" },
{ label: t("general-settings.anonymousMode.protocolOnly"), value: "PROTOCOL_ONLY" },
{ label: t("general-settings.anonymousMode.off"), value: "OFF" },
]}
helpText={t("help.allowAnonymousAccessHelpText")}
testId={"anonymous-mode-select"}
@@ -213,12 +197,12 @@ const GeneralSettings: FC<Props> = ({
helpText={t("general-settings.emergencyContacts.helpText")}
placeholder={t("general-settings.emergencyContacts.autocompletePlaceholder")}
aria-label="general-settings.emergencyContacts.ariaLabel"
value={emergencyContacts.map((m) => ({label: m, value: {id: m, displayName: m}}))}
value={emergencyContacts.map((m) => ({ label: m, value: { id: m, displayName: m } }))}
onChange={handleEmergencyContactsChange}
>
<Combobox<AutocompleteObject>
options={userOptions || []}
className={classNames({"is-loading": userOptionsLoading})}
className={classNames({ "is-loading": userOptionsLoading })}
onQueryChange={setQuery}
/>
</ChipInputField>