Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
afd49521
Commit
afd49521
authored
Nov 29, 2021
by
gxkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 中文
parent
ad20a1c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
app.js
apps/remix-ide/src/app.js
+3
-3
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+1
-1
walkthroughService.js
apps/remix-ide/src/walkthroughService.js
+8
-5
No files found.
apps/remix-ide/src/app.js
View file @
afd49521
...
...
@@ -305,7 +305,7 @@ class App {
const
networkModule
=
new
NetworkModule
(
blockchain
)
// ----------------- represent the current selected web3 provider ----
const
web3Provider
=
new
Web3ProviderModule
(
blockchain
)
const
hardhatProvider
=
new
HardhatProvider
(
blockchain
)
//
const hardhatProvider = new HardhatProvider(blockchain)
// ----------------- convert offset to line/column service -----------
const
offsetToLineColumnConverter
=
new
OffsetToLineColumnConverter
()
registry
.
put
({
api
:
offsetToLineColumnConverter
,
name
:
'offsettolinecolumnconverter'
})
...
...
@@ -341,8 +341,8 @@ class App {
terminal
,
web3Provider
,
fetchAndCompile
,
dGitProvider
,
hardhatProvider
dGitProvider
//
hardhatProvider
])
// LAYOUT & SYSTEM VIEWS
...
...
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
afd49521
...
...
@@ -467,7 +467,7 @@ export class LandingPage extends ViewPlugin {
// to retrieve medium posts
// document.body.appendChild(yo`<script src="https://www.twilik.com/assets/retainable/rss-embed/retainable-rss-embed.js"></script>`)
const
container
=
yo
`
<div class='p-4'>
Welcome to
Baas IDE</div>
<div class='p-4'>
欢迎来到
Baas IDE</div>
`
return
container
...
...
apps/remix-ide/src/walkthroughService.js
View file @
afd49521
...
...
@@ -6,12 +6,15 @@ export class WalkthroughService {
}
start
(
params
)
{
if
(
!
session
Storage
.
getItem
(
'hadTour_initial'
))
{
if
(
!
local
Storage
.
getItem
(
'hadTour_initial'
))
{
introJs
().
setOptions
({
nextLabel
:
'下一步'
,
prevLabel
:
'上一步'
,
doneLabel
:
'完成'
,
steps
:
[{
title
:
'
欢迎来到 Baas IDE
'
,
intro
:
'在这里你可以进行合约编辑
、部署、调试
。'
,
element
:
document
.
querySelector
(
'#
verticalIconsHomeIcon
'
),
title
:
'
文件资源管理器
'
,
intro
:
'在这里你可以进行合约编辑。'
,
element
:
document
.
querySelector
(
'#
fileExplorerIcons
'
),
tooltipClass
:
'bg-light text-dark'
,
position
:
'right'
},
...
...
@@ -45,7 +48,7 @@ export class WalkthroughService {
skipbutton
.
id
=
'remixTourSkipbtn'
}
}).
start
()
session
Storage
.
setItem
(
'hadTour_initial'
,
true
)
local
Storage
.
setItem
(
'hadTour_initial'
,
true
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment