mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Pass authtoken in from user, and add a wrapper for web UI on Mac.
This commit is contained in:
parent
e58047eaa0
commit
5b54612d91
68 changed files with 7537 additions and 1 deletions
20
ext/mac-ui-macgap1-wrapper/MacGap/Classes/Utils.h
Normal file
20
ext/mac-ui-macgap1-wrapper/MacGap/Classes/Utils.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import <Webkit/WebScriptObject.h>
|
||||
|
||||
#define DEG_EPS 0.001
|
||||
#define fequal(a,b) (fabs((a) - (b)) < DEG_EPS)
|
||||
#define fequalzero(a) (fabs(a) < DEG_EPS)
|
||||
|
||||
@class LoadingView;
|
||||
|
||||
@interface Utils : NSObject {
|
||||
}
|
||||
|
||||
- (float) titleBarHeight:(NSWindow*)aWindow;
|
||||
- (NSString*) pathForResource:(NSString*)resourcepath;
|
||||
- (NSString*) convertDictionaryToJSON:(NSDictionary*)dict;
|
||||
- (NSArray*) convertJSarrayToNSArray:(WebScriptObject*)jsArray;
|
||||
|
||||
+ (Utils*) sharedInstance;
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue