merchant-backoffice

ZZZ: Inactive/Deprecated
Log | Files | Refs | Submodules | README

commit b1509bca33b2e577f1f2dd62f7f9f829d9609473
parent f3aea323f63199f6726583bf3f458a6134b0d9f8
Author: Sebastian <sebasjm@gmail.com>
Date:   Wed,  3 Mar 2021 14:55:58 -0300

fix linter

Diffstat:
MCHANGELOG.md | 6++++--
Mpackages/frontend/src/AdminRoutes.tsx | 15+++++++++++++++
Mpackages/frontend/src/components/form/InputArray.tsx | 4++--
Mpackages/frontend/src/components/menu/index.tsx | 4++--
Mpackages/frontend/src/index.tsx | 2+-
5 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -36,8 +36,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - fix: row clicking on card table was overriding checkbox onClick - remove headers of the page - clear all tokens now remove backend-url - - (WIP) remove checkbox from auth token, use button (manage auth) - - (WIP) auth token config as popup with 3 actions (clear (sure?), cancel, set token) + - remove checkbox from auth token, use button (manage auth) + - auth token config as popup with 3 actions (clear (sure?), cancel, set token) + - new password enpoint + ## [0.0.2] - 2021-02-25 - REFACTOR: remove react-i18n and implement messageformat diff --git a/packages/frontend/src/AdminRoutes.tsx b/packages/frontend/src/AdminRoutes.tsx @@ -1,3 +1,18 @@ +/* + This file is part of GNU Taler + (C) 2021 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ import { h, VNode } from "preact"; import Router, { route, Route } from "preact-router"; import { RootPaths, Redirect } from "./index"; diff --git a/packages/frontend/src/components/form/InputArray.tsx b/packages/frontend/src/components/form/InputArray.tsx @@ -75,9 +75,9 @@ export function InputArray<T>({ name, readonly, addonBefore, isValid, fromStr = if (!isValid(v)) { setLocalError({ message: i18n`The value ${v} is invalid for a payment url` }) return; - } else { + } setLocalError(null) - } + onChange([v, ...array] as any); setCurrentValue(''); }}>add</button> diff --git a/packages/frontend/src/components/menu/index.tsx b/packages/frontend/src/components/menu/index.tsx @@ -26,9 +26,9 @@ interface Props { export function Menu({ onLogout, instance }: Props): VNode { const [mobileOpen, setMobileOpen] = useState(false) - const title = !onLogout ? "Welcome!" : ( !instance ? "Admin" : instance) + const title = !onLogout ? "Welcome!" : (!instance ? "Admin" : instance) return <div class={mobileOpen ? "has-aside-mobile-expanded" : ""} onClick={() => setMobileOpen(false)}> - <NavigationBar onMobileMenu={() => setMobileOpen(!mobileOpen)} title={title}/> + <NavigationBar onMobileMenu={() => setMobileOpen(!mobileOpen)} title={title} /> {onLogout && <Sidebar onLogout={onLogout} instance={instance} mobile={mobileOpen} />} </div> diff --git a/packages/frontend/src/index.tsx b/packages/frontend/src/index.tsx @@ -125,7 +125,7 @@ function ApplicationStatusRoutes(): VNode { return <div id="app" class="has-navbar-fixed-top"> <ConfigContextProvider value={ctx}> <Notifications notifications={notifications} removeNotification={removeNotification} /> - <Route default component={ApplicationReadyRoutes} pushNotification={pushNotification} addTokenCleaner={addTokenCleanerMemo} clearAllTokens={clearAllTokens}/> : + <Route default component={ApplicationReadyRoutes} pushNotification={pushNotification} addTokenCleaner={addTokenCleanerMemo} clearAllTokens={clearAllTokens} /> : </ConfigContextProvider> </div> }