mirror of https://github.com/halo-dev/halo
🍎 Anatole主题添加表格样式
parent
bc4e80ee8b
commit
39b986376a
|
@ -11,9 +11,9 @@ import cn.hutool.cron.CronUtil;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.context.event.ApplicationStartedEvent;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.event.ContextRefreshedEvent;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -28,7 +28,7 @@ import java.util.Map;
|
|||
*/
|
||||
@Slf4j
|
||||
@Configuration
|
||||
public class StartupConfig implements ApplicationListener<ContextRefreshedEvent> {
|
||||
public class StartupConfig implements ApplicationListener<ApplicationStartedEvent> {
|
||||
|
||||
@Autowired
|
||||
private OptionsService optionsService;
|
||||
|
@ -37,14 +37,14 @@ public class StartupConfig implements ApplicationListener<ContextRefreshedEvent>
|
|||
private AttachmentService attachmentService;
|
||||
|
||||
@Override
|
||||
public void onApplicationEvent(ContextRefreshedEvent event) {
|
||||
public void onApplicationEvent(ApplicationStartedEvent event) {
|
||||
this.loadActiveTheme();
|
||||
this.loadOptions();
|
||||
this.loadFiles();
|
||||
this.loadThemes();
|
||||
//启动定时任务
|
||||
CronUtil.start();
|
||||
log.info("定时任务启动成功!");
|
||||
log.info("The scheduled task starts successfully!");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,6 +7,31 @@
|
|||
code, tt {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
table {
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
margin-top: 0;
|
||||
margin-bottom: 16px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
|
||||
}
|
||||
table th {
|
||||
font-weight: 600;
|
||||
}
|
||||
table th,
|
||||
table td {
|
||||
padding: 6px 13px;
|
||||
border: 1px solid #dfe2e5;
|
||||
}
|
||||
table tr {
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #c6cbd1;
|
||||
}
|
||||
table tr:nth-child(2n) {
|
||||
background-color: #f6f8fa;
|
||||
}
|
||||
</style>
|
||||
<#include "module/page-top.ftl">
|
||||
<div class="autopagerize_page_element">
|
||||
|
|
|
@ -7,6 +7,31 @@
|
|||
code, tt {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
table {
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
margin-top: 0;
|
||||
margin-bottom: 16px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
|
||||
}
|
||||
table th {
|
||||
font-weight: 600;
|
||||
}
|
||||
table th,
|
||||
table td {
|
||||
padding: 6px 13px;
|
||||
border: 1px solid #dfe2e5;
|
||||
}
|
||||
table tr {
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #c6cbd1;
|
||||
}
|
||||
table tr:nth-child(2n) {
|
||||
background-color: #f6f8fa;
|
||||
}
|
||||
</style>
|
||||
<#include "module/page-top.ftl">
|
||||
<div class="autopagerize_page_element">
|
||||
|
|
Loading…
Reference in New Issue