/
custom_file_actions.hjson
59 lines (57 loc) · 2.04 KB
/
custom_file_actions.hjson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[
{
type: 'custom_file_actions_write_binary',
module : 'custom_file_actions',
action : 'write_binary',
groupTitle : 'Custom File Actions',
groupIcon : 'fas fa-lg fa-file comp-data',
title : 'Save Remote Binary @@var(actionName)@@',
icon : 'fas fa-lg fa-file comp-data',
dataPickObject: true,
dataScheme: [
{name: 'file_name', type: 'text'}
],
properties : [
{
group: 'File Location',
variables: [
{ name: 'actionName', optionName: 'name', title: 'Name',
type: 'text', required: true, defaultValue: ''},
{ name: 'local_path', optionName: 'local_path', title: 'Save Path',
type: 'folder', required: true, defaultValue: '', serverDataBindings: true},
{ name: 'file_url', optionName: 'file_url', title: 'Remote URL',
type: 'text', required: true, defaultValue: '', serverDataBindings: true},
{ name: 'output', optionName: 'output', title: 'Output', type: 'boolean', defaultValue: false }
]
}
]
},
{
type: 'custom_file_actions_get_file_type',
module : 'custom_file_actions',
action : 'get_file_type',
groupTitle : 'Custom File Actions',
groupIcon : 'fas fa-lg fa-file comp-data',
title : 'Get File type @@var(actionName)@@',
icon : 'fas fa-lg fa-file comp-data',
dataPickObject: true,
dataScheme: [
{name: 'extension', type: 'text'},
{name: 'mime_type', type: 'text'}
],
properties : [
{
group: 'File Location',
variables: [
{ name: 'actionName', optionName: 'name', title: 'Name',
type: 'text', required: true, defaultValue: ''},
{ name: 'file_path', optionName: 'file_path', title: 'File Path',
type: 'folder', required: true, defaultValue: '', serverDataBindings: true},
{ name: 'file_name', optionName: 'file_name', title: 'File Name',
type: 'text', required: true, defaultValue: '', serverDataBindings: true},
{ name: 'output', optionName: 'output', title: 'Output', type: 'boolean', defaultValue: false }
]
}
]
}
]