feat: add crud for integrations (#11)
* wip: add crud for services and integrations * feat: remove services * feat: move integration definitions to homarr/definitions, add temporary test connection solution without actual request * feat: add integration count badge * feat: add translation for integrations * feat: add notifications and translate them * feat: add notice to integration forms about test connection * chore: fix ci check issues * feat: add confirm modals for integration deletion and secret card cancellation, change ordering for list page, add name property to integrations * refactor: move revalidate path action * chore: fix ci check issues * chore: install missing dependencies * chore: fix ci check issues * chore: address pull request feedback
This commit is contained in:
11
packages/ui/src/components/count-badge.module.css
Normal file
11
packages/ui/src/components/count-badge.module.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.badge {
|
||||
@mixin light {
|
||||
--badge-bg: rgba(30, 34, 39, 0.08);
|
||||
--badge-color: var(--mantine-color-black);
|
||||
}
|
||||
|
||||
@mixin dark {
|
||||
--badge-bg: #363c44;
|
||||
--badge-color: var(--mantine-color-white);
|
||||
}
|
||||
}
|
||||
11
packages/ui/src/components/count-badge.tsx
Normal file
11
packages/ui/src/components/count-badge.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Badge } from "@mantine/core";
|
||||
|
||||
import classes from "./count-badge.module.css";
|
||||
|
||||
interface CountBadgeProps {
|
||||
count: number;
|
||||
}
|
||||
|
||||
export const CountBadge = ({ count }: CountBadgeProps) => {
|
||||
return <Badge className={classes.badge}>{count}</Badge>;
|
||||
};
|
||||
1
packages/ui/src/components/index.tsx
Normal file
1
packages/ui/src/components/index.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./count-badge";
|
||||
@@ -2,6 +2,8 @@ import type { MantineProviderProps } from "@mantine/core";
|
||||
|
||||
import { theme } from "./theme";
|
||||
|
||||
export * from "./components";
|
||||
|
||||
export const uiConfiguration = {
|
||||
theme,
|
||||
} satisfies MantineProviderProps;
|
||||
|
||||
Reference in New Issue
Block a user