gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (35877660 -> c3b01ad9)


From: gnunet
Subject: [taler-wallet-core] branch master updated (35877660 -> c3b01ad9)
Date: Wed, 01 Dec 2021 19:10:57 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a change to branch master
in repository wallet-core.

    from 35877660 fix dependencies
     new 0f8e9b67 exportDb call to the wallet-core
     new c3b01ad9 removing workaround since it creates another problems

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/taler-wallet-webextension/.storybook/main.js        | 12 ++++++++----
 .../taler-wallet-webextension/src/popup/DeveloperPage.tsx    |  7 +++++--
 packages/taler-wallet-webextension/src/wxApi.ts              |  4 ++++
 3 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/packages/taler-wallet-webextension/.storybook/main.js 
b/packages/taler-wallet-webextension/.storybook/main.js
index cd58d4d1..c648a908 100644
--- a/packages/taler-wallet-webextension/.storybook/main.js
+++ b/packages/taler-wallet-webextension/.storybook/main.js
@@ -48,10 +48,14 @@ module.exports = {
   webpackFinal: (config) => {
     // should be removed after storybook 6.3
     // 
https://github.com/storybookjs/storybook/issues/12853#issuecomment-821576113
-    config.resolve.alias = {
-      react: "preact/compat",
-      "react-dom": "preact/compat",
-    };
+         // removing workaround since this creates another problem
+         // https://github.com/storybookjs/storybook/issues/16623
+         // https://github.com/nodejs/node/issues/33460
+         // FIXME: remove this comments in 2022 if no problem arise 
+//    config.resolve.alias = {
+//      react: "preact/compat",
+//      "react-dom": "preact/compat",
+//    };
 
     // we need to add @linaria loader AFTER the babel-loader
     // 
https://github.com/callstack/linaria/blob/master/docs/BUNDLERS_INTEGRATION.md#webpack
  
diff --git a/packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx 
b/packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx
index 8d24545d..b3255524 100644
--- a/packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx
+++ b/packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx
@@ -46,7 +46,10 @@ export function DeveloperPage(): VNode {
   return <View status={status} 
     timedOut={timedOut} 
     operations={operations} 
-    onDownloadDatabase={async () => "content"}
+    onDownloadDatabase={async () => {
+      const db = await wxApi.exportDB()
+      return JSON.stringify(db)
+    }}
   />;
 }
 
@@ -81,7 +84,7 @@ export function View({ status, timedOut, operations, 
onDownloadDatabase }: Props
       <br />
       <button onClick={onExportDatabase}>export database</button>
       {downloadedDatabase && <div>
-        Database exported at <Time timestamp={{t_ms: 
downloadedDatabase.time.getTime()}} format="yyyy/MM/dd HH:mm:ss" /> <a 
href={`data:text/plain;charset=utf-8;base64,${Buffer.from(downloadedDatabase.content).toString('base64')}`}
 download={`taler-wallet-database-${format(downloadedDatabase.time, 
'yyyy/MM/dd_HH:mm')}.json`}>click here</a> to download
+        Database exported at <Time timestamp={{t_ms: 
downloadedDatabase.time.getTime()}} format="yyyy/MM/dd HH:mm:ss" /> <a 
href={`data:text/plain;charset=utf-8;base64,${btoa(downloadedDatabase.content)}`}
 download={`taler-wallet-database-${format(downloadedDatabase.time, 
'yyyy/MM/dd_HH:mm')}.json`}>click here</a> to download
         </div>}
       <br />
       <Diagnostics diagnostics={status} timedOut={timedOut} />
diff --git a/packages/taler-wallet-webextension/src/wxApi.ts 
b/packages/taler-wallet-webextension/src/wxApi.ts
index 46a175af..4d8b932d 100644
--- a/packages/taler-wallet-webextension/src/wxApi.ts
+++ b/packages/taler-wallet-webextension/src/wxApi.ts
@@ -355,6 +355,10 @@ export function acceptTip(req: AcceptTipRequest): 
Promise<void> {
   return callBackend("acceptTip", req);
 }
 
+export function exportDB(): Promise<any> {
+  return callBackend("exportDb", {});
+}
+
 export function onUpdateNotification(messageTypes: Array<NotificationType>, 
doCallback: () => void): () => void {
   // eslint-disable-next-line no-undef
   const port = chrome.runtime.connect({ name: "notifications" });

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]