Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap 5 #1934

Merged
merged 43 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
5006863
Upgrades Bootstrap and Font Awesome classes 🧑‍💻
jakobvogel Jan 18, 2024
6511b45
Merge branch 'develop' into feature/jvo/SIRI-925-Bootstrap-5
jakobvogel Jan 19, 2024
cde77a5
Merge branch 'develop' into feature/jvo/SIRI-925-Bootstrap-5
jakobvogel Jan 26, 2024
1be3813
Merge branch 'develop' into feature/jvo/SIRI-925-Bootstrap-5
jakobvogel Jan 29, 2024
77c49d9
Ports smart values to Vanilla JS 🍨
jakobvogel Jan 30, 2024
9b1d5b8
Ports help dropdown of page footer to Vanilla JS 🍦
jakobvogel Jan 30, 2024
4d2ce79
Fixes typo 🧑‍🏫
jakobvogel Jan 30, 2024
0cb5721
Merge branch 'develop' into feature/jvo/SIRI-925-Bootstrap-5
jakobvogel Feb 5, 2024
1f13449
Renames method 📛
jakobvogel Feb 6, 2024
7224165
Merge branch 'develop' into feature/jvo/SIRI-925-Bootstrap-5
jakobvogel Feb 8, 2024
15c3d6b
Revises look of form groups 🧑‍🎨
jakobvogel Feb 8, 2024
e881c6b
Removes now superfluous .input-group-append 🚽
jakobvogel Feb 8, 2024
7bcf604
Fixes link styling 🔗
jakobvogel Feb 8, 2024
64779c9
Fixes data attributes 🚒
jakobvogel Feb 8, 2024
d216be3
Ports KB to BS 5 🛸
jakobvogel Feb 8, 2024
8b3ce15
Removes jQuery from storage pages 🧼
jakobvogel Feb 8, 2024
2b84ee5
Removes jQuery from Data Explorer 🧭
jakobvogel Feb 8, 2024
33d379d
Fixes look of export button 🚑
jakobvogel Feb 8, 2024
225ccf1
Removes jQuery from forgot-password-modal 🪦
jakobvogel Feb 8, 2024
d2fc982
Removes jQuery from lookup tables view ⚰️
jakobvogel Feb 8, 2024
af4d3eb
Removes jQuery from multi-language field ⚱️
jakobvogel Feb 8, 2024
f593c03
Fixes placement of open-search field 🚧
jakobvogel Feb 8, 2024
a2cfca8
Removes jQuery from polar area chart 🐻‍❄️
jakobvogel Feb 8, 2024
d2e0f2e
Removes jQuery from job presets ☠️
jakobvogel Feb 8, 2024
0c4d342
Ports Open Search to BS 5 🛳️
jakobvogel Feb 9, 2024
29e9680
Removes jQuery from process chart output 🌵
jakobvogel Feb 9, 2024
3a2a07a
Removes jQuery from blob-image-soft-ref-field 🏜️
jakobvogel Feb 9, 2024
248980c
Merge branch 'develop' into feature/jvo/SIRI-925-Bootstrap-5
jakobvogel Feb 9, 2024
c258cc1
Removes now superfluous BS4 class 🧹
jakobvogel Feb 9, 2024
825ed87
Fixes multi-language-field 🚑
jakobvogel Feb 9, 2024
3253388
Fixes dropdown menu to show links within list items 🚒
jakobvogel Feb 10, 2024
2872588
Correctly initialises tab bar when in dropdown/multiline mode 💦
jakobvogel Feb 10, 2024
9fe3bcf
Removes outdated comment 🤫
jakobvogel Feb 10, 2024
a172fa9
Correctly initialises language addition link for single line fields 👨‍🚒
jakobvogel Feb 10, 2024
d71b3e5
Removes accidentally committed debug output 🧹
jakobvogel Feb 10, 2024
853c623
Focuses input fields after adding new languages 🧘‍♀️
jakobvogel Feb 10, 2024
9114171
Focuses textarea after selecting a language from the tab bar or drop-…
jakobvogel Feb 10, 2024
72a272c
Translates ARIA-label 🇺🇳
jakobvogel Feb 13, 2024
cdf9cbf
Removes outdated comment 🧹
jakobvogel Feb 13, 2024
a0311fb
Removes outdated copyright notice 🤐
jakobvogel Feb 13, 2024
f264556
Uses `<k:link>` within the KB ♻️
jakobvogel Feb 13, 2024
392da45
Removes excessive whitespace 🧺
jakobvogel Feb 13, 2024
2bff2fd
Upgrades Sirius 🪐
jakobvogel Feb 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<url>https://www.sirius-lib.net</url>

<properties>
<sirius.kernel>dev-42.2.0</sirius.kernel>
<sirius.web>dev-75.3.0</sirius.web>
<sirius.kernel>dev-42.3.0</sirius.kernel>
<sirius.web>dev-76.0.0</sirius.web>
<sirius.db>dev-57.0.0</sirius.db>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
public abstract class TimeSeriesChartFactory<O> extends ChartFactory<O> {

private static final String[] ICONS = {"fas fa-chart-line", "fas fa-chart-area", "fas fa-chart-bar"};
private static final String[] ICONS = {"fa-solid fa-chart-line", "fa-solid fa-chart-area", "fa-solid fa-chart-bar"};
private static final String OUTPUT_TYPE = "type";
private static final String OUTPUT_LABELS = "labels";
private static final String OUTPUT_RANGE = "range";
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/sirius/biz/analytics/reports/Cells.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public Cell rightAligned(Object value) {

return new Cell(Json.createObject()
.put(KEY_TYPE, CSSCellFormat.TYPE)
.put(CSSCellFormat.KEY_CLASSES, "text-right")
.put(CSSCellFormat.KEY_CLASSES, "text-end")
.put(CSSCellFormat.KEY_VALUE, NLS.toUserString(value)));
}

Expand Down Expand Up @@ -170,7 +170,7 @@ public Cell colored(Amount value, @Nullable NumberFormat formatter) {

return new Cell(Json.createObject()
.put(KEY_TYPE, CSSCellFormat.TYPE)
.put(CSSCellFormat.KEY_CLASSES, "text-right " + color)
.put(CSSCellFormat.KEY_CLASSES, "text-end " + color)
.put(CSSCellFormat.KEY_VALUE, safeFormat(value, formatter)));
}

Expand Down Expand Up @@ -251,11 +251,11 @@ public Cell valueAndTrendIcon(Amount value, Amount comparisonValue, @Nullable Nu
return of(safeFormat(value, formatter));
}

String icon = "fa fa-arrow-right";
String icon = "fa-solid fa-arrow-right";
if (delta.isPositive()) {
icon = "fa fa-arrow-up";
icon = "fa-solid fa-arrow-up";
} else if (delta.isNegative()) {
icon = "fa fa-arrow-down";
icon = "fa-solid fa-arrow-down";
}

String color = computeCellColor(delta);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public String format(ObjectNode data) {
String value = data.path(KEY_VALUE).asText();
String values = data.path(KEY_VALUES).asText();

StringBuilder sb = new StringBuilder("<div class=\"text-right\">");
StringBuilder sb = new StringBuilder("<div class=\"text-end\">");
sb.append(value);
sb.append(" ");
sb.append("<canvas width=\"40\" height=\"20\" class=\"sparkline-js\" data-sparkline=\"");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public String format(ObjectNode data) {
String hint = data.path(KEY_HINT).asText();
String icon = data.path(KEY_ICON).asText();

StringBuilder sb = new StringBuilder("<div class=\"text-right\"");
StringBuilder sb = new StringBuilder("<div class=\"text-end\"");
if (Strings.isFilled(hint)) {
sb.append(" title=\"");
sb.append(Strings.cleanup(hint, StringCleanup::escapeXml));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public String expand(String message) {
LookupTable table = lookupTables.fetchTable(tableName);
return Strings.apply("""
<span class="d-inline-flex flex-row align-items-baseline">
<i class="fa fa-bolt"></i><a class="pl-1" href="javascript:openLookupTable('%s')">%s</a>
<i class="fa-solid fa-bolt"></i><a class="ps-1" href="javascript:openLookupTable('%s')">%s</a>
</span>
""", tableName, table.getTitle());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public abstract class BatchProcessJobFactory extends BasicJobFactory {

@Override
public String getIcon() {
return "fa fa-cogs";
return "fa-solid fa-cogs";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ protected Class<? extends DistributedTaskExecutor> getExecutor() {

@Override
public String getIcon() {
return "far fa-check-square";
return "fa-regular fa-check-square";
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected Class<? extends DistributedTaskExecutor> getExecutor() {

@Override
public String getIcon() {
return "fa fa-download";
return "fa-solid fa-download";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected Class<? extends DistributedTaskExecutor> getExecutor() {

@Override
public String getIcon() {
return "fa fa-upload";
return "fa-solid fa-upload";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ protected Class<? extends DistributedTaskExecutor> getExecutor() {

@Override
public String getIcon() {
return "fas fa-chart-line";
return "fa-solid fa-chart-line";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ protected PersistencePeriod getPersistencePeriod() {

@Override
public String getIcon() {
return "fas fa-chart-line";
return "fa-solid fa-chart-line";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ protected void collectAcceptedFileExtensions(Consumer<String> fileExtensionConsu

@Override
public String getIcon() {
return "far fa-file-excel";
return "fa-regular fa-file-excel";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected void collectAcceptedFileExtensions(Consumer<String> fileExtensionConsu

@Override
public String getIcon() {
return "far fa-file-excel";
return "fa-regular fa-file-excel";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected void collectAcceptedFileExtensions(Consumer<String> fileExtensionConsu

@Override
public String getIcon() {
return "fa fa-code";
return "fa-solid fa-code";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected void collectAcceptedFileExtensions(Consumer<String> fileExtensionConsu

@Override
public String getIcon() {
return "fa fa-code";
return "fa-solid fa-code";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class LinearChartJobFactory extends InteractiveJobFactory {

@Override
public String getIcon() {
return "fas fa-chart-area";
return "fa-solid fa-chart-area";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public abstract class PolarAreaChartJobFactory extends SingleDatasetChartJobFact

@Override
public String getIcon() {
return "fas fa-chart-pie";
return "fa-solid fa-chart-pie";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public abstract class ReportJobFactory extends InteractiveJobFactory {

@Override
public String getIcon() {
return "fas fa-table";
return "fa-solid fa-table";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public String getName() {

@Override
public String getIcon() {
return "fas fa-chart-line";
return "fa-solid fa-chart-line";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public String getName() {

@Override
public String getIcon() {
return "fa fa-bars";
return "fa-solid fa-bars";
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/sirius/biz/process/output/ProcessOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ public class ProcessOutput extends Nested {

public String getIcon() {
if (isSystemOutput()) {
return "fa fa-lock";
return "fa-solid fa-lock";
}
return typeToIcons.computeIfAbsent(type, this::computeIcon);
}

private String computeIcon(String outputType) {
return Optional.of(globalContext.getPart(outputType, ProcessOutputType.class))
.map(ProcessOutputType::getIcon)
.orElse("fa fa-bars");
.orElse("fa-solid fa-bars");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public String getName() {

@Override
public String getIcon() {
return "fa fa-table";
return "fa-solid fa-table";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ protected void collectFilesToLock(Map<String, String> context, Consumer<VirtualF

@Override
public String getIcon() {
return "far fa-file-archive";
return "fa-regular fa-file-archive";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Stream<JobFactory> getAvailableJobs() {
public void computeQuickAction(VirtualFile virtualFile, Consumer<QuickAction> consumer) {
String uri = WebContext.getCurrent().getRequest().uri();
getAvailableJobs().filter(jobFactory -> jobFactory.generatePresetUrl(uri, virtualFile) != null)
.forEach(jobFactory -> consumer.accept(new QuickAction().withIcon("fa fa-cogs")
.forEach(jobFactory -> consumer.accept(new QuickAction().withIcon("fa-solid fa-cogs")
.withLabel(jobFactory.getLabel())
.withUrl(jobFactory.generatePresetUrl(
uri,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public String toString() {

@Override
public String getIcon() {
return "far fa-copy";
return "fa-regular fa-copy";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public String expand(String message) {
return knowledgeBase.resolve(NLS.getCurrentLanguage(), match.group(2), false).map(kba -> {
return match.group(1) + Strings.apply("""
<span class="d-inline-flex flex-row align-items-baseline">
<i class="fa fa-lightbulb"></i><a class="pl-1" href="/kba/%s/%s">%s</a>
<i class="fa-solid fa-lightbulb"></i><a class="ps-1" href="/kba/%s/%s">%s</a>
</span>
""",
kba.getLanguage(),
Expand All @@ -46,7 +46,7 @@ public String expand(String message) {
return knowledgeBase.resolve(NLS.getCurrentLanguage(), match.group(1), true).map(kba -> {
return Strings.apply("""
<span class="d-inline-flex flex-row align-items-baseline">
<i class="fa fa-lightbulb"></i><a class="pl-1" href="/kba/%s/%s">%s</a>
<i class="fa-solid fa-lightbulb"></i><a class="ps-1" href="/kba/%s/%s">%s</a>
</span>
""", kba.getLanguage(), kba.getArticleId(), kba.getTitle());
}).orElse("kba:" + match.group());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sirius/biz/tycho/kb/OpenKbaLogHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public String formatMessage(ProcessLog log) {
public List<ProcessLogAction> getActions(ProcessLog log) {
return resolveArticleId(log).map(article -> {
ProcessLogAction action = new ProcessLogAction(log, ACTION_OPEN_ARTICLE).withLabel(article.getTitle())
.withIcon("fa fa-lightbulb");
.withIcon("fa-solid fa-lightbulb");
return Collections.singletonList(action);
}).orElse(Collections.emptyList());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class EmailSmartValueProvider implements SmartValueProvider {
public void collectValues(String type, Object payload, Consumer<SmartValue> valueCollector) {
if (Strings.isFilled(payload) && VALUE_TYPE_EMAIL.equals(type)) {
String email = payload.toString();
valueCollector.accept(new SmartValue("fa fa-envelope", email, "mailto:" + Strings.urlEncode(email), email));
valueCollector.accept(new SmartValue("fa-solid fa-envelope", email, "mailto:" + Strings.urlEncode(email), email));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public void collectValues(String type, Object payload, Consumer<SmartValue> valu
if (tenants != null
&& UserContext.getCurrentUser().hasPermission("permission-select-tenant")
&& !Strings.areEqual(user.getTenantAsString(), UserContext.getCurrentUser().getTenantId())) {
valueCollector.accept(new SmartValue("fa fa-exchange-alt",
valueCollector.accept(new SmartValue("fa-solid fa-exchange-alt",
tenants.fetchCachedTenantName(user.getTenantAsString()),
"/tenants/select/" + user.getTenantAsString(),
null));
}
if (UserContext.getCurrentUser().hasPermission("permission-select-user-account")
&& !Strings.areEqual(user.getUniqueName(), UserContext.getCurrentUser().getUserId())) {
valueCollector.accept(new SmartValue("fa fa-exchange-alt",
valueCollector.accept(new SmartValue("fa-solid fa-exchange-alt",
user.getUserAccountData().getShortName(),
"/user-accounts/select/" + user.getIdAsString(),
null));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function initBlobSoftRefField(element, blobKeyField, blobStorageSpace, originalU
'{{/previewImage}}' +
'{{^previewImage}}' +
' {{#icon}}' +
' <i class="fa fa-3x {{icon}}" aria-hidden="true"></i>' +
' <i class="fa-solid fa-3x {{icon}}" aria-hidden="true"></i>' +
' {{/icon}}' +
'{{/previewImage}}' +
'{{#url}}' +
Expand Down
Loading