Commit ad20a1c2 authored by gxkai's avatar gxkai

fix: 中文

parent fb942951
const introJs = require('intro.js')
import 'intro.js/minified/introjs.min.css' import 'intro.js/minified/introjs.min.css'
const introJs = require('intro.js')
export class WalkthroughService { export class WalkthroughService {
constructor (params) { constructor (params) {
this.params = params this.params = params
...@@ -9,23 +9,23 @@ export class WalkthroughService { ...@@ -9,23 +9,23 @@ export class WalkthroughService {
if (!sessionStorage.getItem('hadTour_initial')) { if (!sessionStorage.getItem('hadTour_initial')) {
introJs().setOptions({ introJs().setOptions({
steps: [{ steps: [{
title: 'Welcome to Baas IDE', title: '欢迎来到 Baas IDE',
intro: 'Click to launch the Home tab that contains links, tips, and shortcuts..', intro: '在这里你可以进行合约编辑、部署、调试。',
element: document.querySelector('#verticalIconsHomeIcon'), element: document.querySelector('#verticalIconsHomeIcon'),
tooltipClass: 'bg-light text-dark', tooltipClass: 'bg-light text-dark',
position: 'right' position: 'right'
}, },
{ {
element: document.querySelector('#compileIcons'), element: document.querySelector('#compileIcons'),
title: 'Solidity Compiler', title: 'Solidity 编译',
intro: 'Having selected a .sol file in the File Explorers (the icon above), compile it with the Solidity Compiler.', intro: '在文件资源管理器中选择了一个.sol文件(上面的图标),请使用solidity编译器编译它。',
tooltipClass: 'bg-light text-dark', tooltipClass: 'bg-light text-dark',
position: 'right' position: 'right'
}, },
{ {
title: 'Deploy your contract', title: '部署你的合约',
element: document.querySelector('#runIcons'), element: document.querySelector('#runIcons'),
intro: 'Choose a chain, deploy a contract and play with your functions.', intro: '选择链,部署合约并执行方法。',
tooltipClass: 'bg-light text-dark', tooltipClass: 'bg-light text-dark',
position: 'right' position: 'right'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment