Skip to content

Commit 7aad90b

Browse files
committed
Merge branch 'milestone/12.2' into feature/url-shortcuts
# Conflicts: # ios-sdk # ownCloud.xcodeproj/project.pbxproj # ownCloud/AppDelegate.swift # ownCloud/Resources/en.lproj/Localizable.strings
2 parents bc73eaa + f387e8b commit 7aad90b

File tree

40 files changed

+1774
-294
lines changed

40 files changed

+1774
-294
lines changed

doc/CONFIGURATION.json

+80
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
"description" : "Delete",
4242
"value" : "com.owncloud.action.delete"
4343
},
44+
{
45+
"description" : "Close Window",
46+
"value" : "com.owncloud.action.discardscene"
47+
},
4448
{
4549
"description" : "Duplicate",
4650
"value" : "com.owncloud.action.duplicate"
@@ -65,6 +69,10 @@
6569
"description" : "Open in",
6670
"value" : "com.owncloud.action.openin"
6771
},
72+
{
73+
"description" : "Open in a new Window",
74+
"value" : "com.owncloud.action.openscene"
75+
},
6876
{
6977
"description" : "Go to page",
7078
"value" : "com.owncloud.action.pdfpage"
@@ -175,6 +183,10 @@
175183
"description" : "Delete",
176184
"value" : "com.owncloud.action.delete"
177185
},
186+
{
187+
"description" : "Close Window",
188+
"value" : "com.owncloud.action.discardscene"
189+
},
178190
{
179191
"description" : "Duplicate",
180192
"value" : "com.owncloud.action.duplicate"
@@ -199,6 +211,10 @@
199211
"description" : "Open in",
200212
"value" : "com.owncloud.action.openin"
201213
},
214+
{
215+
"description" : "Open in a new Window",
216+
"value" : "com.owncloud.action.openscene"
217+
},
202218
{
203219
"description" : "Go to page",
204220
"value" : "com.owncloud.action.pdfpage"
@@ -298,6 +314,38 @@
298314
"status" : "advanced",
299315
"type" : "stringArray"
300316
},
317+
{
318+
"autoExpansion" : "none",
319+
"category" : "Actions",
320+
"categoryTag" : "actions",
321+
"classIdentifier" : "action",
322+
"className" : "ownCloudAppShared.Action",
323+
"defaultValue" : "auto",
324+
"description" : "Determines how to open a document in a web app.",
325+
"flatIdentifier" : "action.open-in-web-app-mode",
326+
"key" : "open-in-web-app-mode",
327+
"label" : "Open In WebApp mode",
328+
"possibleValues" : [
329+
{
330+
"description" : "Open using `in-app-with-default-browser-option`, unless the respective endpoint is not available - in which case `default-browser` is used instead. If no endpoint to open the document is available, an error message is shown.",
331+
"value" : "auto"
332+
},
333+
{
334+
"description" : "Open in default browser app. May require user to sign in.",
335+
"value" : "default-browser"
336+
},
337+
{
338+
"description" : "Open inline in an in-app browser.",
339+
"value" : "in-app"
340+
},
341+
{
342+
"description" : "Open inline in an in-app browser, but provide a button to open the document in the default browser (may require the user to sign in).",
343+
"value" : "in-app-with-default-browser-option"
344+
}
345+
],
346+
"status" : "advanced",
347+
"type" : "string"
348+
},
301349
{
302350
"autoExpansion" : "none",
303351
"category" : "App",
@@ -1701,6 +1749,10 @@
17011749
"description" : "Extension with the identifier com.owncloud.action.delete.",
17021750
"value" : "com.owncloud.action.delete"
17031751
},
1752+
{
1753+
"description" : "Extension with the identifier com.owncloud.action.discardscene.",
1754+
"value" : "com.owncloud.action.discardscene"
1755+
},
17041756
{
17051757
"description" : "Extension with the identifier com.owncloud.action.duplicate.",
17061758
"value" : "com.owncloud.action.duplicate"
@@ -1729,6 +1781,10 @@
17291781
"description" : "Extension with the identifier com.owncloud.action.openin.",
17301782
"value" : "com.owncloud.action.openin"
17311783
},
1784+
{
1785+
"description" : "Extension with the identifier com.owncloud.action.openscene.",
1786+
"value" : "com.owncloud.action.openscene"
1787+
},
17321788
{
17331789
"description" : "Extension with the identifier com.owncloud.action.pdfpage.",
17341790
"value" : "com.owncloud.action.pdfpage"
@@ -1929,6 +1985,30 @@
19291985
"status" : "debugOnly",
19301986
"type" : "stringArray"
19311987
},
1988+
{
1989+
"autoExpansion" : "none",
1990+
"category" : "Connection",
1991+
"categoryTag" : "connection",
1992+
"classIdentifier" : "http",
1993+
"className" : "OCHTTPPipeline",
1994+
"defaultValue" : "json",
1995+
"description" : "If request and response logging is enabled, the format to use.",
1996+
"flatIdentifier" : "http.traffic-log-format",
1997+
"key" : "traffic-log-format",
1998+
"label" : "http.traffic-log-format",
1999+
"possibleValues" : [
2000+
{
2001+
"description" : "JSON",
2002+
"value" : "json"
2003+
},
2004+
{
2005+
"description" : "Plain text",
2006+
"value" : "plain"
2007+
}
2008+
],
2009+
"status" : "supported",
2010+
"type" : "string"
2011+
},
19322012
{
19332013
"autoExpansion" : "none",
19342014
"category" : "Connection",

doc/configuration.adoc

+62
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ tag::actions[]
3838
! `com.owncloud.action.delete`
3939
! Delete
4040

41+
! `com.owncloud.action.discardscene`
42+
! Close Window
43+
4144
! `com.owncloud.action.duplicate`
4245
! Duplicate
4346

@@ -56,6 +59,9 @@ tag::actions[]
5659
! `com.owncloud.action.openin`
5760
! Open in
5861

62+
! `com.owncloud.action.openscene`
63+
! Open in a new Window
64+
5965
! `com.owncloud.action.pdfpage`
6066
! Go to page
6167

@@ -139,6 +145,9 @@ action.create-document-mode
139145
! `com.owncloud.action.delete`
140146
! Delete
141147

148+
! `com.owncloud.action.discardscene`
149+
! Close Window
150+
142151
! `com.owncloud.action.duplicate`
143152
! Duplicate
144153

@@ -157,6 +166,9 @@ action.create-document-mode
157166
! `com.owncloud.action.openin`
158167
! Open in
159168

169+
! `com.owncloud.action.openscene`
170+
! Open in a new Window
171+
160172
! `com.owncloud.action.pdfpage`
161173
! Go to page
162174

@@ -233,6 +245,32 @@ action.create-document-mode
233245

234246
|advanced `candidate`
235247

248+
|**Open In WebApp mode** +
249+
+
250+
action.open-in-web-app-mode
251+
|string
252+
|`auto`
253+
|Determines how to open a document in a web app.
254+
[cols="1,1"]
255+
!===
256+
! Value
257+
! Description
258+
! `auto`
259+
! Open using `in-app-with-default-browser-option`, unless the respective endpoint is not available - in which case `default-browser` is used instead. If no endpoint to open the document is available, an error message is shown.
260+
261+
! `default-browser`
262+
! Open in default browser app. May require user to sign in.
263+
264+
! `in-app`
265+
! Open inline in an in-app browser.
266+
267+
! `in-app-with-default-browser-option`
268+
! Open inline in an in-app browser, but provide a button to open the document in the default browser (may require the user to sign in).
269+
270+
!===
271+
272+
|advanced `candidate`
273+
236274
|===
237275
end::actions[]
238276

@@ -713,6 +751,24 @@ tag::connection[]
713751
|Enable or disable per-process, in-memory cookie storage.
714752
|supported `candidate`
715753

754+
|http.traffic-log-format
755+
|string
756+
|`json`
757+
|If request and response logging is enabled, the format to use.
758+
[cols="1,1"]
759+
!===
760+
! Value
761+
! Description
762+
! `json`
763+
! JSON
764+
765+
! `plain`
766+
! Plain text
767+
768+
!===
769+
770+
|supported `candidate`
771+
716772
|http.user-agent
717773
|string
718774
|`ownCloudApp/{{app.version}} ({{app.part}}/{{app.build}}; {{os.name}}/{{os.version}}; {{device.model}})`
@@ -1045,6 +1101,9 @@ tag::extensions[]
10451101
! `com.owncloud.action.delete`
10461102
! Extension with the identifier com.owncloud.action.delete.
10471103

1104+
! `com.owncloud.action.discardscene`
1105+
! Extension with the identifier com.owncloud.action.discardscene.
1106+
10481107
! `com.owncloud.action.duplicate`
10491108
! Extension with the identifier com.owncloud.action.duplicate.
10501109

@@ -1066,6 +1125,9 @@ tag::extensions[]
10661125
! `com.owncloud.action.openin`
10671126
! Extension with the identifier com.owncloud.action.openin.
10681127

1128+
! `com.owncloud.action.openscene`
1129+
! Extension with the identifier com.owncloud.action.openscene.
1130+
10691131
! `com.owncloud.action.pdfpage`
10701132
! Extension with the identifier com.owncloud.action.pdfpage.
10711133

ownCloud Share Extension/ShareExtensionViewController.swift

+7
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,13 @@ class ShareExtensionViewController: EmbeddingViewController, Themeable {
344344
// Show location picker
345345
showLocationPicker()
346346
}
347+
348+
// Log in to first account if there's only one
349+
let bookmarks = OCBookmarkManager.shared.bookmarks
350+
351+
if bookmarks.count == 1, let onlyBookmark = bookmarks.first {
352+
AccountConnectionPool.shared.connection(for: onlyBookmark)?.connect()
353+
}
347354
}
348355
}
349356

0 commit comments

Comments
 (0)