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

refactor(docker): migrate dashboard to react [EE-2191] (#11574)
Some checks are pending
ci / build_images (map[arch:ppc64le platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:s390x platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux version:]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run

This commit is contained in:
Chaim Lev-Ari 2024-05-20 09:34:51 +03:00 committed by GitHub
parent 2669a44d79
commit 014a590704
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
54 changed files with 1297 additions and 507 deletions

View file

@ -16,16 +16,21 @@ export function BackupFailedPanel() {
}
return (
<InformationPanel title="Information">
<TextTip>
The latest automated backup has failed at {isoDate(status.TimestampUTC)}
. For details please see the log files and have a look at the{' '}
<Link to="portainer.settings" data-cy="backup-failed-settings-link">
settings
</Link>{' '}
to verify the backup configuration.
</TextTip>
</InformationPanel>
<div className="row">
<div className="col-sm-12">
<InformationPanel title="Information">
<TextTip>
The latest automated backup has failed at{' '}
{isoDate(status.TimestampUTC)}. For details please see the log files
and have a look at the{' '}
<Link to="portainer.settings" data-cy="backup-failed-settings-link">
settings
</Link>{' '}
to verify the backup configuration.
</TextTip>
</InformationPanel>
</div>
</div>
);
}

View file

@ -4,26 +4,30 @@ import { TextTip } from '@@/Tip/TextTip';
export function NoEnvironmentsInfoPanel({ isAdmin }: { isAdmin: boolean }) {
return (
<InformationPanel title="Information">
<TextTip>
{isAdmin ? (
<span>
No environment available for management. Please head over the{' '}
<Link
to="portainer.wizard.endpoints"
data-cy="wizard-add-environments-link"
>
environment wizard
</Link>{' '}
to add an environment.
</span>
) : (
<span>
You do not have access to any environment. Please contact your
administrator.
</span>
)}
</TextTip>
</InformationPanel>
<div className="row">
<div className="col-sm-12">
<InformationPanel title="Information">
<TextTip>
{isAdmin ? (
<span>
No environment available for management. Please head over the{' '}
<Link
to="portainer.wizard.endpoints"
data-cy="wizard-add-environments-link"
>
environment wizard
</Link>{' '}
to add an environment.
</span>
) : (
<span>
You do not have access to any environment. Please contact your
administrator.
</span>
)}
</TextTip>
</InformationPanel>
</div>
</div>
);
}

View file

@ -1,5 +1,6 @@
import { useQuery } from '@tanstack/react-query';
import _ from 'lodash';
import sanitize from 'sanitize-html';
import { useUIState } from '@/react/hooks/useUIState';
@ -23,17 +24,21 @@ export function MotdPanel() {
return (
<>
{!!motd.Style && <style>{motd.Style}</style>}
<InformationPanel
onDismiss={() => onDismiss(motd.Hash)}
title={motd.Title}
wrapperStyle={camelCaseKeys(motd.ContentLayout)}
bodyClassName="motd-body"
>
<span className="text-muted">
{/* eslint-disable-next-line react/no-danger */}
<p dangerouslySetInnerHTML={{ __html: motd.Message }} />
</span>
</InformationPanel>
<div className="row">
<div className="col-sm-12">
<InformationPanel
onDismiss={() => onDismiss(motd.Hash)}
title={motd.Title}
wrapperStyle={camelCaseKeys(motd.ContentLayout)}
bodyClassName="motd-body"
>
<span className="text-muted">
{/* eslint-disable-next-line react/no-danger */}
<p dangerouslySetInnerHTML={{ __html: sanitize(motd.Message) }} />
</span>
</InformationPanel>
</div>
</div>
</>
);

View file

@ -144,7 +144,7 @@ export type Environment = {
AMTDeviceGUID?: string;
Edge: EnvironmentEdge;
SecuritySettings: EnvironmentSecuritySettings;
Gpus: { name: string; value: string }[];
Gpus?: { name: string; value: string }[];
EnableImageNotification: boolean;
LocalTimeZone?: string;

View file

@ -8,12 +8,16 @@ export function ListView() {
<>
<PageHeader title="Registries" breadcrumbs="Registry management" reload />
<InformationPanel title="Information">
<span className="small text-muted">
View registries via an environment to manage access for user(s) and/or
team(s)
</span>
</InformationPanel>
<div className="row">
<div className="col-sm-12">
<InformationPanel title="Information">
<span className="small text-muted">
View registries via an environment to manage access for user(s)
and/or team(s)
</span>
</InformationPanel>
</div>
</div>
<RegistriesDatatable />
</>