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
c2e066d0
Commit
c2e066d0
authored
Feb 23, 2017
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename .browser-solidity.json to .remix.config
parent
0ec2035b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
config.js
src/app/config.js
+1
-1
files.js
src/app/files.js
+9
-4
No files found.
src/app/config.js
View file @
c2e066d0
'use strict'
'use strict'
var
CONFIG_FILE
=
'.
browser-solidity.json
'
var
CONFIG_FILE
=
'.
remix.config
'
function
Config
(
storage
)
{
function
Config
(
storage
)
{
this
.
items
=
{}
this
.
items
=
{}
...
...
src/app/files.js
View file @
c2e066d0
...
@@ -9,7 +9,7 @@ function Files (storage) {
...
@@ -9,7 +9,7 @@ function Files (storage) {
this
.
exists
=
function
(
path
)
{
this
.
exists
=
function
(
path
)
{
// NOTE: ignore the config file
// NOTE: ignore the config file
if
(
path
===
'.
browser-solidity.json
'
)
{
if
(
path
===
'.
remix.config
'
)
{
return
false
return
false
}
}
...
@@ -18,7 +18,7 @@ function Files (storage) {
...
@@ -18,7 +18,7 @@ function Files (storage) {
this
.
get
=
function
(
path
)
{
this
.
get
=
function
(
path
)
{
// NOTE: ignore the config file
// NOTE: ignore the config file
if
(
path
===
'.
browser-solidity.json
'
)
{
if
(
path
===
'.
remix.config
'
)
{
return
null
return
null
}
}
...
@@ -27,7 +27,7 @@ function Files (storage) {
...
@@ -27,7 +27,7 @@ function Files (storage) {
this
.
set
=
function
(
path
,
content
)
{
this
.
set
=
function
(
path
,
content
)
{
// NOTE: ignore the config file
// NOTE: ignore the config file
if
(
path
===
'.
browser-solidity.json
'
)
{
if
(
path
===
'.
remix.config
'
)
{
return
false
return
false
}
}
...
@@ -94,7 +94,7 @@ function Files (storage) {
...
@@ -94,7 +94,7 @@ function Files (storage) {
// add r/w files to the list
// add r/w files to the list
storage
.
keys
().
forEach
(
function
(
path
)
{
storage
.
keys
().
forEach
(
function
(
path
)
{
// NOTE: as a temporary measure do not show the config file
// NOTE: as a temporary measure do not show the config file
if
(
path
!==
'.
browser-solidity.json
'
)
{
if
(
path
!==
'.
remix.config
'
)
{
files
[
path
]
=
false
files
[
path
]
=
false
}
}
})
})
...
@@ -106,6 +106,11 @@ function Files (storage) {
...
@@ -106,6 +106,11 @@ function Files (storage) {
return
files
return
files
}
}
// rename .browser-solidity.json to .remix.config
if
(
this
.
exists
(
'.browser-solidity.json'
))
{
this
.
rename
(
'.browser-solidity.json'
,
'.remix.config'
)
}
}
}
module
.
exports
=
Files
module
.
exports
=
Files
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