瀏覽代碼

Move app to project root directory

master
Garrick Aden-Buie 8 年之前
父節點
當前提交
736d2482e6
共有 12 個檔案被更改,包括 7 行新增7 行删除
  1. +7
    -7
      app.R
  2. +0
    -0
      data/top_male_names.rds
  3. +0
    -0
      screens.R
  4. +0
    -0
      www/css/animate.css
  5. +0
    -0
      www/css/devices.min.css
  6. +0
    -0
      www/css/moffitt-colors.css
  7. +0
    -0
      www/css/t4c.css
  8. +0
    -0
      www/images/male-patient-and-doctor.jpg
  9. +0
    -0
      www/images/moffitt-logo-white.png
  10. +0
    -0
      www/images/splash-bg.png
  11. +0
    -0
      www/images/swipe-left.svg
  12. +0
    -0
      www/images/swipe-right.svg

t4c/app.R → app.R 查看文件

@@ -13,7 +13,7 @@ SWIPES_MEAN <- c(
"right" = 1L
)

top_male_names <- readRDS(here::here("t4c/data/top_male_names.rds"))
top_male_names <- readRDS(here::here("data/top_male_names.rds"))
random_name <- function() sample(top_male_names, 1)
possessive_name <- function(x) if (substr(x, nchar(x), nchar(x)) == "s") paste0(x, "'") else paste0(x, "'s")

@@ -72,13 +72,13 @@ swipe_help_row_div <- div(
div(class = "bottom-help-middle", span("Swipe Card", class = "bottom-help-middle-text"))
)

source(here::here("t4c/screens.R"), local = TRUE)
source("screens.R", local = TRUE)

ui <- fixedPage(
includeCSS("devices.min.css"),
includeCSS("t4c.css"),
includeCSS("moffitt-colors.css"),
includeCSS("animate.css"),
includeCSS("www/css/devices.min.css"),
includeCSS("www/css/t4c.css"),
includeCSS("www/css/moffitt-colors.css"),
includeCSS("www/css/animate.css"),
shinyjs::useShinyjs(),
tags$link(rel = "stylesheet", type = "text/css", href = "https://fonts.googleapis.com/css?family=IBM+Plex+Sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i"),
tags$link(rel = "stylesheet", type = "text/css", href = "https://fonts.googleapis.com/css?family=Amatic+SC:400,700|Coming+Soon"),
@@ -222,7 +222,7 @@ server <- function(input, output, session) {
if (!is.null(app_data$screen_prev)) app_data$screen_next <- app_data$screen_prev
})
observeEvent(input$jump_results, {
last_results_file <- here::here("t4c", "results.rds")
last_results_file <- "results.rds"
if (!file.exists(last_results_file)) {
cat("No results saved yet.")
return()

t4c/data/top_male_names.rds → data/top_male_names.rds 查看文件


t4c/screens.R → screens.R 查看文件


t4c/animate.css → www/css/animate.css 查看文件


t4c/devices.min.css → www/css/devices.min.css 查看文件


t4c/moffitt-colors.css → www/css/moffitt-colors.css 查看文件


t4c/t4c.css → www/css/t4c.css 查看文件


t4c/www/images/male-patient-and-doctor.jpg → www/images/male-patient-and-doctor.jpg 查看文件


t4c/www/images/moffitt-logo-white.png → www/images/moffitt-logo-white.png 查看文件


t4c/www/images/splash-bg.png → www/images/splash-bg.png 查看文件


t4c/www/images/swipe-left.svg → www/images/swipe-left.svg 查看文件


t4c/www/images/swipe-right.svg → www/images/swipe-right.svg 查看文件


Loading…
取消
儲存