Spaces:
Sleeping
Sleeping
Update ui.R
Browse files
ui.R
CHANGED
@@ -1,44 +1,44 @@
|
|
1 |
-
ui <- fluidPage(#shinythemes::themeSelector(),
|
2 |
-
tags$head(
|
3 |
-
tags$link(rel = "stylesheet", type = "text/css"
|
4 |
-
),
|
5 |
-
|
6 |
-
titlePanel("Email Extractor: "),
|
7 |
-
|
8 |
-
sidebarLayout(
|
9 |
-
|
10 |
-
sidebarPanel(
|
11 |
-
helpText("Please select the file type first, then upload your file."),
|
12 |
-
selectInput("file_type", "Choose File Type:", choices = c("CSV", "XLSX","TXT")),
|
13 |
-
fileInput("file", "Choose a File", accept = c("text/csv", "text/xlsx", 'text/txt' , ".csv", ".xlsx", ".txt")),
|
14 |
-
|
15 |
-
conditionalPanel(
|
16 |
-
condition = "input.file_type == 'CSV'",
|
17 |
-
selectInput("csv_sep", "CSV Separator:", choices = c("Comma" = ",", "Semicolon" = ";", "Tab" = "\t", "Space" = " ", "Other" = "Other")),
|
18 |
-
textInput('csv_other', 'Other Separator:', ',')
|
19 |
-
),
|
20 |
-
|
21 |
-
conditionalPanel(
|
22 |
-
condition = "input.file_type == 'XLSX'",
|
23 |
-
numericInput("excel_sheet", "Excel Sheet Number:", 1)
|
24 |
-
),
|
25 |
-
|
26 |
-
uiOutput("checkbox_group"),
|
27 |
-
downloadButton("Download", "Download xlsx", icon = icon("download"), class = 'DESCARGA1'),
|
28 |
-
downloadButton("Download2", "Download txt", icon = icon("download"), class = 'DESCARGA2')
|
29 |
-
), # End of sidebarPanel
|
30 |
-
# Show the content of the file
|
31 |
-
mainPanel(
|
32 |
-
tableOutput("contents")
|
33 |
-
) # End of mainPanel
|
34 |
-
), # End of sidebarLayout
|
35 |
-
#tuturial panel
|
36 |
-
mainPanel(
|
37 |
-
h2("Tuturial:"),
|
38 |
-
p("This app is designed to extract email addresses from different file types."),
|
39 |
-
p("Please select the file type first, then upload your file."),
|
40 |
-
p("If you choose CSV or TXT, you can select the separator."),
|
41 |
-
p("If you choose XLSX, you can input the sheet number."),
|
42 |
-
p("After you upload the file, you can download the extracted email addresses in xlsx and txt format.")
|
43 |
-
) # End of mainPanel
|
44 |
-
) # End of fluidPage
|
|
|
1 |
+
ui <- fluidPage(#shinythemes::themeSelector(),
|
2 |
+
tags$head(
|
3 |
+
tags$link(rel = "stylesheet", type = "text/css" ) #href = "styles.css"
|
4 |
+
),
|
5 |
+
|
6 |
+
titlePanel("Email Extractor: "),
|
7 |
+
|
8 |
+
sidebarLayout(
|
9 |
+
|
10 |
+
sidebarPanel(
|
11 |
+
helpText("Please select the file type first, then upload your file."),
|
12 |
+
selectInput("file_type", "Choose File Type:", choices = c("CSV", "XLSX","TXT")),
|
13 |
+
fileInput("file", "Choose a File", accept = c("text/csv", "text/xlsx", 'text/txt' , ".csv", ".xlsx", ".txt")),
|
14 |
+
|
15 |
+
conditionalPanel(
|
16 |
+
condition = "input.file_type == 'CSV'",
|
17 |
+
selectInput("csv_sep", "CSV Separator:", choices = c("Comma" = ",", "Semicolon" = ";", "Tab" = "\t", "Space" = " ", "Other" = "Other")),
|
18 |
+
textInput('csv_other', 'Other Separator:', ',')
|
19 |
+
),
|
20 |
+
|
21 |
+
conditionalPanel(
|
22 |
+
condition = "input.file_type == 'XLSX'",
|
23 |
+
numericInput("excel_sheet", "Excel Sheet Number:", 1)
|
24 |
+
),
|
25 |
+
|
26 |
+
uiOutput("checkbox_group"),
|
27 |
+
downloadButton("Download", "Download xlsx", icon = icon("download"), class = 'DESCARGA1'),
|
28 |
+
downloadButton("Download2", "Download txt", icon = icon("download"), class = 'DESCARGA2')
|
29 |
+
), # End of sidebarPanel
|
30 |
+
# Show the content of the file
|
31 |
+
mainPanel(
|
32 |
+
tableOutput("contents")
|
33 |
+
) # End of mainPanel
|
34 |
+
), # End of sidebarLayout
|
35 |
+
#tuturial panel
|
36 |
+
mainPanel(
|
37 |
+
h2("Tuturial:"),
|
38 |
+
p("This app is designed to extract email addresses from different file types."),
|
39 |
+
p("Please select the file type first, then upload your file."),
|
40 |
+
p("If you choose CSV or TXT, you can select the separator."),
|
41 |
+
p("If you choose XLSX, you can input the sheet number."),
|
42 |
+
p("After you upload the file, you can download the extracted email addresses in xlsx and txt format.")
|
43 |
+
) # End of mainPanel
|
44 |
+
) # End of fluidPage
|