-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
58 lines (51 loc) · 1.97 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
function(request) {
# read global setting here
globe <- config::get()
fluidPage(
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "custom.css")
),
use_waiter(), # loading screen dependencies
titlePanel(globe$title),
tags$h4(globe$subtitle),
tags$hr(),
theme = shinytheme("yeti"),
fluidPage(
sidebarLayout(
sidebarPanel(
id = "controls",
class = "well",
left = 20,
selectizeInput(
inputId = "form",
label = tags$h4("Options 可选项"),
choices = "",
width = "100%"
),
uiOutput("description"),
uiOutput("variables"),
textInput("token", "Token 秘钥", width = "60%"),
actionButton(
inputId = "run",
label = "Run",
icon = icon("circle-notch"),
width = "100%"
),
tags$hr(),
# putting remarks here
tags$h5("注"),
tags$small("1. 为了优化计算性能,右侧只会显示部分结果;"),
tags$br(),
tags$small("2. 部分结果来自随机抽取;"),
tags$br(),
tags$small("3. 你可以通过网页链接保存查询参数;"),
tags$br(), tags$br(),
downloadLink("downloadRes", label = tags$strong("点击下载全量数据", icon("download")))
),
mainPanel(
column(12, dataTableOutput("tbl", height = "640px"))
)
)
)
)
}