Skip to content

Commit

Permalink
Merge 360208b into b553ace
Browse files Browse the repository at this point in the history
  • Loading branch information
asitu committed Jun 29, 2018
2 parents b553ace + 360208b commit cbc6c1c
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 5 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
1 change: 0 additions & 1 deletion daemon/web/actions/login.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('login action fired!');
dispatch({
type: TEST_LOGIN_ACTION,
payload,
Expand Down
1 change: 0 additions & 1 deletion daemon/web/actions/main.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('main action fired!');
dispatch({
type: TEST_MAIN_ACTION,
payload,
Expand Down
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
5 changes: 4 additions & 1 deletion daemon/web/pages/containers/Containers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
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 +23,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: 2 additions & 0 deletions daemon/web/pages/login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class LoginWrapper extends React.Component {

async handleLoginSubmit() {
// TODO: disable authentication until we get it working
/* eslint-disable no-console */
console.log(this.state.username, this.state.password);
/* eslint-enable no-console */
this.props.testAction();
// const response = await InertiaAPI.login(
// this.state.username,
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

0 comments on commit cbc6c1c

Please sign in to comment.