1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 16:33:00 +00:00

Made rebuilding search idnex progress bar fill up completely when done

This commit is contained in:
Starbeamrainbowlabs 2018-04-07 13:47:39 +01:00
parent 259b866ec9
commit d1a10207d1
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
5 changed files with 11 additions and 10 deletions

View file

@ -5,12 +5,12 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
### Added ### Added
- [Rest API] Added support for the `mode` parameter to the `random` action. - [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 - Add json support to the search action :D
- Added page moves to the recent changes page (#151) - Added page moves to the recent changes page (#151)
- Hyperlinked image preview on file pages to the original image (#153) - Hyperlinked image preview on file pages to the original image (#153)
### Fixed ### Fixed
- Fixed various issues with both the module api & the rest api docs.
- Properly escaped content of short code box on file pages - Properly escaped content of short code box on file pages
- Display a more meaningful message to a logged in user if editing is disabled - Display a more meaningful message to a logged in user if editing is disabled
- Fixed fetching the size of SVGs in some cases - 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 - Fixed floating images that have captions
- [Rest API] Fix `checklogin` action documentation - [Rest API] Fix `checklogin` action documentation
- Fix link on credits page - Fix link on credits page
- Made rebuild search index progress bar fill completely up when done & neatened up UI placement
### Changed ### 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`. - Disallow uploads if editing is disabled. Previously files could still be uploaded even if editing was disabled - unless `upload_enabled` was set to `false`.

View file

@ -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 .= "<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 .= "<h2>Actions</h2>";
$content .= "<button class='action-invindex-rebuild'>Rebuild Search Index</button><br />\n"; $content .= "<button class='action-invindex-rebuild'>Rebuild Search Index</button>\n";
$content .= "<output class='action-invindex-rebuild-latestmessage'></output><br />\n";
$content .= "<progress class='action-invindex-rebuild-progress' min='0' max='100' value='0' style='display: none;'></progress><br />\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 $invindex_rebuild_script = <<<SCRIPT
window.addEventListener("load", function(event) { window.addEventListener("load", function(event) {
@ -4171,7 +4171,7 @@ class search
if(!file_exists($page_filename)) { if(!file_exists($page_filename)) {
echo("data: [" . ($i + 1) . " / $max] Error: Can't find $page_filename\n"); echo("data: [" . ($i + 1) . " / $max] Error: Can't find $page_filename\n");
flush(); flush();
$missing_files++; $i++; $missing_files++;
continue; continue;
} }
$pagesource = Normalizer::normalize(file_get_contents($page_filename), Normalizer::FORM_C); $pagesource = Normalizer::normalize(file_get_contents($page_filename), Normalizer::FORM_C);

View file

@ -68,7 +68,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "The module everyone has been waiting for! Adds a web based gui that lets mods change the wiki settings.", "description": "The module everyone has been waiting for! Adds a web based gui that lets mods change the wiki settings.",
"id": "feature-guiconfig", "id": "feature-guiconfig",
"lastupdate": 1499800843, "lastupdate": 1523105202,
"optional": false "optional": false
}, },
{ {
@ -104,7 +104,7 @@
"author": "Starbeamrainbowlabs", "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.", "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", "id": "feature-search",
"lastupdate": 1521391886, "lastupdate": 1523105081,
"optional": false "optional": false
}, },
{ {
@ -122,7 +122,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File\/' prefix.", "description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File\/' prefix.",
"id": "feature-upload", "id": "feature-upload",
"lastupdate": 1523104505, "lastupdate": 1523104941,
"optional": false "optional": false
}, },
{ {

View file

@ -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 .= "<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 .= "<h2>Actions</h2>";
$content .= "<button class='action-invindex-rebuild'>Rebuild Search Index</button><br />\n"; $content .= "<button class='action-invindex-rebuild'>Rebuild Search Index</button>\n";
$content .= "<output class='action-invindex-rebuild-latestmessage'></output><br />\n";
$content .= "<progress class='action-invindex-rebuild-progress' min='0' max='100' value='0' style='display: none;'></progress><br />\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 $invindex_rebuild_script = <<<SCRIPT
window.addEventListener("load", function(event) { window.addEventListener("load", function(event) {

View file

@ -588,7 +588,7 @@ class search
if(!file_exists($page_filename)) { if(!file_exists($page_filename)) {
echo("data: [" . ($i + 1) . " / $max] Error: Can't find $page_filename\n"); echo("data: [" . ($i + 1) . " / $max] Error: Can't find $page_filename\n");
flush(); flush();
$missing_files++; $i++; $missing_files++;
continue; continue;
} }
$pagesource = Normalizer::normalize(file_get_contents($page_filename), Normalizer::FORM_C); $pagesource = Normalizer::normalize(file_get_contents($page_filename), Normalizer::FORM_C);