feat: Initial clean release of CHM
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
这个提交包含在:
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ShareData.m
|
||||
// ShareExtension
|
||||
//
|
||||
// Created by Duncan Cunningham on 2/6/21.
|
||||
// Copyright © 2021 joplinapp.org. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ShareData.h"
|
||||
|
||||
static NSString* const ShareDataTitleKey = @"title";
|
||||
static NSString* const ShareDataTextKey = @"text";
|
||||
static NSString* const ShareDataResourcesKey = @"resources";
|
||||
|
||||
static NSString* const ShareDataResourceUriKey = @"uri";
|
||||
static NSString* const ShareDataResourceNameKey = @"name";
|
||||
static NSString* const ShareDataResourceMimeTypeKey = @"mimeType";
|
||||
|
||||
@implementation ShareData
|
||||
|
||||
- (id)initWithDictionary:(NSDictionary*)dictionary {
|
||||
self = [super init];
|
||||
|
||||
if (self != nil) {
|
||||
self.title = [dictionary objectForKey:ShareDataTitleKey];
|
||||
self.text = [dictionary objectForKey:ShareDataTextKey];
|
||||
self.resources = [dictionary objectForKey:ShareDataResourcesKey];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSDictionary*)encodeToDictionary {
|
||||
NSString* title = (self.title == nil) ? @"" : self.title;
|
||||
NSString* text = (self.text == nil) ? @"" : self.text;
|
||||
NSArray* resources = (self.resources == nil) ? @[] : self.resources;
|
||||
|
||||
return @{ShareDataTitleKey: title,
|
||||
ShareDataTextKey: text,
|
||||
ShareDataResourcesKey: resources};
|
||||
}
|
||||
|
||||
+ (NSDictionary*)resourceDictionaryForURL:(NSString*)url withName:(NSString*)name andMimeType:(NSString*)mimeType {
|
||||
return @{ShareDataResourceUriKey: url,
|
||||
ShareDataResourceNameKey: name,
|
||||
ShareDataResourceMimeTypeKey: mimeType};
|
||||
}
|
||||
|
||||
+ (NSString*)resourceURLFromDictionary:(NSDictionary*)dictionary {
|
||||
return [dictionary objectForKey:ShareDataResourceUriKey];
|
||||
}
|
||||
|
||||
@end
|
||||
在新工单中引用
屏蔽一个用户