move webex specific things in their own directory
This commit is contained in:
parent
38a74188d7
commit
b6e774585d
@ -36,7 +36,7 @@
|
||||
"32": "img/icon.png"
|
||||
},
|
||||
"default_title": "Taler",
|
||||
"default_popup": "src/pages/popup.html"
|
||||
"default_popup": "src/webex/pages/popup.html"
|
||||
},
|
||||
|
||||
"content_scripts": [
|
||||
@ -54,7 +54,7 @@
|
||||
],
|
||||
|
||||
"background": {
|
||||
"page": "src/background/background.html",
|
||||
"page": "src/webex/background.html",
|
||||
"persistent": true
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@
|
||||
/**
|
||||
* Imports.
|
||||
*/
|
||||
import {wxMain} from "./../wxBackend";
|
||||
import {wxMain} from "./wxBackend";
|
||||
|
||||
window.addEventListener("load", () => {
|
||||
wxMain();
|
@ -16,7 +16,7 @@
|
||||
|
||||
import {
|
||||
Badge,
|
||||
} from "./wallet";
|
||||
} from "../wallet";
|
||||
|
||||
|
||||
/**
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
|
||||
import { getTalerStampDate } from "../../helpers";
|
||||
import {
|
||||
ExchangeRecord,
|
||||
DenominationRecord,
|
||||
@ -30,13 +31,13 @@ import {
|
||||
CoinRecord,
|
||||
PreCoinRecord,
|
||||
Denomination
|
||||
} from "../types";
|
||||
} from "../../types";
|
||||
|
||||
import { ImplicitStateComponent, StateHolder } from "../components";
|
||||
import {
|
||||
getCurrencies,
|
||||
updateCurrency,
|
||||
} from "../wxApi";
|
||||
import { getTalerStampDate } from "../helpers";
|
||||
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
|
||||
import { getTalerStampDate } from "../../helpers";
|
||||
import {
|
||||
ExchangeRecord,
|
||||
ExchangeForCurrencyRecord,
|
||||
@ -31,13 +32,13 @@ import {
|
||||
CoinRecord,
|
||||
PreCoinRecord,
|
||||
Denomination
|
||||
} from "../types";
|
||||
} from "../../types";
|
||||
|
||||
import { ImplicitStateComponent, StateHolder } from "../components";
|
||||
import {
|
||||
getCurrencies,
|
||||
updateCurrency,
|
||||
} from "../wxApi";
|
||||
import { getTalerStampDate } from "../helpers";
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
|
@ -23,11 +23,13 @@
|
||||
/**
|
||||
* Imports.
|
||||
*/
|
||||
import { Contract, AmountJson, ExchangeRecord } from "../types";
|
||||
import { OfferRecord } from "../wallet";
|
||||
import * as i18n from "../../i18n";
|
||||
import { Contract, AmountJson, ExchangeRecord } from "../../types";
|
||||
import { OfferRecord } from "../../wallet";
|
||||
|
||||
import { renderContract } from "../renderHtml";
|
||||
import { getExchanges } from "../wxApi";
|
||||
import * as i18n from "../i18n";
|
||||
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
import URI = require("urijs");
|
@ -22,15 +22,17 @@
|
||||
* @author Florian Dold
|
||||
*/
|
||||
|
||||
import {amountToPretty, canonicalizeBaseUrl} from "../helpers";
|
||||
import {amountToPretty, canonicalizeBaseUrl} from "../../helpers";
|
||||
import {
|
||||
AmountJson, CreateReserveResponse,
|
||||
ReserveCreationInfo, Amounts,
|
||||
Denomination, DenominationRecord, CurrencyRecord
|
||||
} from "../types";
|
||||
} from "../../types";
|
||||
import * as i18n from "../../i18n";
|
||||
|
||||
import {getReserveCreationInfo, getCurrency, getExchangeInfo} from "../wxApi";
|
||||
import {ImplicitStateComponent, StateHolder} from "../components";
|
||||
import * as i18n from "../i18n";
|
||||
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
import URI = require("urijs");
|
@ -20,9 +20,10 @@
|
||||
* @author Florian Dold
|
||||
*/
|
||||
|
||||
import {LogEntry, getLogs} from "../../logging";
|
||||
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
import {LogEntry, getLogs} from "../logging";
|
||||
|
||||
interface LogViewProps {
|
||||
log: LogEntry;
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
|
||||
import { amountToPretty, getTalerStampDate } from "../../helpers";
|
||||
import {
|
||||
ExchangeRecord,
|
||||
ExchangeForCurrencyRecord,
|
||||
@ -32,7 +33,8 @@ import {
|
||||
PreCoinRecord,
|
||||
Denomination,
|
||||
WalletBalance,
|
||||
} from "../types";
|
||||
} from "../../types";
|
||||
|
||||
import { ImplicitStateComponent, StateHolder } from "../components";
|
||||
import {
|
||||
getCurrencies,
|
||||
@ -40,7 +42,7 @@ import {
|
||||
getPaybackReserves,
|
||||
withdrawPaybackReserve,
|
||||
} from "../wxApi";
|
||||
import { amountToPretty, getTalerStampDate } from "../helpers";
|
||||
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
|
@ -25,15 +25,18 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
import BrowserClickedEvent = chrome.browserAction.BrowserClickedEvent;
|
||||
import { HistoryRecord, HistoryLevel } from "../wallet";
|
||||
import {
|
||||
AmountJson, WalletBalance, Amounts,
|
||||
AmountJson,
|
||||
Amounts,
|
||||
WalletBalance,
|
||||
WalletBalanceEntry
|
||||
} from "../types";
|
||||
import { amountToPretty } from "../helpers";
|
||||
} from "../../types";
|
||||
import { HistoryRecord, HistoryLevel } from "../../wallet";
|
||||
import { amountToPretty } from "../../helpers";
|
||||
import * as i18n from "../../i18n";
|
||||
|
||||
import { abbrev } from "../renderHtml";
|
||||
import * as i18n from "../i18n";
|
||||
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
import URI = require("urijs");
|
@ -21,21 +21,22 @@
|
||||
*/
|
||||
|
||||
|
||||
import { amountToPretty, getTalerStampDate } from "../../helpers";
|
||||
import {
|
||||
ExchangeRecord,
|
||||
DenominationRecord,
|
||||
CoinStatus,
|
||||
ReserveRecord,
|
||||
CoinRecord,
|
||||
PreCoinRecord,
|
||||
CoinStatus,
|
||||
Denomination,
|
||||
} from "../types";
|
||||
DenominationRecord,
|
||||
ExchangeRecord,
|
||||
PreCoinRecord,
|
||||
ReserveRecord,
|
||||
} from "../../types";
|
||||
|
||||
import { ImplicitStateComponent, StateHolder } from "../components";
|
||||
import {
|
||||
getReserves, getExchanges, getCoins, getPreCoins,
|
||||
refresh, getDenoms, payback,
|
||||
} from "../wxApi";
|
||||
import { amountToPretty, getTalerStampDate } from "../helpers";
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
|
@ -28,9 +28,10 @@ import {
|
||||
AmountJson,
|
||||
Amounts,
|
||||
Contract,
|
||||
} from "./types";
|
||||
import * as i18n from "./i18n";
|
||||
import { amountToPretty } from "./helpers";
|
||||
} from "../types";
|
||||
import * as i18n from "../i18n";
|
||||
import { amountToPretty } from "../helpers";
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
|
@ -31,7 +31,7 @@ import {
|
||||
PreCoinRecord,
|
||||
ReserveCreationInfo,
|
||||
ReserveRecord,
|
||||
} from "./types";
|
||||
} from "../types";
|
||||
|
||||
|
||||
/**
|
@ -24,20 +24,18 @@
|
||||
/**
|
||||
* Imports.
|
||||
*/
|
||||
import { Checkable } from "./checkable";
|
||||
import { ChromeBadge } from "./chromeBadge";
|
||||
import { BrowserHttpLib } from "./http";
|
||||
import * as logging from "./logging";
|
||||
import { Checkable } from "../checkable";
|
||||
import { BrowserHttpLib } from "../http";
|
||||
import * as logging from "../logging";
|
||||
import {
|
||||
Index,
|
||||
Store,
|
||||
} from "./query";
|
||||
} from "../query";
|
||||
import {
|
||||
AmountJson,
|
||||
Contract,
|
||||
Notifier,
|
||||
} from "./types";
|
||||
import URI = require("urijs");
|
||||
} from "../types";
|
||||
import {
|
||||
Badge,
|
||||
ConfirmReserveRequest,
|
||||
@ -45,7 +43,10 @@ import {
|
||||
OfferRecord,
|
||||
Stores,
|
||||
Wallet,
|
||||
} from "./wallet";
|
||||
} from "../wallet";
|
||||
|
||||
import { ChromeBadge } from "./chromeBadge";
|
||||
import URI = require("urijs");
|
||||
import Port = chrome.runtime.Port;
|
||||
import MessageSender = chrome.runtime.MessageSender;
|
||||
|
@ -22,11 +22,7 @@
|
||||
"decl/chrome/chrome.d.ts",
|
||||
"decl/jed.d.ts",
|
||||
"decl/urijs.d.ts",
|
||||
"src/background/background.ts",
|
||||
"src/checkable.ts",
|
||||
"src/chromeBadge.ts",
|
||||
"src/components.ts",
|
||||
"src/content_scripts/notify.ts",
|
||||
"src/crypto/cryptoApi-test.ts",
|
||||
"src/crypto/cryptoApi.ts",
|
||||
"src/crypto/cryptoWorker.ts",
|
||||
@ -43,24 +39,28 @@
|
||||
"src/i18n.tsx",
|
||||
"src/i18n/strings.ts",
|
||||
"src/logging.ts",
|
||||
"src/pages/add-auditor.tsx",
|
||||
"src/pages/auditors.tsx",
|
||||
"src/pages/confirm-contract.tsx",
|
||||
"src/pages/confirm-create-reserve.tsx",
|
||||
"src/pages/error.tsx",
|
||||
"src/pages/logs.tsx",
|
||||
"src/pages/payback.tsx",
|
||||
"src/pages/popup.tsx",
|
||||
"src/pages/show-db.ts",
|
||||
"src/pages/tree.tsx",
|
||||
"src/query.ts",
|
||||
"src/renderHtml.tsx",
|
||||
"src/timer.ts",
|
||||
"src/types-test.ts",
|
||||
"src/types.ts",
|
||||
"src/wallet-test.ts",
|
||||
"src/wallet.ts",
|
||||
"src/wxApi.ts",
|
||||
"src/wxBackend.ts"
|
||||
"src/webex/background.ts",
|
||||
"src/webex/chromeBadge.ts",
|
||||
"src/webex/components.ts",
|
||||
"src/webex/notify.ts",
|
||||
"src/webex/pages/add-auditor.tsx",
|
||||
"src/webex/pages/auditors.tsx",
|
||||
"src/webex/pages/confirm-contract.tsx",
|
||||
"src/webex/pages/confirm-create-reserve.tsx",
|
||||
"src/webex/pages/error.tsx",
|
||||
"src/webex/pages/logs.tsx",
|
||||
"src/webex/pages/payback.tsx",
|
||||
"src/webex/pages/popup.tsx",
|
||||
"src/webex/pages/show-db.ts",
|
||||
"src/webex/pages/tree.tsx",
|
||||
"src/webex/renderHtml.tsx",
|
||||
"src/webex/wxApi.ts",
|
||||
"src/webex/wxBackend.ts"
|
||||
]
|
||||
}
|
@ -39,25 +39,25 @@ module.exports = function (env) {
|
||||
};
|
||||
|
||||
const configBackground = {
|
||||
entry: {"background": "./src/background/background.ts"},
|
||||
entry: {"background": "./src/webex/background.ts"},
|
||||
};
|
||||
|
||||
const configContentScript = {
|
||||
entry: {"contentScript": "./src/content_scripts/notify.ts"},
|
||||
entry: {"contentScript": "./src/webex/notify.ts"},
|
||||
};
|
||||
|
||||
const configExtensionPages = {
|
||||
entry: {
|
||||
"add-auditor": "./src/pages/add-auditor.tsx",
|
||||
"auditors": "./src/pages/auditors.tsx",
|
||||
"confirm-contract": "./src/pages/confirm-contract.tsx",
|
||||
"confirm-create-reserve": "./src/pages/confirm-create-reserve.tsx",
|
||||
"error": "./src/pages/error.tsx",
|
||||
"logs": "./src/pages/logs.tsx",
|
||||
"popup": "./src/pages/popup.tsx",
|
||||
"show-db": "./src/pages/show-db.ts",
|
||||
"tree": "./src/pages/tree.tsx",
|
||||
"payback": "./src/pages/payback.tsx",
|
||||
"add-auditor": "./src/webex/pages/add-auditor.tsx",
|
||||
"auditors": "./src/webex/pages/auditors.tsx",
|
||||
"confirm-contract": "./src/webex/pages/confirm-contract.tsx",
|
||||
"confirm-create-reserve": "./src/webex/pages/confirm-create-reserve.tsx",
|
||||
"error": "./src/webex/pages/error.tsx",
|
||||
"logs": "./src/webex/pages/logs.tsx",
|
||||
"popup": "./src/webex/pages/popup.tsx",
|
||||
"show-db": "./src/webex/pages/show-db.ts",
|
||||
"tree": "./src/webex/pages/tree.tsx",
|
||||
"payback": "./src/webex/pages/payback.tsx",
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
|
Loading…
Reference in New Issue
Block a user