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.
38 lines
978 B
38 lines
978 B
package com.fr.plugin.theme.original; |
|
|
|
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; |
|
|
|
/** |
|
* Created by Zed on 2018/10/12. |
|
*/ |
|
public class OriginalComponent extends Component { |
|
|
|
public static final OriginalComponent KEY = new OriginalComponent(); |
|
|
|
private OriginalComponent() { |
|
|
|
} |
|
|
|
@Override |
|
public ScriptPath script() { |
|
return ScriptPath.build("com/fr/plugin/theme/original/web/theme.js"); |
|
} |
|
|
|
@Override |
|
public StylePath style() { |
|
return StylePath.build("com/fr/plugin/theme/original/web/style.css"); |
|
} |
|
|
|
@Override |
|
public Filter filter() { |
|
return new Filter() { |
|
public boolean accept() { |
|
return "com.fr.plugin.decision.theme.original".equals(AppearanceConfig.getInstance().getThemeId()); |
|
} |
|
}; |
|
} |
|
} |