浏览代码

Small misc improvements

master
lint 4 年前
父节点
当前提交
64da1cfef0
共有 3 个文件被更改,包括 87 次插入87 次删除
  1. +22
    -22
      tweak/Apollo.h
  2. +20
    -20
      tweak/Narwhal.h
  3. +45
    -45
      tweak/Reddit.h

+ 22
- 22
tweak/Apollo.h 查看文件

/* -- Comment Interfaces -- */ /* -- Comment Interfaces -- */
@interface RKComment @interface RKComment
@property(assign,nonatomic) NSString *body;
@property(assign,nonatomic) NSString *bodyHTML;
@property(assign,nonatomic) NSString *author;
@property(assign,nonatomic) NSString *fullName;
@property(strong, nonatomic) NSString *body;
@property(strong, nonatomic) NSString *bodyHTML;
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *fullName;
@end @end
@interface RDKComment @interface RDKComment
@property(assign,nonatomic) NSString *body;
@property(assign,nonatomic) NSString *bodyHTML;
@property(assign,nonatomic) NSString *author;
@property(assign,nonatomic) NSString *fullName;
@property(strong, nonatomic) NSString *body;
@property(strong, nonatomic) NSString *bodyHTML;
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *fullName;
@end @end
@interface CommentCellNode @interface CommentCellNode
@property(assign,nonatomic)id view;
@property(strong, nonatomic) id view;
- (BOOL)isSelected; - (BOOL)isSelected;
- (void)_layoutSublayouts; - (void)_layoutSublayouts;
- (void)didLoad; - (void)didLoad;
/* -- Post Interfaces -- */ /* -- Post Interfaces -- */
@interface RKLink @interface RKLink
@property(assign,nonatomic) NSString *selfText;
@property(assign,nonatomic) NSString *author;
@property(assign,nonatomic) NSString *fullName;
@property(strong, nonatomic) NSString *selfText;
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *fullName;
- (BOOL)isSelfPost; - (BOOL)isSelfPost;
//custom elements //custom elements
@end @end
@interface RDKLink @interface RDKLink
@property(assign,nonatomic) NSString *selfText;
@property(assign,nonatomic) NSString *author;
@property(assign,nonatomic) NSString *fullName;
@property(strong, nonatomic) NSString *selfText;
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *fullName;
- (BOOL)isSelfPost; - (BOOL)isSelfPost;
//custom elements //custom elements
@end @end
@interface ASImageNode @interface ASImageNode
@property(assign,nonatomic)id image;
@property(assign,nonatomic) CGRect frame;
@property(assign,nonatomic) id view;
@property(strong, nonatomic) id image;
@property(assign, nonatomic) CGRect frame;
@property(strong, nonatomic) id view;
- (CGRect)_frameInWindow; - (CGRect)_frameInWindow;
@end @end
@interface ASTextNode @interface ASTextNode
@property(assign,nonatomic) CGRect frame;
@property(assign,nonatomic) NSAttributedString *attributedString;
@property(assign,nonatomic) NSAttributedString *attributedText;
@property(assign, nonatomic) CGRect frame;
@property(strong, nonatomic) NSAttributedString *attributedString;
@property(strong, nonatomic) NSAttributedString *attributedText;
@end @end
@interface ApolloButtonNode @interface ApolloButtonNode
@property(assign,nonatomic) ASTextNode *titleNode;
@property(strong, nonatomic) ASTextNode *titleNode;
- (void) setAttributedTitle:(id)arg1 forState:(NSInteger)arg2; - (void) setAttributedTitle:(id)arg1 forState:(NSInteger)arg2;
- (id) attributedTitleForState:(NSInteger)arg1; - (id) attributedTitleForState:(NSInteger)arg1;
@end @end

+ 20
- 20
tweak/Narwhal.h 查看文件

/* -- Comment Interfaces -- */ /* -- Comment Interfaces -- */
@interface RKComment @interface RKComment
@property(assign,nonatomic) NSString* author;
@property(assign,nonatomic) NSString* parentID;
@property(assign,nonatomic) NSString* body;
@property(assign,nonatomic) NSString* fullName;
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *parentID;
@property(strong, nonatomic) NSString *body;
@property(strong, nonatomic) NSString *fullName;
- (BOOL)isSaved; - (BOOL)isSaved;
@end @end
@interface NRTCommentsManager @interface NRTCommentsManager
@property(assign,nonatomic) NSMutableArray* comments;
@property(strong, nonatomic) NSMutableArray *comments;
- (void)updateComment:(id)arg1 fromEdited:(id)arg2; - (void)updateComment:(id)arg1 fromEdited:(id)arg2;
@end @end
/* -- Post Interfaces -- */ /* -- Post Interfaces -- */
@interface RKLink @interface RKLink
@property(assign,nonatomic) NSString* author;
@property(assign,nonatomic) NSString* selfText;
@property(assign,nonatomic) NSString* fullName;
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *selfText;
@property(strong, nonatomic) NSString *fullName;
@end @end
@interface NRTLinkTitleCell @interface NRTLinkTitleCell
@end @end
@interface NRTLinkTextCell @interface NRTLinkTextCell
@property(assign,nonatomic) id bodyLabel;
@property(strong, nonatomic) id bodyLabel;
- (void)configureCellForText:(id)arg1 links:(id)arg2; - (void)configureCellForText:(id)arg1 links:(id)arg2;
@end @end
/* -- Other Interfaces -- */ /* -- Other Interfaces -- */
@interface NRTAuthManager @interface NRTAuthManager
@property(assign,nonatomic) NSString* currentUsername;
@property(strong, nonatomic) NSString *currentUsername;
+ (id)sharedManager; + (id)sharedManager;
@end @end
@end @end
@interface NRTAttributedLabel @interface NRTAttributedLabel
@property(assign,nonatomic) id attributedText;
@property(strong, nonatomic) id attributedText;
@end @end
@interface NRTMediaViewController : UIViewController @interface NRTMediaViewController : UIViewController
@end @end
@interface NRTLinkViewController : UIViewController @interface NRTLinkViewController : UIViewController
@property(assign,nonatomic) id comment;
@property(assign,nonatomic) id commentsManager;
@property(assign,nonatomic) id linkTextOffscreenCell;
@property(assign,nonatomic) id linkTitleOffscreenCell;
@property(assign,nonatomic) id link;
@property(assign,nonatomic) id linkText;
@property(assign,nonatomic) id tableView;
@property(strong, nonatomic) id comment;
@property(strong, nonatomic) id commentsManager;
@property(strong, nonatomic) id linkTextOffscreenCell;
@property(strong, nonatomic) id linkTitleOffscreenCell;
@property(strong, nonatomic) id link;
@property(strong, nonatomic) id linkText;
@property(strong, nonatomic) id tableView;
- (void)_handleActionSheetCopyCommentText:(id)arg1; - (void)_handleActionSheetCopyCommentText:(id)arg1;
- (void)_handleActionSheetDeleteComment:(id)arg1; - (void)_handleActionSheetDeleteComment:(id)arg1;
@end @end
@interface NRTMediaTableViewDataSource @interface NRTMediaTableViewDataSource
@property(assign,nonatomic) id commentsManager;
@property(assign,nonatomic) id parentController;
@property(strong, nonatomic) id commentsManager;
@property(strong, nonatomic) id parentController;
- (void)_handleActionSheetCopyCommentText:(id)arg1; - (void)_handleActionSheetCopyCommentText:(id)arg1;
- (void)_handleActionSheetDeleteComment:(id)arg1; - (void)_handleActionSheetDeleteComment:(id)arg1;

+ 45
- 45
tweak/Reddit.h 查看文件

@interface Comment @interface Comment
//v4 //v4
@property(strong,nonatomic) id pk;
@property(strong, nonatomic) id pk;
@property(strong, nonatomic) NSString *bodyText; @property(strong, nonatomic) NSString *bodyText;
@property(strong, nonatomic) NSString *author; @property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) id bodyRichTextAttributed; @property(strong, nonatomic) id bodyRichTextAttributed;
@end @end
@interface CommentsViewController : NSObject @interface CommentsViewController : NSObject
@property(strong,nonatomic) id postData;
@property(strong, nonatomic) id postData;
- (void)reloadCommentsWithNewCommentsHighlight:(BOOL)arg1 autoScroll:(BOOL)arg2 animated:(BOOL)arg3; - (void)reloadCommentsWithNewCommentsHighlight:(BOOL)arg1 autoScroll:(BOOL)arg2 animated:(BOOL)arg3;
- (void)reloadCommentsSection:(BOOL)arg1; - (void)reloadCommentsSection:(BOOL)arg1;
- (void)reloadPostSection:(BOOL)arg1; - (void)reloadPostSection:(BOOL)arg1;
@end @end
@interface CommentActionSheetViewController : UIViewController @interface CommentActionSheetViewController : UIViewController
@property(strong,nonatomic) Comment *comment;
@property(strong,nonatomic) id commentTreeNode;
@property(strong,nonatomic) CommentsViewController *commentActionSheetDelegate;
@property(strong, nonatomic) Comment *comment;
@property(strong, nonatomic) id commentTreeNode;
@property(strong, nonatomic) CommentsViewController *commentActionSheetDelegate;
- (id)animationControllerForDismissedController:(id)arg1; - (id)animationControllerForDismissedController:(id)arg1;
@end @end
/* -- Comment Interfaces -- */ /* -- Comment Interfaces -- */
@interface CommentTreeNode @interface CommentTreeNode
@property(strong,nonatomic) Comment *comment;
@property(strong, nonatomic) Comment *comment;
//custom elements //custom elements
@property(strong,nonatomic) id commentTreeHeaderNode;
@property(strong,nonatomic) id commentTreeCommandBarNode;
@property(strong, nonatomic) id commentTreeHeaderNode;
@property(strong, nonatomic) id commentTreeCommandBarNode;
@end @end
@interface CommentTreeDisplayNode @interface CommentTreeDisplayNode
@property(strong,nonatomic) id commentNode;
@property(strong, nonatomic) id commentNode;
@end @end
@interface CommentTreeHeaderNode @interface CommentTreeHeaderNode
@property(strong,nonatomic) id commentTreeNode;
@property(strong, nonatomic) id commentTreeNode;
- (void)updateContentViewsForData:(id)arg1; - (void)updateContentViewsForData:(id)arg1;
@end @end
@interface CommentTreeCommandBarNode @interface CommentTreeCommandBarNode
@property(strong,nonatomic) id commentTreeNode;
@property(strong,nonatomic) id delegate;
@property(strong,nonatomic) UIView* view;
@property(strong,nonatomic) id overflowButtonNode;
@property(assign,nonatomic) CGRect frame;
@property(strong, nonatomic) id commentTreeNode;
@property(strong, nonatomic) id delegate;
@property(strong, nonatomic) UIView *view;
@property(strong, nonatomic) id overflowButtonNode;
@property(assign, nonatomic) CGRect frame;
@end @end
@interface CommentTreeHeaderView @interface CommentTreeHeaderView
@property(strong,nonatomic) id commentTreeNode;
@property(strong, nonatomic) id commentTreeNode;
- (void)updateContentViewsForData:(id)arg1; - (void)updateContentViewsForData:(id)arg1;
@end @end
/* -- Post Interfaces -- */ /* -- Post Interfaces -- */
@interface Post @interface Post
@property(strong,nonatomic) NSString *author;
@property(strong,nonatomic) NSString *selfText;
@property(strong,nonatomic) id selfTextAttributed;
@property(strong,nonatomic) id selfPostRichTextAttributed;
@property(strong,nonatomic) id previewFeedPostTextString;
@property(assign,nonatomic) BOOL isSelfPost;
@property(strong,nonatomic) NSString *pk;
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *selfText;
@property(strong, nonatomic) id selfTextAttributed;
@property(strong, nonatomic) id selfPostRichTextAttributed;
@property(strong, nonatomic) id previewFeedPostTextString;
@property(assign, nonatomic) BOOL isSelfPost;
@property(strong, nonatomic) NSString *pk;
@end @end
@interface PostDetailViewController @interface PostDetailViewController
@property(strong,nonatomic) id selfTextNode;
@property(strong, nonatomic) id selfTextNode;
- (void)configureSelfTextNode; - (void)configureSelfTextNode;
//custom elements //custom elements
@property(strong,nonatomic) id feedPostTextWithThumbnailNode;
@property(strong,nonatomic) id feedPostDetailCellNode;
@property(strong, nonatomic) id feedPostTextWithThumbnailNode;
@property(strong, nonatomic) id feedPostDetailCellNode;
@end @end
@interface PostActionSheetViewController : UIViewController @interface PostActionSheetViewController : UIViewController
@property(strong,nonatomic) Post *post;
@property(strong,nonatomic) id postActionSheetDelegate;
@property(strong, nonatomic) Post *post;
@property(strong, nonatomic) id postActionSheetDelegate;
@end @end
@interface PostDetailNavigationItemHandler @interface PostDetailNavigationItemHandler
@property(strong,nonatomic) id controller;
@property(strong,nonatomic) id presenter;
@property(strong, nonatomic) id controller;
@property(strong, nonatomic) id presenter;
@end @end
@interface FeedPostDetailCellNode @interface FeedPostDetailCellNode
@property(strong,nonatomic) id textNode;
@property(strong,nonatomic) id delegate;
@property(strong,nonatomic) id contentNode;
@property(strong,nonatomic) id titleNode;
@property(strong, nonatomic) id textNode;
@property(strong, nonatomic) id delegate;
@property(strong, nonatomic) id contentNode;
@property(strong, nonatomic) id titleNode;
@end @end
@interface FeedPostTitleNode @interface FeedPostTitleNode
@property(strong,nonatomic) id delegate;
@property(strong, nonatomic) id delegate;
- (void)configureNodes; - (void)configureNodes;
@end @end
@interface FeedPostDetailDelegator @interface FeedPostDetailDelegator
@property(strong,nonatomic) id viewController;
@property(strong, nonatomic) id viewController;
@end @end
@interface FeedPostContentNode @interface FeedPostContentNode
/* -- Other Interfaces -- */ /* -- Other Interfaces -- */
@interface RichTextDisplayNode @interface RichTextDisplayNode
@property(strong,nonatomic) id attributedText;
@property(strong, nonatomic) id attributedText;
@end @end
@interface RUIActionSheetItem : NSObject @interface RUIActionSheetItem : NSObject
@property(strong,nonatomic) id leftIconImage;
@property(strong, nonatomic) id leftIconImage;
- (id)initWithLeftIconImage:(id)arg1 text:(id)arg2 identifier:(id)arg3 context:(id)arg4; - (id)initWithLeftIconImage:(id)arg1 text:(id)arg2 identifier:(id)arg3 context:(id)arg4;
@end @end
@interface ActionSheetItem : NSObject @interface ActionSheetItem : NSObject
// <= 4.17 // <= 4.17
@property(strong,nonatomic) id leftIconImage;
@property(strong, nonatomic) id leftIconImage;
- (id) initWithLeftIconImage:(id)arg1 text:(id)arg2 identifier:(id)arg3 context:(id)arg4; - (id) initWithLeftIconImage:(id)arg1 text:(id)arg2 identifier:(id)arg3 context:(id)arg4;
@end @end
@interface RUITheme @interface RUITheme
@property(strong,nonatomic) id bodyTextColor;
@property(strong, nonatomic) id bodyTextColor;
@end @end
@interface NSAttributedStringMarkdownParser @interface NSAttributedStringMarkdownParser
+ (id)sharedManager; + (id)sharedManager;
// >= 4.45.0 // >= 4.45.0
@property(strong,nonatomic) id darkTheme;
@property(strong,nonatomic) id lightTheme;
@property(strong, nonatomic) id darkTheme;
@property(strong, nonatomic) id lightTheme;
- (id)initWithAppSettings:(id)arg1; - (id)initWithAppSettings:(id)arg1;
// < 4.45.0 // < 4.45.0
@property(strong,nonatomic) id dayTheme;
@property(strong,nonatomic) id nightTheme;
@property(strong, nonatomic) id dayTheme;
@property(strong, nonatomic) id nightTheme;
- (id)initWithTraitCollection:(id)arg1 appSettings:(id)arg2; - (id)initWithTraitCollection:(id)arg1 appSettings:(id)arg2;
@end @end
@end @end
@interface AccountManager @interface AccountManager
@property(assign,nonatomic) id defaults;
@property(assign, nonatomic) id defaults;
+ (id)sharedManager; + (id)sharedManager;
@end @end

正在加载...
取消
保存