| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -371,6 +371,7 @@ | |||
| 371 | 371 | 4EAE068E1B78484D00179F4B /* user_info_point@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EAE068D1B78484D00179F4B /* user_info_point@2x.png */; }; | |
| 372 | 372 | 4EAE06901B784E9200179F4B /* store_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EAE068F1B784E9200179F4B /* store_icon@2x.png */; }; | |
| 373 | 373 | 4EAE06921B7880BA00179F4B /* me_info_arrow_left@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EAE06911B7880BA00179F4B /* me_info_arrow_left@2x.png */; }; | |
| 374 | + 4EAE06A41B7AE4EF00179F4B /* FileComment.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EAE06A31B7AE4EF00179F4B /* FileComment.m */; }; | ||
| 374 | 375 | 4EB0C2001A807ED00042FC4F /* NSURL+Common.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EB0C1FF1A807ED00042FC4F /* NSURL+Common.m */; }; | |
| 375 | 376 | 4EB845331AB83C3B0030DC69 /* git_icon_fork@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB845301AB83C3B0030DC69 /* git_icon_fork@2x.png */; }; | |
| 376 | 377 | 4EB845341AB83C3B0030DC69 /* git_icon_star@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB845311AB83C3B0030DC69 /* git_icon_star@2x.png */; }; | |
@@ -1401,6 +1402,8 @@ | |||
| 1401 | 1402 | 4EAE068D1B78484D00179F4B /* user_info_point@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "user_info_point@2x.png"; sourceTree = "<group>"; }; | |
| 1402 | 1403 | 4EAE068F1B784E9200179F4B /* store_icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "store_icon@2x.png"; sourceTree = "<group>"; }; | |
| 1403 | 1404 | 4EAE06911B7880BA00179F4B /* me_info_arrow_left@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "me_info_arrow_left@2x.png"; sourceTree = "<group>"; }; | |
| 1405 | + 4EAE06A21B7AE4EF00179F4B /* FileComment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileComment.h; sourceTree = "<group>"; }; | ||
| 1406 | + 4EAE06A31B7AE4EF00179F4B /* FileComment.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileComment.m; sourceTree = "<group>"; }; | ||
| 1404 | 1407 | 4EB0C1FE1A807ED00042FC4F /* NSURL+Common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSURL+Common.h"; sourceTree = "<group>"; }; | |
| 1405 | 1408 | 4EB0C1FF1A807ED00042FC4F /* NSURL+Common.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSURL+Common.m"; sourceTree = "<group>"; }; | |
| 1406 | 1409 | 4EB845301AB83C3B0030DC69 /* git_icon_fork@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "git_icon_fork@2x.png"; sourceTree = "<group>"; }; | |
@@ -3741,6 +3744,8 @@ | |||
| 3741 | 3744 | 8EA6CFEF19E240C40076D59C /* Task.m */, | |
| 3742 | 3745 | 8EABE3C619F10D2400A17784 /* TaskComment.h */, | |
| 3743 | 3746 | 8EABE3C719F10D2400A17784 /* TaskComment.m */, | |
| 3747 | + 4EAE06A21B7AE4EF00179F4B /* FileComment.h */, | ||
| 3748 | + 4EAE06A31B7AE4EF00179F4B /* FileComment.m */, | ||
| 3744 | 3749 | 8EA6CFF019E240C40076D59C /* Tasks.h */, | |
| 3745 | 3750 | 8EA6CFF119E240C40076D59C /* Tasks.m */, | |
| 3746 | 3751 | 8EA6CFF219E240C40076D59C /* Tweets.h */, | |
@@ -4970,6 +4975,7 @@ | |||
| 4970 | 4975 | 4E4D6A761B1C6C6100FD2E49 /* MRPRTopCell.m in Sources */, | |
| 4971 | 4976 | 4EE1A2301B5D02CA004284F1 /* ProjectTaskListView.m in Sources */, | |
| 4972 | 4977 | 3A38783A1AE2949E0078D5DE /* ResetLabelViewController.m in Sources */, | |
| 4978 | + 4EAE06A41B7AE4EF00179F4B /* FileComment.m in Sources */, | ||
| 4973 | 4979 | 8EA6D13C19E240C40076D59C /* Tweet_RootViewController.m in Sources */, | |
| 4974 | 4980 | B93D904B1ACBA3110057A6EE /* ProjectDeleteAlertControllerVisualStyle.m in Sources */, | |
| 4975 | 4981 | 4E1A22851AB172C400CFC14F /* ProjectItemsCell.m in Sources */, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,16 @@ | |||
| 1 | + // | ||
| 2 | + // FileComment.h | ||
| 3 | + // Coding_iOS | ||
| 4 | + // | ||
| 5 | + // Created by Ease on 15/8/12. | ||
| 6 | + // Copyright (c) 2015年 Coding. All rights reserved. | ||
| 7 | + // | ||
| 8 | + | ||
| 9 | + #import <Foundation/Foundation.h> | ||
| 10 | + | ||
| 11 | + @interface FileComment : NSObject | ||
| 12 | + @property (readwrite, nonatomic, strong) NSNumber *id; | ||
| 13 | + @property (readwrite, nonatomic, strong) NSString *content; | ||
| 14 | + @property (readwrite, nonatomic, strong) User *owner; | ||
| 15 | + @property (readwrite, nonatomic, strong) HtmlMedia *htmlMedia; | ||
| 16 | + @end | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 1 | + // | ||
| 2 | + // FileComment.m | ||
| 3 | + // Coding_iOS | ||
| 4 | + // | ||
| 5 | + // Created by Ease on 15/8/12. | ||
| 6 | + // Copyright (c) 2015年 Coding. All rights reserved. | ||
| 7 | + // | ||
| 8 | + | ||
| 9 | + #import "FileComment.h" | ||
| 10 | + | ||
| 11 | + @implementation FileComment | ||
| 12 | + - (void)setContent:(NSString *)content{ | ||
| 13 | + if (_content != content) { | ||
| 14 | + _htmlMedia = [HtmlMedia htmlMediaWithString:content showType:MediaShowTypeCode]; | ||
| 15 | + _content = _htmlMedia.contentDisplay; | ||
| 16 | + } | ||
| 17 | + } | ||
| 18 | + @end | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,8 @@ | |||
| 11 | 11 | #import "ProjectLineNoteActivity.h" | |
| 12 | 12 | ||
| 13 | 13 | #import "Projects.h" | |
| 14 | + #import "FileComment.h" | ||
| 15 | + #import "ProjectFile.h" | ||
| 14 | 16 | ||
| 15 | 17 | @class Task; | |
| 16 | 18 | @class ProjectTopic; | |
@@ -31,6 +33,8 @@ | |||
| 31 | 33 | @property (readwrite, nonatomic, strong) NSDictionary *propertyArrayMap; | |
| 32 | 34 | @property (readwrite, nonatomic, strong) ProjectLineNoteActivity *line_note; | |
| 33 | 35 | @property (strong, nonatomic) Commit *commit; | |
| 36 | + @property (strong, nonatomic) FileComment *projectFileComment; | ||
| 37 | + @property (strong, nonatomic) ProjectFile *projectFile; | ||
| 34 | 38 | ||
| 35 | 39 | @property (readonly, nonatomic, strong) NSMutableArray *actionMediaItems, *contentMediaItems; | |
| 36 | 40 | @property (readonly, nonatomic, strong) NSMutableString *actionStr, *contentStr; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -110,6 +110,8 @@ - (NSMutableString *)actionStr{ | |||
| 110 | 110 | } | |
| 111 | 111 | }else if ([_target_type isEqualToString:@"ProjectFile"]){ | |
| 112 | 112 | [_actionStr appendString:[_type isEqualToString:@"dir"]? @"文件夹": @"文件"]; | |
| 113 | + }else if ([_target_type isEqualToString:@"ProjectFileComment"]){ | ||
| 114 | + [_actionStr appendFormat:@"文件「%@」的评论", _projectFile.title]; | ||
| 113 | 115 | }else if ([_target_type isEqualToString:@"Depot"]){ | |
| 114 | 116 | if ([_action isEqualToString:@"push"]) { | |
| 115 | 117 | [_actionStr appendFormat:@"项目 %@ 「%@」", self.ref_type, _ref]; | |
@@ -170,6 +172,8 @@ - (NSMutableString *)contentStr{ | |||
| 170 | 172 | } | |
| 171 | 173 | }else if ([_target_type isEqualToString:@"ProjectFile"]){ | |
| 172 | 174 | [_contentStr saveAppendString:_file.name]; | |
| 175 | + }else if ([_target_type isEqualToString:@"ProjectFileComment"]){ | ||
| 176 | + [_contentStr saveAppendString:_projectFileComment.content]; | ||
| 173 | 177 | }else if ([_target_type isEqualToString:@"Depot"]){ | |
| 174 | 178 | if (_commits && [_commits count] > 0) { | |
| 175 | 179 | Commit *curCommit = _commits.firstObject; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ typedef NS_ENUM(NSInteger, DownloadState){ | |||
| 22 | 22 | @interface ProjectFile : NSObject | |
| 23 | 23 | @property (readwrite, nonatomic, strong) NSDate *created_at, *updated_at; | |
| 24 | 24 | @property (readwrite, nonatomic, strong) NSNumber *file_id, *owner_id, *parent_id, *type, *current_user_role_id, *size, *project_id; | |
| 25 | - @property (readwrite, nonatomic, strong) NSString *name, *fileType, *owner_preview, *preview, *storage_key, *storage_type; | ||
| 25 | + @property (readwrite, nonatomic, strong) NSString *name, *fileType, *owner_preview, *preview, *storage_key, *storage_type, *title; | ||
| 26 | 26 | @property (readwrite, nonatomic, strong) User *owner; | |
| 27 | 27 | @property (readwrite, nonatomic, strong) NSString *diskFileName; | |
| 28 | 28 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments