Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2.0.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yago committed May 7, 2018
2 parents 67054ea + f83ad33 commit 92043ed
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 23 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

*2.0.10* (2018-05-07)
- 🐛 lint and fix infinite doc loop (6a6620c)

*2.0.9* (2018-04-05)
- 📦 fix component wrapping class pattern (cdbef50)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.9
2.0.10
4 changes: 2 additions & 2 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"main.css": "static/css/main.3c8f75da.css",
"main.css.map": "static/css/main.3c8f75da.css.map",
"main.js": "static/js/main.1c3a092f.js",
"main.js.map": "static/js/main.1c3a092f.js.map"
"main.js": "static/js/main.9ae05756.js",
"main.js.map": "static/js/main.9ae05756.js.map"
}
2 changes: 1 addition & 1 deletion build/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/static/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toolbox-reader",
"version": "2.0.9",
"version": "2.0.10",
"private": true,
"eslintConfig": {
"parser": "babel-eslint",
Expand Down
12 changes: 6 additions & 6 deletions src/components/App/Theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import styled from 'styled-components';

const config = window.theme || {};
const base = {
black: "#010a15",
white: "#fff",
primary: "#003baf",
secondary: "#3474a8",
grayLighter: "#f2f2f4",
alto: "#d8d8d8",
black: '#010a15',
white: '#fff',
primary: '#003baf',
secondary: '#3474a8',
grayLighter: '#f2f2f4',
alto: '#d8d8d8',
};

export const Theme = styled.div`
Expand Down
8 changes: 4 additions & 4 deletions src/epics/atomic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export function getComponentsEpic(action$) {
// Loop over each components
// eslint-disable-next-line no-param-reassign
payload[type] = payload[type].map((component, id) => {
const path = `components/${type}/${component}/`;
const config = yaml.load(`${path}/${component}.yml`);
const markup = `${path}${component}.twig`;
const path = `components/${type}/${component.name}/`;
const config = yaml.load(`${path}${component.name}.yml`);
const markup = `${path}${component.name}.twig`;

// format related variants collection
const variants = config && config.variants ? config.variants.map((item, i) => {
Expand All @@ -45,7 +45,7 @@ export function getComponentsEpic(action$) {
type,
parent_id: id,
parent: config.name,
markup: `${path}${(`${component}-${variant.name}`).toLowerCase()}.twig`,
markup: `${path}${(`${component.name}-${variant.name}`).toLowerCase()}.twig`,
};
}) : [];

Expand Down
10 changes: 6 additions & 4 deletions src/views/Doc/Doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ class Doc extends Component {
}

getContent(props) {
const homeFile = props.docs.docs_list.f && props.docs.docs_list.f.includes('index.md') ? 'index.md' : 'index.html';
const slug = props.match.params.slug || homeFile;
if (props.docs.current_doc.content.length <= 1) {
const homeFile = props.docs.docs_list.f && props.docs.docs_list.f.includes('index.md') ? 'index.md' : 'index.html';
const slug = props.match.params.slug || homeFile;

this.setState({ homeFile });
props.getDocContent(slug, props.navigation.base_url);
this.setState({ homeFile });
props.getDocContent(slug, props.navigation.base_url);
}
}

render() {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Single/Single.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from 'react';
import { Component } from 'react';

import './Single.css';

Expand Down

0 comments on commit 92043ed

Please sign in to comment.