From 1457f9098e68470df4f18ab86799ccb04eb8ea81 Mon Sep 17 00:00:00 2001 From: dongrui <38676269+whDongRui@users.noreply.github.com> Date: Fri, 28 Sep 2018 11:11:18 +0800 Subject: [PATCH] fix: Modify repo query for public (#414) * fix: Admin view different app detail page * fix: Deploy page query runtimes bug * fix: Repo modify page s3 submit bug --- src/index.js | 3 ++ src/pages/Admin/Apps/Add/RepoList/index.jsx | 2 +- src/pages/Admin/Apps/Add/index.jsx | 11 ++++--- .../Admin/Apps/Detail/DetailBlock/index.jsx | 2 +- src/pages/Admin/Apps/Review/index.jsx | 20 +++++-------- src/pages/Admin/Apps/index.jsx | 20 +++++++------ src/pages/Admin/Categories/Detail/index.jsx | 2 +- src/pages/Admin/Repos/Add/index.jsx | 6 ++-- src/pages/Admin/Repos/index.jsx | 11 +++++-- src/pages/AppDetail/index.jsx | 4 ++- src/pages/Profile/index.jsx | 2 +- src/stores/RootStore.js | 1 + src/stores/UserStore.js | 10 +++++++ src/stores/repo/create.js | 30 +++++-------------- src/stores/repo/index.js | 13 +++++++- src/stores/runtime/create.js | 8 +---- 16 files changed, 77 insertions(+), 68 deletions(-) diff --git a/src/index.js b/src/index.js index 3c9d159a..aaa0f4cf 100644 --- a/src/index.js +++ b/src/index.js @@ -18,6 +18,9 @@ store.registerStores(); if (typeof window !== 'undefined') { const AppWithRouter = withRouter(App); + try { + store.loginUser = JSON.parse(getCookie('loginUser') || '{}'); + } catch (err) {} import('./routes').then(({ default: routes }) => { let sc = null; diff --git a/src/pages/Admin/Apps/Add/RepoList/index.jsx b/src/pages/Admin/Apps/Add/RepoList/index.jsx index fb3f2bac..13877586 100644 --- a/src/pages/Admin/Apps/Add/RepoList/index.jsx +++ b/src/pages/Admin/Apps/Add/RepoList/index.jsx @@ -27,7 +27,7 @@ export default class RepoList extends PureComponent { return (
-
{capitalize(type)}
+
{t(capitalize(type))}