mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
Switching back to FINN styling.
This commit is contained in:
parent
5f37d6bf16
commit
34fa266bef
@ -1,7 +0,0 @@
|
|||||||
.new-feature-form {
|
|
||||||
padding: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-family: HelveticaNeueLight, HelveticaNeue-Light, 'Helvetica Neue Light', HelveticaNeue, 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
|
||||||
}
|
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Unleash</title>
|
<title>unleash admin</title>
|
||||||
<meta name="description" content="unleash">
|
<meta name="description" content="unleash">
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
<link rel="stylesheet" href="//finncdn.no/bb/css/so/5.5.28/so.min.css">
|
||||||
<link rel="stylesheet" href="css/unleash.css">
|
<link rel="stylesheet" href="css/unleash.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -7,15 +7,32 @@ var ErrorMessages = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
var errorNodes = this.props.errors.map(function(e) {
|
var errorNodes = this.props.errors.map(function(e) {
|
||||||
return (<li key={e}>{e}</li>);
|
return (<li key={e} className="largetext">{e}</li>);
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="alert alert-danger" role="alert">
|
<div className="container">
|
||||||
<ul>{errorNodes}</ul>
|
<div className="mod shadow mtm">
|
||||||
|
<div className="inner bg-red-lt">
|
||||||
|
<div className="bd">
|
||||||
|
<div className="media centerify">
|
||||||
|
<div className="imgExt">
|
||||||
|
<a
|
||||||
|
onClick={this.props.onClearErrors}
|
||||||
|
className="icon-kryss1 linkblock sharp">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div className="bd">
|
||||||
|
<ul>{errorNodes}</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = ErrorMessages;
|
module.exports = ErrorMessages;
|
||||||
|
|
||||||
|
@ -28,22 +28,25 @@ var FeatureList = React.createClass({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<div className='panel panel-primary'>
|
<div className="mod shadow mts">
|
||||||
<div className='panel-heading'>
|
<div className="inner">
|
||||||
<h3 className='panel-title'>Features</h3>
|
<div className="bd">
|
||||||
<div className='text-right'>
|
<div className="line">
|
||||||
<button type="button"
|
<div className="unit r-size1of4">
|
||||||
className="btn btn-default btn-sm"
|
<h2>Features</h2>
|
||||||
onClick={this.props.onNewFeature}>
|
</div>
|
||||||
<span className="glyphicon glyphicon-plus"></span> New
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className='panel-body'>
|
<div className="unit r-size3of4 rightify prl ptm">
|
||||||
{featureNodes}
|
<button className="" onClick={this.props.onNewFeature}>New</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
{featureNodes}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2,11 +2,54 @@ var React = require('react');
|
|||||||
|
|
||||||
var Menu = React.createClass({
|
var Menu = React.createClass({
|
||||||
render: function() { return (
|
render: function() { return (
|
||||||
<nav className='navbar navbar-default' role='navigation'>
|
<div className="topbar mbl">
|
||||||
<div className='container'>
|
<div className="container">
|
||||||
<a className='navbar-brand' href='#'>unleash admin</a>
|
<div className="page">
|
||||||
|
<div className="nav-level1 h4">
|
||||||
|
<a href="" className="homelink pln">
|
||||||
|
<span className="topbar-nav-svg-home">
|
||||||
|
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53M
|
||||||
|
y5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MjcuNDExIiBoZWlnaHQ9IjE2OS4z
|
||||||
|
OTgiIHZpZXdCb3g9IjAgMCA1MjcuNDExIDE2OS4zOTgiPjxwYXRoIGZpbGw
|
||||||
|
9IiNmZmYiIGQ9Ik00NjguNTA3IDBoLTI1Ni4xODdjLTIxLjcwNyAwLTQwLj
|
||||||
|
Y5NSAxMS44MTItNTAuOTEyIDI5LjMzNy0xMC4yMTYtMTcuNTI1LTI5LjIwN
|
||||||
|
C0yOS4zMzctNTAuOTExLTI5LjMzN2gtNTEuNTk1Yy0zMi40NzkgMC01OC45
|
||||||
|
MDIgMjYuNDI1LTU4LjkwMiA1OC45MDV2NTEuNTg3YzAgMzIuNDgxIDI2LjQ
|
||||||
|
yMyA1OC45MDYgNTguOTAyIDU4LjkwNmg0MDkuNjA1YzMyLjQ3OSAwIDU4Lj
|
||||||
|
kwMy0yNi40MjUgNTguOTAzLTU4LjkwNnYtNTEuNTg3Yy4wMDEtMzIuNDgtM
|
||||||
|
jYuNDIzLTU4LjkwNS01OC45MDMtNTguOTA1eiIvPjxwYXRoIGZpbGw9IiMw
|
||||||
|
OWYiIGQ9Ik00NjguNTA3IDE1My4zODNjMjMuNjg3IDAgNDIuODg4LTE5LjE
|
||||||
|
5OSA0Mi44ODgtNDIuODl2LTUxLjU4OGMwLTIzLjY5MS0xOS4yMDEtNDIuOD
|
||||||
|
ktNDIuODg4LTQyLjg5aC0yNTYuMTg3Yy0yMy42ODYgMC00Mi44ODcgMTkuM
|
||||||
|
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45OTZjMC01LjUyNy0zLjgxNS0xMS4wMDQ
|
||||||
|
tMTMuMDctMTEuMDA0aC0zOS44MjNsLS4wMSA1M2gxOS42MzN2LTM3LjM4N3
|
||||||
|
oiLz48L3N2Zz4%3D" width="106" height="34" />
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span
|
||||||
|
className="topbar-nav-svg-caption caption showbydefault hide-lt900">
|
||||||
|
unleash admin
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -11,17 +11,16 @@ var SavedFeature = React.createClass({
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div className='row'>
|
<div className='line mal'>
|
||||||
<div className='col-md-1 text-right'>
|
<div className='unit r-size1of6'>
|
||||||
<input
|
<input type='checkbox' checked={this.props.feature.enabled} onChange={this.onChange} />
|
||||||
type='checkbox'
|
|
||||||
checked={this.props.feature.enabled}
|
|
||||||
onChange={this.onChange} />
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
className='col-md-4'
|
<div className='unit r-size2of5' title={this.props.feature.description}>
|
||||||
title='{this.props.feature.description}'>{this.props.feature.name}</div>
|
{this.props.feature.name}
|
||||||
<div className='col-md-2 col-md-offset-5'>
|
</div>
|
||||||
|
|
||||||
|
<div className='unit '>
|
||||||
{this.props.feature.strategy}
|
{this.props.feature.strategy}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -111,11 +111,17 @@ var Unleash = React.createClass({
|
|||||||
this.setState({unsavedFeatures: unsaved});
|
this.setState({unsavedFeatures: unsaved});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clearErrors: function() {
|
||||||
|
this.setState({errors: []});
|
||||||
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Menu />
|
<Menu />
|
||||||
<ErrorMessages errors={this.state.errors} />
|
<ErrorMessages
|
||||||
|
errors={this.state.errors}
|
||||||
|
onClearErrors={this.clearErrors} />
|
||||||
<FeatureList
|
<FeatureList
|
||||||
unsavedFeatures={this.state.unsavedFeatures}
|
unsavedFeatures={this.state.unsavedFeatures}
|
||||||
savedFeatures={this.state.savedFeatures}
|
savedFeatures={this.state.savedFeatures}
|
||||||
|
@ -3,28 +3,29 @@ var React = require('react');
|
|||||||
var UnsavedFeature = React.createClass({
|
var UnsavedFeature = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div className="bg-info new-feature-form row">
|
<form ref="form" className="bg-blue-xlt">
|
||||||
<form className="form-inline" role="form" ref="form">
|
<div className="line mal ptl pbl">
|
||||||
<div className="checkbox col-md-1 text-right">
|
|
||||||
|
<div className="unit prl r-size1of6">
|
||||||
<input ref="enabled" type="checkbox" defaultValue={this.props.feature.enabled} />
|
<input ref="enabled" type="checkbox" defaultValue={this.props.feature.enabled} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group col-md-4">
|
<div className="unit r-size2of5">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
className="form-control"
|
className="mbs"
|
||||||
id="name"
|
id="name"
|
||||||
ref="name"
|
ref="name"
|
||||||
defaultValue={this.props.feature.name}
|
defaultValue={this.props.feature.name}
|
||||||
placeholder="Enter name" />
|
placeholder="Enter name" />
|
||||||
|
|
||||||
<input className="form-control"
|
<input className=""
|
||||||
type="text"
|
type="text"
|
||||||
ref="description"
|
ref="description"
|
||||||
placeholder="Enter description" />
|
placeholder="Enter description" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group col-md-1 col-md-offset-5">
|
<div className="unit r-size2of6 plm">
|
||||||
<select id="strategy"
|
<select id="strategy"
|
||||||
ref="strategy"
|
ref="strategy"
|
||||||
className=""
|
className=""
|
||||||
@ -33,18 +34,17 @@ var UnsavedFeature = React.createClass({
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group col-md-1">
|
<div className="unit r-size1of6 rightify">
|
||||||
<button className="btn btn-primary btn-xs" onClick={this.saveFeature}>
|
<button className="primary mrs" onClick={this.saveFeature}>
|
||||||
Save
|
Save
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button className="btn btn-xs" onClick={this.cancelFeature}>
|
<button className="" onClick={this.cancelFeature}>
|
||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -18,7 +18,10 @@ if(app.get('env') === 'development') {
|
|||||||
webpackDevMiddleware = require('webpack-dev-middleware'),
|
webpackDevMiddleware = require('webpack-dev-middleware'),
|
||||||
webpackConfig = require('./webpack.config'),
|
webpackConfig = require('./webpack.config'),
|
||||||
compiler = webpack(webpackConfig),
|
compiler = webpack(webpackConfig),
|
||||||
config = { publicPath: '/js' };
|
config = {
|
||||||
|
publicPath: '/js',
|
||||||
|
noInfo: true
|
||||||
|
};
|
||||||
|
|
||||||
app.use(baseUriPath, webpackDevMiddleware(compiler, config));
|
app.use(baseUriPath, webpackDevMiddleware(compiler, config));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user