-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On the main app page, added icons for the menu on the left. Changed w…
…in.R to waterquality.R (main script to use for WQ page) and waterquality.R to waterquality2.R (to keep as a back up). made sure app.R refers to the correct pages. Added awesome markers to main_page.R, and changed the zoom level at which the dashboards starts.
- Loading branch information
1 parent
7194a2e
commit 6575650
Showing
5 changed files
with
416 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,43 @@ | ||
# This is the main app page, which will run and read in all the other pages | ||
# and modules, and render the dashboard | ||
|
||
# Note: not necessary to load packages here: this all happens in global.R | ||
|
||
source("global.R") | ||
source("functions.R") | ||
source("modules/main_page.R") | ||
source("modules/waterquality.R") | ||
source("modules/algae.R") | ||
source("modules/win.R") | ||
|
||
ui <- dashboardPage( | ||
dashboardHeader(title = "Guana River Data Dashboard"), | ||
dashboardSidebar( | ||
sidebarMenu(id = "tabs", | ||
menuItem("Main Page", tabName = "main_page", icon = icon("home")), | ||
menuItem("Water Quality Data", tabName = "waterquality", icon = icon("link")), | ||
menuItem("Harmful Algal Bloom Data", tabName = "algae", icon = icon("link")), | ||
menuItem("Water Information Network", tabName = "win", icon = icon("bridge-water", lib="font-awesome")) | ||
) | ||
), | ||
dashboardBody( | ||
tabItems( | ||
tabItem(tabName = "main_page", mainPageUI(id = "main_page")), | ||
tabItem(tabName = "waterquality", WQPageUI(id = "waterquality")), | ||
tabItem(tabName = "algae", HABPageUI(id = "algae")), | ||
tabItem(tabName = "win", WINPageUI(id = "win")) | ||
) | ||
) | ||
) | ||
|
||
server <- function(input, output, session) { | ||
moduleServer(module = mainPageServer, id = "main_page", session = session) | ||
WQPageServer("waterquality", parentSession = session) | ||
HABPageServer("algae", parentSession = session) | ||
WINPageServer("win", parentSession = session) | ||
} | ||
|
||
shinyApp(ui, server) | ||
# This is the main app page, which will run and read in all the other pages | ||
# and modules, and render the dashboard | ||
|
||
# Note: not necessary to load packages here: this all happens in global.R | ||
|
||
source("global.R") | ||
source("functions.R") | ||
source("modules/main_page.R") | ||
source("modules/waterquality.R") | ||
source("modules/algae.R") | ||
#source("modules/win.R") | ||
|
||
ui <- dashboardPage( | ||
dashboardHeader(title = "Guana River Data Dashboard"), | ||
dashboardSidebar( | ||
sidebarMenu(id = "tabs", | ||
menuItem("Main Page", tabName = "main_page", icon = icon("home")), | ||
#menuItem("Water Quality Data", tabName = "waterquality", icon = icon("link")), | ||
menuItem("Harmful Algal Bloom Data", tabName = "algae", icon = icon("microscope", lib = "font-awesome")), | ||
menuItem("Water Quality Data", tabName = "waterquality", icon = icon("flask-vial", lib="font-awesome")), | ||
menuItem("Water Level Data", tabName = "waterlevel", icon = icon("water", lib="font-awesome")), | ||
menuItem("Fish and Shellfish Data", tabName = "shellfish", icon = icon("fish", lib="font-awesome")), | ||
menuItem("Terrestrial Animal Data", tabName = "animal", icon = icon("paw", lib="font-awesome")) | ||
) | ||
), | ||
dashboardBody( | ||
tabItems( | ||
tabItem(tabName = "main_page", mainPageUI(id = "main_page")), | ||
#tabItem(tabName = "waterquality", WQPageUI(id = "waterquality")), | ||
tabItem(tabName = "algae", HABPageUI(id = "algae")), | ||
tabItem(tabName = "waterquality", WINPageUI(id = "waterquality")) | ||
) | ||
) | ||
) | ||
|
||
server <- function(input, output, session) { | ||
moduleServer(module = mainPageServer, id = "main_page", session = session) | ||
#WQPageServer("waterquality", parentSession = session) | ||
HABPageServer("algae", parentSession = session) | ||
WINPageServer("waterquality", parentSession = session) | ||
} | ||
|
||
shinyApp(ui, server) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.