mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-08 03:39:42 +01:00
Replace theme colors in color-selector.js when exported
Affects issues: - Fixed #1666
This commit is contained in:
parent
7eb194e13f
commit
558e132b6e
@ -215,7 +215,7 @@ public class NetworkPageExporter extends FileExporter {
|
||||
() -> files.getResourceFromJar("web/" + resourceName).asWebResource());
|
||||
Path to = toDirectory.resolve(resourceName);
|
||||
|
||||
if (resourceName.endsWith(".css")) {
|
||||
if (resourceName.endsWith(".css") || resourceName.endsWith("color-selector.js")) {
|
||||
export(to, theme.replaceThemeColors(resource.asString()));
|
||||
} else if ("js/network-values.js".equalsIgnoreCase(resourceName) || "js/sessionAccordion.js".equalsIgnoreCase(resourceName)) {
|
||||
String relativePlayerLink = toRelativePathFromRoot("player");
|
||||
|
@ -191,7 +191,7 @@ public class PlayerPageExporter extends FileExporter {
|
||||
() -> files.getResourceFromJar("web/" + resourceName).asWebResource());
|
||||
Path to = toDirectory.resolve(resourceName);
|
||||
|
||||
if (resourceName.endsWith(".css")) {
|
||||
if (resourceName.endsWith(".css") || resourceName.endsWith("color-selector.js")) {
|
||||
export(to, theme.replaceThemeColors(resource.asString()));
|
||||
} else if (Resource.isTextResource(resourceName)) {
|
||||
export(to, resource.asString());
|
||||
|
@ -164,7 +164,7 @@ public class PlayersPageExporter extends FileExporter {
|
||||
() -> files.getResourceFromJar("web/" + resourceName).asWebResource());
|
||||
Path to = toDirectory.resolve(resourceName);
|
||||
|
||||
if (resourceName.endsWith(".css")) {
|
||||
if (resourceName.endsWith(".css") || resourceName.endsWith("color-selector.js")) {
|
||||
export(to, theme.replaceThemeColors(resource.asString()));
|
||||
} else if (Resource.isTextResource(resourceName)) {
|
||||
export(to, resource.asString());
|
||||
|
@ -234,7 +234,7 @@ public class ServerPageExporter extends FileExporter {
|
||||
() -> files.getResourceFromJar("web/" + resourceName).asWebResource());
|
||||
Path to = toDirectory.resolve(resourceName);
|
||||
|
||||
if (resourceName.endsWith(".css")) {
|
||||
if (resourceName.endsWith(".css") || resourceName.endsWith("color-selector.js")) {
|
||||
export(to, theme.replaceThemeColors(resource.asString()));
|
||||
} else if (Resource.isTextResource(resourceName)) {
|
||||
export(to, resource.asString());
|
||||
|
Loading…
Reference in New Issue
Block a user