From 2b3207ec44a67d3b01a5719c05409c2beeeaa583 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Mon, 1 Aug 2016 12:01:11 +0200 Subject: [PATCH] Better responsive sidebar Also fix a i18n missing string and add some `role` attributes for accessibility. --- app/actions/auth.js | 2 +- app/components/Login.jsx | 4 +- app/components/elements/FilterBar.jsx | 2 +- app/components/elements/Pagination.jsx | 10 ++-- app/components/layouts/Sidebar.jsx | 10 +++- app/dist/fix.ie9.js.map | 2 +- app/dist/index.js | 48 +++++++++---------- app/dist/index.js.map | 2 +- app/dist/style.css | 2 +- app/locales/en-US/index.js | 1 + app/locales/fr-FR/index.js | 1 + .../messagesDescriptors/layouts/Sidebar.js | 5 ++ app/middleware/api.js | 2 +- app/styles/layouts/Sidebar.scss | 44 ++++++++++++++++- 14 files changed, 95 insertions(+), 40 deletions(-) diff --git a/app/actions/auth.js b/app/actions/auth.js index 2d6e884..e9d10ed 100644 --- a/app/actions/auth.js +++ b/app/actions/auth.js @@ -130,7 +130,7 @@ export function loginUser(username, passwordOrToken, endpoint, rememberMe, redir // Remember me connection if (passwordOrToken.expires < new Date()) { // Token has expired - return loginUserFailure("Your session expired… =("); + return loginUserFailure("app.login.expired"); } time = Math.floor(Date.now() / 1000); passphrase = passwordOrToken.token; diff --git a/app/components/Login.jsx b/app/components/Login.jsx index 0de28fa..6fd71cb 100644 --- a/app/components/Login.jsx +++ b/app/components/Login.jsx @@ -77,7 +77,7 @@ class LoginFormCSSIntl extends Component { { this.props.error ?
-
+