mirror of
https://github.com/hanzo-labs/arcadia.git
synced 2026-10-30 18:55:41 +00:00
112 lines
1.9 KiB
JavaScript
112 lines
1.9 KiB
JavaScript
'use strict';
|
|
var globalService = function($http, $httpParamSerializerJQLike) {
|
|
globalFuncs.checkAndRedirectHTTPS();
|
|
ajaxReq.http = $http;
|
|
ajaxReq.postSerializer = $httpParamSerializerJQLike;
|
|
ajaxReq.getETHvalue = nodes.ethPrice.getETHvalue;
|
|
ajaxReq.getRates = nodes.ethPrice.getRates;
|
|
var tabs = {
|
|
generateWallet: {
|
|
id: 0,
|
|
name: "NAV_GenerateWallet_alt",
|
|
url: "generate-wallet",
|
|
mew: true,
|
|
cx: false
|
|
},
|
|
myWallet: {
|
|
id: 1,
|
|
name: "NAV_MyWallets",
|
|
url: "my-wallet",
|
|
mew: false,
|
|
cx: true
|
|
},
|
|
addWallet: {
|
|
id: 2,
|
|
name: "NAV_AddWallet",
|
|
url: "add-wallet",
|
|
mew: false,
|
|
cx: true
|
|
},
|
|
sendTransaction: {
|
|
id: 3,
|
|
name: "NAV_SendEther",
|
|
url: "send-transaction",
|
|
mew: true,
|
|
cx: true
|
|
},
|
|
swap: {
|
|
id: 4,
|
|
name: "NAV_Swap",
|
|
url: "swap",
|
|
mew: true,
|
|
cx: true
|
|
},
|
|
offlineTransaction: {
|
|
id: 5,
|
|
name: "NAV_Offline",
|
|
url:"offline-transaction",
|
|
mew: true,
|
|
cx: false
|
|
},
|
|
contracts: {
|
|
id: 6,
|
|
name: "NAV_Contracts",
|
|
url: "contracts",
|
|
mew: true,
|
|
cx: true
|
|
},
|
|
ens: {
|
|
id:7,
|
|
name: "NAV_ENS",
|
|
url: "ens",
|
|
mew: true,
|
|
cx: true
|
|
},
|
|
txStatus: {
|
|
id: 8,
|
|
name: "NAV_CheckTxStatus",
|
|
url: "check-tx-status",
|
|
mew: true,
|
|
cx: true
|
|
},
|
|
viewWalletInfo: {
|
|
id: 9,
|
|
name: "NAV_ViewWallet",
|
|
url: "view-wallet-info",
|
|
mew: true,
|
|
cx: false
|
|
},
|
|
help: {
|
|
id: 10,
|
|
name: "NAV_Help",
|
|
url: "help",
|
|
mew: true,
|
|
cx: true
|
|
},
|
|
signMsg: {
|
|
id: 11,
|
|
name: "NAV_SignMsg",
|
|
url: "sign-message",
|
|
mew: false,
|
|
cx: false
|
|
},
|
|
bulkGenerate: {
|
|
id: 12,
|
|
name: "NAV_BulkGenerate",
|
|
url: "bulk-generate",
|
|
mew: false,
|
|
cx: false
|
|
}
|
|
};
|
|
var currentTab = 0;
|
|
if(typeof chrome != 'undefined')
|
|
currentTab = chrome.windows === undefined ? 0 : 3;
|
|
return {
|
|
tabs: tabs,
|
|
currentTab: currentTab
|
|
};
|
|
};
|
|
module.exports = globalService;
|
|
|
|
|