feat: 增加搜索按钮
This commit is contained in:
@@ -20,7 +20,6 @@ import org.springframework.context.ApplicationListener
|
|||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.context.annotation.Configuration
|
import org.springframework.context.annotation.Configuration
|
||||||
import org.springframework.context.event.ContextClosedEvent
|
import org.springframework.context.event.ContextClosedEvent
|
||||||
import org.springframework.scheduling.annotation.EnableScheduling
|
|
||||||
import org.springframework.web.servlet.config.annotation.CorsRegistry
|
import org.springframework.web.servlet.config.annotation.CorsRegistry
|
||||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
|
||||||
|
|
||||||
@@ -41,7 +40,7 @@ data class MailProperties @ConstructorBinding constructor(
|
|||||||
val targets: List<String>,
|
val targets: List<String>,
|
||||||
)
|
)
|
||||||
|
|
||||||
@EnableScheduling
|
// @EnableScheduling
|
||||||
@ConfigurationPropertiesScan
|
@ConfigurationPropertiesScan
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
class Application : ApplicationRunner, ApplicationListener<ContextClosedEvent> {
|
class Application : ApplicationRunner, ApplicationListener<ContextClosedEvent> {
|
||||||
@@ -62,12 +61,12 @@ class Application : ApplicationRunner, ApplicationListener<ContextClosedEvent> {
|
|||||||
override fun run(args: ApplicationArguments?) {
|
override fun run(args: ApplicationArguments?) {
|
||||||
// pushRunner.run()
|
// pushRunner.run()
|
||||||
// newsRunner.run()
|
// newsRunner.run()
|
||||||
sites
|
/*sites
|
||||||
.filterNot { articleRepository.existsByCode(it.code) }
|
.filterNot { articleRepository.existsByCode(it.code) }
|
||||||
.forEach {
|
.forEach {
|
||||||
logger.info("发现新站点:{}", it.name)
|
logger.info("发现新站点:{}", it.name)
|
||||||
newsRunner.run(it.code)
|
newsRunner.run(it.code)
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onApplicationEvent(event: ContextClosedEvent) {
|
override fun onApplicationEvent(event: ContextClosedEvent) {
|
||||||
|
|||||||
@@ -121,6 +121,14 @@ function overviewTab() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: 'action',
|
||||||
|
label: '搜索',
|
||||||
|
icon: 'fa fa-search',
|
||||||
|
actionType: 'url',
|
||||||
|
url: 'https://www.bing.com/search?q=${title}',
|
||||||
|
blank: true,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user