Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2017-12-26 15:02:40 +0300
committerMaxence Lange <maxence@artificial-owl.com>2017-12-26 15:02:40 +0300
commit480de70f60ae666a474ea623e01c9338f4d66038 (patch)
treeb98eaa45273af3aa3b3497d0c121da72ed1b7ea2 /templates
parentca7b3d05e6f592e144ebae6f696a76cefd04f83e (diff)
nextant v2
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/navigate.php37
-rw-r--r--templates/settings.admin.php46
2 files changed, 83 insertions, 0 deletions
diff --git a/templates/navigate.php b/templates/navigate.php
new file mode 100644
index 0000000..328a119
--- /dev/null
+++ b/templates/navigate.php
@@ -0,0 +1,37 @@
+<?php
+
+
+use OCA\FullNextSearch\Api\v1\NextSearch;
+use OCP\Util;
+
+NextSearch::addJavascriptAPI();
+Util::addScript(NextSearch::appName(), 'fullnextsearch');
+Util::addStyle(NextSearch::appName(), 'fullnextsearch');
+
+?>
+
+<div id="search_header">
+ <input id="search_input" placeholder="<?php p($l->t('Search on %s', [$_['themingName']])); ?>">
+<!-- <input id="search_submit" type="submit"-->
+<!-- value="--><?php //p($l->t('Search on %s', [$_['themingName']])); ?><!--">-->
+</div>
+
+
+<div id="search_result"></div>
+
+<!-- <div id="search_json"></div> -->
+
+
+<script id="template_entry" type="text/template">
+ <div class="result_entry_default">
+ <div class="result_entry_left">
+ <div id="title">%%id%%</div>
+ <div id="line1"></div>
+ <div id="line2"></div>
+ </div>
+ <div class="result_entry_right">
+ <div id="score"></div>
+ </div>
+ </div>
+
+</script> \ No newline at end of file
diff --git a/templates/settings.admin.php b/templates/settings.admin.php
new file mode 100644
index 0000000..9a6ecf0
--- /dev/null
+++ b/templates/settings.admin.php
@@ -0,0 +1,46 @@
+<?php
+
+use OCA\FullNextSearch\AppInfo\Application;
+use OCP\Util;
+
+Util::addScript(Application::APP_NAME, 'admin.elements');
+Util::addScript(Application::APP_NAME, 'admin.settings');
+Util::addScript(Application::APP_NAME, 'admin');
+
+Util::addStyle(Application::APP_NAME, 'admin');
+
+?>
+
+<div id="fns" class="section">
+ <h2><?php p($l->t('Full Next Search')) ?></h2>
+
+ <div class="div-table">
+
+ <div class="div-table-row">
+ <div class="div-table-col div-table-col-left">
+ <span class="leftcol">Search Platform :</span>
+ <br/>
+ <em>Select the app that will be used to index content and answer search queries.</em>
+ </div>
+ <div class="div-table-col">
+ <select id="fns_platforms" class="hidden">
+ <option></option>
+ </select>
+ </div>
+ </div>
+
+ <div class="div-table-row">
+ <div class="div-table-col div-table-col-left">
+ <span class="leftcol">Indexing Chunk Size :</span>
+ <br/>
+ <em>Lower the value if the server is short on memory.</em>
+ </div>
+ <div class="div-table-col">
+ <input type="text" class="hidden small" id="fns_chunk_size"/>
+ </div>
+ </div>
+
+ </div>
+
+
+</div> \ No newline at end of file