-
API access
-
+
+ API access
+
Create API tokens to hack on your Atlas.
- Learn more in API documentation.
-
+ Learn more in
API documentation.
+
{this.store.apiKeys &&
-
+
{this.store.apiKeys &&
this.store.apiKeys.map(key => (
@@ -70,21 +69,18 @@ import PageTitle from 'components/PageTitle';
/>
))}
-
}
-
-
-
-
-
-
+
}
+
+
+
);
}
}
@@ -148,4 +144,18 @@ class InlineForm extends React.Component {
}
}
+const Section = styled.div`
+ margin-bottom: 40px;
+`;
+
+const Table = styled.table`
+ margin-bottom: 20px;
+ width: 100%;
+
+ td {
+ margin-right: 20px;
+ color: ${color.slate};
+ }
+`;
+
export default Settings;
diff --git a/frontend/scenes/Settings/Settings.scss b/frontend/scenes/Settings/Settings.scss
deleted file mode 100644
index 20a48ff8..00000000
--- a/frontend/scenes/Settings/Settings.scss
+++ /dev/null
@@ -1,19 +0,0 @@
-@import '~styles/constants.scss';
-
-.section {
- margin-bottom: 40px;
-}
-
-.sectionHeader {
- border-bottom: 1px solid #eee;
-}
-
-.apiKeyTable {
- margin-bottom: 20px;
- width: 100%;
-
- td {
- margin-right: 20px;
- color: #969696;
- }
-}
diff --git a/package.json b/package.json
index 98c1f5b9..52833a1b 100644
--- a/package.json
+++ b/package.json
@@ -9,9 +9,9 @@
"build": "npm run clean && npm run build:webpack",
"start": "node index.js",
"dev": "NODE_ENV=development DEBUG=sql,cache,presenters ./node_modules/.bin/nodemon --watch server index.js",
- "lint": "npm run lint:js && npm run lint:flow",
+ "lint": "npm run lint:flow && npm run lint:js",
"lint:js": "eslint frontend",
- "lint:flow": "flow check",
+ "lint:flow": "flow",
"deploy": "git push heroku master",
"heroku-postbuild": "npm run build && npm run sequelize:migrate",
"sequelize:create-migration": "sequelize migration:create",
@@ -22,35 +22,19 @@
"precommit": "lint-staged"
},
"lint-staged": {
- "*.js": [
- "eslint --fix",
- "git add"
- ]
+ "*.js": ["eslint --fix", "git add"]
},
"jest": {
"verbose": false,
- "roots": [
- "frontend"
- ],
+ "roots": ["frontend"],
"moduleNameMapper": {
"^.*[.](s?css|css)$": "
/__mocks__/styleMock.js",
"^.*[.](gif|ttf|eot|svg)$": "/__test__/fileMock.js"
},
- "moduleFileExtensions": [
- "js",
- "jsx",
- "json"
- ],
- "moduleDirectories": [
- "node_modules"
- ],
- "modulePaths": [
- "frontend"
- ],
- "setupFiles": [
- "/setupJest.js",
- "/__mocks__/window.js"
- ]
+ "moduleFileExtensions": ["js", "jsx", "json"],
+ "moduleDirectories": ["node_modules"],
+ "modulePaths": ["frontend"],
+ "setupFiles": ["/setupJest.js", "/__mocks__/window.js"]
},
"engines": {
"node": ">= 7.6"