mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
optimize
This commit is contained in:
parent
8c54c2226f
commit
1088e8c6a5
|
@ -1,4 +1,9 @@
|
||||||
<!--
|
<!--
|
||||||
|
NOTE: DEPRECATED; please use the javascript version instead:
|
||||||
|
https://github.com/9001/copyparty/blob/hovudstraum/contrib/plugins/minimal-up2k.js
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
save this as .epilogue.html inside a write-only folder to declutter the UI, makes it look like
|
save this as .epilogue.html inside a write-only folder to declutter the UI, makes it look like
|
||||||
https://user-images.githubusercontent.com/241032/118311195-dd6ca380-b4ef-11eb-86f3-75a3ff2e1332.png
|
https://user-images.githubusercontent.com/241032/118311195-dd6ca380-b4ef-11eb-86f3-75a3ff2e1332.png
|
||||||
|
|
||||||
|
@ -11,7 +16,7 @@
|
||||||
|
|
||||||
/* make the up2k ui REALLY minimal by hiding a bunch of stuff: */
|
/* make the up2k ui REALLY minimal by hiding a bunch of stuff: */
|
||||||
|
|
||||||
#ops, #tree, #path, #epi+h2, /* main tabs and navigators (tree/breadcrumbs) */
|
#ops, #tree, #path, #wfp, /* main tabs and navigators (tree/breadcrumbs) */
|
||||||
|
|
||||||
#u2conf tr:first-child>td[rowspan]:not(#u2btn_cw), /* most of the config options */
|
#u2conf tr:first-child>td[rowspan]:not(#u2btn_cw), /* most of the config options */
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ almost the same as minimal-up2k.html except this one...:
|
||||||
var u2min = `
|
var u2min = `
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
#ops, #path, #tree, #files, #epi+div+h2,
|
#ops, #path, #tree, #files, #wfp,
|
||||||
#u2conf td.c+.c, #u2cards, #srch_dz, #srch_zd {
|
#u2conf td.c+.c, #u2cards, #srch_dz, #srch_zd {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
@ -55,5 +55,5 @@ var u2min = `
|
||||||
if (!has(perms, 'read')) {
|
if (!has(perms, 'read')) {
|
||||||
var e2 = mknod('div');
|
var e2 = mknod('div');
|
||||||
e2.innerHTML = u2min;
|
e2.innerHTML = u2min;
|
||||||
ebi('wrap').insertBefore(e2, QS('#epi+h2'));
|
ebi('wrap').insertBefore(e2, QS('#wfp'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue