-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_ui.R
66 lines (48 loc) · 1.52 KB
/
_ui.R
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
60
61
62
63
64
65
message('|-- ui')
UI <- function(origin, pop, direction, up.initial, depth, type) {
fluidPage(
includeCSS('style.css'),
headerPanel('spider'),
fluidRow(
tags$head(tags$link(rel = 'shortcut icon', href = 'https://rawgit.com/hxrts/spider/master/favicon.png')),
column(6, wellPanel(
textInput(
inputId = 'origin',
label = 'Origin channel ID · Are.na/sam-hart/research-tactics',
value = origin,
placeholder = origin))),
column(6, wellPanel(textInput(
inputId = 'pop',
label = 'Prune channels · IDs comma separated',
value = pop,
placeholder = pop))),
column(2, wellPanel(selectInput(
inputId = 'direction',
label = 'Direction',
choices = c('down', 'up', 'down & up'),
multiple = FALSE))),
column(2, wellPanel(selectInput(
inputId = 'up.initial',
label = 'Origin crawl up',
choices = c('yes', 'no'),
multiple = FALSE))),
column(2, wellPanel(selectInput(
inputId = 'depth',
label = 'Depth', choices = 1:4,
multiple = FALSE))),
column(2, wellPanel(selectInput(
inputId = 'type',
label = 'Type',
choices = c('all', 'public', 'closed'),
multiple = FALSE))),
column(2, wellPanel(selectInput(
inputId = 'private',
label = 'Include private',
choices = c('yes', 'no'),
multiple = FALSE))),
column(1, wellPanel(actionButton('buildGraph', 'Build'))),
column(1, wellPanel(actionButton('clearGraph', 'Clear'))),
column(12, visNetworkOutput('network_proxy', width = '100%', height = '1200px'))
)
)
}