Skip to content

Commit ac9b19c

Browse files
committed
【修改信息】 Commit 支持查看
1 parent 5ddadba commit ac9b19c

File tree

20 files changed

+1016
-12
lines changed

20 files changed

+1016
-12
lines changed

ZLGitHubClient/Podfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ pod "SYDCentralPivot"
1818
pod 'ZLGithubOAuth', :git => 'https://github.com/ExistOrLive/ZLGithubOAuth.git', :tag => "1.3.1"
1919
#pod "ZLGithubOAuth", :path => '../../ZLGithubOAuth'
2020

21-
#pod 'ZLGitRemoteService', :git => 'https://github.com/ExistOrLive/ZLGitRemoteService.git', :tag => "1.7.1"
22-
pod "ZLGitRemoteService", :path => '../../ZLGitRemoteService'
21+
pod 'ZLGitRemoteService', :git => 'https://github.com/ExistOrLive/ZLGitRemoteService.git'
22+
#pod "ZLGitRemoteService", :path => '../../ZLGitRemoteService'
2323

2424
pod 'ZLBaseExtension', :git => "https://github.com/ExistOrLive/ZLBaseExtension.git", :tag => "1.3.0"
2525
# 'ZLBaseExtension', :path => "../../ZLBaseExtension"
2626

2727
pod 'ZLUIUtilities', :git => "https://github.com/ExistOrLive/ZLUIUtilities.git", :tag => "1.3.0"
2828
#pod 'ZLUIUtilities', :path => "../../ZLUIUtilities"
2929

30-
pod 'ZLUtilities', :path => '../../ZLUtilities'
31-
#pod 'ZLUtilities', :git => "https://github.com/ExistOrLive/ZLUtilities.git", :tag => "1.3.0"
30+
#pod 'ZLUtilities', :path => '../../ZLUtilities'
31+
pod 'ZLUtilities', :git => "https://github.com/ExistOrLive/ZLUtilities.git"
3232

3333
#pod 'ZMMVVM', :path => '../../ZMMVVM'
3434
pod 'ZMMVVM', :git => "https://github.com/ExistOrLive/ZMMVVM.git", :tag => "1.3.0"

ZLGitHubClient/Podfile.lock

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ DEPENDENCIES:
269269
- YYText
270270
- ZLBaseExtension (from `https://github.com/ExistOrLive/ZLBaseExtension.git`, tag `1.3.0`)
271271
- ZLGithubOAuth (from `https://github.com/ExistOrLive/ZLGithubOAuth.git`, tag `1.3.1`)
272-
- ZLGitRemoteService (from `../../ZLGitRemoteService`)
272+
- ZLGitRemoteService (from `https://github.com/ExistOrLive/ZLGitRemoteService.git`)
273273
- ZLUIUtilities (from `https://github.com/ExistOrLive/ZLUIUtilities.git`, tag `1.3.0`)
274-
- ZLUtilities (from `../../ZLUtilities`)
274+
- ZLUtilities (from `https://github.com/ExistOrLive/ZLUtilities.git`)
275275
- ZMMVVM (from `https://github.com/ExistOrLive/ZMMVVM.git`, tag `1.3.0`)
276276

277277
SPEC REPOS:
@@ -330,12 +330,12 @@ EXTERNAL SOURCES:
330330
:git: https://github.com/ExistOrLive/ZLGithubOAuth.git
331331
:tag: 1.3.1
332332
ZLGitRemoteService:
333-
:path: "../../ZLGitRemoteService"
333+
:git: https://github.com/ExistOrLive/ZLGitRemoteService.git
334334
ZLUIUtilities:
335335
:git: https://github.com/ExistOrLive/ZLUIUtilities.git
336336
:tag: 1.3.0
337337
ZLUtilities:
338-
:path: "../../ZLUtilities"
338+
:git: https://github.com/ExistOrLive/ZLUtilities.git
339339
ZMMVVM:
340340
:git: https://github.com/ExistOrLive/ZMMVVM.git
341341
:tag: 1.3.0
@@ -350,9 +350,15 @@ CHECKOUT OPTIONS:
350350
ZLGithubOAuth:
351351
:git: https://github.com/ExistOrLive/ZLGithubOAuth.git
352352
:tag: 1.3.1
353+
ZLGitRemoteService:
354+
:commit: 1b93b3f4fd969f62f612083e428f1b5f4eb28c8d
355+
:git: https://github.com/ExistOrLive/ZLGitRemoteService.git
353356
ZLUIUtilities:
354357
:git: https://github.com/ExistOrLive/ZLUIUtilities.git
355358
:tag: 1.3.0
359+
ZLUtilities:
360+
:commit: 9bb195a37c432111e3ecee6c45e887097c137943
361+
:git: https://github.com/ExistOrLive/ZLUtilities.git
356362
ZMMVVM:
357363
:git: https://github.com/ExistOrLive/ZMMVVM.git
358364
:tag: 1.3.0
@@ -409,6 +415,6 @@ SPEC CHECKSUMS:
409415
ZLUtilities: cc526fb2d1a47ca55345cc2dc03ed05f11068bf7
410416
ZMMVVM: 92ef04990cd7d0ae5bb3ea9ddf778023bc5c5d9e
411417

412-
PODFILE CHECKSUM: 7cf430b7d304fdf75de13a53cf478e427abe1ef7
418+
PODFILE CHECKSUM: dda5175f944ccf5f49f93404610453a7daafb2ee
413419

414420
COCOAPODS: 1.16.2

ZLGitHubClient/ZLGitHubClient.xcodeproj/project.pbxproj

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
7403A3562DD0AFCB009141E1 /* ZLReleaseInfoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7403A3552DD0AFC6009141E1 /* ZLReleaseInfoViewModel.swift */; };
3333
7403A3582DD0B88F009141E1 /* ZLReleaseInfoDescriptionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7403A3572DD0B87C009141E1 /* ZLReleaseInfoDescriptionCell.swift */; };
3434
7403A35A2DD0BA84009141E1 /* ZLReleaseInfoDescriptionCellData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7403A3592DD0BA81009141E1 /* ZLReleaseInfoDescriptionCellData.swift */; };
35+
7403A35D2DD0E9B3009141E1 /* ZLCommitInfoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7403A35C2DD0E9AB009141E1 /* ZLCommitInfoController.swift */; };
36+
7403A35F2DD0EA50009141E1 /* ZLCommitInfoHeaderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7403A35E2DD0EA47009141E1 /* ZLCommitInfoHeaderCell.swift */; };
37+
7403A3612DD0EC59009141E1 /* ZLCommitInfoHeaderCellData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7403A3602DD0EC58009141E1 /* ZLCommitInfoHeaderCellData.swift */; };
38+
7403A3632DD0F078009141E1 /* ZLCommitInfoFileCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7403A3622DD0F071009141E1 /* ZLCommitInfoFileCell.swift */; };
39+
7403A3652DD0F26C009141E1 /* ZLCommitInfoFileCellData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7403A3642DD0F25A009141E1 /* ZLCommitInfoFileCellData.swift */; };
3540
740C2F2B2830F9E300DAFF0E /* ZLExploreChildListController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 740C2F2A2830F9E300DAFF0E /* ZLExploreChildListController.swift */; };
3641
740C2F362832A1E100DAFF0E /* ZLBaseCardTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 740C2F352832A1E100DAFF0E /* ZLBaseCardTableViewCell.swift */; };
3742
740C2FBC2838D46400DAFF0E /* ZLStarRepoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 740C2FBB2838D46400DAFF0E /* ZLStarRepoViewController.swift */; };
@@ -334,6 +339,11 @@
334339
7403A3552DD0AFC6009141E1 /* ZLReleaseInfoViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLReleaseInfoViewModel.swift; sourceTree = "<group>"; };
335340
7403A3572DD0B87C009141E1 /* ZLReleaseInfoDescriptionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLReleaseInfoDescriptionCell.swift; sourceTree = "<group>"; };
336341
7403A3592DD0BA81009141E1 /* ZLReleaseInfoDescriptionCellData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLReleaseInfoDescriptionCellData.swift; sourceTree = "<group>"; };
342+
7403A35C2DD0E9AB009141E1 /* ZLCommitInfoController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLCommitInfoController.swift; sourceTree = "<group>"; };
343+
7403A35E2DD0EA47009141E1 /* ZLCommitInfoHeaderCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLCommitInfoHeaderCell.swift; sourceTree = "<group>"; };
344+
7403A3602DD0EC58009141E1 /* ZLCommitInfoHeaderCellData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLCommitInfoHeaderCellData.swift; sourceTree = "<group>"; };
345+
7403A3622DD0F071009141E1 /* ZLCommitInfoFileCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLCommitInfoFileCell.swift; sourceTree = "<group>"; };
346+
7403A3642DD0F25A009141E1 /* ZLCommitInfoFileCellData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLCommitInfoFileCellData.swift; sourceTree = "<group>"; };
337347
7408EC222533BD72001DA1EC /* ZLGithubAppKey.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZLGithubAppKey.h; sourceTree = "<group>"; };
338348
740C2F2A2830F9E300DAFF0E /* ZLExploreChildListController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLExploreChildListController.swift; sourceTree = "<group>"; };
339349
740C2F352832A1E100DAFF0E /* ZLBaseCardTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZLBaseCardTableViewCell.swift; sourceTree = "<group>"; };
@@ -744,6 +754,8 @@
744754
366DB83A241F3178002A0896 /* view */ = {
745755
isa = PBXGroup;
746756
children = (
757+
7403A3622DD0F071009141E1 /* ZLCommitInfoFileCell.swift */,
758+
7403A35E2DD0EA47009141E1 /* ZLCommitInfoHeaderCell.swift */,
747759
366DB83B241F31A3002A0896 /* ZLCommitTableViewCell.swift */,
748760
);
749761
path = view;
@@ -752,6 +764,8 @@
752764
366DB844241F4539002A0896 /* viewModel */ = {
753765
isa = PBXGroup;
754766
children = (
767+
7403A3642DD0F25A009141E1 /* ZLCommitInfoFileCellData.swift */,
768+
7403A3602DD0EC58009141E1 /* ZLCommitInfoHeaderCellData.swift */,
755769
366DB845241F4566002A0896 /* ZLCommitTableViewCellData.swift */,
756770
);
757771
path = viewModel;
@@ -843,6 +857,14 @@
843857
path = ViewModel;
844858
sourceTree = "<group>";
845859
};
860+
7403A35B2DD0E6FB009141E1 /* Commit */ = {
861+
isa = PBXGroup;
862+
children = (
863+
7403A35C2DD0E9AB009141E1 /* ZLCommitInfoController.swift */,
864+
);
865+
path = Commit;
866+
sourceTree = "<group>";
867+
};
846868
740C2F342832A1BD00DAFF0E /* ZLBaseCardTableViewCell */ = {
847869
isa = PBXGroup;
848870
children = (
@@ -1305,6 +1327,7 @@
13051327
746B092221EB71F7000EE88B /* UI */ = {
13061328
isa = PBXGroup;
13071329
children = (
1330+
7403A35B2DD0E6FB009141E1 /* Commit */,
13081331
7403A34B2DD09752009141E1 /* Release */,
13091332
74F9CEF02D9AEAFF008E3920 /* Discussion */,
13101333
749505C229A5378800341D9E /* View */,
@@ -2879,9 +2902,11 @@
28792902
740318CB22F702B7004CE52D /* ZLSearchRecordView.swift in Sources */,
28802903
7431B42D22F5DF8C0060968A /* ZLSearchController.swift in Sources */,
28812904
74F837C827D6643000109BAB /* ZLIssueNoneCell.swift in Sources */,
2905+
7403A35D2DD0E9B3009141E1 /* ZLCommitInfoController.swift in Sources */,
28822906
74DEC1FE256CFD82007E8A17 /* ZLMyRepoesController.swift in Sources */,
28832907
7486E05125A3A98400EE38CB /* ZLAssistButtonManager.swift in Sources */,
28842908
746719CB2B81FA20003E1D4B /* GithubAvatar+Extension.swift in Sources */,
2909+
7403A3652DD0F26C009141E1 /* ZLCommitInfoFileCellData.swift in Sources */,
28852910
74F9CF132DAAB8C2008E3920 /* ZLDiscussionCommentTableViewCellData.swift in Sources */,
28862911
3693D8D4246523A400779FC4 /* ZLAboutViewModel.swift in Sources */,
28872912
74E321DC254CB2CA006CE05D /* ZLAppearanceController.swift in Sources */,
@@ -2908,6 +2933,7 @@
29082933
74DEC202256D02C6007E8A17 /* ZLRepoTableViewCellDataForTopRepoQuery.swift in Sources */,
29092934
740C2FC02838EC9F00DAFF0E /* ZLNewsViewController.swift in Sources */,
29102935
74C3F8C122D1DD930086A3F9 /* ZLLoginBaseView.swift in Sources */,
2936+
7403A3632DD0F078009141E1 /* ZLCommitInfoFileCell.swift in Sources */,
29112937
746636332D90479000FC69EC /* ZLSimpleRepoTableViewCellModel.swift in Sources */,
29122938
7496BF572600DAA800DDD1BD /* ZLIssueCommentTableViewCellData.swift in Sources */,
29132939
74C3F8D022D1E79D0086A3F9 /* Swift-Prefix.swift in Sources */,
@@ -2952,6 +2978,7 @@
29522978
740C2F362832A1E100DAFF0E /* ZLBaseCardTableViewCell.swift in Sources */,
29532979
7486DFBB25A2608F00EE38CB /* ZLUIRouter.swift in Sources */,
29542980
74AAE5DE284B4B7C0030DA01 /* ZLCommonSectionHeaderFooterView.swift in Sources */,
2981+
7403A3612DD0EC59009141E1 /* ZLCommitInfoHeaderCellData.swift in Sources */,
29552982
7496BF6126012FFD00DDD1BD /* ZLIssueBodyTableViewCellData.swift in Sources */,
29562983
7466029128EFD509004D104F /* ZLProfileHeaderCellData.swift in Sources */,
29572984
7456B739279C98B70033AFB1 /* ZLEditIssueHeaderView.swift in Sources */,
@@ -2977,6 +3004,7 @@
29773004
7466028F28EFC2FC004D104F /* ZLProfileContributionsCell.swift in Sources */,
29783005
742935FE25BA56FA001CD142 /* ZLUserContributionsView.swift in Sources */,
29793006
7417027D27521EC100FDA5DA /* ZLAppearanceView.swift in Sources */,
3007+
7403A35F2DD0EA50009141E1 /* ZLCommitInfoHeaderCell.swift in Sources */,
29803008
749DBC9024B3D63E00D02B2C /* ZLPullRequestEventTableViewCellData.swift in Sources */,
29813009
7403A3512DD0A69C009141E1 /* ZLReleaseInfoHeaderCell.swift in Sources */,
29823010
74B32E2E2465B61000AF1D6B /* ZLRepoContributorsController.swift in Sources */,

ZLGitHubClient/ZLGitHubClient/Class/Router/ZLUIRouter.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ extension ZLUIRouter {
8585
static let PRInfoController: ZLUIKey = "ZLPRInfoController"
8686
static let DiscussionInfoController: ZLUIKey = "ZLDiscussionInfoController"
8787
static let ReleaseInfoController: ZLUIKey = "ZLReleaseInfoController"
88+
static let CommitInfoController: ZLUIKey = "ZLCommitInfoController"
8889
static let WebContentController: ZLUIKey = "ZLWebContentController"
8990

9091
static let UserAdditionInfoController: ZLUIKey = "ZLUserAdditionInfoController"
@@ -207,6 +208,10 @@ extension ZLUIRouter {
207208
if pathComponents.count == 6 && pathComponents[3] == "releases" && pathComponents[4] == "tag" {
208209
return true
209210
}
211+
212+
if pathComponents.count == 5 && pathComponents[3] == "commit" {
213+
return true
214+
}
210215
}
211216

212217
return false
@@ -285,6 +290,16 @@ extension ZLUIRouter {
285290
animated: animated)
286291
return
287292

293+
} else if pathComponents.count == 5 && pathComponents[3] == "commit" {
294+
295+
/// https://github.com/ExistOrLive/GithubClient/commit/9d0c17b5dbf0b168ee3680d569559c7d8c6b0df3
296+
self.navigateVC(key: CommitInfoController,
297+
params: ["login": pathComponents[1],
298+
"repoName": pathComponents[2],
299+
"ref": pathComponents[4]],
300+
animated: animated)
301+
return
302+
288303
}
289304
}
290305

0 commit comments

Comments
 (0)