You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by gs...@apache.org on 2026/02/22 03:33:58 UTC
(steve) branch trunk updated (82a66a6 -> ff3e75f)
This is an automated email from the ASF dual-hosted git repository.
gstein pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git
from 82a66a6 we are fetching more stuff. rename the fetch script
new 5235933 Serve third-party content from our own servers.
new ff3e75f refactor: use showModal utility for STV modal
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
v3/server/bin/fetch-thirdparty.sh | 4 ++--
v3/server/static/js/Sortable.min.js | 2 ++
v3/server/templates/vote-on.ezt | 7 +++----
3 files changed, 7 insertions(+), 6 deletions(-)
create mode 100644 v3/server/static/js/Sortable.min.js
(steve) 01/02: Serve third-party content from our own servers.
Posted by gs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git
commit 5235933232411c0b5bc05f483c30b2b6d21f0a7c
Author: Greg Stein <gs...@gmail.com>
AuthorDate: Sat Feb 21 21:15:14 2026 -0600
Serve third-party content from our own servers.
Sortable is MIT licensed: safe to copy/serve.
Update the fetching script. Add the JS. Update vote-on with the new
link and correct integrity value.
---
v3/server/bin/fetch-thirdparty.sh | 4 ++--
v3/server/static/js/Sortable.min.js | 2 ++
v3/server/templates/vote-on.ezt | 4 ++--
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/v3/server/bin/fetch-thirdparty.sh b/v3/server/bin/fetch-thirdparty.sh
index 47e6859..0b09639 100755
--- a/v3/server/bin/fetch-thirdparty.sh
+++ b/v3/server/bin/fetch-thirdparty.sh
@@ -29,9 +29,9 @@ I_VERSION="1.13.1"
I_DIST="bootstrap-icons-${I_VERSION}"
I_URL="https://github.com/twbs/icons/releases/download/v${I_VERSION}/${I_DIST}.zip"
-S_VERSION="1.15.0"
+S_VERSION="1.15.7"
S_DIST="Sortable-${S_VERSION}"
-S_URL="https://github.com/SortableJS/Sortable/releases/download/${S_VERSION}/${S_DIST}.zip"
+S_URL="https://github.com/SortableJS/Sortable/archive/refs/tags/${S_VERSION}.zip"
THIS_DIR=$(dirname "`realpath $0`")
PARENT_DIR=$(dirname "$THIS_DIR")
diff --git a/v3/server/static/js/Sortable.min.js b/v3/server/static/js/Sortable.min.js
new file mode 100644
index 0000000..8148b9d
--- /dev/null
+++ b/v3/server/static/js/Sortable.min.js
@@ -0,0 +1,2 @@
+/*! Sortable 1.15.7 - MIT | git://github.com/SortableJS/Sortable.git */
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sortable=e()}(this,function(){"use strict";function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function i(t,e,n){return(e=function(t){t=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);e=n.call(t,e||"default");if("o [...]
\ No newline at end of file
diff --git a/v3/server/templates/vote-on.ezt b/v3/server/templates/vote-on.ezt
index 6bee370..2fe4457 100644
--- a/v3/server/templates/vote-on.ezt
+++ b/v3/server/templates/vote-on.ezt
@@ -319,8 +319,8 @@
<!-- SortableJS -->
-<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.15.2/Sortable.min.js"
- integrity="sha512-Re8HTXL7IfXyPBPlWJMOFsUhxDJQkFMb1fTRhDHXbSon5NHKKVgUj0FIZEEMjJd0P9AhBRY+J6FfrqeGHmZQ=="
+<script src="/static/js/Sortable.min.js"
+ integrity="sha384-DgmC6Xe2bSN2WjTDXzWYbUbxyhNP+NNkGDR/g78pCXV7E7rcVTGxVg0uIVCUUcBc"
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
(steve) 02/02: refactor: use showModal utility for STV modal
Posted by gs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git
commit ff3e75ff6ad0981d399dfb30d9c98b5760824abe
Author: Greg Stein <gs...@gmail.com>
AuthorDate: Sat Feb 21 21:27:04 2026 -0600
refactor: use showModal utility for STV modal
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <ai...@aider.chat>
---
v3/server/templates/vote-on.ezt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/v3/server/templates/vote-on.ezt b/v3/server/templates/vote-on.ezt
index 2fe4457..bf14ec5 100644
--- a/v3/server/templates/vote-on.ezt
+++ b/v3/server/templates/vote-on.ezt
@@ -383,8 +383,7 @@
updateRankNumbers();
initSortable();
- const modal = bootstrap.Modal.getOrCreate(document.getElementById('stvModal'));
- modal.show();
+ showModal('stvModal');
};
function makeItem(candidate, rank) {