Upgrade to Webpacker 6.0.

This commit is contained in:
evazion
2021-01-27 20:49:24 -06:00
parent 2eeee446a5
commit 90cd3293eb
20 changed files with 717 additions and 3088 deletions

View File

@@ -1,5 +1,4 @@
/* eslint no-console:0 */
function importAll(r) {
r.keys().forEach(r);
}

View File

@@ -114,7 +114,8 @@ Utility.regexp_escape = function(string) {
}
Utility.regexp_split = function(string) {
return [...new Set(String(string === null || string === undefined ? "" : string).match(/\S+/g))];
string ??= "";
return string.match(/\S+/g) ?? [];
}
$.fn.selectEnd = function() {

View File

@@ -1,4 +1,4 @@
@import "../../javascript/src/styles/base/000_vars.scss";
@import "./000_vars.scss";
a:link {
color: var(--link-color);

View File

@@ -53,7 +53,7 @@ table.autofit {
}
}
table.search {
table.search, table.aligned-vertical {
tr {
height: 2em;
}
@@ -70,9 +70,5 @@ table.search {
}
table.aligned-vertical {
@extend table.search;
tr {
height: 1.75em;
}
height: 1.75em;
}

View File

@@ -16,8 +16,8 @@
<% if CurrentUser.user.blacklisted_tags.present? %>
<meta name="blacklisted-tags" content="<%= CurrentUser.user.blacklisted_tags.gsub(/(?:\r|\n)+/, ",") %>">
<% end %>
<%= javascript_pack_tag "application" %>
<%= stylesheet_pack_tag "application" %>
<%= javascript_packs_with_chunks_tag "application" %>
<%= stylesheet_packs_with_chunks_tag "application" %>
<% if CurrentUser.user.custom_style.present? && params.fetch(:css, "true").truthy? %>
<%= stylesheet_link_tag custom_style_users_path(md5: Digest::MD5.hexdigest(CurrentUser.user.custom_style)), media: "screen" %>
<% end %>