feat(docs): migrate documentation site into monorepo (#5912)
This commit is contained in:
1 parent
3e464a76f2
commit
9e421c67bd
605 files changed
+26764
-219
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,40 @@
|
||||
---
|
||||
title: 'Immich Server Stats'
|
||||
description: 'Information about your Immich instance'
|
||||
hide_title: true
|
||||
---
|
||||
|
||||
import { immichIntegration } from '../../integrations/immich';
|
||||
import { AddingWidget } from '@site/src/components/widgets/adding';
|
||||
import { WidgetConfig } from '@site/src/components/widgets/configuration';
|
||||
import { WidgetIntegrations } from '@site/src/components/widgets/integrations';
|
||||
import { WidgetHeader } from '@site/src/components/widgets/header';
|
||||
import { immichServerStatsWidget } from '.';
|
||||
|
||||
|
||||
<WidgetHeader
|
||||
widget={immichServerStatsWidget}
|
||||
categories={['Photos server']}
|
||||
/>
|
||||
|
||||
### Screenshots
|
||||
|
||||
import screen from './img/screen.png';
|
||||
|
||||
|
||||
<img src={screen} height={256} alt="immich server stats size-big" />
|
||||
|
||||
### Supported Integrations
|
||||
|
||||
<WidgetIntegrations items={[{
|
||||
integration: immichIntegration,
|
||||
}]} />
|
||||
|
||||
### Adding the widget
|
||||
|
||||
<AddingWidget />
|
||||
|
||||
|
||||
### Configuration
|
||||
<WidgetConfig configuration={immichServerStatsWidget.configuration} />
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
import { WidgetDefinition } from "@site/src/types";
|
||||
import { IconGraph } from "@tabler/icons-react";
|
||||
|
||||
export const immichServerStatsWidget: WidgetDefinition = {
|
||||
icon: IconGraph,
|
||||
name: "Immich Server Stats",
|
||||
description: "Information about your Immich instance",
|
||||
path: "../../widgets/immich-server-stats",
|
||||
configuration: {
|
||||
items: [
|
||||
{
|
||||
name: "Show users",
|
||||
description: "Show count of users on your instance",
|
||||
values: { type: "boolean" },
|
||||
defaultValue: "yes",
|
||||
},
|
||||
{
|
||||
name: "Show photos",
|
||||
description: "Show count of photos on your instance",
|
||||
values: { type: "boolean" },
|
||||
defaultValue: "yes",
|
||||
},
|
||||
{
|
||||
name: "Show videos",
|
||||
description: "Show count of videos on your instance",
|
||||
values: { type: "boolean" },
|
||||
defaultValue: "yes",
|
||||
},
|
||||
{
|
||||
name: "Show storage",
|
||||
description: "Show the total amount of storage used",
|
||||
values: { type: "boolean" },
|
||||
defaultValue: "yes",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user