From 8a044c37b6ec461cd966cd0c0c6fd38bcc5fcc78 Mon Sep 17 00:00:00 2001 From: Justin Ferrari <‘justinwesleyferrari@gmail.com’> Date: Fri, 16 Dec 2022 22:52:43 -0500 Subject: [PATCH] Started User Search Logic --- .../core/components/ChatSeachResults.js | 47 +++ .../core/components/ChatSearchResults-css.js | 43 ++ .../plugins/core/components/ChatTextEditor.js | 5 +- .../core/messaging/q-chat/q-chat-css.src.js | 357 ++++++++++++++++ .../core/messaging/q-chat/q-chat.src.js | 395 ++++-------------- 5 files changed, 522 insertions(+), 325 deletions(-) create mode 100644 qortal-ui-plugins/plugins/core/components/ChatSeachResults.js create mode 100644 qortal-ui-plugins/plugins/core/components/ChatSearchResults-css.js create mode 100644 qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat-css.src.js diff --git a/qortal-ui-plugins/plugins/core/components/ChatSeachResults.js b/qortal-ui-plugins/plugins/core/components/ChatSeachResults.js new file mode 100644 index 00000000..21f4ce47 --- /dev/null +++ b/qortal-ui-plugins/plugins/core/components/ChatSeachResults.js @@ -0,0 +1,47 @@ +import { LitElement, html } from 'lit'; +import { render } from 'lit/html.js'; +import { chatSearchResultsStyles } from './ChatSearchResults-css.js' + +export class ChatSearchResults extends LitElement { + static get properties() { + return { + onClickFunc: { attribute: false }, + searchResults: { type: Array }, + loading: { type: Boolean } + } + } + + static styles = [chatSearchResultsStyles] + + render() { + console.log(this.searchResults, "search results here"); + return html` +
+ ${result} +
+${translate("chatpage.cchange6")}
- +${translate("chatpage.cchange6")}
+