-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshiny_ui.R
62 lines (53 loc) · 1.39 KB
/
shiny_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
library(shiny)
library(shinyWidgets)
library(leaflet)
library(datamods)
library(stringr)
library(reactable)
library(dplyr)
library(data.tree)
library(shinyAce)
library(wesanderson)
library(shinyjs)
library(bslib)
library(RCurl)
library(icesConnect)
########## Load utilities ############
source("utilities_webservices.R")
source("utilities_login.R")
source("utilities.R")
# load app data
load("data/map_data.RData", envir = .GlobalEnv)
######### Load modules ##############
source("mod_map_selector.R")
source("mod_file_tree.R")
source("mod_file_viz.R")
title_html <- tags$a(
href = "https://ices-taf.shinyapps.io/tafxplorer/",
tags$img(
src = "negative_ices_logo.png",
style = "margin-top: -15px; padding-right:10px;padding-bottom:-10px",
height = "50px"
)
)
options(spinner.type = 5,
spinner.color = "#00B7A3",
spinner.size = 0.7)
# shiny user interface
ui <- fluidPage(
tags$head(
useShinyjs(),
tags$script(src = "https://kit.fontawesome.com/ac71e9cf8e.js"),
tags$script(src = "detect_click2.js"),
tags$link(rel = "stylesheet", type = "text/css", href = "css/gothic-a1.css"),
tags$head(tags$link(rel = "stylesheet", type = "text/css", href = "styles.css"))
),
# open app with the map selector tab only
navbarPage(
collapsible = TRUE,
fluid = TRUE,
title = title_html,
id = "tabset",
windowTitle = "TAFXplorer"
)
)