plugins: config.type=net_mask
Massimo Melina committed
Mar 22, 2025 at 23:31 UTC
a4dd2fab22d0975b936bc492dea1ed08dc56d3dc
2 files changed
+4
-1
admin/src/InstalledPlugins.ts
+2
-1
@@ -18,7 +18,7 @@ import { BoolField, Field, FieldProps, MultiSelectField, NumberField, SelectFiel
18
import { ArrayField } from './ArrayField'
19
import FileField from './FileField'
20
import { PLUGIN_ERRORS } from './PluginsPage'
21
-import { Btn, Flex, hTooltip, IconBtn, iconTooltip, usePauseButton } from './mui'
21
+import { Btn, Flex, hTooltip, IconBtn, iconTooltip, NetmaskField, usePauseButton } from './mui'
22
import VfsPathField from './VfsPathField'
23
import { DateTimeField } from './DateTimeField'
24
@@ -283,6 +283,7 @@ const type2comp = {
283
color: ColorField,
284
showHtml: ({ html }: any) => h(Html, {}, String(html)),
285
date_time: DateTimeField,
286
+ net_mask: NetmaskField,
287
}
288
289
export async function startPlugin(id: string) {
dev-plugins.md
+2
@@ -205,6 +205,7 @@ Based on `type`, other properties are supported:
205
- `multiple: boolean` if you set this to true, the field will allow the selection of multiple accounts,
206
and the resulting value will be array of strings, instead of a string. Default is false.
207
- `date_time`
208
+- `net_mask`
209
- `showHtml`
210
- `html: string` HTML code to display.
211
@@ -808,6 +809,7 @@ If you want to override a text regardless of the language, use the special langu
809
- HFS.Btn
810
- HFS.watchState added third parameter
811
- frontend events: async for fileMenu and html-producers
812
+ - config.type: date_time, net_mask
813
- 11.6 (v0.56.0)
814
- api.setError
815
- frontend events: afterBreadcrumbs, afterFolderStats, afterFilter