Refactor ThemeService

pull/137/head
ruibaby 2019-04-02 22:58:01 +08:00
parent 9f41562620
commit cc1dcc3ffa
1 changed files with 2 additions and 2 deletions

View File

@ -25,14 +25,13 @@ import java.util.List;
@Service
public class ThemeServiceImpl implements ThemeService {
private static String[] CAN_EDIT_SUFFIX = {"ftl", "css", "js"};
private final HaloProperties haloProperties;
public ThemeServiceImpl(HaloProperties haloProperties) {
this.haloProperties = haloProperties;
}
private static String[] CAN_EDIT_SUFFIX = {"ftl", "css", "js"};
/**
* Gets all themes
*
@ -106,6 +105,7 @@ public class ThemeServiceImpl implements ThemeService {
} catch (Exception e) {
throw new RuntimeException("Failed to get theme template", e);
}
templates.sort(Comparator.comparing(ThemeFile::getIsFile));
return templates;
}