-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.R
53 lines (46 loc) · 1.5 KB
/
server.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
# server.R
server <- function(input, output, session) {
# Maintain selected tab state based on URL query parameters
observe({
query <- parseQueryString(session$clientData$url_search)
page <- query$page
if (!is.null(page)) {
updateTabsetPanel(session, "navbar", selected = page)
}
})
observeEvent(input$navbar, {
query <- parseQueryString(session$clientData$url_search)
page <- query$page
if (is.null(page) || input$navbar != page) {
if (input$navbar != "home") {
updateQueryString(paste0("?page=", input$navbar), mode = "push")
}
}
})
subsectorEmissionsServer("subsector")
fertiliserUsageServer("fertiliser")
employeesMapServer("employees")
landUseSummaryServer("land_use")
legalResponsibilityServer("legal_responsibility")
farmTypesServer("farm_types")
occupiersServer("occupiers")
ownedLandServer("owned_land")
cattleServer("cattle_module")
sheepServer("sheep_module")
pigsServer("pigs_module")
poultryServer("poultry_module")
otherAnimalsServer("other_animals_module")
cerealsServer("cereals_module")
oilseedServer("oilseed_module")
potatoesServer("potatoes_module")
beansServer("beans_module")
stockfeedingServer("stockfeeding_module")
humanVegetablesServer("human_vegetables_module")
fruitServer("fruit_module")
homeServer("home")
animalsSummaryServer("animals_summary_module")
soilTestingServer("soil")
manureServer("manure")
nitrogenServer("nitrogen")
cropsSummaryServer("crops_summary_module")
}