aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/css/icons.css6
-rw-r--r--apps/files_sharing/css/icons.css.map2
-rw-r--r--apps/files_sharing/css/icons.scss6
-rw-r--r--apps/files_sharing/css/mobile.css8
-rw-r--r--apps/files_sharing/css/mobile.css.map1
-rw-r--r--apps/files_sharing/css/mobile.css.map.license3
-rw-r--r--apps/files_sharing/css/mobile.scss67
-rw-r--r--apps/files_sharing/css/public.css8
-rw-r--r--apps/files_sharing/css/public.css.map1
-rw-r--r--apps/files_sharing/css/public.css.map.license3
-rw-r--r--apps/files_sharing/css/public.scss250
-rw-r--r--apps/files_sharing/css/publicView.css15
-rw-r--r--apps/files_sharing/css/publicView.css.map1
-rw-r--r--apps/files_sharing/css/publicView.css.map.license2
-rw-r--r--apps/files_sharing/css/publicView.scss6
-rw-r--r--apps/files_sharing/templates/public.php143
-rw-r--r--build/psalm-baseline.xml6
17 files changed, 4 insertions, 524 deletions
diff --git a/apps/files_sharing/css/icons.css b/apps/files_sharing/css/icons.css
index b27ee91e37d..3a81b66561f 100644
--- a/apps/files_sharing/css/icons.css
+++ b/apps/files_sharing/css/icons.css
@@ -1,10 +1,4 @@
/*!
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
- *//*!
- * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- *//*!
- * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
*/.icon-room{background-image:var(--icon-talk-dark)}.icon-circle{background-image:var(--icon-circles-dark)}.icon-guests{background-image:var(--icon-user-dark)}/*# sourceMappingURL=icons.css.map */
diff --git a/apps/files_sharing/css/icons.css.map b/apps/files_sharing/css/icons.css.map
index 33f84dc03d4..8a0933ead82 100644
--- a/apps/files_sharing/css/icons.css.map
+++ b/apps/files_sharing/css/icons.css.map
@@ -1 +1 @@
-{"version":3,"sourceRoot":"","sources":["icons.scss","../../../core/css/variables.scss","../../../core/css/functions.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA,GCEA;AAAA;AAAA;AAAA,GCFA;AAAA;AAAA;AAAA,GFQA,WACC,uCAGD,aACC,0CAGD,aACC","file":"icons.css"} \ No newline at end of file
+{"version":3,"sourceRoot":"","sources":["icons.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA,GAQA,WACC,uCAGD,aACC,0CAGD,aACC","file":"icons.css"} \ No newline at end of file
diff --git a/apps/files_sharing/css/icons.scss b/apps/files_sharing/css/icons.scss
index 3307a9fa4cb..6dcbd14d478 100644
--- a/apps/files_sharing/css/icons.scss
+++ b/apps/files_sharing/css/icons.scss
@@ -2,10 +2,10 @@
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-@use 'variables';
-@use 'functions';
-// This is the icons used in the sharing ui (multiselect)
+// This is the icons used in the sharing ui (SharingInput component)
+// loaded by apps/files_sharing/lib/Listener/LoadAdditionalListener.php
+
.icon-room {
background-image: var(--icon-talk-dark);
}
diff --git a/apps/files_sharing/css/mobile.css b/apps/files_sharing/css/mobile.css
deleted file mode 100644
index 6bab90e8c63..00000000000
--- a/apps/files_sharing/css/mobile.css
+++ /dev/null
@@ -1,8 +0,0 @@
-/*!
- * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
- * SPDX-FileCopyrightText: 2014 ownCloud, Inc.
- * SPDX-License-Identifier: AGPL-3.0-only
- *//*!
- * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */@media only screen and (max-width: 1024px){#header.share-file{position:absolute !important}table th.column-size,table td.filesize,table th.column-mtime,table td.date{display:none}table td.filename .nametext{max-width:75% !important}#imgframe{width:100%;padding:0}#imgframe .publicpreview{margin-top:32px}.files-fileList a.action img{padding-block:0;padding-inline:12px 6px}.files-fileList a.action:not(.menuitem) span{display:none}.nametext{width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#header .menutoggle{padding-inline-end:14px;background-position:center}.note{padding:0 20px}.emptycontent{margin-top:10vh}}/*# sourceMappingURL=mobile.css.map */
diff --git a/apps/files_sharing/css/mobile.css.map b/apps/files_sharing/css/mobile.css.map
deleted file mode 100644
index 7c6c212dbb0..00000000000
--- a/apps/files_sharing/css/mobile.css.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sourceRoot":"","sources":["mobile.scss","../../../core/css/variables.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA,GCEA;AAAA;AAAA;AAAA,GDKA,2CAGA,mBACC,6BAID,2EAIC,aAID,4BACC,yBAID,UACC,WACA,UAGD,yBACC,gBAID,6BACC,gBACA,wBAGD,6CACC,aAID,UACC,UACA,mBACA,gBACA,uBAGD,oBACI,wBACA,2BAEJ,MACC,eAGD,cACC","file":"mobile.css"} \ No newline at end of file
diff --git a/apps/files_sharing/css/mobile.css.map.license b/apps/files_sharing/css/mobile.css.map.license
deleted file mode 100644
index 3d60c440a9c..00000000000
--- a/apps/files_sharing/css/mobile.css.map.license
+++ /dev/null
@@ -1,3 +0,0 @@
-SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
-SPDX-FileCopyrightText: 2014 ownCloud, Inc.
-SPDX-License-Identifier: AGPL-3.0-only
diff --git a/apps/files_sharing/css/mobile.scss b/apps/files_sharing/css/mobile.scss
deleted file mode 100644
index 1f1a9b74357..00000000000
--- a/apps/files_sharing/css/mobile.scss
+++ /dev/null
@@ -1,67 +0,0 @@
-/*!
- * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
- * SPDX-FileCopyrightText: 2014 ownCloud, Inc.
- * SPDX-License-Identifier: AGPL-3.0-only
- */
-@use 'variables';
-
-@media only screen and (max-width: variables.$breakpoint-mobile) {
-
-/* make header scroll up for single shares, more view of content on small screens */
-#header.share-file {
- position: absolute !important;
-}
-
-/* hide size and date columns */
-table th.column-size,
-table td.filesize,
-table th.column-mtime,
-table td.date {
- display: none;
-}
-
-/* restrict length of displayed filename to prevent overflow */
-table td.filename .nametext {
- max-width: 75% !important;
-}
-
-/* on mobile, show single shared image at full width without margin */
-#imgframe {
- width: 100%;
- padding: 0;
-}
-/* some margin for the file type icon */
-#imgframe .publicpreview {
- margin-top: 32px;
-}
-
-/* some padding for better clickability */
-.files-fileList a.action img {
- padding-block: 0;
- padding-inline: 12px 6px;
-}
-/* hide text of the actions on mobile */
-.files-fileList a.action:not(.menuitem) span {
- display: none;
-}
-
-/* ellipsis on file names */
-.nametext {
- width: 60%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-#header .menutoggle {
- padding-inline-end: 14px;
- background-position: center;
-}
-.note {
- padding: 0 20px;
-}
-
-.emptycontent {
- margin-top: 10vh;
-}
-}
diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css
deleted file mode 100644
index 6b5d3933419..00000000000
--- a/apps/files_sharing/css/public.css
+++ /dev/null
@@ -1,8 +0,0 @@
-/*!
- * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
- * SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
- * SPDX-License-Identifier: AGPL-3.0-only
- *//*!
- * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */#preview{text-align:center}#preview .notCreatable{display:none}#noPreview{display:none;padding-top:80px}#imgframe{height:75%;padding-bottom:32px;padding-top:32px;width:80%;margin:0 auto}#imgframe #viewer{height:100%;width:100%}#imgframe img{max-height:calc(100vh - var(--header-height) - 65px - 200px - 16px) !important;max-width:100% !important;width:unset !important}#imgframe :not(#viewer) img{min-width:100px}#imgframe video{max-height:calc(100vh - var(--header-height) - 65px - 200px - 16px)}#imgframe .plyr:fullscreen video{max-height:unset}#imgframe audio{display:block;margin-inline:auto}#imgframe #viewer[data-handler=audios]{margin-top:400px}#imgframe .text-preview{display:inline-block;position:relative;text-align:start;white-space:pre-wrap;overflow-y:scroll;height:auto;min-height:200px;max-height:800px}#imgframe .ellipsis{font-size:1.2em}#imgframe .viewer__file{height:100%;width:100%}#imgframe .plyr{top:0px !important;max-height:100%}.app-files_sharing #app-content footer{position:sticky !important}thead{inset-inline-start:0 !important}#data-upload-form{position:relative;inset-inline-end:0;height:32px;overflow:hidden;padding:0;float:right;display:inline;margin:0}.directDownload #downloadFile{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:90%;display:inline-block;margin-inline:auto;margin-top:16px}.download-size{opacity:.5}#details{display:inline-flex}#details button,#details input,#details .button{margin:0 5px;line-height:normal}#details button:hover,#details input:hover,#details .button:hover{border-color:rgba(0,0,0,.3) !important}#public-upload .avatardiv{margin:0 auto}.emptycontent.has-note{margin-top:5vh}#public-upload .emptycontent h2{margin:10px 0 5px 0}#public-upload .emptycontent h2+p{margin-bottom:30px}#public-upload .emptycontent .icon-folder{height:16px;width:16px;background-size:16px;display:inline-block;vertical-align:text-top;margin-bottom:0;margin-inline-end:5px;opacity:1}#public-upload .emptycontent #displayavatar .icon-folder{height:48px;width:48px;background-size:48px}#public-upload .emptycontent .button{display:inline-block;height:auto;width:auto;background-size:16px;background-position:16px;opacity:.7;font-size:20px;line-height:initial;margin:20px;padding:10px 20px;padding-inline-start:42px}#public-upload .emptycontent ul{width:230px;margin:5px auto 5vh;text-align:start}#public-upload .emptycontent li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 0}#public-upload .emptycontent li img{margin-inline-end:5px;position:relative;top:2px}#drop-upload-progress-indicator span.icon-loading-small{padding-inline-start:18px;margin-inline-end:7px}#drop-uploaded-files li #drop-upload-name{float:left;max-width:180px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#drop-uploaded-files li #drop-upload-status{float:right}.disclaimer,.note{margin:0 auto 30px;max-width:400px;text-align:start}#note-content{padding:5px;display:inline-block;width:350px}#note-content .content{overflow:auto;max-height:200px}#show-terms-dialog{cursor:pointer;font-weight:bold}/*# sourceMappingURL=public.css.map */
diff --git a/apps/files_sharing/css/public.css.map b/apps/files_sharing/css/public.css.map
deleted file mode 100644
index a34a1422358..00000000000
--- a/apps/files_sharing/css/public.css.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sourceRoot":"","sources":["public.scss","../../../core/css/variables.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA,GCEA;AAAA;AAAA;AAAA,GDSA,SACC,kBAGD,uBACC,aAGD,WACC,aACA,iBAGD,UACC,WACA,oBACA,iBACA,UACA,cAGD,kBACC,YACA,WAGD,cACC,+EACA,0BACA,uBAGD,4BACI,gBAGJ,gBACC,oEAGD,iCACI,iBAGJ,gBACC,cACA,mBAGD,uCAEI,iBAGJ,wBACC,qBACA,kBACA,iBACA,qBACA,kBACA,YACA,iBACA,iBAGD,oBACC,gBAGD,wBACC,YACA,WAGD,gBACC,mBACA,gBAGD,uCACC,2BAID,MACC,gCAGD,kBACC,kBACA,mBACA,YACA,gBACA,UACA,YACA,eACA,SAID,8BACC,mBACA,gBACA,uBACA,cACA,qBACA,mBACA,gBAGD,eACC,WAID,SACC,oBAGD,gDAGC,aACA,mBAGD,kEAIC,uCAGD,0BACC,cAIA,uBACC,eAIF,gCACC,oBAGD,kCACC,mBAGD,0CACC,YACA,WACA,qBACA,qBACA,wBACA,gBACA,sBACA,UAGD,yDACC,YACA,WACA,qBAGD,qCACC,qBACA,YACA,WACA,qBACA,yBACA,WACA,eACA,oBACA,YACA,kBACA,0BAGD,gCACC,YACA,oBACA,iBAGD,gCACC,gBACA,uBACA,mBACA,cAGD,oCACC,sBACA,kBACA,QAGD,wDACC,0BACA,sBAGD,0CACC,WACA,gBACA,uBACA,mBACA,gBAGD,4CACC,YAGD,kBAEC,mBACA,gBACA,iBAGD,cACC,YACA,qBACA,YACA,uBACC,cACA,iBAIF,mBACC,eACA","file":"public.css"} \ No newline at end of file
diff --git a/apps/files_sharing/css/public.css.map.license b/apps/files_sharing/css/public.css.map.license
deleted file mode 100644
index 1c70f3b7dd4..00000000000
--- a/apps/files_sharing/css/public.css.map.license
+++ /dev/null
@@ -1,3 +0,0 @@
-SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
-SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
-SPDX-License-Identifier: AGPL-3.0-only
diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss
deleted file mode 100644
index 645aeeff357..00000000000
--- a/apps/files_sharing/css/public.scss
+++ /dev/null
@@ -1,250 +0,0 @@
-/*!
- * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
- * SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
- * SPDX-License-Identifier: AGPL-3.0-only
- */
-@use 'variables';
-
-$footer-height: 65px;
-$footer-padding-height: 16px;
-$download-button-section-height: 200px;
-
-#preview {
- text-align: center;
-}
-
-#preview .notCreatable {
- display: none;
-}
-
-#noPreview {
- display:none;
- padding-top:80px;
-}
-
-#imgframe {
- height:75%;
- padding-bottom:32px;
- padding-top:32px;
- width:80%;
- margin:0 auto;
-}
-
-#imgframe #viewer {
- height: 100%;
- width: 100%;
-}
-
-#imgframe img {
- max-height: calc(100vh - var(--header-height) - #{$footer-height} - #{$download-button-section-height} - #{$footer-padding-height}) !important;
- max-width: 100% !important;
- width: unset !important;
-}
-
-#imgframe :not(#viewer) img {
- min-width: 100px;
-}
-
-#imgframe video {
- max-height: calc(100vh - var(--header-height) - #{$footer-height} - #{$download-button-section-height} - #{$footer-padding-height});
-}
-
-#imgframe .plyr:fullscreen video {
- max-height: unset;
-}
-
-#imgframe audio {
- display: block;
- margin-inline: auto;
-}
-
-#imgframe #viewer[data-handler=audios] {
- // for speed settings
- margin-top: 400px;
-}
-
-#imgframe .text-preview {
- display: inline-block;
- position: relative;
- text-align: start;
- white-space: pre-wrap;
- overflow-y: scroll;
- height: auto;
- min-height: 200px;
- max-height: 800px;
-}
-
-#imgframe .ellipsis {
- font-size: 1.2em;
-}
-
-#imgframe .viewer__file {
- height: 100%;
- width: 100%;
-}
-
-#imgframe .plyr {
- top: 0px !important;
- max-height: 100%;
-}
-
-.app-files_sharing #app-content footer {
- position: sticky !important;
-}
-
-/* fix multiselect bar offset on shared page */
-thead {
- inset-inline-start: 0 !important;
-}
-
-#data-upload-form {
- position: relative;
- inset-inline-end: 0;
- height: 32px;
- overflow: hidden;
- padding: 0;
- float: right;
- display: inline;
- margin: 0;
-}
-
-/* keep long file names in one line to not overflow download button on mobile */
-.directDownload #downloadFile {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 90%;
- display: inline-block;
- margin-inline: auto;
- margin-top: 16px;
-}
-
-.download-size {
- opacity: .5;
-}
-
-/* header buttons */
-#details {
- display: inline-flex;
-}
-
-#details button,
-#details input,
-#details .button {
- margin: 0 5px;
- line-height: normal;
-}
-
-#details button:hover,
-#details input:hover,
-#details .button:hover {
- /* No */
- border-color: rgba(0,0,0,0.3) !important;
-}
-
-#public-upload .avatardiv {
- margin: 0 auto;
-}
-
-.emptycontent {
- &.has-note {
- margin-top: 5vh;
- }
-}
-
-#public-upload .emptycontent h2 {
- margin: 10px 0 5px 0;
-}
-
-#public-upload .emptycontent h2+p {
- margin-bottom: 30px;
-}
-
-#public-upload .emptycontent .icon-folder {
- height: 16px;
- width: 16px;
- background-size: 16px;
- display: inline-block;
- vertical-align: text-top;
- margin-bottom: 0;
- margin-inline-end: 5px;
- opacity: 1;
-}
-
-#public-upload .emptycontent #displayavatar .icon-folder {
- height: 48px;
- width: 48px;
- background-size: 48px;
-}
-
-#public-upload .emptycontent .button {
- display: inline-block;
- height: auto;
- width: auto;
- background-size: 16px;
- background-position: 16px;
- opacity: .7;
- font-size: 20px;
- line-height: initial;
- margin: 20px;
- padding: 10px 20px;
- padding-inline-start: 42px;
-}
-
-#public-upload .emptycontent ul {
- width: 230px;
- margin: 5px auto 5vh;
- text-align: start;
-}
-
-#public-upload .emptycontent li {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- padding: 7px 0;
-}
-
-#public-upload .emptycontent li img {
- margin-inline-end: 5px;
- position: relative;
- top: 2px;
-}
-
-#drop-upload-progress-indicator span.icon-loading-small {
- padding-inline-start: 18px;
- margin-inline-end: 7px;
-}
-
-#drop-uploaded-files li #drop-upload-name {
- float: left;
- max-width: 180px;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
-}
-
-#drop-uploaded-files li #drop-upload-status {
- float: right;
-}
-
-.disclaimer,
-.note {
- margin: 0 auto 30px;
- max-width: 400px;
- text-align: start;
-}
-
-#note-content {
- padding: 5px;
- display:inline-block;
- width: 350px;
- .content {
- overflow: auto;
- max-height: 200px;
- }
-}
-
-#show-terms-dialog {
- cursor: pointer;
- font-weight: bold;
-}
diff --git a/apps/files_sharing/css/publicView.css b/apps/files_sharing/css/publicView.css
deleted file mode 100644
index e7b2021d547..00000000000
--- a/apps/files_sharing/css/publicView.css
+++ /dev/null
@@ -1,15 +0,0 @@
-/*!
- * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- *//*!
- * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
- * SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
- * SPDX-License-Identifier: AGPL-3.0-only
- *//*!
- * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */#preview{text-align:center}#preview .notCreatable{display:none}#noPreview{display:none;padding-top:80px}#imgframe{height:75%;padding-bottom:32px;padding-top:32px;width:80%;margin:0 auto}#imgframe #viewer{height:100%;width:100%}#imgframe img{max-height:calc(100vh - var(--header-height) - 65px - 200px - 16px) !important;max-width:100% !important;width:unset !important}#imgframe :not(#viewer) img{min-width:100px}#imgframe video{max-height:calc(100vh - var(--header-height) - 65px - 200px - 16px)}#imgframe .plyr:fullscreen video{max-height:unset}#imgframe audio{display:block;margin-inline:auto}#imgframe #viewer[data-handler=audios]{margin-top:400px}#imgframe .text-preview{display:inline-block;position:relative;text-align:start;white-space:pre-wrap;overflow-y:scroll;height:auto;min-height:200px;max-height:800px}#imgframe .ellipsis{font-size:1.2em}#imgframe .viewer__file{height:100%;width:100%}#imgframe .plyr{top:0px !important;max-height:100%}.app-files_sharing #app-content footer{position:sticky !important}thead{inset-inline-start:0 !important}#data-upload-form{position:relative;inset-inline-end:0;height:32px;overflow:hidden;padding:0;float:right;display:inline;margin:0}.directDownload #downloadFile{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:90%;display:inline-block;margin-inline:auto;margin-top:16px}.download-size{opacity:.5}#details{display:inline-flex}#details button,#details input,#details .button{margin:0 5px;line-height:normal}#details button:hover,#details input:hover,#details .button:hover{border-color:rgba(0,0,0,.3) !important}#public-upload .avatardiv{margin:0 auto}.emptycontent.has-note{margin-top:5vh}#public-upload .emptycontent h2{margin:10px 0 5px 0}#public-upload .emptycontent h2+p{margin-bottom:30px}#public-upload .emptycontent .icon-folder{height:16px;width:16px;background-size:16px;display:inline-block;vertical-align:text-top;margin-bottom:0;margin-inline-end:5px;opacity:1}#public-upload .emptycontent #displayavatar .icon-folder{height:48px;width:48px;background-size:48px}#public-upload .emptycontent .button{display:inline-block;height:auto;width:auto;background-size:16px;background-position:16px;opacity:.7;font-size:20px;line-height:initial;margin:20px;padding:10px 20px;padding-inline-start:42px}#public-upload .emptycontent ul{width:230px;margin:5px auto 5vh;text-align:start}#public-upload .emptycontent li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 0}#public-upload .emptycontent li img{margin-inline-end:5px;position:relative;top:2px}#drop-upload-progress-indicator span.icon-loading-small{padding-inline-start:18px;margin-inline-end:7px}#drop-uploaded-files li #drop-upload-name{float:left;max-width:180px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#drop-uploaded-files li #drop-upload-status{float:right}.disclaimer,.note{margin:0 auto 30px;max-width:400px;text-align:start}#note-content{padding:5px;display:inline-block;width:350px}#note-content .content{overflow:auto;max-height:200px}#show-terms-dialog{cursor:pointer;font-weight:bold}/*!
- * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
- * SPDX-FileCopyrightText: 2014 ownCloud, Inc.
- * SPDX-License-Identifier: AGPL-3.0-only
- */@media only screen and (max-width: 1024px){#header.share-file{position:absolute !important}table th.column-size,table td.filesize,table th.column-mtime,table td.date{display:none}table td.filename .nametext{max-width:75% !important}#imgframe{width:100%;padding:0}#imgframe .publicpreview{margin-top:32px}.files-fileList a.action img{padding-block:0;padding-inline:12px 6px}.files-fileList a.action:not(.menuitem) span{display:none}.nametext{width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#header .menutoggle{padding-inline-end:14px;background-position:center}.note{padding:0 20px}.emptycontent{margin-top:10vh}}/*# sourceMappingURL=publicView.css.map */
diff --git a/apps/files_sharing/css/publicView.css.map b/apps/files_sharing/css/publicView.css.map
deleted file mode 100644
index 25f1abf527a..00000000000
--- a/apps/files_sharing/css/publicView.css.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sourceRoot":"","sources":["publicView.scss","../../../core/css/variables.scss","public.scss","mobile.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GCEA;AAAA;AAAA;AAAA,GCSA,SACC,kBAGD,uBACC,aAGD,WACC,aACA,iBAGD,UACC,WACA,oBACA,iBACA,UACA,cAGD,kBACC,YACA,WAGD,cACC,+EACA,0BACA,uBAGD,4BACI,gBAGJ,gBACC,oEAGD,iCACI,iBAGJ,gBACC,cACA,mBAGD,uCAEI,iBAGJ,wBACC,qBACA,kBACA,iBACA,qBACA,kBACA,YACA,iBACA,iBAGD,oBACC,gBAGD,wBACC,YACA,WAGD,gBACC,mBACA,gBAGD,uCACC,2BAID,MACC,gCAGD,kBACC,kBACA,mBACA,YACA,gBACA,UACA,YACA,eACA,SAID,8BACC,mBACA,gBACA,uBACA,cACA,qBACA,mBACA,gBAGD,eACC,WAID,SACC,oBAGD,gDAGC,aACA,mBAGD,kEAIC,uCAGD,0BACC,cAIA,uBACC,eAIF,gCACC,oBAGD,kCACC,mBAGD,0CACC,YACA,WACA,qBACA,qBACA,wBACA,gBACA,sBACA,UAGD,yDACC,YACA,WACA,qBAGD,qCACC,qBACA,YACA,WACA,qBACA,yBACA,WACA,eACA,oBACA,YACA,kBACA,0BAGD,gCACC,YACA,oBACA,iBAGD,gCACC,gBACA,uBACA,mBACA,cAGD,oCACC,sBACA,kBACA,QAGD,wDACC,0BACA,sBAGD,0CACC,WACA,gBACA,uBACA,mBACA,gBAGD,4CACC,YAGD,kBAEC,mBACA,gBACA,iBAGD,cACC,YACA,qBACA,YACA,uBACC,cACA,iBAIF,mBACC,eACA,iBCxPD;AAAA;AAAA;AAAA;AAAA,GAOA,2CAGA,mBACC,6BAID,2EAIC,aAID,4BACC,yBAID,UACC,WACA,UAGD,yBACC,gBAID,6BACC,gBACA,wBAGD,6CACC,aAID,UACC,UACA,mBACA,gBACA,uBAGD,oBACI,wBACA,2BAEJ,MACC,eAGD,cACC","file":"publicView.css"} \ No newline at end of file
diff --git a/apps/files_sharing/css/publicView.css.map.license b/apps/files_sharing/css/publicView.css.map.license
deleted file mode 100644
index dddb428772d..00000000000
--- a/apps/files_sharing/css/publicView.css.map.license
+++ /dev/null
@@ -1,2 +0,0 @@
-SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
-SPDX-License-Identifier: AGPL-3.0-or-later
diff --git a/apps/files_sharing/css/publicView.scss b/apps/files_sharing/css/publicView.scss
deleted file mode 100644
index 9f61141d330..00000000000
--- a/apps/files_sharing/css/publicView.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */
-@use 'public';
-@use 'mobile';
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
deleted file mode 100644
index d328d57dee2..00000000000
--- a/apps/files_sharing/templates/public.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-
-/**
- * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
- * SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
- * SPDX-License-Identifier: AGPL-3.0-only
- */
-/** @var \OCP\IL10N $l */
-/** @var array $_ */
-?>
-<div id="app-content">
-<?php if ($_['previewSupported']): /* This enables preview images for links (e.g. on Facebook, Google+, ...)*/?>
- <link rel="image_src" href="<?php p($_['previewImage']); ?>" />
-<?php endif; ?>
-
-<input type="hidden" id="sharingUserId" value="<?php p($_['owner']) ?>">
-<input type="hidden" id="filesApp" name="filesApp" value="1">
-<input type="hidden" id="isPublic" name="isPublic" value="1">
-<?php if (!$_['hideDownload']): ?>
- <input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL">
-<?php endif; ?>
-<input type="hidden" name="previewURL" value="<?php p($_['previewURL']) ?>" id="previewURL">
-<input type="hidden" name="sharingToken" value="<?php p($_['sharingToken']) ?>" id="sharingToken">
-<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename">
-<input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype">
-<input type="hidden" name="previewSupported" value="<?php p($_['previewSupported'] ? 'true' : 'false'); ?>" id="previewSupported">
-<input type="hidden" name="mimetypeIcon" value="<?php p(\OCP\Server::get(\OCP\Files\IMimeTypeDetector::class)->mimeTypeIcon($_['mimetype'])); ?>" id="mimetypeIcon">
-<input type="hidden" name="hideDownload" value="<?php p($_['hideDownload'] ? 'true' : 'false'); ?>" id="hideDownload">
-<input type="hidden" id="disclaimerText" value="<?php p($_['disclaimer']) ?>">
-
-<?php
-$upload_max_filesize = \OCP\Server::get(\bantu\IniGetWrapper\IniGetWrapper::class)->getBytes('upload_max_filesize');
-$post_max_size = \OCP\Server::get(\bantu\IniGetWrapper\IniGetWrapper::class)->getBytes('post_max_size');
-$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
-?>
-<input type="hidden" name="maxFilesizeUpload" value="<?php p($maxUploadFilesize); ?>" id="maxFilesizeUpload">
-
-<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)): ?>
- <input type="hidden" name="filesize" value="<?php p($_['nonHumanFileSize']); ?>" id="filesize">
-<?php endif; ?>
-<input type="hidden" name="maxSizeAnimateGif" value="<?php p($_['maxSizeAnimateGif']); ?>" id="maxSizeAnimateGif">
-<?php if (isset($_['note']) && $_['note'] !== '') : ?>
- <div id="notemenu" class="hidden">
- <div class="icon-comment-white menutoggle" tabindex="0" role="button" aria-haspopup="true" aria-controls="note-content" aria-expanded="false">
- <span class="hidden-visually"><?php p($l->t('Share note'))?></span>
- </div>
- <div id="note-content" class="menu" aria-label="Note content">
- <div class="content">
- <?php p($_['note']); ?>
- </div>
- </div>
- </div>
-<?php endif; ?>
-
-<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?>
- <!-- ONLY if this is a folder, we show the grid toggle button -->
- <?php if (empty($_['dir']) === false) { ?>
- <input type="checkbox" class="hidden-visually" id="showgridview"
- <?php if ($_['showgridview']) { ?>checked="checked" <?php } ?>/>
- <label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>"
- title="<?php p($_['showgridview'] ? $l->t('Show list view') : $l->t('Show grid view'))?>"></label>
- <?php } ?>
-
- <!-- files listing -->
- <div id="files-public-content">
- <div id="preview">
- <?php if (isset($_['folder'])): ?>
- <?php print_unescaped($_['folder']); ?>
- <?php else: ?>
- <!-- preview frame to open file in with viewer -->
- <div id="imgframe"></div>
- <?php if (isset($_['mimetype']) && str_starts_with($_['mimetype'], 'image')): ?>
- <div class="directDownload">
- <div>
- <?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
- </div>
- <?php if (!$_['hideDownload']) { ?>
- <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
- <span class="icon icon-download"></span>
- <?php p($l->t('Download'))?>
- </a>
- <?php } ?>
- </div>
- <?php elseif ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
- <div class="directDownload">
- <div>
- <?php p($_['filename'])?>&nbsp;(<?php p($_['fileSize']) ?>)
- </div>
- <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
- <span class="icon icon-download"></span>
- <?php p($l->t('Download'))?>
- </a>
- </div>
- <?php endif; ?>
- <?php endif; ?>
- </div>
- </div>
-<?php } else { ?>
- <input type="hidden" id="upload-only-interface" value="1"/>
- <div id="public-upload">
- <div
- id="emptycontent"
- class="emptycontent <?php if (!empty($_['note'])) { ?>has-note<?php } ?>">
- <?php if ($_['shareOwner']) { ?>
- <div id="displayavatar"><div class="avatardiv"></div></div>
- <h2><?php p($l->t('Upload files to %s', [$_['label'] ?: $_['filename']])) ?></h2>
- <p><?php p($l->t('%s shared a folder with you.', [$_['shareOwner']])) ?></p>
- <?php } else { ?>
- <div id="displayavatar"><span class="icon-folder"></span></div>
- <h2><?php p($l->t('Upload files to %s', [$_['label'] ?: $_['filename']])) ?></h2>
- <?php } ?>
-
- <?php if (empty($_['note']) === false) { ?>
- <h3><?php p($l->t('Note')); ?></h3>
- <p class="note"><?php p($_['note']); ?></p>
- <?php } ?>
-
- <input type="file" name="files[]" class="hidden" multiple>
- <a href="#" class="button icon-upload"><?php p($l->t('Select or drop files')) ?></a>
- <div id="drop-upload-progress-indicator" style="padding-top: 25px;" class="hidden"><span class="icon-loading-small"></span><?php p($l->t('Uploading files')) ?></div>
- <div id="drop-upload-done-indicator" style="padding-top: 25px;" class="hidden"><?php p($l->t('Uploaded files:')) ?></div>
- <ul id="drop-uploaded-files"></ul>
-
- <?php if ($_['disclaimer'] !== '') { ?>
- <div>
- <?php
- echo $l->t('By uploading files, you agree to the %1$sterms of service%2$s.', [
- '<span id="show-terms-dialog">', '</span>'
- ]);
- ?>
- </div>
- <?php } ?>
- </div>
- </div>
-<?php } ?>
-
-<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] !== true)): ?>
- <div class="hiddenuploadfield">
- <input type="file" id="file_upload_start" class="hiddenuploadfield" name="files[]"
- data-url="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkTo('files', 'ajax/upload.php')); ?>" />
- </div>
-<?php endif; ?>
-</div>
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 5847d0138f3..596ff92519e 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -1749,12 +1749,6 @@
<code><![CDATA[moveMount]]></code>
</UndefinedMethod>
</file>
- <file src="apps/files_sharing/templates/public.php">
- <RedundantCondition>
- <code><![CDATA[$_['hideFileList'] !== true]]></code>
- <code><![CDATA[isset($_['hideFileList']) && $_['hideFileList'] !== true]]></code>
- </RedundantCondition>
- </file>
<file src="apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php">
<DeprecatedClass>
<code><![CDATA[\OC_Util::setupFS($user)]]></code>