summaryrefslogtreecommitdiff
path: root/htroot
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2025-08-19 22:53:53 -0700
committerMichael Peter Christen <mc@yacy.net>2025-08-19 22:53:53 -0700
commitc2060cc15d95a2870af910b489ac3a1d042d2257 (patch)
treecbcc63cd24f0c97142750dbd01b0468838928c2b /htroot
parent7a6dd868f53d330f29d742245d0c67e7cbc23f67 (diff)
added YaCy Pack Downloader
This does a direct scan of the dataset repositories at huggingface. At this time there is one repo which has the String "YaCy-Pack" inside the repo name. All repositories that have that String in its name are listed. A download button exist which downloads the YaCy Pack to the hold path.
Diffstat (limited to 'htroot')
-rw-r--r--htroot/IndexPackDownloader_p.html31
-rw-r--r--htroot/env/templates/submenuIndexImport.template7
2 files changed, 35 insertions, 3 deletions
diff --git a/htroot/IndexPackDownloader_p.html b/htroot/IndexPackDownloader_p.html
new file mode 100644
index 000000000..cef218ec1
--- /dev/null
+++ b/htroot/IndexPackDownloader_p.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<!-- This page is only XHTML 1.0 Transitional because target is being used in a links -->
+<html xmlns="http://www.w3.org/1999/xhtml">
+#(reload)#::<meta http-equiv="REFRESH" content="5; url=/IndexPackDownloader_p.html">#(/reload)#
+ <head>
+ <title>YaCy '#[clientname]#': Index Pack Downloader</title>
+ #%env/templates/metas.template%#
+ </head>
+ <body id="IndexControl">
+ #%env/templates/header.template%#
+ #%env/templates/submenuIndexImport.template%#
+
+ <h2>YaCy Pack Downloader</h2>
+
+
+ <fieldset><legend>Available Packs</legend>
+ <table class="table table-striped" summary="Packs: Download Sources">
+ <thead class="thead-dark">
+ <tr class="TableHeader"><th width="120">Source</th><th width="360">Repo ID</th><th width="720">File</th><th width="360">Process</th></tr>
+ </thead>
+ <tbody>
+ #{packs-source}#
+ <tr class="TableCell#(dark)#Light::Dark#(/dark)#"><td>#[source]#</td><td><a href="#[repourl]#" target="_blank">#[repoid]#</a></td><td>#[file]#</td><td>#[process]#</td></tr>
+ #{/packs-source}#
+ </tbody>
+ </table>
+ </fieldset>
+
+ #%env/templates/footer.template%#
+ </body>
+</html>
diff --git a/htroot/env/templates/submenuIndexImport.template b/htroot/env/templates/submenuIndexImport.template
index 5ff6a80f1..81bd31a63 100644
--- a/htroot/env/templates/submenuIndexImport.template
+++ b/htroot/env/templates/submenuIndexImport.template
@@ -3,10 +3,11 @@
</div>
<div class="SubMenu">
<div class="SubMenugroup">
- <h3>Index Packs</h3>
+ <h3>YaCy Packs</h3>
<ul class="SubMenu">
- <li><a href="IndexPackGenerator_p.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Index Pack Generator</a></li>
- <li><a href="IndexPackManager_p.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Index Pack Manager</a></li>
+ <li><a href="IndexPackGenerator_p.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Pack Generator</a></li>
+ <li><a href="IndexPackDownloader_p.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Pack Downloader</a></li>
+ <li><a href="IndexPackManager_p.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Pack Manager</a></li>
</ul>
</div>
<div class="SubMenugroup">