feat(web): unify web entry, preset config, SSE streaming and dual-pane live logs
This commit is contained in:
33
src/main/java/com/svnlog/web/config/SvnPresetProperties.java
Normal file
33
src/main/java/com/svnlog/web/config/SvnPresetProperties.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package com.svnlog.web.config;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.svnlog.web.model.SvnPreset;
|
||||
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "svn")
|
||||
public class SvnPresetProperties {
|
||||
|
||||
private String defaultPresetId;
|
||||
private List<SvnPreset> presets = new ArrayList<SvnPreset>();
|
||||
|
||||
public String getDefaultPresetId() {
|
||||
return defaultPresetId;
|
||||
}
|
||||
|
||||
public void setDefaultPresetId(String defaultPresetId) {
|
||||
this.defaultPresetId = defaultPresetId;
|
||||
}
|
||||
|
||||
public List<SvnPreset> getPresets() {
|
||||
return presets;
|
||||
}
|
||||
|
||||
public void setPresets(List<SvnPreset> presets) {
|
||||
this.presets = presets;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user