From 21f1abc6e954b4ccc10c80b43815c6442894d64e Mon Sep 17 00:00:00 2001 From: Gk40002148 Date: Mon, 11 Apr 2022 14:43:44 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E3=82=BB=E3=83=83=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E6=83=85=E5=A0=B1=E5=8F=96=E5=BE=97API=20=E3=83=AC?= =?UTF-8?q?=E3=82=B9=E3=83=9D=E3=83=B3=E3=82=B9=E9=A0=85=E7=9B=AE=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AgileWorks/Common/Entity/SessionInfo.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/AgileWorks/Common/Entity/SessionInfo.swift b/AgileWorks/Common/Entity/SessionInfo.swift index e893984..695a4e8 100644 --- a/AgileWorks/Common/Entity/SessionInfo.swift +++ b/AgileWorks/Common/Entity/SessionInfo.swift @@ -12,6 +12,7 @@ struct User: Codable { let code: String let name: String let loginId: String? + let displayLanguage: String } struct Unit: Codable { -- GitLab From a5d12eb16ac23cdc2255e5a37a3dd6989f62bf55 Mon Sep 17 00:00:00 2001 From: Gk40002148 Date: Mon, 11 Apr 2022 16:21:06 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E7=94=BB=E9=9D=A2=E3=82=88=E3=82=8A=E8=A8=80=E8=AA=9E=E9=81=B8?= =?UTF-8?q?=E6=8A=9E=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Login/Presenter/LoginPresenter.swift | 2 +- .../Login/View/LoginViewController.storyboard | 116 ++++---------- .../Login/View/LoginViewController.swift | 144 ++++-------------- .../Common/Utility/StringsUtility.swift | 16 -- 4 files changed, 60 insertions(+), 218 deletions(-) diff --git a/AgileWorks/AgileWorks/Login/Presenter/LoginPresenter.swift b/AgileWorks/AgileWorks/Login/Presenter/LoginPresenter.swift index 65f1984..4b67173 100644 --- a/AgileWorks/AgileWorks/Login/Presenter/LoginPresenter.swift +++ b/AgileWorks/AgileWorks/Login/Presenter/LoginPresenter.swift @@ -36,7 +36,7 @@ extension LoginPresenterImpl: LoginPresenter { let oauth = OAuthService() oauth.viewController = view - oauth.fetch() { result in + oauth.fetch { result in switch result { case .success: // 前回ログアウト時にオフラインだった等の理由で以前ログインしていた時に diff --git a/AgileWorks/AgileWorks/Login/View/LoginViewController.storyboard b/AgileWorks/AgileWorks/Login/View/LoginViewController.storyboard index 0fa79b3..ae4f5c3 100644 --- a/AgileWorks/AgileWorks/Login/View/LoginViewController.storyboard +++ b/AgileWorks/AgileWorks/Login/View/LoginViewController.storyboard @@ -1,9 +1,9 @@ - - + + - + @@ -15,74 +15,24 @@ - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - - + + -