#' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_ui <- function(request) {
tagList(
# Leave this function for adding external resources
golem_add_external_resources(),
# Your application UI logic
fluidPage(
navbarPage(
id = "main_navbar",
title = "cellpanelr",
inverse = TRUE,
collapsible = TRUE,
position = "fixed-top",
tabPanel(
"Home",
mod_home_ui("home_1")
),
tabPanel(
"Upload",
mod_upload_single_ui("upload_single_1")
),
tabPanel(
"Analyze",
h3(
"Choose a data set to correlate with your data",
helpButton("dataset_help")
),
tabsetPanel(
type = "pills",
tabPanel(
"Cell line annotations",
mod_annotations_ui("annotations_1")
),
tabPanel(
"Gene expression",
mod_expression_ui("expression_1")
),
tabPanel(
"Mutations",
mod_mutations_ui("mutations_1")
)
),
),
tabPanel(
"About",
about_tab()
)
),
# Footer
div(
align = "center",
hr(),
span("version 1.0.0. November 2, 2022"),
)
)
)
}
#' Add external Resources to the Application
#'
#' This function is internally used to add external
#' resources inside the Shiny application.
#'
#' @import shiny
#' @importFrom golem add_resource_path activate_js favicon bundle_resources
#' @noRd
golem_add_external_resources <- function() {
add_resource_path(
"www", app_sys("app/www")
)
tags$head(
favicon(),
bundle_resources(
path = app_sys("app/www"),
app_title = "cellpanelr"
),
# Enable packages with extra UI features
shinyFeedback::useShinyFeedback(),
shinyjs::useShinyjs(),
# Pad page for fixed-top navbar
tags$style(type = "text/css", "body {padding-top: 70px;}"),
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.