清新风格登录主题。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
932 B

package com.fr.plugin.login.theme.fresh;
import com.fr.decision.config.AppearanceConfig;
import com.fr.web.struct.Component;
import com.fr.web.struct.category.ScriptPath;
import com.fr.web.struct.category.StylePath;
import com.fr.web.struct.Filter;
public class FreshComponent extends Component {
public static final FreshComponent KEY = new FreshComponent();
private FreshComponent() {
}
@Override
public ScriptPath script() {
return ScriptPath.build("com/fr/plugin/login/theme/fresh/web/theme.js");
}
@Override
public StylePath style() {
return StylePath.build("com/fr/plugin/login/theme/fresh/web/style.css");
}
@Override
public Filter filter() {
return new Filter() {
public boolean accept() {
return "com.fr.plugin.login.theme.fresh".equals(AppearanceConfig.getInstance().getLoginPageId());
}
};
}
}