key details

pull/41/head
unknown 2019-02-24 16:54:51 -05:00
parent 0481099098
commit 8ca648ec9d
5 changed files with 10 additions and 6 deletions

View File

@ -4,7 +4,7 @@ module.exports = {
create: async function (req, res) { create: async function (req, res) {
try { try {
const url = req.param('url') const url = req.param('url')
if (!url.length) throw new Error('URL cannot be blank') if (!url.length) throw new Error('Name cannot be blank')
const created = await PublishKey.create({ const created = await PublishKey.create({
user: req.user.id, user: req.user.id,

View File

@ -51,7 +51,7 @@ class App extends React.Component {
getRegisteredUsers () { getRegisteredUsers () {
return this.state.users.map(user => { return this.state.users.map(user => {
return ( return (
<li className='flex-container' key={`is-admin-${user.id}`}> <li className='uri-list-item flex-container' key={`is-admin-${user.id}`}>
<span className='flex'>{user.email}</span> <span className='flex'>{user.email}</span>
<span className='flex'> <span className='flex'>
<label for={`is-admin-${user.id}`} className='cb-label'>Admin?</label> <label for={`is-admin-${user.id}`} className='cb-label'>Admin?</label>
@ -69,7 +69,7 @@ class App extends React.Component {
getRegisteredPublishers () { getRegisteredPublishers () {
return this.state.publishers.map(pub => { return this.state.publishers.map(pub => {
return ( return (
<li className='flex-container' key={`is-whitelisted-${pub.id}`}> <li className='uri-list-item flex-container' key={`is-whitelisted-${pub.id}`}>
<div className='stack flex flex-container flex-vertical'> <div className='stack flex flex-container flex-vertical'>
<span className='flex'><span className='name'>{pub.url}</span><span className='appid'>{pub.appid}</span></span> <span className='flex'><span className='name'>{pub.url}</span><span className='appid'>{pub.appid}</span></span>
<span className='flex'>{pub.user.email}</span> <span className='flex'>{pub.user.email}</span>

View File

@ -185,7 +185,7 @@ class App extends React.Component {
</div> </div>
)} /> )} />
<Route path='/' render={() => <Redirect to='/targets' />} /> <Route path='/' render={() => <Redirect to='/keys' />} />
</Switch> </Switch>
</section> </section>
</div> </div>

View File

@ -1,11 +1,14 @@
@import 'index'; @import 'index';
@import 'shared/listitem';
.admin-container { .admin-container {
.list { .list {
li { li {
padding: 5px 0; padding: 5px 0;
height: 50px; height: 50px;
line-height: 40px; min-height: 50px;
line-height: 50px;
padding: 0 14px;
.stack { .stack {
line-height: 20px; line-height: 20px;
@ -16,6 +19,7 @@
line-height: 40px; line-height: 40px;
margin-right: 14px; margin-right: 14px;
cursor: pointer; cursor: pointer;
user-select: none;
} }
input.checkbox[type=checkbox] { input.checkbox[type=checkbox] {
display: none; display: none;

View File

@ -43,7 +43,7 @@
line-height: 25px; line-height: 25px;
padding: 5px 0; padding: 5px 0;
span { > span {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
} }