From 8ca648ec9d599563fc1049b0d526285195fbcac6 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 24 Feb 2019 16:54:51 -0500 Subject: [PATCH] key details --- api/controllers/PublishKeyController.js | 2 +- assets/js/admin.js | 4 ++-- assets/js/index.js | 2 +- assets/styles/admin.scss | 6 +++++- assets/styles/shared/listitem.scss | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/api/controllers/PublishKeyController.js b/api/controllers/PublishKeyController.js index e291170..f47e17b 100644 --- a/api/controllers/PublishKeyController.js +++ b/api/controllers/PublishKeyController.js @@ -4,7 +4,7 @@ module.exports = { create: async function (req, res) { try { 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({ user: req.user.id, diff --git a/assets/js/admin.js b/assets/js/admin.js index ec62d9b..592253d 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -51,7 +51,7 @@ class App extends React.Component { getRegisteredUsers () { return this.state.users.map(user => { return ( -
  • +
  • {user.email} @@ -69,7 +69,7 @@ class App extends React.Component { getRegisteredPublishers () { return this.state.publishers.map(pub => { return ( -
  • +
  • {pub.url}{pub.appid} {pub.user.email} diff --git a/assets/js/index.js b/assets/js/index.js index 48cb1cd..e970bc8 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -185,7 +185,7 @@ class App extends React.Component {
    )} /> - } /> + } /> diff --git a/assets/styles/admin.scss b/assets/styles/admin.scss index 76c3a70..9550c84 100644 --- a/assets/styles/admin.scss +++ b/assets/styles/admin.scss @@ -1,11 +1,14 @@ @import 'index'; +@import 'shared/listitem'; .admin-container { .list { li { padding: 5px 0; height: 50px; - line-height: 40px; + min-height: 50px; + line-height: 50px; + padding: 0 14px; .stack { line-height: 20px; @@ -16,6 +19,7 @@ line-height: 40px; margin-right: 14px; cursor: pointer; + user-select: none; } input.checkbox[type=checkbox] { display: none; diff --git a/assets/styles/shared/listitem.scss b/assets/styles/shared/listitem.scss index 2072486..05b0ff7 100644 --- a/assets/styles/shared/listitem.scss +++ b/assets/styles/shared/listitem.scss @@ -43,7 +43,7 @@ line-height: 25px; padding: 5px 0; - span { + > span { display: inline-block; width: 100%; }