Skip to content

Commit

Permalink
✨ 新增了多种上传方式以及检查更新功能
Browse files Browse the repository at this point in the history
- 支持上传剪切板中的图片 \n-支持拖拽图片到应用状态栏直接上传 \n-支持截图上传 \n-支持检查更新
  • Loading branch information
gee1k committed Jun 9, 2019
1 parent ed15396 commit f665087
Show file tree
Hide file tree
Showing 19 changed files with 551 additions and 106 deletions.
44 changes: 38 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,46 @@
# uPic
超级简洁的基于 https://sm.ms 图床的第三方上传客户端
## uPic

超级简洁的基于 https://sm.ms 图床的 Mac 版上传客户端


![pic](https://i.loli.net/2019/06/08/5cfb8f61f2a3796018.png)

### TODO
![pic](https://i.loli.net/2019/06/09/5cfc720f0f7c339579.png)

### Features

* [x] 支持 URL、HTML Img、Markdown 输出格式
* [x] 支持上传剪切板中复制的图片
* [x] 支付拖拽图片到应用图标直接上传
* [x] 支持截图上传、微信、QQ等第三方截图的也可以

* [x] 支持检查更新



### Preview

* 选择文件上传

![select](http://s2.svend.cc/projects/uPic/selectUpload.gif)

* 复制图片上传

![copy](http://s2.svend.cc/projects/uPic/copyUpload.gif)

* 截图上传

![截图](http://s2.svend.cc/projects/uPic/screenshotUpload.gif)

* 拖拽上传

![drag](http://s2.svend.cc/projects/uPic/dragUpload.gif)



### Thanks

本人完全是一名 Mac 开发新手,能开发出这个小项目离不开他们的帮助:

* [ ] 支持上传剪切板中复制的图片
- [https://www.smslit.top/](https://www.smslit.top/)

* [ ] 支付拖拽图片到应用图标直接上传
- [https://www.cnswift.org/](https://www.cnswift.org/)
36 changes: 36 additions & 0 deletions uPic.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
/* Begin PBXBuildFile section */
1623611B22AB935300E4025C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1623611D22AB935300E4025C /* InfoPlist.strings */; };
1623612322AB951E00E4025C /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1623612522AB951E00E4025C /* Localizable.strings */; };
1675516022ABE4A800D3EB6F /* SmmsPic.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1675515F22ABE4A800D3EB6F /* SmmsPic.swift */; };
1675516222ABF80300D3EB6F /* NSDragingInfoExt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1675516122ABF80300D3EB6F /* NSDragingInfoExt.swift */; };
1675516422AC102700D3EB6F /* NotificationExt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1675516322AC102700D3EB6F /* NotificationExt.swift */; };
1675516722ACAA0600D3EB6F /* UPicUpdater.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1675516622ACAA0600D3EB6F /* UPicUpdater.swift */; };
1675516A22ACAA5900D3EB6F /* Util.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1675516922ACAA5900D3EB6F /* Util.swift */; };
16A6DC5822AA375700813706 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16A6DC5722AA375700813706 /* AppDelegate.swift */; };
16A6DC5A22AA375700813706 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16A6DC5922AA375700813706 /* ViewController.swift */; };
16A6DC5C22AA375800813706 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 16A6DC5B22AA375800813706 /* Assets.xcassets */; };
Expand All @@ -25,6 +30,11 @@
1623612422AB951E00E4025C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
1623612622AB951F00E4025C /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
1626E8C622AAB6B1006DCF0F /* Alamofire.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Alamofire.framework; sourceTree = BUILT_PRODUCTS_DIR; };
1675515F22ABE4A800D3EB6F /* SmmsPic.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmmsPic.swift; sourceTree = "<group>"; };
1675516122ABF80300D3EB6F /* NSDragingInfoExt.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSDragingInfoExt.swift; sourceTree = "<group>"; };
1675516322AC102700D3EB6F /* NotificationExt.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationExt.swift; sourceTree = "<group>"; };
1675516622ACAA0600D3EB6F /* UPicUpdater.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UPicUpdater.swift; sourceTree = "<group>"; };
1675516922ACAA5900D3EB6F /* Util.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Util.swift; sourceTree = "<group>"; };
16A6DC5722AA375700813706 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
16A6DC5922AA375700813706 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
16A6DC5B22AA375800813706 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
Expand Down Expand Up @@ -59,6 +69,24 @@
path = Pods;
sourceTree = "<group>";
};
1675516522AC165600D3EB6F /* extension */ = {
isa = PBXGroup;
children = (
1675516122ABF80300D3EB6F /* NSDragingInfoExt.swift */,
1675516322AC102700D3EB6F /* NotificationExt.swift */,
1675516622ACAA0600D3EB6F /* UPicUpdater.swift */,
);
path = extension;
sourceTree = "<group>";
};
1675516822ACAA4B00D3EB6F /* Utils */ = {
isa = PBXGroup;
children = (
1675516922ACAA5900D3EB6F /* Util.swift */,
);
path = Utils;
sourceTree = "<group>";
};
16A6DC4B22AA375700813706 = {
isa = PBXGroup;
children = (
Expand All @@ -73,6 +101,7 @@
16A6DC5622AA375700813706 /* uPic */ = {
isa = PBXGroup;
children = (
1675516822ACAA4B00D3EB6F /* Utils */,
1623611D22AB935300E4025C /* InfoPlist.strings */,
16A6DC6922AA3B1800813706 /* Model */,
16A6DC6722AA3ABF00813706 /* View Controllers */,
Expand All @@ -81,6 +110,7 @@
16A6DC5D22AA375800813706 /* Main.storyboard */,
16A6DC6822AA3AD900813706 /* Supporting Files */,
1623612522AB951E00E4025C /* Localizable.strings */,
1675516522AC165600D3EB6F /* extension */,
);
path = uPic;
sourceTree = "<group>";
Expand All @@ -105,6 +135,7 @@
16A6DC6922AA3B1800813706 /* Model */ = {
isa = PBXGroup;
children = (
1675515F22ABE4A800D3EB6F /* SmmsPic.swift */,
);
path = Model;
sourceTree = "<group>";
Expand Down Expand Up @@ -241,8 +272,13 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1675516722ACAA0600D3EB6F /* UPicUpdater.swift in Sources */,
16A6DC5A22AA375700813706 /* ViewController.swift in Sources */,
1675516422AC102700D3EB6F /* NotificationExt.swift in Sources */,
16A6DC5822AA375700813706 /* AppDelegate.swift in Sources */,
1675516A22ACAA5900D3EB6F /* Util.swift in Sources */,
1675516022ABE4A800D3EB6F /* SmmsPic.swift in Sources */,
1675516222ABF80300D3EB6F /* NSDragingInfoExt.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "uPic/AppDelegate.swift"
timestampString = "581684737.237993"
timestampString = "581743054.161335"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "27"
endingLineNumber = "27"
startingLineNumber = "28"
endingLineNumber = "28"
landmarkName = "applicationDidFinishLaunching(_:)"
landmarkType = "7">
</BreakpointContent>
Expand Down
Loading

0 comments on commit f665087

Please sign in to comment.