mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: show signing status on datasources and plugins (#23542)
* show signing status * show signing status * Progress on signed badge style * Progress on signing status look and updated card background * Updates * Transforms card tweak Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
@@ -14,6 +14,14 @@ export enum PluginType {
|
||||
renderer = 'renderer',
|
||||
}
|
||||
|
||||
export enum PluginSignatureStatus {
|
||||
internal = 'internal', // core plugin, no signature
|
||||
valid = 'valid', // signed and accurate MANIFEST
|
||||
invalid = 'invalid', // invalid signature
|
||||
modified = 'modified', // valid signature, but content mismatch
|
||||
unsigned = 'unsigned', // no MANIFEST file
|
||||
}
|
||||
|
||||
export interface PluginMeta<T extends KeyValue = {}> {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -38,6 +46,7 @@ export interface PluginMeta<T extends KeyValue = {}> {
|
||||
enterprise?: boolean;
|
||||
latestVersion?: string;
|
||||
pinned?: boolean;
|
||||
signature?: PluginSignatureStatus;
|
||||
}
|
||||
|
||||
interface PluginDependencyInfo {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import { GrafanaTheme } from '@grafana/data';
|
||||
import { renderGeneratedFileBanner } from '../utils/generatedFileBanner';
|
||||
import { styleMixins } from '.';
|
||||
|
||||
export const darkThemeVarsTemplate = (theme: GrafanaTheme) =>
|
||||
`${renderGeneratedFileBanner('grafana-ui/src/themes/dark.ts', 'grafana-ui/src/themes/_variables.dark.scss.tmpl.ts')}
|
||||
@@ -140,9 +141,9 @@ $code-tag-bg: $dark-1;
|
||||
$code-tag-border: $dark-9;
|
||||
|
||||
// cards
|
||||
$card-background: linear-gradient(135deg, $dark-4, $dark-3);
|
||||
$card-background-hover: linear-gradient(135deg, $dark-5, $dark-6);
|
||||
$card-shadow: -1px -1px 0 0 hsla(0, 0%, 100%, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.3);
|
||||
$card-background: ${theme.colors.bg2};
|
||||
$card-background-hover: ${styleMixins.hoverColor(theme.colors.bg2, theme)};
|
||||
$card-shadow: none;
|
||||
|
||||
// Lists
|
||||
$list-item-bg: $card-background;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import { GrafanaTheme } from '@grafana/data';
|
||||
import { renderGeneratedFileBanner } from '../utils/generatedFileBanner';
|
||||
import { styleMixins } from '.';
|
||||
|
||||
export const lightThemeVarsTemplate = (theme: GrafanaTheme) =>
|
||||
`${renderGeneratedFileBanner('grafana-ui/src/themes/light.ts', 'grafana-ui/src/themes/_variable.light.scss.tmpl.ts')}
|
||||
@@ -133,9 +134,9 @@ $code-tag-bg: $gray-6;
|
||||
$code-tag-border: $gray-4;
|
||||
|
||||
// cards
|
||||
$card-background: linear-gradient(135deg, $gray-6, $gray-7);
|
||||
$card-background-hover: linear-gradient(135deg, $gray-6, $gray-5);
|
||||
$card-shadow: -1px -1px 0 0 hsla(0, 0%, 100%, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.1);
|
||||
$card-background: ${theme.colors.bg2};
|
||||
$card-background-hover: ${styleMixins.hoverColor(theme.colors.bg2, theme)};
|
||||
$card-shadow: none;
|
||||
|
||||
// Lists
|
||||
$list-item-bg: $gray-7;
|
||||
|
||||
@@ -129,7 +129,7 @@ const darkTheme: GrafanaTheme = {
|
||||
linkExternal: basicColors.blue85,
|
||||
},
|
||||
shadows: {
|
||||
listItem: '-1px -1px 0 0 hsla(0, 0%, 100%, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.3)',
|
||||
listItem: 'none',
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ const lightTheme: GrafanaTheme = {
|
||||
textHeading: basicColors.gray25,
|
||||
},
|
||||
shadows: {
|
||||
listItem: '-1px -1px 0 0 hsla(0, 0%, 100%, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.1)',
|
||||
listItem: 'none',
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user