mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Made rebuilding search idnex progress bar fill up completely when done
This commit is contained in:
parent
259b866ec9
commit
d1a10207d1
5 changed files with 11 additions and 10 deletions
|
@ -5,12 +5,12 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
|
||||
### Added
|
||||
- [Rest API] Added support for the `mode` parameter to the `random` action.
|
||||
- Fixed various issues with both the module api & the rest api docs.
|
||||
- Add json support to the search action :D
|
||||
- Added page moves to the recent changes page (#151)
|
||||
- Hyperlinked image preview on file pages to the original image (#153)
|
||||
|
||||
### Fixed
|
||||
- Fixed various issues with both the module api & the rest api docs.
|
||||
- Properly escaped content of short code box on file pages
|
||||
- Display a more meaningful message to a logged in user if editing is disabled
|
||||
- Fixed fetching the size of SVGs in some cases
|
||||
|
@ -24,6 +24,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
- Fixed floating images that have captions
|
||||
- [Rest API] Fix `checklogin` action documentation
|
||||
- Fix link on credits page
|
||||
- Made rebuild search index progress bar fill completely up when done & neatened up UI placement
|
||||
|
||||
### Changed
|
||||
- Disallow uploads if editing is disabled. Previously files could still be uploaded even if editing was disabled - unless `upload_enabled` was set to `false`.
|
||||
|
|
|
@ -2982,9 +2982,9 @@ register_module([
|
|||
$content .= "<p>This page lets you configure $settings->sitename's master settings. Please be careful - you can break things easily on this page if you're not careful!</p>\n";
|
||||
$content .= "<h2>Actions</h2>";
|
||||
|
||||
$content .= "<button class='action-invindex-rebuild'>Rebuild Search Index</button><br />\n";
|
||||
$content .= "<output class='action-invindex-rebuild-latestmessage'></output><br />\n";
|
||||
$content .= "<button class='action-invindex-rebuild'>Rebuild Search Index</button>\n";
|
||||
$content .= "<progress class='action-invindex-rebuild-progress' min='0' max='100' value='0' style='display: none;'></progress><br />\n";
|
||||
$content .= "<output class='action-invindex-rebuild-latestmessage'></output><br />\n";
|
||||
|
||||
$invindex_rebuild_script = <<<SCRIPT
|
||||
window.addEventListener("load", function(event) {
|
||||
|
@ -4171,7 +4171,7 @@ class search
|
|||
if(!file_exists($page_filename)) {
|
||||
echo("data: [" . ($i + 1) . " / $max] Error: Can't find $page_filename\n");
|
||||
flush();
|
||||
$missing_files++;
|
||||
$i++; $missing_files++;
|
||||
continue;
|
||||
}
|
||||
$pagesource = Normalizer::normalize(file_get_contents($page_filename), Normalizer::FORM_C);
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "The module everyone has been waiting for! Adds a web based gui that lets mods change the wiki settings.",
|
||||
"id": "feature-guiconfig",
|
||||
"lastupdate": 1499800843,
|
||||
"lastupdate": 1523105202,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
@ -104,7 +104,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds proper search functionality to Pepperminty Wiki using an inverted index to provide a full text search engine. If pages don't show up, then you might have hit a stop word. If not, try requesting the `invindex-rebuild` action to rebuild the inverted index from scratch.",
|
||||
"id": "feature-search",
|
||||
"lastupdate": 1521391886,
|
||||
"lastupdate": 1523105081,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
@ -122,7 +122,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File\/' prefix.",
|
||||
"id": "feature-upload",
|
||||
"lastupdate": 1523104505,
|
||||
"lastupdate": 1523104941,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -38,9 +38,9 @@ register_module([
|
|||
$content .= "<p>This page lets you configure $settings->sitename's master settings. Please be careful - you can break things easily on this page if you're not careful!</p>\n";
|
||||
$content .= "<h2>Actions</h2>";
|
||||
|
||||
$content .= "<button class='action-invindex-rebuild'>Rebuild Search Index</button><br />\n";
|
||||
$content .= "<output class='action-invindex-rebuild-latestmessage'></output><br />\n";
|
||||
$content .= "<button class='action-invindex-rebuild'>Rebuild Search Index</button>\n";
|
||||
$content .= "<progress class='action-invindex-rebuild-progress' min='0' max='100' value='0' style='display: none;'></progress><br />\n";
|
||||
$content .= "<output class='action-invindex-rebuild-latestmessage'></output><br />\n";
|
||||
|
||||
$invindex_rebuild_script = <<<SCRIPT
|
||||
window.addEventListener("load", function(event) {
|
||||
|
|
|
@ -588,7 +588,7 @@ class search
|
|||
if(!file_exists($page_filename)) {
|
||||
echo("data: [" . ($i + 1) . " / $max] Error: Can't find $page_filename\n");
|
||||
flush();
|
||||
$missing_files++;
|
||||
$i++; $missing_files++;
|
||||
continue;
|
||||
}
|
||||
$pagesource = Normalizer::normalize(file_get_contents($page_filename), Normalizer::FORM_C);
|
||||
|
|
Loading…
Reference in a new issue