Skip to content

Commit

Permalink
Merge pull request #74 from JGCRI/test-folder
Browse files Browse the repository at this point in the history
Moves files to final folder
  • Loading branch information
stephpenn1 authored May 31, 2024
2 parents a0216e5 + 5b9ea76 commit 8608286
Show file tree
Hide file tree
Showing 87 changed files with 206 additions and 17,582 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

name: docs

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rcmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
RSPM: ${{ matrix.config.rspm }}

steps:
- uses: r-lib/actions/setup-pandoc@master
- uses: r-lib/actions/setup-pandoc@main
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@main

- name: Install dependencies
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:

steps:

- uses: r-lib/actions/setup-pandoc@master
- uses: r-lib/actions/setup-pandoc@main
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@main

- name: Install dependencies
env:
Expand Down
Binary file removed h2/outfile_area.jpeg
Binary file not shown.
Binary file removed h2/outfile_bar.gif
Binary file not shown.
12 changes: 0 additions & 12 deletions h2/www/images/GCIMS_logo_alt.svg

This file was deleted.

Binary file removed h2/www/images/GitHub-logo.png
Binary file not shown.
Binary file removed h2/www/images/Hector-sm.png
Binary file not shown.
Binary file removed h2/www/images/earth-header.png
Binary file not shown.
35 changes: 0 additions & 35 deletions h2/www/images/hectorcal-doi.svg

This file was deleted.

Binary file removed h2/www/images/line.png
Binary file not shown.
17 changes: 8 additions & 9 deletions h2/app.r → inst/shinyApp/app.r
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ui <- fluidPage(theme = shinythemes::shinytheme("readable"),
tags$div(
a(
img(src = "images/GCIMS_logo_alt.svg", class = "logo"), href = "https://gcims.pnnl.gov/", target = "_blank"),
h1("HectorUI - BETA", class = "header-text-title"),
h1("HectorUI", class = "header-text-title"),
h2("An Interactive Climate Model", class = "header-text-sub", style = "font-weight:normal; "),
),
),
Expand All @@ -32,7 +32,7 @@ ui <- fluidPage(theme = shinythemes::shinytheme("readable"),
))
)
),
tabPanel(title = "Run Hector",
tabPanel(title = "Explore Hector",
fluidRow(
run_ui("run_1")
)
Expand Down Expand Up @@ -69,13 +69,10 @@ ui <- fluidPage(theme = shinythemes::shinytheme("readable"),
tabPanel
(
p(icon("info-circle", "fa-2x"), "Hector Information", value="infoTab"),
h5("Background Information"), tags$hr(class="hrNav"),
tags$table(
tags$tr(
tags$td(width = "50%",
h5("Explore the Hector Product Family", style="text-align: left"),
br(),
h6("Source code and contribution is available on the ",
h5("Source code and contribution is available on the ",
a("HectorUI Github page", href = "https://github.com/JGCRI/hector", target = "_blank")),
),
)
Expand Down Expand Up @@ -199,8 +196,10 @@ ui <- fluidPage(theme = shinythemes::shinytheme("readable"),
tabPanel
(
p(icon("comment", "fa-2x"), "Support", value="feedbackTab"),
h5("To contact the Hector team regarding any questions, concerns, suggestions, or problems, please use",
a("Github issues.", href = "https://github.com/JGCRI/hectorui/issues/new/choose"))
h5("To contact the Hector model team regarding any questions, concerns, suggestions, or problems, please submit a Hector",
a("Github issues.", href = "https://github.com/JGCRI/hector/issues/new/choose")),
h5("For HectorUI questions, concerns, suggestions, or problems, please submit a HectorUI",
a("Github issues.", href = "https://github.com/JGCRI/hectorui/issues/new/choose"))
)
)
)
Expand All @@ -214,7 +213,7 @@ server <- function(input, output, session) {
r6 <- HectorInputs$new() # r6 class
r6_tracking <- HectorInputs$new() # separate r6 class for carbon tracking
r6_custom <- HectorInputs$new()
observeEvent(input$launch_scenario, updateTabsetPanel(session, "nav", selected = "Run Hector"), ignoreInit = TRUE)
observeEvent(input$launch_scenario, updateTabsetPanel(session, "nav", selected = "Explore Hector"), ignoreInit = TRUE)

run_server("run_1", r6 = r6)
summary_server("summary_1", r6 = r6)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ h5 {
body
{
font-family:"Barlow Regular", Sans-Serif !important;
font-size: 16px;
}

/* * {
font-family:"Barlow Regular", Sans-Serif !important;
}*/
.about-info
{
font-size: 12px;
font-size: 16px;
}

.popover
{
font-family:"Barlow Regular", Sans-Serif !important;
}

.c-emissions
Expand All @@ -29,7 +35,7 @@ body
.header-text-title
{
position: absolute;
color: #8B0000;
color: white;
top: 40%;
left: 50%;
text-align: center;!important
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,31 @@ custom_ui <- function(id) {
"SSP 5-8.5"="input/hector_ssp585.ini"),
width=150, selected = "SSP 2-4.5"))
),
tags$tr(width = "100%",
tags$td(width = "145", "Output Variable:"),
tags$td(width = "155", selectInput(ns("variable"), label = NULL,
list("Carbon Cycle" = list("Atmospheric CO2" = CONCENTRATIONS_CO2(),
"FFI Emissions" = FFI_EMISSIONS(),
"LUC Emissions" = LUC_EMISSIONS()),
"Concentrations" = list("N2O Concentration" = CONCENTRATIONS_N2O()),
"Emissions" = list("Black Carbon Emissions" = EMISSIONS_BC(),
"Organic Carbon Emissions" = EMISSIONS_OC()),
"Forcings" = list("RF - Total" = RF_TOTAL(),
"RF - Albedo" = RF_ALBEDO(),
"RF - CO2" = RF_CO2(),
"RF - N2O" = RF_N2O(),
"RF - Black Carbon" = RF_BC(),
"RF - Organic Carbon" = RF_OC(),
"RF - Total SO2" = RF_SO2(),
"RF - Volcanic Activity" = RF_VOL(),
"RF - CH4" = RF_CH4())),
selected = "Atmospheric CO2", multiple = FALSE)

)
),
tags$tr(width = "100%",
tags$td(width = "145", "Your Scenario Name:"),
tags$td(width = "200", textInput(ns("input_custom_scenarioName"), label = NULL, width=195, value = ""))
tags$td(width = "200", textInput(ns("input_custom_scenarioName"), label = NULL, value = ""))
)
),
div(
Expand Down Expand Up @@ -86,25 +108,6 @@ custom_ui <- function(id) {
)
),
mainPanel(
fluidRow(
selectInput(ns("variable"), "Output Variable:",
list("Carbon Cycle" = list("Atmospheric CO2" = CONCENTRATIONS_CO2(),
"FFI Emissions" = FFI_EMISSIONS(),
"LUC Emissions" = LUC_EMISSIONS()),
"Concentrations" = list("N2O Concentration" = CONCENTRATIONS_N2O()),
"Emissions" = list("Black Carbon Emissions" = EMISSIONS_BC(),
"Organic Carbon Emissions" = EMISSIONS_OC()),
"Forcings" = list("RF - Total" = RF_TOTAL(),
"RF - Albedo" = RF_ALBEDO(),
"RF - CO2" = RF_CO2(),
"RF - N2O" = RF_N2O(),
"RF - Black Carbon" = RF_BC(),
"RF - Organic Carbon" = RF_OC(),
"RF - Total SO2" = RF_SO2(),
"RF - Volcanic Activity" = RF_VOL(),
"RF - CH4" = RF_CH4())),
selected = "Atmospheric CO2", multiple = FALSE)
),
fluidRow(
actionButton(ns("input_load_emissions"), label="Create Scenario", width = '150px', style = "background: #0B3F8F; color: white;"),
downloadButton(ns("downloadData"), label="Download Data", style = "background: #B8B8B8; color: black;")
Expand Down
File renamed without changes.
Loading

0 comments on commit 8608286

Please sign in to comment.