-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
78 additions
and
1 deletion.
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
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,2 +1,5 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(run) | ||
import(bslib) | ||
import(shiny) |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This file is used to define the imports that will be updated by roxygen2 when running `devtools::document()`. | ||
|
||
#' @import shiny | ||
#' @import bslib | ||
NULL | ||
#> NULL |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
library(shiny) | ||
|
||
source("R/ui.R") | ||
source("R/server.R") | ||
|
||
#' @export | ||
run <- function() { | ||
runApp(shinyApp( | ||
ui = ui, | ||
server = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
library(shiny) | ||
|
||
server <- function(input, output) { | ||
output$download <- downloadHandler( | ||
filename = "affectations.xlsx", | ||
content = function(file) { | ||
write("Not implemented yet.", file) | ||
} | ||
) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
library(bslib) | ||
|
||
ui <- page_sidebar( | ||
title = "ADS-Planner", | ||
sidebar = sidebar( | ||
width = 350, | ||
card( | ||
fileInput("file", "Résultats du sondage", accept = c(".xlsx", ".ods"), buttonLabel = "Parcourir...", placeholder = "Aucun fichier", multiple = FALSE), | ||
), | ||
downloadButton("download", "Télécharger affectations"), | ||
), | ||
navset_tab( | ||
nav_panel( | ||
"Visualisation des choix", | ||
"Not implemented yet.", | ||
), | ||
nav_panel( | ||
"Sans réponse", | ||
"Not implemented yet.", | ||
), | ||
nav_panel( | ||
"Affectations", | ||
"Not implemented yet.", | ||
), | ||
), | ||
) |
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