From b6aae8b2f6448bba4ebdb1ac0839be569df5e170 Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Thu, 29 Jun 2023 17:57:27 +0200 Subject: [PATCH] Added search name and follow name general --- core/src/components/show-plugin.js | 365 ++++++++++++++++++++++++++++- 1 file changed, 361 insertions(+), 4 deletions(-) diff --git a/core/src/components/show-plugin.js b/core/src/components/show-plugin.js index abc3b345..1fb9fde6 100644 --- a/core/src/components/show-plugin.js +++ b/core/src/components/show-plugin.js @@ -1,4 +1,5 @@ import { LitElement, html, css } from 'lit' +import { render } from 'lit/html.js' import { connect } from 'pwa-helpers' import { store } from '../store.js' import { Epml } from '../epml.js' @@ -17,6 +18,11 @@ import '@material/mwc-button' import '@material/mwc-dialog' import '@material/mwc-icon' import '@material/mwc-textfield' +import '@polymer/paper-icon-button/paper-icon-button.js' +import '@polymer/iron-icons/iron-icons.js' +import '@polymer/paper-dialog/paper-dialog.js' +import '@vaadin/grid' +import '@vaadin/text-field' const chatLastSeen = localForage.createInstance({ name: "chat-last-seen", @@ -727,7 +733,11 @@ class NavBar extends connect(store)(LitElement) { textFieldDisabled: { type: Boolean }, initialName: { type: String }, newId: { type: String }, - removeTitle: { type: String } + removeTitle: { type: String }, + myFollowedNames: { type: Array }, + myFollowedNamesList: { type: Array }, + searchNameContentString: { type: String }, + searchNameResources: { type: Array } } } @@ -891,9 +901,9 @@ class NavBar extends connect(store)(LitElement) { } .resetIcon { - position: absolute; + position: fixed; right: 16px; - top: 16px; + top: 116px; color: #666; --mdc-icon-size: 32px; cursor: pointer; @@ -903,7 +913,76 @@ class NavBar extends connect(store)(LitElement) { color: #03a9f4; font-weight: bold; } + + .searchIcon { + position: fixed; + left: 16px; + top: 116px; + color: #666; + --mdc-icon-size: 32px; + cursor: pointer; + } + + .searchIcon:hover { + color: #03a9f4; + font-weight: bold; + } + + paper-dialog.searchSettings { + width: 100%; + max-width: 550px; + height: auto; + max-height: 600px; + background-color: var(--white); + color: var(--black); + line-height: 1.6; + overflow: hidden; + border: 1px solid var(--black); + border-radius: 10px; + padding: 15px; + } + + paper-dialog button { + padding: 5px 10px; + font-size: 18px; + background-color: #03a9f4; + color: white; + border: 1px solid transparent; + border-radius: 5px; + cursor: pointer; + } + + paper-dialog button:hover { + opacity: 0.8; + cursor: pointer; + } + + .search { + display: inline; + width: 50%; + align-items: center; + } + + .divCard { + height: auto; + max-height: 500px; + border: 1px solid var(--border); + padding: 1em; + margin-bottom: 1em; + } + + img { + border-radius: 25%; + max-width: 32px; + height: 100%; + max-height: 32px; + } + + vaadin-text-field[focused]::part(input-field) { + border-color: #03a9f4; + } ` + constructor() { super() this.menuList = [] @@ -922,12 +1001,17 @@ class NavBar extends connect(store)(LitElement) { this.initialName = '' this.newId = '' this.removeTitle = '' + this.myFollowedNames = [] + this.myFollowedNamesList = [] + this.searchContentString = '' + this.searchNameResources = [] } render() { return html`