Skip to content

Commit

Permalink
Merge 0ce1433 into b553ace
Browse files Browse the repository at this point in the history
  • Loading branch information
asitu committed Jun 29, 2018
2 parents b553ace + 0ce1433 commit 32233a4
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 7 deletions.
1 change: 0 additions & 1 deletion daemon/web/actions/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {

export const testAction = payload => (dispatch) => {
// remove later
console.log('dashboard action fired!');
dispatch({
type: TEST_DASHBOARD_ACTION,
payload,
Expand Down
2 changes: 1 addition & 1 deletion daemon/web/actions/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export const testAction = payload => (dispatch) => {
type: TEST_LOGIN_ACTION,
payload,
});
};
};
24 changes: 24 additions & 0 deletions daemon/web/components/IconHeader/IconHeader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import PropTypes from 'prop-types';
import './index.sass';

const icons = {
dashboard: <i className="fas fa-th-large" />,
containers: <i className="fas fa-database fa-lg" />,
team: <i className="fas fa-users" />,
settings: <i className="fas fa-cog" />,
};

const IconHeader = ({ title, type }) => (
<div className="iconheader">
{icons[type]}
<h1 className="header">{title}</h1>
</div>
);

IconHeader.propTypes = {
title: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
};

export default IconHeader;
13 changes: 13 additions & 0 deletions daemon/web/components/IconHeader/index.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@import '../../styles/index'

.header
color: $grey
display: inline
margin-left: 10px;
font-weight: bold;

i
color: $grey

.iconheader
margin: 30px 0 30px 40px
2 changes: 2 additions & 0 deletions daemon/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<title>Inertia Web</title>
</head>

Expand Down
4 changes: 3 additions & 1 deletion daemon/web/pages/containers/Containers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { connect } from 'react-redux';
import TerminalView from '../../components/TerminalView/TerminalView';
import IconHeader from '../../components/IconHeader/IconHeader';

const mocklogs = [
'log1asdasdasdasdasdasdasdssdasdasdssdasdasdssdasdasdssdasdasdsa',
Expand All @@ -21,7 +22,8 @@ class ContainersWrapper extends React.Component {
render() {
return (
<div>
<h1>Hello!</h1>
<IconHeader type="containers" title="/inertia-deploy-test_dev_1" />
<div className="containerInfo" />
<TerminalView logs={mocklogs} />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion daemon/web/styles/typography.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

h1
font-family: Rubik
font-size: 16px
font-size: 24px
font-weight: 500
letter-spacing: 1px
color: $grey
Expand Down
6 changes: 3 additions & 3 deletions daemon/web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const config = {
inline: true,
contentBase: './public',
publicPath: '/web/',
proxy: {
'/': { target: 'https://127.0.0.1:4303', secure: false },
},
// proxy: {
// '/': { target: 'https://127.0.0.1:4303', secure: false },
// },
},
devtool: 'inline-source-map',
module: {
Expand Down

0 comments on commit 32233a4

Please sign in to comment.