Merge pull request #442 from ethereum/rename-config

Rename .browser-solidity.json to .remix.config
pull/1/head
Alex Beregszaszi 8 years ago committed by GitHub
commit 54779176d5
  1. 2
      src/app/config.js
  2. 13
      src/app/files.js

@ -1,6 +1,6 @@
'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 = {}

@ -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) {
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) {
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) {
// 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) {
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

Loading…
Cancel
Save