Ifeanyi commited on
Commit
591f6bd
·
verified ·
1 Parent(s): 2cd4412

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +9 -10
app.R CHANGED
@@ -88,7 +88,7 @@ ui <- navbarPage(
88
  sidebarPanel(
89
  width = 2, id = "sidebar",
90
  actionButton("info", strong("Info"), icon = icon("info")), br(), br(), br(), tags$a(img(src = "spotify.png"), href = "https://open.spotify.com/",target = "_blank"), br(), hr(),
91
- textInput("id", strong("Enter Artist's Spotify Id")),
92
  actionButton("run", strong("Related Data"), icon = icon("caret-right")),br(),hr(),br(),
93
  h5(strong("Collaborators Data")),
94
  actionButton("fetch", strong("Collab Data"), icon = icon("caret-right")),hr()
@@ -97,7 +97,6 @@ ui <- navbarPage(
97
  mainPanel(
98
  # go to top button
99
  spsGoTop(id = "up",right = "3%",bottom = "10%",icon = icon("arrow-up",color = "green")),
100
- textInput("search", span(strong("Search Box"),style = "color:white;"), placeholder = "Search Google", width = "150px"),actionButton("search_bttn", strong("Search")),hr(),
101
  fluidRow(column(12, h3(strong(span(style = "color:white;text-align:center;",h4("Related Artists Network Data")))))),
102
  fluidRow(
103
  column(12, withSpinner(reactableOutput("network_data",width = 1000,height = 400), type = 1)),
@@ -228,17 +227,17 @@ server <- function(input, output, session) {
228
 
229
 
230
  # activate the search box
231
- search_input <- reactive(input$search)
232
 
233
- searchGoogle <- reactive(search_google(search_input(), rlang = F))
234
 
235
- search_result <- eventReactive(input$search_bttn, {
236
- searchGoogle()
237
- })
238
 
239
- output$out <- renderUI({
240
- search_result()
241
- })
242
 
243
  # render spotify
244
  # renderUI({
 
88
  sidebarPanel(
89
  width = 2, id = "sidebar",
90
  actionButton("info", strong("Info"), icon = icon("info")), br(), br(), br(), tags$a(img(src = "spotify.png"), href = "https://open.spotify.com/",target = "_blank"), br(), hr(),
91
+ textInput("id", h5(strong("Enter Artist's Spotify Id"))),
92
  actionButton("run", strong("Related Data"), icon = icon("caret-right")),br(),hr(),br(),
93
  h5(strong("Collaborators Data")),
94
  actionButton("fetch", strong("Collab Data"), icon = icon("caret-right")),hr()
 
97
  mainPanel(
98
  # go to top button
99
  spsGoTop(id = "up",right = "3%",bottom = "10%",icon = icon("arrow-up",color = "green")),
 
100
  fluidRow(column(12, h3(strong(span(style = "color:white;text-align:center;",h4("Related Artists Network Data")))))),
101
  fluidRow(
102
  column(12, withSpinner(reactableOutput("network_data",width = 1000,height = 400), type = 1)),
 
227
 
228
 
229
  # activate the search box
230
+ # search_input <- reactive(input$search)
231
 
232
+ # searchGoogle <- reactive(search_google(search_input(), rlang = F))
233
 
234
+ # search_result <- eventReactive(input$search_bttn, {
235
+ # searchGoogle()
236
+ #})
237
 
238
+ # output$out <- renderUI({
239
+ # search_result()
240
+ # })
241
 
242
  # render spotify
243
  # renderUI({