| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e2dcce6 commit ef26bc1
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1350,6 +1350,7 @@ | |||
| 1350 | 1350 | B1AB5CB9202D7D500075A669 /* button_file_move_enable@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1AB5CAE202D7D4F0075A669 /* button_file_move_enable@3x.png */; }; | |
| 1351 | 1351 | B1AB5CBA202D7D500075A669 /* button_file_move_unable@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1AB5CAF202D7D4F0075A669 /* button_file_move_unable@3x.png */; }; | |
| 1352 | 1352 | B1AB5CBB202D7D500075A669 /* button_file_createFolder_unable@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1AB5CB0202D7D500075A669 /* button_file_createFolder_unable@3x.png */; }; | |
| 1353 | + B1ACFE0D20A975E2000BC41E /* EAMilestone.m in Sources */ = {isa = PBXBuildFile; fileRef = B1ACFE0C20A975E2000BC41E /* EAMilestone.m */; }; | ||
| 1353 | 1354 | B1BCB87D1FCD006C0098B87B /* icon_file_doc_big@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1BCB8701FCD006A0098B87B /* icon_file_doc_big@2x.png */; }; | |
| 1354 | 1355 | B1BCB87E1FCD006C0098B87B /* icon_file_zip_big@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1BCB8711FCD006B0098B87B /* icon_file_zip_big@2x.png */; }; | |
| 1355 | 1356 | B1BCB87F1FCD006C0098B87B /* icon_file_pdf_big@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1BCB8721FCD006B0098B87B /* icon_file_pdf_big@2x.png */; }; | |
@@ -3517,6 +3518,8 @@ | |||
| 3517 | 3518 | B1AB5CAE202D7D4F0075A669 /* button_file_move_enable@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "button_file_move_enable@3x.png"; sourceTree = "<group>"; }; | |
| 3518 | 3519 | B1AB5CAF202D7D4F0075A669 /* button_file_move_unable@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "button_file_move_unable@3x.png"; sourceTree = "<group>"; }; | |
| 3519 | 3520 | B1AB5CB0202D7D500075A669 /* button_file_createFolder_unable@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "button_file_createFolder_unable@3x.png"; sourceTree = "<group>"; }; | |
| 3521 | + B1ACFE0B20A975E2000BC41E /* EAMilestone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EAMilestone.h; sourceTree = "<group>"; }; | ||
| 3522 | + B1ACFE0C20A975E2000BC41E /* EAMilestone.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EAMilestone.m; sourceTree = "<group>"; }; | ||
| 3520 | 3523 | B1B2BDB01F79E74000645EAD /* net_route.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = net_route.h; sourceTree = "<group>"; }; | |
| 3521 | 3524 | B1BCB8701FCD006A0098B87B /* icon_file_doc_big@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_file_doc_big@2x.png"; sourceTree = "<group>"; }; | |
| 3522 | 3525 | B1BCB8711FCD006B0098B87B /* icon_file_zip_big@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_file_zip_big@2x.png"; sourceTree = "<group>"; }; | |
@@ -6320,6 +6323,8 @@ | |||
| 6320 | 6323 | B1890C342015D87800F52ABA /* EAWiki.m */, | |
| 6321 | 6324 | B152ED582092BF46004A6E8A /* EABoardTaskList.h */, | |
| 6322 | 6325 | B152ED592092BF46004A6E8A /* EABoardTaskList.m */, | |
| 6326 | + B1ACFE0B20A975E2000BC41E /* EAMilestone.h */, | ||
| 6327 | + B1ACFE0C20A975E2000BC41E /* EAMilestone.m */, | ||
| 6323 | 6328 | ); | |
| 6324 | 6329 | path = Models; | |
| 6325 | 6330 | sourceTree = "<group>"; | |
@@ -8728,6 +8733,7 @@ | |||
| 8728 | 8733 | D09AA5BD1BFDE5F5008CA9EB /* TweetSearchCell.m in Sources */, | |
| 8729 | 8734 | 4E6BA2E01A1EE6AF005FD721 /* AFURLResponseSerialization.m in Sources */, | |
| 8730 | 8735 | 8E59F1031A0120F1009A905F /* CodeFile.m in Sources */, | |
| 8736 | + B1ACFE0D20A975E2000BC41E /* EAMilestone.m in Sources */, | ||
| 8731 | 8737 | 4E0BD8801B6C7F0A0061CAA6 /* CSSearchCell.m in Sources */, | |
| 8732 | 8738 | 4E996BCA1ABA754600C704F1 /* JDStatusBarView.m in Sources */, | |
| 8733 | 8739 | 4E4D6A881B1C6E1B00FD2E49 /* MRPRAcceptEditCell.m in Sources */, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,17 @@ | |||
| 1 | + // | ||
| 2 | + // EAMilestone.h | ||
| 3 | + // Coding_iOS | ||
| 4 | + // | ||
| 5 | + // Created by Easeeeeeeeee on 2018/5/14. | ||
| 6 | + // Copyright © 2018年 Coding. All rights reserved. | ||
| 7 | + // | ||
| 8 | + | ||
| 9 | + #import "EABasePageModel.h" | ||
| 10 | + | ||
| 11 | + @interface EAMilestone : EABasePageModel | ||
| 12 | + @property (strong, nonatomic) NSNumber *id, *project_id, *status, *processing, *finished, *percentage, *remaining_days, *expire_days; | ||
| 13 | + @property (strong, nonatomic) NSString *name, *description_mine, *start_date, *publish_date; | ||
| 14 | + @end | ||
| 15 | + | ||
| 16 | + //"start_date": "2018-05-14", | ||
| 17 | + //"publish_date": "2018-05-30", | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,13 @@ | |||
| 1 | + // | ||
| 2 | + // EAMilestone.m | ||
| 3 | + // Coding_iOS | ||
| 4 | + // | ||
| 5 | + // Created by Easeeeeeeeee on 2018/5/14. | ||
| 6 | + // Copyright © 2018年 Coding. All rights reserved. | ||
| 7 | + // | ||
| 8 | + | ||
| 9 | + #import "EAMilestone.h" | ||
| 10 | + | ||
| 11 | + @implementation EAMilestone | ||
| 12 | + | ||
| 13 | + @end | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,7 @@ | |||
| 14 | 14 | #import "FileComment.h" | |
| 15 | 15 | #import "ProjectFile.h" | |
| 16 | 16 | #import "ProjectTag.h" | |
| 17 | + #import "EAMilestone.h" | ||
| 17 | 18 | ||
| 18 | 19 | @class Task; | |
| 19 | 20 | @class ProjectTopic; | |
@@ -36,6 +37,7 @@ | |||
| 36 | 37 | @property (strong, nonatomic) Commit *commit; | |
| 37 | 38 | @property (strong, nonatomic) FileComment *projectFileComment; | |
| 38 | 39 | @property (strong, nonatomic) ProjectFile *projectFile; | |
| 40 | + @property (strong, nonatomic) EAMilestone *milestone; | ||
| 39 | 41 | ||
| 40 | 42 | @property (readwrite, strong, nonatomic) NSString *content; | |
| 41 | 43 | @property (readwrite, nonatomic, strong) HtmlMedia *htmlMedia; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,6 +100,8 @@ - (NSMutableString *)actionStr{ | |||
| 100 | 100 | }else if ([_action isEqualToString:@"remove_watcher"]){ | |
| 101 | 101 | [_actionStr saveAppendString:_action_msg]; | |
| 102 | 102 | [self addActionUser:_watcher]; | |
| 103 | + }else if ([_action isEqualToString:@"add_milestone"] || [_action isEqualToString:@"remove_milestone"]){ | ||
| 104 | + [_actionStr appendFormat:@"在任务「%@」中%@", _task.title, _action_msg]; | ||
| 103 | 105 | }else{ | |
| 104 | 106 | [_actionStr saveAppendString:_action_msg]; | |
| 105 | 107 | if (_origin_task.owner) { | |
@@ -163,6 +165,8 @@ - (NSMutableString *)actionStr{ | |||
| 163 | 165 | } | |
| 164 | 166 | }else if ([_target_type isEqualToString:@"Wiki"]){ | |
| 165 | 167 | [_actionStr appendString:@"wiki"]; | |
| 168 | + }else if ([_target_type isEqualToString:@"Milestone"]){ | ||
| 169 | + | ||
| 166 | 170 | }else{ | |
| 167 | 171 | [_actionStr appendString:@"项目"]; | |
| 168 | 172 | if ([_target_type isEqualToString:@"Project"]){ | |
@@ -209,6 +213,8 @@ - (NSMutableString *)contentStr{ | |||
| 209 | 213 | }else{ | |
| 210 | 214 | [_contentStr appendFormat:@"移除了任务的所有标签"]; | |
| 211 | 215 | } | |
| 216 | + }else if ([_action isEqualToString:@"add_milestone"] || [_action isEqualToString:@"remove_milestone"]){ | ||
| 217 | + [_contentStr saveAppendString:_milestone.name]; | ||
| 212 | 218 | }else{ | |
| 213 | 219 | [_contentStr saveAppendString:_task.title]; | |
| 214 | 220 | } | |
@@ -276,6 +282,8 @@ - (NSMutableString *)contentStr{ | |||
| 276 | 282 | } | |
| 277 | 283 | }else if ([_target_type isEqualToString:@"ProtectedBranch"]){ | |
| 278 | 284 | [_contentStr saveAppendString:self.ref_name]; | |
| 285 | + }else if ([_target_type isEqualToString:@"Milestone"]){ | ||
| 286 | + [_contentStr saveAppendString:_milestone.name]; | ||
| 279 | 287 | }else{ | |
| 280 | 288 | [_contentStr appendString:@"**未知**"]; | |
| 281 | 289 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,6 +136,8 @@ + (NSAttributedString *)attrContentWithObj:(ProjectActivity *)curActivity{ | |||
| 136 | 136 | contentStr = [NSString stringWithFormat:@"%@「%@」 - %@", curActivity.action_msg, curActivity.watcher.name, [curActivity.created_at stringDisplay_HHmm]]; | |
| 137 | 137 | }else if ([curActivity.action isEqualToString:@"remove_watcher"]){ | |
| 138 | 138 | contentStr = [NSString stringWithFormat:@"%@「%@」 - %@", curActivity.action_msg, curActivity.watcher.name, [curActivity.created_at stringDisplay_HHmm]]; | |
| 139 | + }else if ([curActivity.action isEqualToString:@"add_milestone"] || [curActivity.action isEqualToString:@"remove_milestone"]){ | ||
| 140 | + contentStr = [NSString stringWithFormat:@"%@「%@」 - %@", curActivity.action_msg, curActivity.milestone.name, [curActivity.created_at stringDisplay_HHmm]]; | ||
| 139 | 141 | } | |
| 140 | 142 | }else if ([curActivity.target_type isEqualToString:@"MergeRequestBean"]){ | |
| 141 | 143 | contentStr = [NSString stringWithFormat:@"%@ 合并请求「%@」 - %@", curActivity.action_msg, curActivity.merge_request_title, [curActivity.created_at stringDisplay_HHmm]]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments