taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 7c5b9017c9ea2663868f47fb888808b8e2dfd9fc
parent 8b1be1eda63039a0c5f4681e4fc1cbfd02d4d8bb
Author: Florian Dold <florian.dold@gmail.com>
Date:   Fri, 25 Dec 2015 22:42:14 +0100

License headers

Diffstat:
Mextension/background/db.js | 15+++++++++++++++
Mextension/background/db.ts | 18+++++++++++++++++-
Mextension/background/emscriptif.js | 5++---
Mextension/background/emscriptif.ts | 5++---
Mextension/background/wallet.js | 15+++++++++++++++
Mextension/background/wallet.ts | 16++++++++++++++++
Mextension/content_scripts/notify.js | 15+++++++++++++++
Mextension/content_scripts/notify.ts | 16++++++++++++++++
Mextension/lib/commonHelpers.js | 16++++++++++++++++
Mextension/lib/util.js | 15+++++++++++++++
Mextension/lib/util.ts | 16++++++++++++++++
Mextension/manifest.json | 4++--
Mextension/pages/confirm-contract.js | 15+++++++++++++++
Mextension/pages/confirm-contract.tsx | 16++++++++++++++++
Mextension/pages/confirm-create-reserve.js | 15+++++++++++++++
Mextension/pages/confirm-create-reserve.tsx | 16++++++++++++++++
Mextension/pages/show-db.js | 17+++++++++++++++++
17 files changed, 226 insertions(+), 9 deletions(-)

diff --git a/extension/background/db.js b/extension/background/db.js @@ -1,3 +1,18 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ "use strict"; const DB_NAME = "taler"; const DB_VERSION = 1; diff --git a/extension/background/db.ts b/extension/background/db.ts @@ -1,4 +1,21 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ + "use strict"; + /** * Declarations and helpers for * things that are stored in the wallet's @@ -6,7 +23,6 @@ */ - namespace Db { export interface Mint { baseUrl: string; diff --git a/extension/background/emscriptif.js b/extension/background/emscriptif.js @@ -1,7 +1,6 @@ /* - This file is part of TALER - Copyright (C) 2014, 2015 Christian Grothoff (and other contributing authors) + (C) 2015 GNUnet e.V. 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 @@ -12,7 +11,7 @@ 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 - TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> */ "use strict"; // Size of a native pointer. diff --git a/extension/background/emscriptif.ts b/extension/background/emscriptif.ts @@ -1,7 +1,6 @@ /* - This file is part of TALER - Copyright (C) 2014, 2015 Christian Grothoff (and other contributing authors) + (C) 2015 GNUnet e.V. 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 @@ -12,7 +11,7 @@ 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 - TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> */ "use strict"; diff --git a/extension/background/wallet.js b/extension/background/wallet.js @@ -1,3 +1,18 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ /// <reference path="../decl/urijs/URIjs.d.ts" /> /// <reference path="../decl/chrome/chrome.d.ts" /> 'use strict'; diff --git a/extension/background/wallet.ts b/extension/background/wallet.ts @@ -1,3 +1,19 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ + /// <reference path="../decl/urijs/URIjs.d.ts" /> /// <reference path="../decl/chrome/chrome.d.ts" /> 'use strict'; diff --git a/extension/content_scripts/notify.js b/extension/content_scripts/notify.js @@ -1,3 +1,18 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ // Script that is injected into pages in order to allow merchants pages to // query the availability of Taler. "use strict"; diff --git a/extension/content_scripts/notify.ts b/extension/content_scripts/notify.ts @@ -1,3 +1,19 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ + // Script that is injected into pages in order to allow merchants pages to // query the availability of Taler. diff --git a/extension/lib/commonHelpers.js b/extension/lib/commonHelpers.js @@ -1,3 +1,19 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ + "use strict"; Handlebars.registerHelper('prettyAmount', function (amount) { diff --git a/extension/lib/util.js b/extension/lib/util.js @@ -1,3 +1,18 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ 'use strict'; /** * Parse an amount that is specified like '5.42 EUR'. diff --git a/extension/lib/util.ts b/extension/lib/util.ts @@ -1,3 +1,19 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ + 'use strict'; /** diff --git a/extension/manifest.json b/extension/manifest.json @@ -1,8 +1,8 @@ { "description": "Privacy preserving and transparent payments", "manifest_version": 2, - "name": "Taler Wallet", - "version": "0.3", + "name": "GNU Taler Wallet", + "version": "0.4", "applications": { "gecko": { diff --git a/extension/pages/confirm-contract.js b/extension/pages/confirm-contract.js @@ -1,3 +1,18 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ /// <reference path="../decl/handlebars/handlebars.d.ts" /> "use strict"; let url = URI(document.location.href); diff --git a/extension/pages/confirm-contract.tsx b/extension/pages/confirm-contract.tsx @@ -1,3 +1,19 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ + /// <reference path="../decl/handlebars/handlebars.d.ts" /> "use strict"; diff --git a/extension/pages/confirm-create-reserve.js b/extension/pages/confirm-create-reserve.js @@ -1,3 +1,18 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ "use strict"; var ConfirmCreateReserve; (function (ConfirmCreateReserve) { diff --git a/extension/pages/confirm-create-reserve.tsx b/extension/pages/confirm-create-reserve.tsx @@ -1,3 +1,19 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ + "use strict"; namespace ConfirmCreateReserve { diff --git a/extension/pages/show-db.js b/extension/pages/show-db.js @@ -1,3 +1,20 @@ +/* + This file is part of TALER + (C) 2015 GNUnet e.V. + + 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. + + 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 + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> + */ + + function replacer(match, pIndent, pKey, pVal, pEnd) { var key = '<span class=json-key>'; var val = '<span class=json-value>';