Skip to content

Commit

Permalink
Merge pull request #22 from hanbyul-here/hanb/arrange
Browse files Browse the repository at this point in the history
update/refactor components
  • Loading branch information
Hanbyul Jo committed Nov 16, 2016
2 parents e6e6c4f + 6200e66 commit bb2aa4b
Show file tree
Hide file tree
Showing 57 changed files with 882 additions and 1,860 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
@@ -0,0 +1,3 @@
app/libs/*
app/scss/*
app/Components/TileExporter/MapSpells.js
18 changes: 18 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,18 @@
module.exports = {
"env": {
"browser": true,
"es6": true
},
"plugins": ["react", "import"],
"extends": ["airbnb", "plugin:import/errors", "plugin:import/warnings"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"comma-dangle": ["error", "never"],
"no-underscore-dangle": 0
}
};
38 changes: 0 additions & 38 deletions app/App.js

This file was deleted.

31 changes: 31 additions & 0 deletions app/App.jsx
@@ -0,0 +1,31 @@
import React from 'react';
import { render } from 'react-dom';

import Keys from './Keys';
import SearchBox from './Components/Search/SearchBox';

import TileExporter from './Components/TileExporter/Exporter';

require('./scss/main.scss');

// Tile Exporter is not written as React Component
const exporter = new TileExporter();
exporter.attachEvents();

const searchConfig = {
placeholder: 'Search address or or place',
childClass: 'searchBox',
key: Keys.search
};

function SearchBoxWrapper() {
return (
<div className="row">
<div className="col-md-12">
<SearchBox config={searchConfig} />
</div>
</div>
);
}

render(<SearchBoxWrapper />, document.getElementById('search-bar'));
11 changes: 0 additions & 11 deletions app/Components/Search/CancelButton.js

This file was deleted.

0 comments on commit bb2aa4b

Please sign in to comment.