mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
Optimize imports
This commit is contained in:
parent
c12f7859b5
commit
0186fe2814
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
import {doPageUrl} from '../redux/app/app-actions.js'
|
import {doPageUrl} from '../redux/app/app-actions.js'
|
||||||
import { translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
import WebWorker from 'web-worker:./computePowWorker.js';
|
import WebWorker from 'web-worker:./computePowWorker.js';
|
||||||
import {routes} from '../plugins/routes.js';
|
import {routes} from '../plugins/routes.js';
|
||||||
|
|
||||||
|
@ -1,18 +1,13 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
import {Epml} from '../epml.js'
|
import {Epml} from '../epml.js'
|
||||||
import {addTradeBotRoutes} from '../tradebot/addTradeBotRoutes.js'
|
import {addTradeBotRoutes} from '../tradebot/addTradeBotRoutes.js'
|
||||||
import { get, translate, translateUnsafeHTML } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
import localForage from 'localforage'
|
import localForage from 'localforage'
|
||||||
import { encryptData, decryptData } from '../lockScreen.js'
|
import {decryptData, encryptData} from '../lockScreen.js'
|
||||||
import {setChatLastSeen} from '../redux/app/app-actions.js'
|
import {setChatLastSeen} from '../redux/app/app-actions.js'
|
||||||
import isElectron from 'is-electron'
|
import isElectron from 'is-electron'
|
||||||
|
|
||||||
const chatLastSeen = localForage.createInstance({
|
|
||||||
name: "chat-last-seen",
|
|
||||||
})
|
|
||||||
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
import '@polymer/paper-icon-button/paper-icon-button.js'
|
import '@polymer/paper-icon-button/paper-icon-button.js'
|
||||||
@ -47,6 +42,11 @@ import './friends-view/friends-side-panel-parent.js'
|
|||||||
import './friends-view/save-settings-qdn.js'
|
import './friends-view/save-settings-qdn.js'
|
||||||
import './friends-view/core-sync-status.js'
|
import './friends-view/core-sync-status.js'
|
||||||
import './controllers/coin-balances-controller.js'
|
import './controllers/coin-balances-controller.js'
|
||||||
|
|
||||||
|
const chatLastSeen = localForage.createInstance({
|
||||||
|
name: "chat-last-seen",
|
||||||
|
})
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
class AppView extends connect(store)(LitElement) {
|
class AppView extends connect(store)(LitElement) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { get, translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
import isElectron from 'is-electron'
|
import isElectron from 'is-electron'
|
||||||
|
|
||||||
import '@polymer/paper-icon-button/paper-icon-button.js'
|
import '@polymer/paper-icon-button/paper-icon-button.js'
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {html, LitElement} from 'lit';
|
||||||
import '@material/mwc-icon';
|
import '@material/mwc-icon';
|
||||||
import {store} from '../../store';
|
import {store} from '../../store';
|
||||||
import {connect} from 'pwa-helpers';
|
import {connect} from 'pwa-helpers';
|
||||||
import '@vaadin/tooltip';
|
import '@vaadin/tooltip';
|
||||||
import { get } from 'lit-translate';
|
|
||||||
import {parentEpml} from '../show-plugin';
|
import {parentEpml} from '../show-plugin';
|
||||||
import {setCoinBalances} from '../../redux/app/app-actions';
|
import {setCoinBalances} from '../../redux/app/app-actions';
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
import {get} from 'lit-translate'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
import '@vaadin/tooltip';
|
import '@vaadin/tooltip';
|
||||||
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import { render } from 'lit/html.js';
|
import {translate,} from 'lit-translate';
|
||||||
import {
|
|
||||||
use,
|
|
||||||
get,
|
|
||||||
translate,
|
|
||||||
translateUnsafeHTML,
|
|
||||||
registerTranslateConfig,
|
|
||||||
} from 'lit-translate';
|
|
||||||
import '@material/mwc-button';
|
import '@material/mwc-button';
|
||||||
import '@material/mwc-dialog';
|
import '@material/mwc-dialog';
|
||||||
import '@material/mwc-checkbox';
|
import '@material/mwc-checkbox';
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import {Sha256} from 'asmcrypto.js'
|
import {Sha256} from 'asmcrypto.js'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function sbrk(size, heap){
|
function sbrk(size, heap){
|
||||||
let brk = 512 * 1024 // stack top
|
let brk = 512 * 1024 // stack top
|
||||||
let old = brk
|
let old = brk
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {store} from '../../store'
|
import {store} from '../../store'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {translate} from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {
|
import {translate,} from 'lit-translate';
|
||||||
get,
|
|
||||||
translate,
|
|
||||||
} from 'lit-translate';
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import '@material/mwc-menu';
|
import '@material/mwc-menu';
|
||||||
import '@material/mwc-list/mwc-list-item.js'
|
import '@material/mwc-list/mwc-list-item.js'
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
// popover-component.js
|
// popover-component.js
|
||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {createPopper} from '@popperjs/core';
|
import {createPopper} from '@popperjs/core';
|
||||||
import '@material/mwc-icon';
|
import '@material/mwc-icon';
|
||||||
import { use, get, translate } from 'lit-translate';
|
import {translate} from 'lit-translate';
|
||||||
import {store} from '../../store';
|
import {store} from '../../store';
|
||||||
import {connect} from 'pwa-helpers';
|
import {connect} from 'pwa-helpers';
|
||||||
import {setNewTab, setSideEffectAction} from '../../redux/app/app-actions';
|
import {setNewTab, setSideEffectAction} from '../../redux/app/app-actions';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {html, LitElement} from 'lit';
|
||||||
import '@material/mwc-icon';
|
import '@material/mwc-icon';
|
||||||
import './friends-view'
|
import './friends-view'
|
||||||
import {friendsViewStyles} from './friends-view-css';
|
import {friendsViewStyles} from './friends-view-css';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import '@material/mwc-icon';
|
import '@material/mwc-icon';
|
||||||
import './friends-side-panel.js';
|
import './friends-side-panel.js';
|
||||||
import '@vaadin/tooltip';
|
import '@vaadin/tooltip';
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import '@material/mwc-icon';
|
import '@material/mwc-icon';
|
||||||
import './friends-view'
|
import './friends-view'
|
||||||
import './friends-feed'
|
import './friends-feed'
|
||||||
import {translate} from 'lit-translate';
|
import {translate} from 'lit-translate';
|
||||||
|
|
||||||
class FriendsSidePanel extends LitElement {
|
class FriendsSidePanel extends LitElement {
|
||||||
static get properties() {
|
static get properties() {
|
||||||
return {
|
return {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {html, LitElement} from 'lit';
|
||||||
import { render } from 'lit/html.js';
|
|
||||||
import {connect} from 'pwa-helpers';
|
import {connect} from 'pwa-helpers';
|
||||||
|
|
||||||
import '@material/mwc-button';
|
import '@material/mwc-button';
|
||||||
@ -14,13 +13,7 @@ import './ChatSideNavHeads';
|
|||||||
import '../../../../plugins/plugins/core/components/ChatSearchResults'
|
import '../../../../plugins/plugins/core/components/ChatSearchResults'
|
||||||
import './add-friends-modal'
|
import './add-friends-modal'
|
||||||
|
|
||||||
import {
|
import {translate,} from 'lit-translate';
|
||||||
use,
|
|
||||||
get,
|
|
||||||
translate,
|
|
||||||
translateUnsafeHTML,
|
|
||||||
registerTranslateConfig,
|
|
||||||
} from 'lit-translate';
|
|
||||||
import {store} from '../../store';
|
import {store} from '../../store';
|
||||||
import {friendsViewStyles} from './friends-view-css';
|
import {friendsViewStyles} from './friends-view-css';
|
||||||
import {parentEpml} from '../show-plugin';
|
import {parentEpml} from '../show-plugin';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import '@material/mwc-icon';
|
import '@material/mwc-icon';
|
||||||
import './friends-side-panel.js';
|
import './friends-side-panel.js';
|
||||||
import {connect} from 'pwa-helpers';
|
import {connect} from 'pwa-helpers';
|
||||||
@ -6,12 +6,11 @@ import { store } from '../../store.js';
|
|||||||
import WebWorker from 'web-worker:./computePowWorkerFile.src.js';
|
import WebWorker from 'web-worker:./computePowWorkerFile.src.js';
|
||||||
import '@polymer/paper-spinner/paper-spinner-lite.js';
|
import '@polymer/paper-spinner/paper-spinner-lite.js';
|
||||||
import '@vaadin/tooltip';
|
import '@vaadin/tooltip';
|
||||||
import { get, translate } from 'lit-translate';
|
import {translate} from 'lit-translate';
|
||||||
import {
|
import {
|
||||||
decryptGroupData,
|
decryptGroupData,
|
||||||
encryptDataGroup,
|
encryptDataGroup,
|
||||||
objectToBase64,
|
objectToBase64,
|
||||||
uint8ArrayToBase64,
|
|
||||||
uint8ArrayToObject,
|
uint8ArrayToObject,
|
||||||
} from '../../../../plugins/plugins/core/components/qdn-action-encryption.js';
|
} from '../../../../plugins/plugins/core/components/qdn-action-encryption.js';
|
||||||
import {publishData} from '../../../../plugins/plugins/utils/publish-image.js';
|
import {publishData} from '../../../../plugins/plugins/utils/publish-image.js';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { use, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {registerTranslateConfig, translate, use} from 'lit-translate'
|
||||||
|
|
||||||
registerTranslateConfig({
|
registerTranslateConfig({
|
||||||
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
|
|
||||||
import {createWallet} from '../../../../crypto/api/createWallet.js'
|
import {createWallet} from '../../../../crypto/api/createWallet.js'
|
||||||
import {doLogin, doLogout, doSelectAddress} from '../../redux/app/app-actions.js'
|
import {doLogin, doLogout, doSelectAddress} from '../../redux/app/app-actions.js'
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import {checkApiKey} from '../../apiKeyUtils.js'
|
import {checkApiKey} from '../../apiKeyUtils.js'
|
||||||
import { translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-checkbox'
|
import '@material/mwc-checkbox'
|
||||||
@ -19,7 +19,7 @@ import '@polymer/paper-spinner/paper-spinner-lite.js'
|
|||||||
import '@vaadin/text-field/vaadin-text-field.js'
|
import '@vaadin/text-field/vaadin-text-field.js'
|
||||||
import '@vaadin/password-field/vaadin-password-field.js'
|
import '@vaadin/password-field/vaadin-password-field.js'
|
||||||
import {doLogin, doSelectAddress} from '../../redux/app/app-actions.js'
|
import {doLogin, doSelectAddress} from '../../redux/app/app-actions.js'
|
||||||
import { doStoreWallet, doRemoveWallet } from '../../redux/user/user-actions.js'
|
import {doRemoveWallet, doStoreWallet} from '../../redux/user/user-actions.js'
|
||||||
import {createWallet} from '../../../../crypto/api/createWallet.js'
|
import {createWallet} from '../../../../crypto/api/createWallet.js'
|
||||||
import snackbar from '../../functional-components/snackbar.js'
|
import snackbar from '../../functional-components/snackbar.js'
|
||||||
import '../../custom-elements/frag-file-input.js'
|
import '../../custom-elements/frag-file-input.js'
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import {stateAwait} from '../../stateAwait.js'
|
import {stateAwait} from '../../stateAwait.js'
|
||||||
import { translate, get, translateUnsafeHTML } from 'lit-translate'
|
import {get} from 'lit-translate'
|
||||||
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
@ -17,17 +17,17 @@ import '../qort-theme-toggle.js'
|
|||||||
import settings from '../../functional-components/settings-page.js'
|
import settings from '../../functional-components/settings-page.js'
|
||||||
import {
|
import {
|
||||||
addAutoLoadImageChat,
|
addAutoLoadImageChat,
|
||||||
removeAutoLoadImageChat,
|
|
||||||
addChatLastSeen,
|
addChatLastSeen,
|
||||||
|
addTabInfo,
|
||||||
allowQAPPAutoAuth,
|
allowQAPPAutoAuth,
|
||||||
|
allowQAPPAutoLists,
|
||||||
|
removeAutoLoadImageChat,
|
||||||
removeQAPPAutoAuth,
|
removeQAPPAutoAuth,
|
||||||
removeQAPPAutoLists,
|
removeQAPPAutoLists,
|
||||||
allowQAPPAutoLists,
|
|
||||||
addTabInfo,
|
|
||||||
setTabNotifications,
|
|
||||||
setNewTab,
|
|
||||||
setNewNotification,
|
setNewNotification,
|
||||||
setSideEffectAction
|
setNewTab,
|
||||||
|
setSideEffectAction,
|
||||||
|
setTabNotifications
|
||||||
} from '../../redux/app/app-actions.js'
|
} from '../../redux/app/app-actions.js'
|
||||||
|
|
||||||
window.reduxStore = store
|
window.reduxStore = store
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import {doLogout} from '../../redux/app/app-actions.js'
|
import {doLogout} from '../../redux/app/app-actions.js'
|
||||||
import { translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@polymer/paper-dialog/paper-dialog.js'
|
import '@polymer/paper-dialog/paper-dialog.js'
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import {installRouter} from 'pwa-helpers/router.js'
|
import {installRouter} from 'pwa-helpers/router.js'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {connect} from 'pwa-helpers';
|
import {connect} from 'pwa-helpers';
|
||||||
|
|
||||||
import '@vaadin/item';
|
import '@vaadin/item';
|
||||||
@ -6,19 +6,14 @@ import '@vaadin/list-box';
|
|||||||
import '@polymer/paper-icon-button/paper-icon-button.js';
|
import '@polymer/paper-icon-button/paper-icon-button.js';
|
||||||
import '@polymer/iron-icons/iron-icons.js';
|
import '@polymer/iron-icons/iron-icons.js';
|
||||||
import {store} from '../../store.js';
|
import {store} from '../../store.js';
|
||||||
import { setNewNotification, setNewTab } from '../../redux/app/app-actions.js';
|
import {setNewNotification} from '../../redux/app/app-actions.js';
|
||||||
import { routes } from '../../plugins/routes.js';
|
|
||||||
import '@material/mwc-icon';
|
import '@material/mwc-icon';
|
||||||
import { translate, get } from 'lit-translate';
|
import {get, translate} from 'lit-translate';
|
||||||
import {repeat} from 'lit/directives/repeat.js';
|
import {repeat} from 'lit/directives/repeat.js';
|
||||||
|
|
||||||
import config from '../../notifications/config.js';
|
|
||||||
import '../../../../plugins/plugins/core/components/TimeAgo.js';
|
import '../../../../plugins/plugins/core/components/TimeAgo.js';
|
||||||
import './popover.js';
|
import './popover.js';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class NotificationBellGeneral extends connect(store)(LitElement) {
|
class NotificationBellGeneral extends connect(store)(LitElement) {
|
||||||
static properties = {
|
static properties = {
|
||||||
notifications: { type: Array },
|
notifications: { type: Array },
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
|
|
||||||
import '@vaadin/item'
|
import '@vaadin/item'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// popover-component.js
|
// popover-component.js
|
||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {createPopper} from '@popperjs/core';
|
import {createPopper} from '@popperjs/core';
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { svgSun, svgMoon } from '../../assets/js/svg.js'
|
import {svgMoon, svgSun} from '../../assets/js/svg.js'
|
||||||
|
|
||||||
class QortThemeToggle extends LitElement {
|
class QortThemeToggle extends LitElement {
|
||||||
static get properties() {
|
static get properties() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { get, translate, translateUnsafeHTML } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
import snackbar from '../functional-components/snackbar.js'
|
import snackbar from '../functional-components/snackbar.js'
|
||||||
|
|
||||||
import '@polymer/paper-icon-button/paper-icon-button.js'
|
import '@polymer/paper-icon-button/paper-icon-button.js'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import {translate} from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
import snackbar from '../../functional-components/snackbar.js'
|
import snackbar from '../../functional-components/snackbar.js'
|
||||||
import FileSaver from 'file-saver'
|
import FileSaver from 'file-saver'
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import {doSetQChatNotificationConfig} from '../../redux/user/user-actions.js'
|
import {doSetQChatNotificationConfig} from '../../redux/user/user-actions.js'
|
||||||
import { translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
import isElectron from 'is-electron'
|
import isElectron from 'is-electron'
|
||||||
|
|
||||||
import '@material/mwc-checkbox'
|
import '@material/mwc-checkbox'
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import { allowQAPPAutoAuth, removeQAPPAutoAuth, removeQAPPAutoLists, allowQAPPAutoLists, setIsOpenDevDialog } from '../../redux/app/app-actions.js'
|
import {
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
allowQAPPAutoAuth,
|
||||||
|
allowQAPPAutoLists,
|
||||||
|
removeQAPPAutoAuth,
|
||||||
|
removeQAPPAutoLists,
|
||||||
|
setIsOpenDevDialog
|
||||||
|
} from '../../redux/app/app-actions.js'
|
||||||
|
import {get, translate} from 'lit-translate'
|
||||||
import snackbar from '../../functional-components/snackbar.js'
|
import snackbar from '../../functional-components/snackbar.js'
|
||||||
import FileSaver from 'file-saver'
|
import FileSaver from 'file-saver'
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import { translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@polymer/paper-dialog/paper-dialog.js'
|
import '@polymer/paper-dialog/paper-dialog.js'
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
@ -12,8 +12,6 @@ import './notifications-view.js'
|
|||||||
import './qr-login-view.js'
|
import './qr-login-view.js'
|
||||||
import './export-keys.js'
|
import './export-keys.js'
|
||||||
|
|
||||||
import { doLogout } from '../../redux/app/app-actions.js'
|
|
||||||
|
|
||||||
class UserSettings extends connect(store)(LitElement) {
|
class UserSettings extends connect(store)(LitElement) {
|
||||||
static get properties() {
|
static get properties() {
|
||||||
return {
|
return {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {render} from 'lit/html.js'
|
import {render} from 'lit/html.js'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
@ -7,14 +7,8 @@ import { addPluginRoutes } from '../plugins/addPluginRoutes.js'
|
|||||||
import {repeat} from 'lit/directives/repeat.js';
|
import {repeat} from 'lit/directives/repeat.js';
|
||||||
import ShortUniqueId from 'short-unique-id';
|
import ShortUniqueId from 'short-unique-id';
|
||||||
import {setIsOpenDevDialog, setNewTab} from '../redux/app/app-actions.js'
|
import {setIsOpenDevDialog, setNewTab} from '../redux/app/app-actions.js'
|
||||||
import localForage from 'localforage'
|
|
||||||
import FileSaver from 'file-saver'
|
import FileSaver from 'file-saver'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, registerTranslateConfig, translate, use} from 'lit-translate'
|
||||||
|
|
||||||
registerTranslateConfig({
|
|
||||||
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
|
||||||
})
|
|
||||||
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-dialog'
|
import '@material/mwc-dialog'
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
@ -26,6 +20,9 @@ import '@vaadin/grid'
|
|||||||
import '@vaadin/text-field'
|
import '@vaadin/text-field'
|
||||||
import '../custom-elements/frag-file-input.js'
|
import '../custom-elements/frag-file-input.js'
|
||||||
|
|
||||||
|
registerTranslateConfig({
|
||||||
|
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
export const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
export const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {connect} from 'pwa-helpers';
|
import {connect} from 'pwa-helpers';
|
||||||
import {store} from '../store.js';
|
import {store} from '../store.js';
|
||||||
import { translate, get } from 'lit-translate';
|
import {get, translate} from 'lit-translate';
|
||||||
import {asyncReplace} from 'lit/directives/async-replace.js';
|
import {asyncReplace} from 'lit/directives/async-replace.js';
|
||||||
|
|
||||||
import '../functional-components/my-button.js';
|
import '../functional-components/my-button.js';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { get, translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
import '@polymer/paper-icon-button/paper-icon-button.js'
|
import '@polymer/paper-icon-button/paper-icon-button.js'
|
||||||
import '@polymer/iron-icons/image-icons.js'
|
import '@polymer/iron-icons/image-icons.js'
|
||||||
import '@polymer/iron-icons/iron-icons.js'
|
import '@polymer/iron-icons/iron-icons.js'
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {render} from 'lit/html.js'
|
import {render} from 'lit/html.js'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../../store.js'
|
import {store} from '../../store.js'
|
||||||
import { get, translate, translateUnsafeHTML } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@polymer/paper-dialog/paper-dialog.js'
|
import '@polymer/paper-dialog/paper-dialog.js'
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
import { translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@polymer/paper-toast'
|
import '@polymer/paper-toast'
|
||||||
import '@material/mwc-icon-button'
|
import '@material/mwc-icon-button'
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
|
|
||||||
import { translate, translateUnsafeHTML } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
class FragFileInput extends LitElement {
|
class FragFileInput extends LitElement {
|
||||||
static get properties () {
|
static get properties () {
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
import { Epml, EpmlReadyPlugin, RequestPlugin, ContentWindow as EpmlContentWindowPlugin, EpmlStreamPlugin, EpmlProxyPlugin, EpmlStream } from 'epml'
|
import {
|
||||||
|
ContentWindow as EpmlContentWindowPlugin,
|
||||||
|
Epml,
|
||||||
|
EpmlProxyPlugin,
|
||||||
|
EpmlReadyPlugin,
|
||||||
|
EpmlStream,
|
||||||
|
EpmlStreamPlugin,
|
||||||
|
RequestPlugin
|
||||||
|
} from 'epml'
|
||||||
|
|
||||||
Epml.registerPlugin(RequestPlugin)
|
Epml.registerPlugin(RequestPlugin)
|
||||||
Epml.registerPlugin(EpmlReadyPlugin)
|
Epml.registerPlugin(EpmlReadyPlugin)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
import { get, translate, translateUnsafeHTML } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
|
|
||||||
import {listenForRequest} from '../transactionRequest.js'
|
import {listenForRequest} from '../transactionRequest.js'
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
|
|
||||||
const TRANSITION_EVENT_NAMES = ['transitionend', 'webkitTransitionEnd', 'oTransitionEnd', 'MSTransitionEnd']
|
const TRANSITION_EVENT_NAMES = ['transitionend', 'webkitTransitionEnd', 'oTransitionEnd', 'MSTransitionEnd']
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import '@vaadin/button';
|
import '@vaadin/button';
|
||||||
import '@polymer/paper-spinner/paper-spinner-lite.js';
|
import '@polymer/paper-spinner/paper-spinner-lite.js';
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
import {testApiKey} from '../apiKeyUtils.js'
|
import {testApiKey} from '../apiKeyUtils.js'
|
||||||
import { get, translate, translateUnsafeHTML } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@material/mwc-dialog'
|
import '@material/mwc-dialog'
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Author: irontiga <irontiga@gmail.com>
|
// Author: irontiga <irontiga@gmail.com>
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
import { LitElement, html, css } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import * as WORDLISTS from './wordlists.js'
|
import * as WORDLISTS from './wordlists.js'
|
||||||
|
|
||||||
class RandomSentenceGenerator extends LitElement {
|
class RandomSentenceGenerator extends LitElement {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
import { doAddNode, doSetNode, doLoadNodeConfig, doRemoveNode, doEditNode } from '../redux/app/app-actions.js'
|
import {doAddNode, doEditNode, doLoadNodeConfig, doRemoveNode, doSetNode} from '../redux/app/app-actions.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, registerTranslateConfig, translate, use} from 'lit-translate'
|
||||||
import snackbar from './snackbar.js'
|
import snackbar from './snackbar.js'
|
||||||
import '../components/language-selector.js'
|
import '../components/language-selector.js'
|
||||||
import '../custom-elements/frag-file-input.js'
|
import '../custom-elements/frag-file-input.js'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import {ifDefined} from 'lit/directives/if-defined.js'
|
import {ifDefined} from 'lit/directives/if-defined.js'
|
||||||
import {sideMenuItemStyle} from './side-menu-item-style.js'
|
import {sideMenuItemStyle} from './side-menu-item-style.js'
|
||||||
import '@vaadin/icon'
|
import '@vaadin/icon'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {LitElement, html, css} from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
|
|
||||||
class SideMenu extends LitElement {
|
class SideMenu extends LitElement {
|
||||||
static get properties() {
|
static get properties() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import '@material/mwc-snackbar'
|
import '@material/mwc-snackbar'
|
||||||
|
|
||||||
let queueElement
|
let queueElement
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {store} from './store.js'
|
import {store} from './store.js'
|
||||||
import {doLoadConfigFromAPI} from './redux/config/config-actions.js'
|
import {doLoadConfigFromAPI} from './redux/config/config-actions.js'
|
||||||
import { doLoadNodeConfig, doInitWorkers } from './redux/app/app-actions.js'
|
import {doInitWorkers, doLoadNodeConfig} from './redux/app/app-actions.js'
|
||||||
import {doLoadNotificationConfig} from './redux/user/user-actions.js'
|
import {doLoadNotificationConfig} from './redux/user/user-actions.js'
|
||||||
|
|
||||||
import './persistState.js'
|
import './persistState.js'
|
||||||
|
@ -1,22 +1,19 @@
|
|||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
import {
|
import {
|
||||||
doAddPluginUrl,
|
doAddPluginUrl,
|
||||||
doUpdateBlockInfo,
|
|
||||||
doUpdateNodeStatus,
|
|
||||||
doUpdateNodeInfo,
|
|
||||||
doSetNode,
|
|
||||||
doPageUrl,
|
doPageUrl,
|
||||||
doSetChatHeads,
|
doSetChatHeads,
|
||||||
|
doSetNode,
|
||||||
doUpdateAccountInfo,
|
doUpdateAccountInfo,
|
||||||
|
doUpdateBlockInfo,
|
||||||
|
doUpdateNodeInfo,
|
||||||
|
doUpdateNodeStatus,
|
||||||
} from '../redux/app/app-actions.js'
|
} from '../redux/app/app-actions.js'
|
||||||
import * as api from 'qortal-ui-crypto'
|
import * as api from 'qortal-ui-crypto'
|
||||||
import {requestTransactionDialog} from '../functional-components/confirm-transaction-dialog.js'
|
import {requestTransactionDialog} from '../functional-components/confirm-transaction-dialog.js'
|
||||||
import {doNewMessage} from '../notifications/controller.js'
|
import {doNewMessage} from '../notifications/controller.js'
|
||||||
import snackbar from '../functional-components/snackbar.js'
|
import snackbar from '../functional-components/snackbar.js'
|
||||||
import {
|
import {loadStateFromLocalStorage, saveStateToLocalStorage,} from '../localStorageHelpers.js'
|
||||||
loadStateFromLocalStorage,
|
|
||||||
saveStateToLocalStorage,
|
|
||||||
} from '../localStorageHelpers.js'
|
|
||||||
|
|
||||||
const createTransaction = api.createTransaction
|
const createTransaction = api.createTransaction
|
||||||
const processTransaction = api.processTransaction
|
const processTransaction = api.processTransaction
|
||||||
|
@ -1,5 +1,26 @@
|
|||||||
// Core App Actions here...
|
// Core App Actions here...
|
||||||
import { UPDATE_BLOCK_INFO, UPDATE_NODE_STATUS, UPDATE_NODE_INFO, CHAT_HEADS, ACCOUNT_INFO, ADD_AUTO_LOAD_IMAGES_CHAT, REMOVE_AUTO_LOAD_IMAGES_CHAT, ALLOW_QAPP_AUTO_AUTH, REMOVE_QAPP_AUTO_AUTH, SET_CHAT_LAST_SEEN, ADD_CHAT_LAST_SEEN, ALLOW_QAPP_AUTO_LISTS, REMOVE_QAPP_AUTO_LISTS, SET_NEW_TAB, ADD_TAB_INFO, SET_TAB_NOTIFICATIONS, IS_OPEN_DEV_DIALOG, SET_NEW_NOTIFICATION, SET_SIDE_EFFECT, SET_COIN_BALANCES } from '../app-action-types.js'
|
import {
|
||||||
|
ACCOUNT_INFO,
|
||||||
|
ADD_AUTO_LOAD_IMAGES_CHAT,
|
||||||
|
ADD_CHAT_LAST_SEEN,
|
||||||
|
ADD_TAB_INFO,
|
||||||
|
ALLOW_QAPP_AUTO_AUTH,
|
||||||
|
ALLOW_QAPP_AUTO_LISTS,
|
||||||
|
CHAT_HEADS,
|
||||||
|
IS_OPEN_DEV_DIALOG,
|
||||||
|
REMOVE_AUTO_LOAD_IMAGES_CHAT,
|
||||||
|
REMOVE_QAPP_AUTO_AUTH,
|
||||||
|
REMOVE_QAPP_AUTO_LISTS,
|
||||||
|
SET_CHAT_LAST_SEEN,
|
||||||
|
SET_COIN_BALANCES,
|
||||||
|
SET_NEW_NOTIFICATION,
|
||||||
|
SET_NEW_TAB,
|
||||||
|
SET_SIDE_EFFECT,
|
||||||
|
SET_TAB_NOTIFICATIONS,
|
||||||
|
UPDATE_BLOCK_INFO,
|
||||||
|
UPDATE_NODE_INFO,
|
||||||
|
UPDATE_NODE_STATUS
|
||||||
|
} from '../app-action-types.js'
|
||||||
|
|
||||||
export const doUpdateBlockInfo = (blockObj) => {
|
export const doUpdateBlockInfo = (blockObj) => {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
|
@ -2,6 +2,7 @@ import { Epml } from '../../../epml.js'
|
|||||||
import {EpmlWorkerPlugin} from 'epml'
|
import {EpmlWorkerPlugin} from 'epml'
|
||||||
|
|
||||||
import {INIT_WORKERS} from '../app-action-types.js'
|
import {INIT_WORKERS} from '../app-action-types.js'
|
||||||
|
|
||||||
Epml.registerPlugin(EpmlWorkerPlugin)
|
Epml.registerPlugin(EpmlWorkerPlugin)
|
||||||
|
|
||||||
export const doInitWorkers = (numberOfWorkers, workerURL) => {
|
export const doInitWorkers = (numberOfWorkers, workerURL) => {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Node Config Actions here...
|
// Node Config Actions here...
|
||||||
import { LOAD_NODE_CONFIG, SET_NODE, ADD_NODE, REMOVE_NODE, EDIT_NODE } from '../app-action-types.js'
|
import {ADD_NODE, EDIT_NODE, LOAD_NODE_CONFIG, REMOVE_NODE, SET_NODE} from '../app-action-types.js'
|
||||||
import {UI_VERSION} from '../version.js'
|
import {UI_VERSION} from '../version.js'
|
||||||
|
|
||||||
const nodeConfigUrl = '/getConfig'
|
const nodeConfigUrl = '/getConfig'
|
||||||
|
@ -1,10 +1,47 @@
|
|||||||
// Loading state, login state, isNavDrawOpen state etc. None of this needs to be saved to localstorage.
|
// Loading state, login state, isNavDrawOpen state etc. None of this needs to be saved to localstorage.
|
||||||
import {loadStateFromLocalStorage, saveStateToLocalStorage} from '../../localStorageHelpers.js'
|
import {loadStateFromLocalStorage, saveStateToLocalStorage} from '../../localStorageHelpers.js'
|
||||||
import { LOG_IN, LOG_OUT, NETWORK_CONNECTION_STATUS, INIT_WORKERS, ADD_PLUGIN_URL, ADD_PLUGIN, ADD_NEW_PLUGIN_URL, NAVIGATE, SELECT_ADDRESS, ACCOUNT_INFO, CHAT_HEADS, UPDATE_BLOCK_INFO, UPDATE_NODE_STATUS, UPDATE_NODE_INFO, LOAD_NODE_CONFIG, SET_NODE, ADD_NODE, PAGE_URL, ADD_AUTO_LOAD_IMAGES_CHAT, REMOVE_AUTO_LOAD_IMAGES_CHAT, ALLOW_QAPP_AUTO_AUTH, REMOVE_QAPP_AUTO_AUTH, SET_CHAT_LAST_SEEN, ADD_CHAT_LAST_SEEN, ALLOW_QAPP_AUTO_LISTS, REMOVE_QAPP_AUTO_LISTS, SET_NEW_TAB, ADD_TAB_INFO, SET_TAB_NOTIFICATIONS, IS_OPEN_DEV_DIALOG, REMOVE_NODE, EDIT_NODE, SET_NEW_NOTIFICATION, SET_SIDE_EFFECT, SET_COIN_BALANCES } from './app-action-types.js'
|
import {
|
||||||
|
ACCOUNT_INFO,
|
||||||
|
ADD_AUTO_LOAD_IMAGES_CHAT,
|
||||||
|
ADD_CHAT_LAST_SEEN,
|
||||||
|
ADD_NEW_PLUGIN_URL,
|
||||||
|
ADD_NODE,
|
||||||
|
ADD_PLUGIN,
|
||||||
|
ADD_PLUGIN_URL,
|
||||||
|
ADD_TAB_INFO,
|
||||||
|
ALLOW_QAPP_AUTO_AUTH,
|
||||||
|
ALLOW_QAPP_AUTO_LISTS,
|
||||||
|
CHAT_HEADS,
|
||||||
|
EDIT_NODE,
|
||||||
|
INIT_WORKERS,
|
||||||
|
IS_OPEN_DEV_DIALOG,
|
||||||
|
LOAD_NODE_CONFIG,
|
||||||
|
LOG_IN,
|
||||||
|
LOG_OUT,
|
||||||
|
NAVIGATE,
|
||||||
|
NETWORK_CONNECTION_STATUS,
|
||||||
|
PAGE_URL,
|
||||||
|
REMOVE_AUTO_LOAD_IMAGES_CHAT,
|
||||||
|
REMOVE_NODE,
|
||||||
|
REMOVE_QAPP_AUTO_AUTH,
|
||||||
|
REMOVE_QAPP_AUTO_LISTS,
|
||||||
|
SELECT_ADDRESS,
|
||||||
|
SET_CHAT_LAST_SEEN,
|
||||||
|
SET_COIN_BALANCES,
|
||||||
|
SET_NEW_NOTIFICATION,
|
||||||
|
SET_NEW_TAB,
|
||||||
|
SET_NODE,
|
||||||
|
SET_SIDE_EFFECT,
|
||||||
|
SET_TAB_NOTIFICATIONS,
|
||||||
|
UPDATE_BLOCK_INFO,
|
||||||
|
UPDATE_NODE_INFO,
|
||||||
|
UPDATE_NODE_STATUS
|
||||||
|
} from './app-action-types.js'
|
||||||
import {initWorkersReducer} from './reducers/init-workers.js'
|
import {initWorkersReducer} from './reducers/init-workers.js'
|
||||||
import {loginReducer} from './reducers/login-reducer.js'
|
import {loginReducer} from './reducers/login-reducer.js'
|
||||||
import { setNode, addNode, removeNode, editNode } from './reducers/manage-node.js'
|
import {addNode, editNode, removeNode, setNode} from './reducers/manage-node.js'
|
||||||
import localForage from "localforage";
|
import localForage from "localforage";
|
||||||
|
|
||||||
const chatLastSeen = localForage.createInstance({
|
const chatLastSeen = localForage.createInstance({
|
||||||
name: "chat-last-seen",
|
name: "chat-last-seen",
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import {LOAD_NOTIFICATION_CONFIG, SET_QCHAT_NOTIFICATION_CONFIG} from '../user-action-types.js'
|
import {LOAD_NOTIFICATION_CONFIG, SET_QCHAT_NOTIFICATION_CONFIG} from '../user-action-types.js'
|
||||||
|
|
||||||
const configUrl = '/getConfig'
|
const configUrl = '/getConfig'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { STORE_WALLET, REMOVE_WALLET, UPDATE_STORED_WALLET_NAME } from '../user-action-types.js'
|
import {REMOVE_WALLET, STORE_WALLET, UPDATE_STORED_WALLET_NAME} from '../user-action-types.js'
|
||||||
|
|
||||||
export const doStoreWallet = (wallet, password, name, statusUpdateFn = () => { }) => {
|
export const doStoreWallet = (wallet, password, name, statusUpdateFn = () => { }) => {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
import {loadStateFromLocalStorage} from '../../localStorageHelpers'
|
import {loadStateFromLocalStorage} from '../../localStorageHelpers'
|
||||||
import { STORE_WALLET, REMOVE_WALLET, CLAIM_AIRDROP, UPDATE_ACCOUNT_INFO, LOAD_NOTIFICATION_CONFIG, SET_QCHAT_NOTIFICATION_CONFIG } from './user-action-types.js'
|
import {
|
||||||
|
CLAIM_AIRDROP,
|
||||||
|
LOAD_NOTIFICATION_CONFIG,
|
||||||
|
REMOVE_WALLET,
|
||||||
|
SET_QCHAT_NOTIFICATION_CONFIG,
|
||||||
|
STORE_WALLET,
|
||||||
|
UPDATE_ACCOUNT_INFO
|
||||||
|
} from './user-action-types.js'
|
||||||
|
|
||||||
const DEFAULT_INITIAL_STATE = {
|
const DEFAULT_INITIAL_STATE = {
|
||||||
storedWallets: {},
|
storedWallets: {},
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { createStore, compose, applyMiddleware } from 'redux'
|
import {applyMiddleware, compose, createStore} from 'redux'
|
||||||
import thunk from 'redux-thunk'
|
import thunk from 'redux-thunk'
|
||||||
|
|
||||||
import reducers from './redux/reducers.js'
|
import reducers from './redux/reducers.js'
|
||||||
|
|
||||||
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
|
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
|
||||||
|
|
||||||
export const store = createStore(
|
export const store = createStore(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
|
|
||||||
import './styles.scss'
|
import './styles.scss'
|
||||||
import './app-theme.js'
|
import './app-theme.js'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import {connect} from 'pwa-helpers'
|
import {connect} from 'pwa-helpers'
|
||||||
import {store} from '../store.js'
|
import {store} from '../store.js'
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Epml, EpmlReadyPlugin, RequestPlugin, EpmlWorkerPlugin } from 'epml'
|
import {Epml, EpmlReadyPlugin, EpmlWorkerPlugin, RequestPlugin} from 'epml'
|
||||||
|
|
||||||
import utils from './cryptoUtils.js'
|
import utils from './cryptoUtils.js'
|
||||||
import { Sha512, bytes_to_base64 as bytesToBase64 } from 'asmcrypto.js'
|
import {bytes_to_base64 as bytesToBase64, Sha512} from 'asmcrypto.js'
|
||||||
import bcrypt from 'bcryptjs'
|
import bcrypt from 'bcryptjs'
|
||||||
|
|
||||||
Epml.registerPlugin(RequestPlugin)
|
Epml.registerPlugin(RequestPlugin)
|
||||||
|
@ -4,7 +4,7 @@ import { Sha256, Sha512 } from 'asmcrypto.js'
|
|||||||
import jsSHA from 'jssha'
|
import jsSHA from 'jssha'
|
||||||
import RIPEMD160 from '../deps/ripemd160.js'
|
import RIPEMD160 from '../deps/ripemd160.js'
|
||||||
import utils from '../deps/utils.js'
|
import utils from '../deps/utils.js'
|
||||||
import { EllipticCurve, BigInteger } from './ecbn.js'
|
import {BigInteger, EllipticCurve} from './ecbn.js'
|
||||||
|
|
||||||
export default class AltcoinHDWallet {
|
export default class AltcoinHDWallet {
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import Base58 from './deps/Base58.js'
|
import Base58 from './deps/Base58.js'
|
||||||
import {kdf} from './kdf.js'
|
import {kdf} from './kdf.js'
|
||||||
import { HmacSha512, AES_CBC } from 'asmcrypto.js'
|
import {AES_CBC, HmacSha512} from 'asmcrypto.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, registerTranslateConfig} from 'lit-translate'
|
||||||
|
|
||||||
registerTranslateConfig({
|
registerTranslateConfig({
|
||||||
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { watchConfig, waitForConfig } from '../config.js'
|
import {waitForConfig, watchConfig} from '../config.js'
|
||||||
|
|
||||||
let config = {}
|
let config = {}
|
||||||
watchConfig((c) => {
|
watchConfig((c) => {
|
||||||
|
@ -2,7 +2,7 @@ import { store } from '../api_deps.js'
|
|||||||
import {stateAwait} from './utils/stateAwait.js'
|
import {stateAwait} from './utils/stateAwait.js'
|
||||||
import {Sha512} from 'asmcrypto.js'
|
import {Sha512} from 'asmcrypto.js'
|
||||||
import utils from '../api/deps/utils.js'
|
import utils from '../api/deps/utils.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, registerTranslateConfig} from 'lit-translate'
|
||||||
|
|
||||||
registerTranslateConfig({
|
registerTranslateConfig({
|
||||||
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Not to be confused with register name...this is a special use case
|
* Not to be confused with register name...this is a special use case
|
||||||
*/
|
*/
|
||||||
import { request, createTransaction, processTransaction } from './api.js'
|
import {createTransaction, processTransaction, request} from './api.js'
|
||||||
|
|
||||||
const TX_TYPE = 3 // NAME_REGISTRATION
|
const TX_TYPE = 3 // NAME_REGISTRATION
|
||||||
const CHECK_LAST_REF_INTERVAL = 30 * 1000 // err 30 seconds
|
const CHECK_LAST_REF_INTERVAL = 30 * 1000 // err 30 seconds
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { HmacSha512, AES_CBC } from 'asmcrypto.js'
|
import {AES_CBC, HmacSha512} from 'asmcrypto.js'
|
||||||
import {kdf} from './kdf.js'
|
import {kdf} from './kdf.js'
|
||||||
import Base58 from './deps/Base58.js'
|
import Base58 from './deps/Base58.js'
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
import PaymentTransaction from './PaymentTransaction.js'
|
import PaymentTransaction from './PaymentTransaction.js'
|
||||||
import { QORT_DECIMALS } from '../constants.js'
|
|
||||||
|
|
||||||
export default class MessageTransaction extends PaymentTransaction {
|
export default class MessageTransaction extends PaymentTransaction {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
import { TX_TYPES, QORT_DECIMALS } from '../constants.js'
|
import {QORT_DECIMALS, TX_TYPES} from '../constants.js'
|
||||||
import nacl from '../deps/nacl-fast.js'
|
import nacl from '../deps/nacl-fast.js'
|
||||||
import Base58 from '../deps/Base58.js'
|
import Base58 from '../deps/Base58.js'
|
||||||
import utils from '../deps/utils.js'
|
import utils from '../deps/utils.js'
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
import TransactionBase from './TransactionBase.js'
|
import TransactionBase from './TransactionBase.js'
|
||||||
import Base58 from '../deps/Base58.js'
|
|
||||||
import {store} from '../../api.js'
|
import {store} from '../../api.js'
|
||||||
import {QORT_DECIMALS} from '../constants.js'
|
import {QORT_DECIMALS} from '../constants.js'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
import { TX_TYPES, QORT_DECIMALS } from '../../constants.js'
|
import {QORT_DECIMALS, TX_TYPES} from '../../constants.js'
|
||||||
import nacl from '../../deps/nacl-fast.js'
|
import nacl from '../../deps/nacl-fast.js'
|
||||||
import Base58 from '../../deps/Base58.js'
|
import Base58 from '../../deps/Base58.js'
|
||||||
import utils from '../../deps/utils.js'
|
import utils from '../../deps/utils.js'
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
import TransactionBase from '../TransactionBase.js'
|
import TransactionBase from '../TransactionBase.js'
|
||||||
import Base58 from '../../deps/Base58.js'
|
|
||||||
import {store} from '../../../api.js'
|
import {store} from '../../../api.js'
|
||||||
import {QORT_DECIMALS} from "../../constants.js"
|
import {QORT_DECIMALS} from "../../constants.js"
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@ import GroupKickTransaction from './groups/GroupKickTransaction.js'
|
|||||||
import GroupInviteTransaction from './groups/GroupInviteTransaction.js'
|
import GroupInviteTransaction from './groups/GroupInviteTransaction.js'
|
||||||
import CancelGroupInviteTransaction from './groups/CancelGroupInviteTransaction.js'
|
import CancelGroupInviteTransaction from './groups/CancelGroupInviteTransaction.js'
|
||||||
import JoinGroupTransaction from './groups/JoinGroupTransaction.js'
|
import JoinGroupTransaction from './groups/JoinGroupTransaction.js'
|
||||||
import UpdateGroupTransaction from './groups/UpdateGroupTransaction.js'
|
|
||||||
import LeaveGroupTransaction from './groups/LeaveGroupTransaction.js'
|
import LeaveGroupTransaction from './groups/LeaveGroupTransaction.js'
|
||||||
import RewardShareTransaction from './reward-share/RewardShareTransaction.js'
|
import RewardShareTransaction from './reward-share/RewardShareTransaction.js'
|
||||||
import RemoveRewardShareTransaction from './reward-share/RemoveRewardShareTransaction.js'
|
import RemoveRewardShareTransaction from './reward-share/RemoveRewardShareTransaction.js'
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
import { Epml, EpmlReadyPlugin, RequestPlugin, ContentWindow as EpmlContentWindowPlugin, EpmlStreamPlugin, EpmlProxyPlugin, EpmlStream } from 'epml'
|
import {
|
||||||
|
ContentWindow as EpmlContentWindowPlugin,
|
||||||
|
Epml,
|
||||||
|
EpmlProxyPlugin,
|
||||||
|
EpmlReadyPlugin,
|
||||||
|
EpmlStream,
|
||||||
|
EpmlStreamPlugin,
|
||||||
|
RequestPlugin
|
||||||
|
} from 'epml'
|
||||||
|
|
||||||
Epml.registerPlugin(RequestPlugin)
|
Epml.registerPlugin(RequestPlugin)
|
||||||
Epml.registerPlugin(EpmlReadyPlugin)
|
Epml.registerPlugin(EpmlReadyPlugin)
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
import { LitElement, html } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import {Epml} from '../../../epml.js'
|
import {Epml} from '../../../epml.js'
|
||||||
import '../components/ButtonIconCopy.js'
|
import '../components/ButtonIconCopy.js'
|
||||||
import { use, translate, registerTranslateConfig } from 'lit-translate'
|
import {registerTranslateConfig, translate, use} from 'lit-translate'
|
||||||
import {blocksNeed} from '../../utils/blocks-needed.js'
|
import {blocksNeed} from '../../utils/blocks-needed.js'
|
||||||
import isElectron from 'is-electron'
|
import isElectron from 'is-electron'
|
||||||
|
|
||||||
registerTranslateConfig({
|
|
||||||
loader: (lang) => fetch(`/language/${lang}.json`).then((res) => res.json()),
|
|
||||||
})
|
|
||||||
|
|
||||||
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-textfield'
|
import '@material/mwc-textfield'
|
||||||
@ -17,6 +12,10 @@ import { pageStyles } from './become-minter-css.src.js'
|
|||||||
import './components/not-sponsored.js'
|
import './components/not-sponsored.js'
|
||||||
import './components/yes-sponsored.js'
|
import './components/yes-sponsored.js'
|
||||||
|
|
||||||
|
registerTranslateConfig({
|
||||||
|
loader: (lang) => fetch(`/language/${lang}.json`).then((res) => res.json()),
|
||||||
|
})
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
class BecomeMinter extends LitElement {
|
class BecomeMinter extends LitElement {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import {Epml} from '../../../../epml.js'
|
import {Epml} from '../../../../epml.js'
|
||||||
import '../../components/ButtonIconCopy.js'
|
import '../../components/ButtonIconCopy.js'
|
||||||
import { use, get, translate, registerTranslateConfig } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { LitElement, html } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import { Epml } from '../../../../epml.js'
|
|
||||||
import '../../components/ButtonIconCopy.js'
|
import '../../components/ButtonIconCopy.js'
|
||||||
import { use, get, translate, registerTranslateConfig } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import {Epml} from '../../../epml.js'
|
import {Epml} from '../../../epml.js'
|
||||||
|
|
||||||
import '@material/mwc-icon-button'
|
import '@material/mwc-icon-button'
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import {LitElement, html, css} from 'lit';
|
import {html, LitElement} from 'lit';
|
||||||
import {render} from 'lit/html.js';
|
|
||||||
import {Epml} from '../../../../epml.js';
|
import {Epml} from '../../../../epml.js';
|
||||||
import * as zip from '@zip.js/zip.js';
|
import * as zip from '@zip.js/zip.js';
|
||||||
import '@material/mwc-icon';
|
import '@material/mwc-icon';
|
||||||
@ -10,7 +9,7 @@ import { bytesToMegabytes } from '../../../utils/bytesToMegabytes.js';
|
|||||||
import './ChatGifsExplore.js';
|
import './ChatGifsExplore.js';
|
||||||
import '../ImageComponent.js';
|
import '../ImageComponent.js';
|
||||||
import '@vaadin/tooltip';
|
import '@vaadin/tooltip';
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
|
|
||||||
const parentEpml = new Epml({type: 'WINDOW', source: window.parent});
|
const parentEpml = new Epml({type: 'WINDOW', source: window.parent});
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import {Epml} from '../../../../epml.js'
|
import {Epml} from '../../../../epml.js'
|
||||||
import {chatGifsExploreStyles} from './ChatGifsExplore-css.js'
|
import {chatGifsExploreStyles} from './ChatGifsExplore-css.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent });
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent });
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
import { LitElement, html, css } from "lit"
|
import {css, html, LitElement} from "lit"
|
||||||
import { render } from "lit/html.js"
|
|
||||||
import {Epml} from "../../../epml"
|
import {Epml} from "../../../epml"
|
||||||
import snackbar from "./snackbar.js"
|
|
||||||
import "@material/mwc-button"
|
import "@material/mwc-button"
|
||||||
import "@material/mwc-dialog"
|
import "@material/mwc-dialog"
|
||||||
import "@polymer/paper-spinner/paper-spinner-lite.js"
|
import "@polymer/paper-spinner/paper-spinner-lite.js"
|
||||||
import "@material/mwc-icon"
|
import "@material/mwc-icon"
|
||||||
import "./WrapperModal"
|
import "./WrapperModal"
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: "WINDOW", source: window.parent })
|
const parentEpml = new Epml({ type: "WINDOW", source: window.parent })
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {Epml} from '../../../epml';
|
import {Epml} from '../../../epml';
|
||||||
import '@material/mwc-button';
|
import '@material/mwc-button';
|
||||||
import '@material/mwc-dialog';
|
import '@material/mwc-dialog';
|
||||||
@ -11,9 +11,7 @@ import './TipUser';
|
|||||||
import './UserInfo/UserInfo';
|
import './UserInfo/UserInfo';
|
||||||
import './ChatImage';
|
import './ChatImage';
|
||||||
import './ReusableImage';
|
import './ReusableImage';
|
||||||
import {
|
import {get} from 'lit-translate';
|
||||||
get
|
|
||||||
} from 'lit-translate';
|
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent });
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent });
|
||||||
|
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {Epml} from '../../../epml'
|
import {Epml} from '../../../epml'
|
||||||
import snackbar from './snackbar.js'
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-dialog'
|
import '@material/mwc-dialog'
|
||||||
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
import './WrapperModal'
|
import './WrapperModal'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {Epml} from '../../../epml'
|
import {Epml} from '../../../epml'
|
||||||
import snackbar from './snackbar.js'
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-dialog'
|
import '@material/mwc-dialog'
|
||||||
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
||||||
@ -12,8 +10,7 @@ import '@vaadin/tabs/theme/material/vaadin-tabs.js'
|
|||||||
import '@vaadin/avatar'
|
import '@vaadin/avatar'
|
||||||
import '@vaadin/grid'
|
import '@vaadin/grid'
|
||||||
import '@vaadin/grid/vaadin-grid-filter-column.js'
|
import '@vaadin/grid/vaadin-grid-filter-column.js'
|
||||||
import { columnBodyRenderer } from '@vaadin/grid/lit.js'
|
import {get, translate} from 'lit-translate'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {
|
import {translate,} from 'lit-translate';
|
||||||
translate,
|
|
||||||
} from 'lit-translate';
|
|
||||||
import '@material/mwc-menu';
|
import '@material/mwc-menu';
|
||||||
import '@material/mwc-list/mwc-list-item.js';
|
import '@material/mwc-list/mwc-list-item.js';
|
||||||
import '@material/mwc-dialog'
|
import '@material/mwc-dialog'
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {Epml} from '../../../epml.js'
|
import {Epml} from '../../../epml.js'
|
||||||
import localForage from "localforage"
|
import localForage from "localforage"
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {
|
import {get, translate,} from 'lit-translate';
|
||||||
get,
|
|
||||||
translate,
|
|
||||||
} from 'lit-translate';
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import {RequestQueueWithPromise} from '../../utils/queue';
|
import {RequestQueueWithPromise} from '../../utils/queue';
|
||||||
import '@material/mwc-menu';
|
import '@material/mwc-menu';
|
||||||
import '@material/mwc-list/mwc-list-item.js'
|
import '@material/mwc-list/mwc-list-item.js'
|
||||||
import {Epml} from '../../../epml';
|
import {Epml} from '../../../epml';
|
||||||
|
|
||||||
const requestQueue = new RequestQueueWithPromise(5);
|
const requestQueue = new RequestQueueWithPromise(5);
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {Epml} from '../../../epml'
|
import {Epml} from '../../../epml'
|
||||||
import snackbar from './snackbar.js'
|
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-dialog'
|
import '@material/mwc-dialog'
|
||||||
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
import './WrapperModal'
|
import './WrapperModal'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {Epml} from '../../../epml.js'
|
import {Epml} from '../../../epml.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {Epml} from '../../../epml'
|
import {Epml} from '../../../epml'
|
||||||
import snackbar from './snackbar.js'
|
import snackbar from './snackbar.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
import '@material/mwc-button'
|
import '@material/mwc-button'
|
||||||
import '@material/mwc-dialog'
|
import '@material/mwc-dialog'
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
import { LitElement, html } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import {animate} from '@lit-labs/motion'
|
import {animate} from '@lit-labs/motion'
|
||||||
import {Epml} from '../../../epml.js'
|
import {Epml} from '../../../epml.js'
|
||||||
import {get, translate} from 'lit-translate'
|
import {get, translate} from 'lit-translate'
|
||||||
import { generateHTML } from '@tiptap/core'
|
import {Editor, Extension, generateHTML} from '@tiptap/core'
|
||||||
import {unsafeHTML} from 'lit/directives/unsafe-html.js'
|
import {unsafeHTML} from 'lit/directives/unsafe-html.js'
|
||||||
import { Editor, Extension } from '@tiptap/core'
|
|
||||||
import {escape} from 'html-escaper'
|
import {escape} from 'html-escaper'
|
||||||
import {inputKeyCodes} from '../../utils/keyCodes.js'
|
import {inputKeyCodes} from '../../utils/keyCodes.js'
|
||||||
import {replaceMessagesEdited} from '../../utils/replace-messages-edited.js'
|
import {replaceMessagesEdited} from '../../utils/replace-messages-edited.js'
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import { LitElement, html, css } from "lit";
|
import {css, html, LitElement} from "lit";
|
||||||
import { render } from "lit/html.js";
|
|
||||||
import {Epml} from "../../../epml";
|
import {Epml} from "../../../epml";
|
||||||
import {getUserNameFromAddress} from "../../utils/getUserNameFromAddress";
|
import {getUserNameFromAddress} from "../../utils/getUserNameFromAddress";
|
||||||
import snackbar from "./snackbar.js";
|
|
||||||
import "@material/mwc-button";
|
import "@material/mwc-button";
|
||||||
import "@material/mwc-dialog";
|
import "@material/mwc-dialog";
|
||||||
import "@polymer/paper-spinner/paper-spinner-lite.js";
|
import "@polymer/paper-spinner/paper-spinner-lite.js";
|
||||||
@ -12,7 +10,6 @@ import '@vaadin/button';
|
|||||||
import "./WrapperModal";
|
import "./WrapperModal";
|
||||||
import "./TipUser"
|
import "./TipUser"
|
||||||
import "./UserInfo/UserInfo";
|
import "./UserInfo/UserInfo";
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import {css, html, LitElement} from 'lit';
|
||||||
import {Epml} from '../../../epml';
|
import {Epml} from '../../../epml';
|
||||||
import '@material/mwc-button';
|
import '@material/mwc-button';
|
||||||
import '@material/mwc-dialog';
|
import '@material/mwc-dialog';
|
||||||
@ -11,10 +11,7 @@ import './TipUser';
|
|||||||
import './UserInfo/UserInfo';
|
import './UserInfo/UserInfo';
|
||||||
import './ChatImage';
|
import './ChatImage';
|
||||||
import './ReusableImage';
|
import './ReusableImage';
|
||||||
import {
|
import {get, translate,} from 'lit-translate';
|
||||||
get,
|
|
||||||
translate,
|
|
||||||
} from 'lit-translate';
|
|
||||||
import {generateIdFromAddresses} from '../../utils/id-generation';
|
import {generateIdFromAddresses} from '../../utils/id-generation';
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent });
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent });
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
import { LitElement, html, } from 'lit';
|
import {html, LitElement,} from 'lit';
|
||||||
import {repeat} from 'lit/directives/repeat.js';
|
import {repeat} from 'lit/directives/repeat.js';
|
||||||
import {
|
import {get, translate,} from 'lit-translate';
|
||||||
get,
|
|
||||||
translate,
|
|
||||||
} from 'lit-translate';
|
|
||||||
import {unsafeHTML} from 'lit/directives/unsafe-html.js';
|
import {unsafeHTML} from 'lit/directives/unsafe-html.js';
|
||||||
import {chatStyles} from './ChatScroller-css.js';
|
import {chatStyles} from './ChatScroller-css.js';
|
||||||
import {Epml} from '../../../epml';
|
import {Epml} from '../../../epml';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html } from 'lit';
|
import {html, LitElement} from 'lit';
|
||||||
import { render } from 'lit/html.js';
|
|
||||||
import {chatSearchResultsStyles} from './ChatSearchResults-css.js'
|
import {chatSearchResultsStyles} from './ChatSearchResults-css.js'
|
||||||
import {translate} from 'lit-translate';
|
import {translate} from 'lit-translate';
|
||||||
|
|
||||||
export class ChatSearchResults extends LitElement {
|
export class ChatSearchResults extends LitElement {
|
||||||
static get properties() {
|
static get properties() {
|
||||||
return {
|
return {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { LitElement, html } from 'lit'
|
import {html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {chatSearchResultsStyles} from './ChatSearchResults-css.js'
|
import {chatSearchResultsStyles} from './ChatSearchResults-css.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {translate} from 'lit-translate'
|
||||||
import '@vaadin/icon'
|
import '@vaadin/icon'
|
||||||
import '@vaadin/icons'
|
import '@vaadin/icons'
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {Epml} from '../../../epml.js'
|
import {Epml} from '../../../epml.js'
|
||||||
|
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import { LitElement, html, css } from 'lit'
|
import {css, html, LitElement} from 'lit'
|
||||||
import { render } from 'lit/html.js'
|
|
||||||
import {Epml} from '../../../epml.js'
|
import {Epml} from '../../../epml.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
|
||||||
import '@material/mwc-icon'
|
import '@material/mwc-icon'
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { LitElement, html, css } from "lit"
|
import {css, html, LitElement} from "lit"
|
||||||
import {escape, unescape} from 'html-escaper'
|
import {escape, unescape} from 'html-escaper'
|
||||||
import {EmojiPicker} from 'emoji-picker-js'
|
import {EmojiPicker} from 'emoji-picker-js'
|
||||||
import {inputKeyCodes} from '../../utils/keyCodes.js'
|
import {inputKeyCodes} from '../../utils/keyCodes.js'
|
||||||
import {Epml} from '../../../epml.js'
|
import {Epml} from '../../../epml.js'
|
||||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'
|
import {get} from 'lit-translate'
|
||||||
|
|
||||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user