OSDN Git Service

update 'bytom' to 'vapor'
authorZhiting Lin <zlin035@uottawa.ca>
Thu, 20 Jun 2019 07:04:07 +0000 (15:04 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Thu, 20 Jun 2019 07:04:07 +0000 (15:04 +0800)
src/Root.jsx
src/features/app/components/Container.jsx
src/features/backup/actions.js
src/features/shared/components/ConsoleSection/ConsoleSection.jsx
src/features/tutorial/steps.json
src/locales/en/translation.json
src/locales/zh/translation.json
src/utility/environment.js

index 9d1d543..70694b1 100644 (file)
@@ -9,7 +9,7 @@ import makeRoutes from './routes'
 
 export default class Root extends React.Component {
   componentWillMount() {
-    document.title = 'Bytom Dashboard'
+    document.title = 'Vapor Dashboard'
   }
 
   render() {
index 765e597..35991ad 100644 (file)
@@ -83,7 +83,7 @@ class Container extends React.Component {
     if (!this.props.authOk) {
       layout = <Login/>
     } else if (!this.props.configKnown) {
-      return <Loading>Connecting to Bytom Core...</Loading>
+      return <Loading>Connecting to Vapor Core...</Loading>
     } else if (!this.props.configured) {
       layout = <Config>{this.props.children}</Config>
     } else if (!this.props.accountInit && this.state.noAccountItem){
index 15a62c9..bba6994 100644 (file)
@@ -11,7 +11,7 @@ let actions = {
           const date = new Date()
           const dateStr = date.toLocaleDateString().split(' ')[0]
           const timestamp = date.getTime()
-          const fileName = ['bytom-wallet-backup-', dateStr, timestamp].join('-')
+          const fileName = ['vapor-wallet-backup-', dateStr, timestamp].join('-')
 
           let element = document.createElement('a')
           element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(JSON.stringify(resp.data)))
index a4d44fe..19c66e3 100644 (file)
@@ -97,7 +97,7 @@ class ConsoleSection extends React.Component {
           ref={(el) => { this.messagesContainer = el }}
         >
           <Trans i18nKey='console.message' parent='p'>
-            Welcome to the Bytom Core API console.<br/> Type <code>help</code> for an overview of available commands
+            Welcome to the Vapor Core API console.<br/> Type <code>help</code> for an overview of available commands
           </Trans>
           <p className='text-danger'>
             <strong>
index cf312a4..ddb058d 100644 (file)
@@ -1,12 +1,12 @@
 [
   {
     "component": "TutorialModal",
-    "title": "Welcome to Bytom!",
+    "title": "Welcome to Vapor!",
     "button": "Start 5-minute tutorial",
     "dismiss": "Skip",
     "route": "keys",
     "content": [
-      "Would you like a brief tutorial? This guide will walk you through the basic functions available in the Bytom."
+      "Would you like a brief tutorial? This guide will walk you through the basic functions available in the Vapor."
     ]
   },
   {
@@ -17,7 +17,7 @@
     "image": "key",
     "content": [
       "Cryptographic private keys are the primary authorization mechanism on a blockchain. They control both the issuance and transfer of asset units. An asset or account will define one or more keys required for issuance or transfers.",
-      "For development environments, Bytom provides a convenient key that simulates production behaviors. Let's begin by creating a new key."
+      "For development environments, Vapor provides a convenient key that simulates production behaviors. Let's begin by creating a new key."
     ]
   },
   {
     "route": "accounts/create",
     "image": "account",
     "content": [
-      "An account is an object in Bytom that tracks ownership of assets on a blockchain by creating and tracking control programs. The account object does not exist on the blockchain - it is local to this Bytom. Only the control programs created in the account are visible on the blockchain.",
+      "An account is an object in Vapor that tracks ownership of assets on a blockchain by creating and tracking control programs. The account object does not exist on the blockchain - it is local to this Vapor. Only the control programs created in the account are visible on the blockchain.",
       "We'll be moving assets from one account to another; let's create the first one now."
     ]
   },
         {
           "title": "Select \"Generate new a key\" under \"Keys and Signing\"",
           "description": [
-            "You can leave the name field blank, and Bytom will generate a key with a unique name based on your alias."
+            "You can leave the name field blank, and Vapor will generate a key with a unique name based on your alias."
           ]
         },
         {
     "content": [
       {
         "type": "asset",
-        "line": "Bytom allows you to build transactions using a predefined set of actions to issue, spend, control, or retire asset units. We'll start by creating a transaction that issues units of your \"STRING\" asset."
+        "line": "Vapor allows you to build transactions using a predefined set of actions to issue, spend, control, or retire asset units. We'll start by creating a transaction that issues units of your \"STRING\" asset."
       }
     ]
   },
         "type": "asset",
         "line": "You just issued your first units of \"STRING\" onto the blockchain. Nice work!"
       },
-      "When you clicked \"Submit transaction\", Bytom Dashboard built your blockchain transaction in three steps:",
+      "When you clicked \"Submit transaction\", Vapor Dashboard built your blockchain transaction in three steps:",
       {
         "list": [
-          "your raw actions were sent to Bytom and an unsigned transaction was returned.",
+          "your raw actions were sent to Vapor and an unsigned transaction was returned.",
           "the Dashboard submitted the unsigned transaction to the key for signature.",
           "the signed transaction was submitted to the blockchain (you can see the committed result below)."
         ]
index dcf538e..4da07db 100644 (file)
   },
   "console":{
     "title":"Console",
-    "message":"Welcome to the Bytom Core API console.<1/> Type <2>help</2> for an overview of available commands",
+    "message":"Welcome to the Vapor Core API console.<1/> Type <2>help</2> for an overview of available commands",
     "warning":"WARNING",
     "warningMessage":"Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramification of a command.",
     "placeholder":"Enter \"help\" for an overview of available commands"
     "mnemonicRequire":"Mnemonic is Required",
     "create": "Create Wallet",
     "createDescription":"This option will create a default account, key password and give you a option to keep you mnemonic.  Warning: key seed words will display only once, it's important to remember your password.",
-    "welcome":"Welcome to Bytom __network__"
+    "welcome":"Welcome to Vapor __network__"
   },
   "backup":{
     "title":"Backup and Restore",
         "Cryptographic private keys are the primary authorization mechanism on a blockchain. They control both the issuance and transfer of asset units. An asset or account will define one or more keys required for issuance or transfers."
       ],
       "account":[
-        "An account is an object in Bytom that tracks ownership of assets on a blockchain by creating and tracking control programs. The account object does not exist on the blockchain - it is local to this Bytom. Only the control programs created in the account are visible on the blockchain."
+        "An account is an object in Vapor that tracks ownership of assets on a blockchain by creating and tracking control programs. The account object does not exist on the blockchain - it is local to this Vapor. Only the control programs created in the account are visible on the blockchain."
       ],
       "asset":[
         "An asset is a type of value that can be issued on a blockchain. All units of an asset are fungible and can be transacted directly between parties without the involvement of the issuer."
       ],
       "balance":[
-        "The balance shows the amount and the type of asset that a local Bytom account possess."
+        "The balance shows the amount and the type of asset that a local Vapor account possess."
       ],
       "coreStatus":[
         "The core status shows the blockchain network status and the local setting."
       ],
       "accessControl":[
-        "Access token is used for remote authorizations. An access token is required to connect a remote Bytom Core."
+        "Access token is used for remote authorizations. An access token is required to connect a remote Vapor Core."
       ],
       "unspent":[
         "Each new transaction in the blockchain consumes some unspent outputs and creates others. An output is considered unspent when it has not yet been used as an input to a new transaction. All asset units on a blockchain exist in the unspent output set."
           {
             "title": "Enter and repeat the password for your key",
             "description": [
-              "It's important to memorize the password for your key and keep it somewhere safe. Bytom doesn't provide any lost and found. "
+              "It's important to memorize the password for your key and keep it somewhere safe. Vapor doesn't provide any lost and found. "
             ]
           },
           {
           {
             "title": "Enter and repeat the new password for your key",
             "description": [
-              "It's important to memorize the password for your key and keep it somewhere safe. Bytom doesn't provide any lost and found. "
+              "It's important to memorize the password for your key and keep it somewhere safe. Vapor doesn't provide any lost and found. "
             ]
           },
           {
     "CREATED_TOKEN_WITH_GRANT":"Access token has been created successfully."
   },
   "btmError":{
-    "BTM000": "Bytom API Error",
+    "BTM000": "Vapor API Error",
     "BTM001": "Request timed out",
     "BTM002": "Invalid request body",
     "BTM103": "A peer core is operating on a different blockchain network",
index 2284de8..0256c85 100644 (file)
   },
   "console":{
     "title":"命令行",
-    "message":"欢迎来到Bytom Core API 命令行。<1/> 输入<2>help</2> 查看所有可用命令行。",
+    "message":"欢迎来到Vapor Core API 命令行。<1/> 输入<2>help</2> 查看所有可用命令行。",
     "warning":"注意",
     "warningMessage":"骗子可能会让你在此输入命令,以盗取你的钱包内容。 如果你没有了解命令所带来的后果,请不要在此输入命令。",
     "placeholder":"输入 \"help\" 查看所有可用的命令"
         "加密私钥是区块链上的主要授权机制。 他们控制着资产单位的发行和交易。资产或账户将定义发行或转账所需的一个或多个密钥。"
       ],
       "account": [
-        "账户是Bytom中的对象,它通过创建和追溯Control Program来追溯区块链上资产的所有权。账户对象不存在与区块链中, 它是存在于本地Bytom中。 只有账户中创建的Control Program存在于区块链上。"
+        "账户是Vapor中的对象,它通过创建和追溯Control Program来追溯区块链上资产的所有权。账户对象不存在与区块链中, 它是存在于本地Vapor中。 只有账户中创建的Control Program存在于区块链上。"
       ],
       "asset":[
         "资产是可以在区块链上发行的一种价值。资产的所有单位都是可替代的,并且可以在各方之间直接进行交易,而无需发行人的参与。"
           {
             "title": "输入和重复输入密钥的密码",
             "description": [
-              "请妥善保管你的密钥密码, Bytom 不提供找回密码的功能。 "
+              "请妥善保管你的密钥密码, Vapor 不提供找回密码的功能。 "
             ]
           },
           {
           {
             "title": "输入和重复输入密钥的新密码",
             "description": [
-              "请妥善保管你的密钥密码, Bytom 不提供找回密码的功能。"
+              "请妥善保管你的密钥密码, Vapor 不提供找回密码的功能。"
             ]
           },
           {
index 56ae59b..efe16fe 100644 (file)
@@ -34,6 +34,6 @@ export const UTXOpageSize = 10
 
 export const testnetInfoUrl = process.env.TESTNET_INFO_URL || 'https://testnet-info.chain.com'
 export const testnetUrl = process.env.TESTNET_GENERATOR_URL || 'https://testnet.chain.com'
-export const docsRoot = 'https://github.com/bytom/bytom/wiki'
+export const docsRoot = 'https://github.com/Bytom/vapor/wiki'
 
-export const releaseUrl = 'https://github.com/Bytom/bytom/releases'
+export const releaseUrl = 'https://github.com/Bytom/vapor/releases'