mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
Replaces the Connect Settings form at Settings > Management Access with a webcomponent containing a generated form. CodeRabbit: - **New Features** - Enhanced connection settings with an updated UI, including a new custom element `<unraid-connect-settings>`. - Introduced several new form components (e.g., `NumberField`, `StringArrayField`, `Select`, `Switch`, `PreconditionsLabel`, `ControlLayout`, and `VerticalLayout`) for a more dynamic experience. - Added a notification system with the `Toaster` component for user feedback. - New GraphQL operations for managing connection settings and API updates. - **Chores** - Upgraded multiple backend and frontend dependencies and refined configuration files. - **Tests** - Expanded test coverage for CSV conversion, form settings merging, and the new `csvStringToArray` function. - **Documentation** - Added introductory documentation for form components and a readme for the forms directory.
48 lines
977 B
TypeScript
48 lines
977 B
TypeScript
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
overwrite: true,
|
|
documents: ['./**/**/*.ts'],
|
|
ignoreNoDocuments: false,
|
|
config: {
|
|
namingConvention: {
|
|
typeNames: './fix-array-type.js',
|
|
},
|
|
scalars: {
|
|
DateTime: 'string',
|
|
Long: 'number',
|
|
JSON: 'any',
|
|
URL: 'URL',
|
|
Port: 'number',
|
|
UUID: 'string',
|
|
},
|
|
},
|
|
generates: {
|
|
'composables/gql/': {
|
|
preset: 'client',
|
|
config: {
|
|
useTypeImports: true,
|
|
},
|
|
schema: [
|
|
{
|
|
'http://localhost:3001/graphql': {
|
|
headers: {
|
|
origin: '/var/run/unraid-php.sock',
|
|
'x-api-key': 'unupc_fab6ff6ffe51040595c6d9ffb63a353ba16cc2ad7d93f813a2e80a5810',
|
|
},
|
|
},
|
|
},
|
|
],
|
|
plugins: [
|
|
{
|
|
add: {
|
|
content: '/* eslint-disable */',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|