From 0bf6fcd6cd0ef87fc8e41f34fbc939a5f2bd9a7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?=
 <skjnldsv@protonmail.com>
Date: Fri, 8 Nov 2019 09:29:20 +0100
Subject: [PATCH] Create sharing entry point with constants
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
---
 .../js/dist/additionalScripts.js              | Bin 15776 -> 15564 bytes
 .../js/dist/additionalScripts.js.map          | Bin 57495 -> 56965 bytes
 apps/files_sharing/js/dist/files_sharing.js   | Bin 13316 -> 13316 bytes
 .../js/dist/files_sharing.js.map              | Bin 45665 -> 45665 bytes
 apps/files_sharing/js/dist/main.js            | Bin 0 -> 2043 bytes
 apps/files_sharing/js/dist/main.js.map        | Bin 0 -> 6268 bytes
 .../files_sharing/lib/AppInfo/Application.php |   7 ++++
 apps/files_sharing/src/index.js               |  36 ++++++++++++++++++
 apps/files_sharing/src/share.js               |  12 ------
 apps/files_sharing/webpack.js                 |   5 ++-
 10 files changed, 46 insertions(+), 14 deletions(-)
 create mode 100644 apps/files_sharing/js/dist/main.js
 create mode 100644 apps/files_sharing/js/dist/main.js.map
 create mode 100644 apps/files_sharing/src/index.js

diff --git a/apps/files_sharing/js/dist/additionalScripts.js b/apps/files_sharing/js/dist/additionalScripts.js
index fbffbf8343983a593f5cfebfe975dd633bd2ddd5..6c8e60d09c110fc99fcd71a461e7fa0603520924 100644
GIT binary patch
delta 140
zcmZ2beWr3l0_$cIwk!IK{*yV)>VagZnH8h+<RfNrK(?}Zr<}8frlwAbZM<GmW?qU$
zUTIE_PLWQYj-sKaPNHr6<WuHS>_8<z73q^-n{QMv(+RfKD6@@@)k!POOD@UG&(lcN
pDbcJhN-ZfZ%2OzdPK~uK(J7mJ*g~B#e)4OJi;U@;_gX$?1^@|tF(3c{

delta 334
zcmX?8xuAMO0&Bfqa7JQLs%^YpYDGzEUW$glGeo4Orn*+AI@rT8$TdDBGQc%HG}txB
z%0LH6#68GAG{DLbS;)uJ&)dovS;W=X(bLDu1X(D^)z?47)yfPc763Ee*)z!5$JNRl
zS)qHVYjB8_1+oxCZ#=|mOB5M@e_ty@gU!*bH}x5vC!3nq1IewXR*e3WKbXb=+5Tpo
z9R3=bnmQ%6Ws@J6i7J)pC1nDAoL8EYqf?}lr=w_~S(}<uoT^Y{3seVG<~mv2d?Q=D
oPOz;;{N!`yk{t2Tsj;>tI`Na=o2xUHO%}Jf$mqKHrNv`r0I}j~mH+?%

diff --git a/apps/files_sharing/js/dist/additionalScripts.js.map b/apps/files_sharing/js/dist/additionalScripts.js.map
index 0aa21c13eed36561244367e414a616aa13b1a0b4..45d207f470a2d88aba9eb933a44a9109325e0917 100644
GIT binary patch
delta 5807
zcmeHLOKf9T8J06MB|)?^Vw!p8HJL|d#&_zs<78$+&pG${`uf^&9LM8HgeaaQV>^Dt
zjvdDdNR}!gv1nCQM^(j!cEbjNRFR4WP^3ylY^t(ggVYL*)CCe7K<q%3`2YW0XPlWZ
zfY^59<ec-L|M~robKm~(*!Mm-_TJma<-&>ECo;wS*82YUPk4^WkB)ogkB?uKo)gc>
ze;l9u%3>;&oYW>|{ng?9j|YE#@?`R%u33y(LQ6B2&Paa#PPfiAlQFZwwG=a#wLD`*
zu4@Kk83Sn>LMw6Hi#mHi91xmdCUaN;>1vD)O>LQpHW#>9kJFZ|<(LTZ#KD5)wG8kU
zAk>)QnkBzDe`9zL{&}pHW;13N`2Ot+Uvmv@ASE;XLM~i9J6I>)Mni61eCsS+M>XAC
zTV<jsJkE0e;z-wZZjUH4UZFKO6D{F$*79eg(QZH|rdch?SW<xDEM;m{pbPL4*`AD(
z5=YQkTA1hx|A9_uO`xmuDvB}}!DXmxP=Je=+!<RK_B^daP?w*L&H9fxQBpf%lcd@{
zj&WLVlE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@>jrtvpwiQD3PWWQ<^mwv<W+)62F@)SF`2C&&^0=zsY#2q%cMwdl}cd_-art|
z3<lO2{%<40thO+>l2doCy>>KA&ucqssfVvm_1brtQXx}qc!CX@f-g)2%PO5`b%g-d
z5a0#JJgD?&B`SUc9!e-1m6_|HEzDXY{fngJI?5HzAwH>od;R(|ZKN=7wTPlXD`vHH
zuEEO;y$0hVJhQer3C=nhUC}e7zJQiv=RjFHEUlg9$A04Km9aJs#A}1h&Xx(2`{D)P
z)Ak!l-zx!iIoK3S6=G9_i5Ixd!xI{fZKOdv_%v9{g1^KZX;%p1CbOaXK#XsxcUUw8
zJPzovLhK4bnppSi0AKVdEAz_3M}|Rp5WY}TGkm#MMJXAG1eWY5eHU5b+Xzcg0dMKP
zdbhCu*<j#!x4|EEECz+j)ZDF#N{VkDbwcDxtAB`h2Ucg)?-Iu^fRh|#_T%F~1r9J;
zHFaG6@R98-E^J5%shf<|Qh$)I#=5iQP5hIIk{cK4L-RbEU6+)`c>=;3AD~rlC9gcV
zz5n*k?~^003$Zj}I}7=QZVc-h2gS#Nw85Q?or|fTyN-fB7QFjKOa0r5Uvj$U`<FuX
z!qn?fn*TEOaaTb3?R26^nwqUV)i(XgYR@4QWd9qu^QjC4Z{o*v(M)vpE&a*Xqu#Y2
zKMyScjvAsxtsvLdt-{L@b+@BAbtD}a4w3`Smb#ucPI(8V;5Q;KUn%T-D&0EP%ZjJy
zCj<92_syr4yY1!1(!}oGOE0-!eA#fn_+0zB2K?9F_Y*=PFK6R!pK-_${j3mo`wu%y
zThn&j9o#+Y?PDo3%u2`Iq20rMXZjb5xO?)jLt)K|w2ZqWhaJ+-A8~i|u(Mg|-TNUV
Z?v5Qw1HXuXF+TLb%TMh5>Df0w{U6dBD=`27

diff --git a/apps/files_sharing/js/dist/files_sharing.js b/apps/files_sharing/js/dist/files_sharing.js
index fbc11b2181132260add7fc069f80f7461fe648b2..b8c19e4a8407063acfa8e76378c67456522931fc 100644
GIT binary patch
delta 55
zcmZq4Xvx^n&&*|PVxU>8Q4ORf&tz5yat$?gN;Hg3j3%FA_Fx8bH;b|eNCFu~n>A$b
Ghyeh++78?R

delta 55
zcmZq4Xvx^n&&*|LZmC(TQ4ORf&tz8TGPE$z)G5(0v@o1}irIr1$lWZ;A|MH57;e^(
Hy(0zyz+eva

diff --git a/apps/files_sharing/js/dist/files_sharing.js.map b/apps/files_sharing/js/dist/files_sharing.js.map
index 07e1802b39374f6f7e86eebeb8e88bbf6e9a013c..4c96b89123b6e15c0bc4ff8e6fb4105a71222c10 100644
GIT binary patch
delta 18
acmaF(gz4cErVUfwn2k*gHqUT7nGFC}IS6?G

delta 18
acmaF(gz4cErVUfwm<`P>H_vc8nGFC}bO?h0

diff --git a/apps/files_sharing/js/dist/main.js b/apps/files_sharing/js/dist/main.js
new file mode 100644
index 0000000000000000000000000000000000000000..eaff364433db280c4dcf62cc638861bb0ca42071
GIT binary patch
literal 2043
zcmb7Fe{b715dA-&;-UeDR0wj?1Y0XtUA@3byxFlK+bDve2x#eKE2T++r0g25zRteL
zzSxeo{A2BcZ9ovyN8Y=4?;h#%tQ3jKrEt;PESUlmZK~Ej2+9@SCeK{+yZGcOG^G+?
z*8zShq%yi?Q)FaA(IyXt&%^UezupWtRn@AK&?Y5}b64(jed!<9%A+qlI=?u^Ditgu
z^i_~VhW@9~o|TKf@rjoTq+NPnzYeC)n3y2NEEhObvOs0l+hZFP<pLF(atsN4h9(r1
zR}r2%!SgmwDR$YZa~_#>fii>9dNGx}(b#<kMvjci#ca%GjmAqAzd!4fth~g~>C3d_
z=v1EnQnK^(gt|VqPdmTZ(KRP@sb@Qs%Z6z*T#OXW&hy_i%zi@HqTOq|>&UG#PPFd{
z8x8vx94j4@>?}o8lS>pbgRUq!_beO<MqYS<y6_!RkCogw{x^#6nn&vT^_Gy{YIqbG
zy-X^1Ya_@7phuH-1$pBzZEE&lBJ-&Vrn#UK#LJhSxA&K@BNZna?cMxMw?7|XkEqr+
zmU|Wc!{))kmY4Az=8*cnvE}4RIXjY?Wi4Q#q><K1!JO&AO6+a9y9L&_7Ndxq=Cf`(
zz9NNnbaj2@Rqlp9j$G`~%~|u+t21~79}-!tRX&>=xH+uc#Dmutmv7-$ITz5EoPA!(
zKmUMt`t!5ksa}5Ak`W7*^B|Fn_k^?sW2Ko(^}o}2o}kbOcMlV2-wk`PM5XBsfh!<1
zCf2~oJ8B=UtBvQm1|l+3Yyq^)6e4JunH5tQ!djM)FaZkF+?r%s8id>sT-qemg-r8o
zZCO*yURHXl<_J_~p@A-|{j%kgWvC?Fp`csOVOUOyE%a)}Ok0G)2K5|Mn69^px0cGN
zrUJK;@R@xSeZZW651rTsx1}sfjp^H-U1n?p^cEI2&--44-~|<q&8F7>wv9QxU$h`d
zYIT)!4pW3uV^(tC7A9rjV|RQ%n2e$Q@CYB<aom0wKep&F&69R<i94u#QShAlB#9Lh
zW=-@hLcbH=+*3;Xmu{~+ezYCjcE=B$(Fkq_F|=XWj>p}bNv|Ela1sv(qfP)YB9Vxn
z1^9QR=~mOs6hexIY^V4AKhl^rk>n}N*%E2o3Fb?p$iQ0rKabL~U|fpXwrS#ZG*<xK
z41_d3Xkz?sZcGt2o2%6-n29owYSyd`tefv^TFtZi)-tX0nQ#X;{$@0{zTAxN+i~Y<
z{5b49O-7wKyzoyVcky5{3@=YZz3#(r;niuR({Fcs;q_@K?(_%aPWa<#?4}#v^g7{B
zr?I<9XEYAqoQ8I(PrJ%*|F$z2^ux=GiheLEuXWaJ{y^8OR0;N3QP2<9B<@A@1c=~S
I2MbpG1xn7e!~g&Q

literal 0
HcmV?d00001

diff --git a/apps/files_sharing/js/dist/main.js.map b/apps/files_sharing/js/dist/main.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..f381cb011f2458688572cf451f35b0372c8226b2
GIT binary patch
literal 6268
zcmb7Je|y?U4*n|B{Lw%kAGA$(+tSV64vs@yLP+@0HrMpwF))A=W3#pirQLj;`y%(n
z?v-YYO`zMmw!l~;X{1*gjXeE+aIfOTkH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O0KeB>jIOfAxvv?bgE@JnsV*R*(L
zgA$bXN0+rV@f^{6G{HBgHSuD1hOTaF;%Ik*Z*Xhk)$WYGjjf4acc=7yZcV)2o#JcV
rns~E2Q@q`+iMM+gaLEhfpOag7A$!1^72Wyj|6b_ezY%Z|aq#e8hIbX&

literal 0
HcmV?d00001

diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index 1e1a2ca1c8b..3cb3d87cfb2 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -51,8 +51,10 @@ use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Federation\ICloudIdManager;
 use OCP\IContainer;
 use OCP\Files\Config\IMountProviderCollection;
+use OCP\IContainer;
 use OCP\IGroup;
 use OCP\IServerContainer;
+use OCP\Util;
 use Symfony\Component\EventDispatcher\GenericEvent;
 
 class Application extends App {
@@ -189,6 +191,11 @@ class Application extends App {
 		$this->registerMountProviders($mountProviderCollection);
 		$this->registerEventsScripts($dispatcher);
 		$this->setupSharingMenus();
+
+		/**
+		 * Always add main sharing script
+		 */
+		Util::addScript(self::APP_ID, 'dist/main');
 	}
 
 	protected function registerMountProviders(IMountProviderCollection $mountProviderCollection) {
diff --git a/apps/files_sharing/src/index.js b/apps/files_sharing/src/index.js
new file mode 100644
index 00000000000..cc2e1c6e698
--- /dev/null
+++ b/apps/files_sharing/src/index.js
@@ -0,0 +1,36 @@
+/**
+ * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+// register default shares types
+Object.assign(OC, {
+	Share: {
+		SHARE_TYPE_USER: 0,
+		SHARE_TYPE_GROUP: 1,
+		SHARE_TYPE_LINK: 3,
+		SHARE_TYPE_EMAIL: 4,
+		SHARE_TYPE_REMOTE: 6,
+		SHARE_TYPE_CIRCLE: 7,
+		SHARE_TYPE_GUEST: 8,
+		SHARE_TYPE_REMOTE_GROUP: 9,
+		SHARE_TYPE_ROOM: 10
+	}
+})
diff --git a/apps/files_sharing/src/share.js b/apps/files_sharing/src/share.js
index a59cfda4b12..07c367fddab 100644
--- a/apps/files_sharing/src/share.js
+++ b/apps/files_sharing/src/share.js
@@ -21,18 +21,6 @@
 		OCA.Sharing = {}
 	}
 
-	OC.Share = _.extend(OC.Share || {}, {	
-		SHARE_TYPE_USER: 0,	
-		SHARE_TYPE_GROUP: 1,	
-		SHARE_TYPE_LINK: 3,	
-		SHARE_TYPE_EMAIL: 4,	
-		SHARE_TYPE_REMOTE: 6,	
-		SHARE_TYPE_CIRCLE: 7,	
-		SHARE_TYPE_GUEST: 8,	
-		SHARE_TYPE_REMOTE_GROUP: 9,	
-		SHARE_TYPE_ROOM: 10
-	})
-
 	/**
 	 * @namespace
 	 */
diff --git a/apps/files_sharing/webpack.js b/apps/files_sharing/webpack.js
index 43a34559d41..70759a684df 100644
--- a/apps/files_sharing/webpack.js
+++ b/apps/files_sharing/webpack.js
@@ -3,9 +3,10 @@ const path = require('path');
 module.exports = {
 	entry: {
 		'additionalScripts': path.join(__dirname, 'src', 'additionalScripts.js'),
-		'files_sharing': path.join(__dirname, 'src', 'files_sharing.js'),
-		'files_sharing_tab': path.join(__dirname, 'src', 'files_sharing_tab.js'),
 		'collaboration': path.join(__dirname, 'src', 'collaborationresourceshandler.js'),
+		'files_sharing_tab': path.join(__dirname, 'src', 'files_sharing_tab.js'),
+		'files_sharing': path.join(__dirname, 'src', 'files_sharing.js'),
+		'main': path.join(__dirname, 'src', 'index.js'),
 	},
 	output: {
 		path: path.resolve(__dirname, './js/dist/'),
-- 
GitLab