-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hamza Mahjoubi <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
- Loading branch information
1 parent
6dd5c4c
commit 9429e72
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -343,7 +343,7 @@ var b4=Object.defineProperty;var y4=(e,r,a)=>r in e?b4(e,r,{enumerable:!0,config | |
* 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/>. | ||
* | ||
*/const lT=function(e){const r=e.split("/"),a=r[r.length-1];return[r.slice(0,r.length-1).join("/"),a]},Rj=function(e,r,a,n=!0){return e.isFavorite&&!r.isFavorite?-1:!e.isFavorite&&r.isFavorite?1:Rg(e[a])&&Rg(r[a])?Number(e[a])-Number(r[a]):e.type==="directory"&&r.type!=="directory"?-1:e.type!=="directory"&&r.type==="directory"?1:n?e[a].localeCompare(r[a],OC.getLanguage(),{numeric:!0}):-e[a].localeCompare(r[a],OC.getLanguage(),{numeric:!0})},B1=function(e){const r={};return Object.keys(e).forEach(a=>{const n=e[a];n&&typeof n=="object"&&!Array.isArray(n)?Object.assign(r,B1(n)):n==="false"?r[th(a)]=!1:n==="true"?r[th(a)]=!0:r[th(a)]=Rg(n)?Number(n):n}),r};function yc({filename:e,basename:r,source:a=""}){if(Gs())return Wo("/s/".concat(R1(),"/download?path={dirname}&files={basename}"),{dirname:tj(e),basename:r});const n=N1();return a&&!a.includes(n)?null:(e.startsWith(n)&&(e=e.slice(n.length)),k1()+nd(e))}/** | ||
*/const lT=function(e){const r=e.split("/"),a=r[r.length-1];return[r.slice(0,r.length-1).join("/"),a]},Rj=function(e,r,a,n=!0){if(e.isFavorite&&!r.isFavorite)return-1;if(!e.isFavorite&&r.isFavorite)return 1;if(Rg(e[a])&&Rg(r[a])){const i=Number(e[a])-Number(r[a]);return n?i:-i}if(e.type==="directory"&&r.type!=="directory")return-1;if(e.type!=="directory"&&r.type==="directory")return 1;if(a==="lastmod"){const i=new Date(e[a]).getTime()-new Date(r[a]).getTime();return n?-i:i}return n?e[a].localeCompare(r[a],OC.getLanguage(),{numeric:!0}):-e[a].localeCompare(r[a],OC.getLanguage(),{numeric:!0})},B1=function(e){const r={};return Object.keys(e).forEach(a=>{const n=e[a];n&&typeof n=="object"&&!Array.isArray(n)?Object.assign(r,B1(n)):n==="false"?r[th(a)]=!1:n==="true"?r[th(a)]=!0:r[th(a)]=Rg(n)?Number(n):n}),r};function yc({filename:e,basename:r,source:a=""}){if(Gs())return Wo("/s/".concat(R1(),"/download?path={dirname}&files={basename}"),{dirname:tj(e),basename:r});const n=N1();return a&&!a.includes(n)?null:(e.startsWith(n)&&(e=e.slice(n.length)),k1()+nd(e))}/** | ||
* @copyright Copyright (c) 2020 John Molakvoæ <[email protected]> | ||
* | ||
* @author John Molakvoæ <[email protected]> | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters