From 9defb95581974bb779ead6b178d986f6be3796e5 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 8 Jul 2024 20:52:59 +0200 Subject: release assets --- public/static/css/material-icons.css | 8 ++++---- public/static/v101 | 1 + public/static/v99 | 1 - scripts/asset-release | 2 +- templates/layouts/app.html.ep | 2 +- templates/layouts/legacy.html.ep | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) create mode 120000 public/static/v101 delete mode 120000 public/static/v99 diff --git a/public/static/css/material-icons.css b/public/static/css/material-icons.css index 999376d..3471568 100644 --- a/public/static/css/material-icons.css +++ b/public/static/css/material-icons.css @@ -2,12 +2,12 @@ font-family: 'Material Icons'; font-style: normal; font-weight: 400; - src: url(/static/v100/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */ + src: url(/static/v101/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */ src: local('Material Icons'), local('MaterialIcons-Regular'), - url(/static/v100/fonts/MaterialIcons-Regular.woff2) format('woff2'), - url(/static/v100/fonts/MaterialIcons-Regular.woff) format('woff'), - url(/static/v100/fonts/MaterialIcons-Regular.ttf) format('truetype'); + url(/static/v101/fonts/MaterialIcons-Regular.woff2) format('woff2'), + url(/static/v101/fonts/MaterialIcons-Regular.woff) format('woff'), + url(/static/v101/fonts/MaterialIcons-Regular.ttf) format('truetype'); } .material-icons { diff --git a/public/static/v101 b/public/static/v101 new file mode 120000 index 0000000..945c9b4 --- /dev/null +++ b/public/static/v101 @@ -0,0 +1 @@ +. \ No newline at end of file diff --git a/public/static/v99 b/public/static/v99 deleted file mode 120000 index 945c9b4..0000000 --- a/public/static/v99 +++ /dev/null @@ -1 +0,0 @@ -. \ No newline at end of file diff --git a/scripts/asset-release b/scripts/asset-release index 5714745..418477f 100755 --- a/scripts/asset-release +++ b/scripts/asset-release @@ -5,7 +5,7 @@ set -ex -current="$(find public/static/v* | tail -n 1 | grep -o '..$')" +current="$(find public/static/v* | tail -n 1 | grep -o '...$')" prev=$((current - 1)) next=$((current + 1)) diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index cd180d5..579fb80 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -18,7 +18,7 @@ % } - % my $av = 'v100'; # asset version + % my $av = 'v101'; # asset version % if (session('theme') and session('theme') eq 'dark' or param('dark')) { %= stylesheet "/static/${av}/css/dark.min.css", id => 'theme' % } diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep index 09b94e6..5d3e31c 100644 --- a/templates/layouts/legacy.html.ep +++ b/templates/layouts/legacy.html.ep @@ -17,7 +17,7 @@ % } - % my $av = 'v100'; # asset version + % my $av = 'v101'; # asset version %= stylesheet "/static/${av}/css/legacy.css" %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/jquery-ui.min.css" -- cgit v1.2.3