@devtable/settings-form 12.11.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
1
  import { IStyles } from './styles';
2
2
  interface IAccountList {
3
+ lang: string;
3
4
  styles?: IStyles;
4
5
  config: ISettingsFormConfig;
5
6
  }
6
- export declare function AccountList({ styles, config }: IAccountList): import('./react/jsx-runtime').JSX.Element;
7
+ export declare function AccountList({ lang, styles, config }: IAccountList): import('./react/jsx-runtime').JSX.Element;
7
8
  export {};
@@ -1,9 +1,10 @@
1
1
  import { ILoginResp } from '../../api-caller/account.typed';
2
2
  import { IStyles } from '../styles';
3
3
  interface ILogin {
4
+ lang: string;
4
5
  styles?: IStyles;
5
6
  config: ISettingsFormConfig;
6
7
  onSuccess: (resp: ILoginResp) => void;
7
8
  }
8
- export declare function Login({ styles, config, onSuccess }: ILogin): import('./react/jsx-runtime').JSX.Element;
9
+ export declare function Login({ lang, styles, config, onSuccess }: ILogin): import('./react/jsx-runtime').JSX.Element;
9
10
  export {};
@@ -1,7 +1,8 @@
1
1
  import { IStyles } from './styles';
2
2
  interface IAPIKeyList {
3
+ lang: string;
3
4
  styles?: IStyles;
4
5
  config: ISettingsFormConfig;
5
6
  }
6
- export declare function APIKeyList({ styles, config }: IAPIKeyList): import('./react/jsx-runtime').JSX.Element;
7
+ export declare function APIKeyList({ lang, styles, config }: IAPIKeyList): import('./react/jsx-runtime').JSX.Element;
7
8
  export {};
@@ -0,0 +1,2 @@
1
+ export * from './minimal-mocaco-editor';
2
+ export * from './submit-form-button';
@@ -0,0 +1,7 @@
1
+ import { MantineSize } from '@mantine/core';
2
+ type Props = {
3
+ size: MantineSize;
4
+ disabled?: boolean;
5
+ };
6
+ export declare function SubmitFormButton({ size, disabled }: Props): import('./react/jsx-runtime').JSX.Element;
7
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { IStyles } from './styles';
2
2
  interface IDataSourceList {
3
+ lang: string;
3
4
  styles?: IStyles;
4
5
  config: ISettingsFormConfig;
5
6
  }
6
- export declare function DataSourceList({ styles, config }: IDataSourceList): import('./react/jsx-runtime').JSX.Element;
7
+ export declare function DataSourceList({ lang, styles, config }: IDataSourceList): import('./react/jsx-runtime').JSX.Element;
7
8
  export {};
@@ -0,0 +1,135 @@
1
+ export declare const en: {
2
+ translation: {
3
+ settings: {
4
+ datasource: {
5
+ label: string;
6
+ add: string;
7
+ edit: string;
8
+ connection_info: string;
9
+ db: {
10
+ host: string;
11
+ port: string;
12
+ username: string;
13
+ password: string;
14
+ database: string;
15
+ permission_tip: string;
16
+ };
17
+ cant_edit: {
18
+ db: string;
19
+ preset: string;
20
+ };
21
+ delete: {
22
+ title: string;
23
+ hint: string;
24
+ cant_delete_preset: string;
25
+ };
26
+ http: {
27
+ base_url: string;
28
+ processing: {
29
+ pre: {
30
+ label: string;
31
+ description: string;
32
+ };
33
+ post: {
34
+ label: string;
35
+ description: string;
36
+ };
37
+ };
38
+ };
39
+ state: {
40
+ adding: string;
41
+ added: string;
42
+ updating: string;
43
+ updated: string;
44
+ deleting: string;
45
+ deleted: string;
46
+ };
47
+ };
48
+ account: {
49
+ label: string;
50
+ add: string;
51
+ edit: string;
52
+ editing_xx: string;
53
+ username: string;
54
+ email: string;
55
+ password: string;
56
+ password_hint: string;
57
+ new_password: string;
58
+ reset_password: string;
59
+ state: {
60
+ adding: string;
61
+ added: string;
62
+ updating: string;
63
+ updated: string;
64
+ deleting: string;
65
+ deleted: string;
66
+ logging_in: string;
67
+ logged_in: string;
68
+ };
69
+ delete: string;
70
+ };
71
+ global_sql_snippet: {
72
+ label: string;
73
+ add: string;
74
+ edit: string;
75
+ content: string;
76
+ description: string;
77
+ state: {
78
+ adding: string;
79
+ added: string;
80
+ updating: string;
81
+ updated: string;
82
+ deleting: string;
83
+ deleted: string;
84
+ };
85
+ delete: string;
86
+ };
87
+ api_key: {
88
+ label: string;
89
+ add: string;
90
+ edit: string;
91
+ app_id: string;
92
+ app_secret: string;
93
+ state: {
94
+ adding: string;
95
+ added: string;
96
+ updating: string;
97
+ updated: string;
98
+ deleting: string;
99
+ deleted: string;
100
+ };
101
+ save: {
102
+ title: string;
103
+ warn: string;
104
+ saved: string;
105
+ };
106
+ delete: string;
107
+ };
108
+ role: {
109
+ label: string;
110
+ };
111
+ common: {
112
+ type: string;
113
+ name: string;
114
+ name_placeholder: string;
115
+ created_at: string;
116
+ updated_at: string;
117
+ state: {
118
+ pending: string;
119
+ successful: string;
120
+ failed: string;
121
+ };
122
+ action: string;
123
+ actions: {
124
+ edit: string;
125
+ delete: string;
126
+ submit: string;
127
+ reset_to_default: string;
128
+ cancel: string;
129
+ save: string;
130
+ confirm: string;
131
+ };
132
+ };
133
+ };
134
+ };
135
+ };
@@ -0,0 +1,2 @@
1
+ import i18n from 'i18next';
2
+ export default i18n;
@@ -0,0 +1,2 @@
1
+ export * from './i18n';
2
+ export * from './useApplyLanguage';
@@ -0,0 +1 @@
1
+ export declare function useApplyLanguage(lang: string): void;
@@ -0,0 +1,135 @@
1
+ export declare const zh: {
2
+ translation: {
3
+ settings: {
4
+ datasource: {
5
+ label: string;
6
+ add: string;
7
+ edit: string;
8
+ connection_info: string;
9
+ db: {
10
+ host: string;
11
+ port: string;
12
+ username: string;
13
+ password: string;
14
+ database: string;
15
+ permission_tip: string;
16
+ };
17
+ cant_edit: {
18
+ db: string;
19
+ preset: string;
20
+ };
21
+ delete: {
22
+ title: string;
23
+ hint: string;
24
+ cant_delete_preset: string;
25
+ };
26
+ http: {
27
+ base_url: string;
28
+ processing: {
29
+ pre: {
30
+ label: string;
31
+ description: string;
32
+ };
33
+ post: {
34
+ label: string;
35
+ description: string;
36
+ };
37
+ };
38
+ };
39
+ state: {
40
+ adding: string;
41
+ added: string;
42
+ updating: string;
43
+ updated: string;
44
+ deleting: string;
45
+ deleted: string;
46
+ };
47
+ };
48
+ account: {
49
+ label: string;
50
+ add: string;
51
+ edit: string;
52
+ editing_xx: string;
53
+ username: string;
54
+ email: string;
55
+ password: string;
56
+ password_hint: string;
57
+ new_password: string;
58
+ reset_password: string;
59
+ state: {
60
+ adding: string;
61
+ added: string;
62
+ updating: string;
63
+ updated: string;
64
+ deleting: string;
65
+ deleted: string;
66
+ logging_in: string;
67
+ logged_in: string;
68
+ };
69
+ delete: string;
70
+ };
71
+ global_sql_snippet: {
72
+ label: string;
73
+ add: string;
74
+ edit: string;
75
+ content: string;
76
+ description: string;
77
+ state: {
78
+ adding: string;
79
+ added: string;
80
+ updating: string;
81
+ updated: string;
82
+ deleting: string;
83
+ deleted: string;
84
+ };
85
+ delete: string;
86
+ };
87
+ api_key: {
88
+ label: string;
89
+ add: string;
90
+ edit: string;
91
+ app_id: string;
92
+ app_secret: string;
93
+ state: {
94
+ adding: string;
95
+ added: string;
96
+ updating: string;
97
+ updated: string;
98
+ deleting: string;
99
+ deleted: string;
100
+ };
101
+ save: {
102
+ title: string;
103
+ warn: string;
104
+ saved: string;
105
+ };
106
+ delete: string;
107
+ };
108
+ role: {
109
+ label: string;
110
+ };
111
+ common: {
112
+ type: string;
113
+ name: string;
114
+ name_placeholder: string;
115
+ created_at: string;
116
+ updated_at: string;
117
+ state: {
118
+ pending: string;
119
+ successful: string;
120
+ failed: string;
121
+ };
122
+ action: string;
123
+ actions: {
124
+ edit: string;
125
+ delete: string;
126
+ submit: string;
127
+ reset_to_default: string;
128
+ cancel: string;
129
+ save: string;
130
+ confirm: string;
131
+ };
132
+ };
133
+ };
134
+ };
135
+ };
@@ -1,7 +1,8 @@
1
1
  import { IStyles } from './styles';
2
2
  interface ISQLSnippetList {
3
+ lang: string;
3
4
  styles?: IStyles;
4
5
  config: ISettingsFormConfig;
5
6
  }
6
- export declare function SQLSnippetList({ styles, config }: ISQLSnippetList): import('./react/jsx-runtime').JSX.Element;
7
+ export declare function SQLSnippetList({ lang, styles, config }: ISQLSnippetList): import('./react/jsx-runtime').JSX.Element;
7
8
  export {};