From 52784fb7137788f8672b46518a4afab143a2b9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Mon, 27 Jun 2022 00:33:02 +0200 Subject: Remove unused CSS file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The style.css file was no longer loaded since the PDF viewer was adjusted to use the standard viewer app, so it can be removed. Signed-off-by: Daniel Calviño Sánchez --- css/style.css | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 css/style.css diff --git a/css/style.css b/css/style.css deleted file mode 100644 index 2fe1cef..0000000 --- a/css/style.css +++ /dev/null @@ -1,15 +0,0 @@ -/* force full height on public template */ -#body-public .full-height { - height: 100%; -} - -#body-public footer.hidden { - display: none; -} - -#pdframe { - /* The PDF frame uses an absolute position and thus fills the whole padding - * box of the content, so the top padding is needed here too to not overlap - * the header. */ - padding-top: inherit; -} -- cgit v1.2.3 From dffd28112bf524c67cad41e784fec839ec79d159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Mon, 27 Jun 2022 00:31:43 +0200 Subject: Fix footer not hidden when Talk sidebar is not shown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the Talk sidebar is shown the footer in public pages is moved into the "#app-content" element. However, by default the footer in public pages is a direct child of the body, so this needs to be taken into account when hiding the footer element, as the footer would not be moved if Talk is not enabled. Signed-off-by: Daniel Calviño Sánchez --- js/files_pdfviewer-public.js | 4 ++-- js/files_pdfviewer-public.js.map | 2 +- src/public.js | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/js/files_pdfviewer-public.js b/js/files_pdfviewer-public.js index 581120a..ce8f54a 100644 --- a/js/files_pdfviewer-public.js +++ b/js/files_pdfviewer-public.js @@ -1,3 +1,3 @@ /*! For license information please see files_pdfviewer-public.js.LICENSE.txt */ -!function(){var t={2200:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRequestToken",{enumerable:!0,get:function(){return n.getRequestToken}}),Object.defineProperty(e,"onRequestTokenUpdate",{enumerable:!0,get:function(){return n.onRequestTokenUpdate}}),Object.defineProperty(e,"getCurrentUser",{enumerable:!0,get:function(){return o.getCurrentUser}});var n=r(1894),o=r(1618)},1894:function(t,e,r){"use strict";var n=r(5108);r(9554),Object.defineProperty(e,"__esModule",{value:!0}),e.getRequestToken=function(){return c},e.onRequestTokenUpdate=function(t){a.push(t)};var o=r(2089),i=document.getElementsByTagName("head")[0],c=i?i.getAttribute("data-requesttoken"):null,a=[];(0,o.subscribe)("csrf-token-update",(function(t){c=t.token,a.forEach((function(e){try{e(t.token)}catch(t){n.error("error updating CSRF token observer",t)}}))}))},1618:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentUser=function(){if(null===n)return null;return{uid:n,displayName:i,isAdmin:c}};var r=document.getElementsByTagName("head")[0],n=r?r.getAttribute("data-user"):null,o=document.getElementsByTagName("head")[0],i=o?o.getAttribute("data-user-displayname"):null,c="undefined"!=typeof OC&&OC.isUserAdmin()},2089:function(t,e,r){"use strict";r.r(e),r.d(e,{emit:function(){return qo},subscribe:function(){return Bo},unsubscribe:function(){return $o}});var n=r(4155),o=r(5108),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function c(t){var e={exports:{}};return t(e,e.exports),e.exports}var a=function(t){return t&&t.Math==Math&&t},u=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof i&&i)||function(){return this}()||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},s=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y={f:p&&!l.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:l},g=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h={}.toString,v=function(t){return h.call(t).slice(8,-1)},d="".split,b=f((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?d.call(t,""):Object(t)}:Object,E=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return b(E(t))},O=function(t){return"object"==typeof t?null!==t:"function"==typeof t},S=function(t,e){if(!O(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!O(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!O(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!O(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},w=function(t){return Object(E(t))},A={}.hasOwnProperty,x=function(t,e){return A.call(w(t),e)},I=u.document,j=O(I)&&O(I.createElement),R=function(t){return j?I.createElement(t):{}},T=!s&&!f((function(){return 7!=Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a})),P=Object.getOwnPropertyDescriptor,N={f:s?P:function(t,e){if(t=m(t),e=S(e,!0),T)try{return P(t,e)}catch(t){}if(x(t,e))return g(!y.f.call(t,e),t[e])}},L=function(t){if(!O(t))throw TypeError(String(t)+" is not an object");return t},k=Object.defineProperty,_={f:s?k:function(t,e,r){if(L(t),e=S(e,!0),L(r),T)try{return k(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},F=s?function(t,e,r){return _.f(t,e,g(1,r))}:function(t,e,r){return t[e]=r,t},D=function(t,e){try{F(u,t,e)}catch(r){u[t]=e}return e},M="__core-js_shared__",U=u[M]||D(M,{}),C=Function.toString;"function"!=typeof U.inspectSource&&(U.inspectSource=function(t){return C.call(t)});var G,B,$,q=U.inspectSource,V=u.WeakMap,z="function"==typeof V&&/native code/.test(q(V)),W=c((function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.11.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=0,Y=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++X+Y).toString(36)},J=W("keys"),K=function(t){return J[t]||(J[t]=H(t))},Z={},Q="Object already initialized",tt=u.WeakMap;if(z){var et=U.state||(U.state=new tt),rt=et.get,nt=et.has,ot=et.set;G=function(t,e){if(nt.call(et,t))throw new TypeError(Q);return e.facade=t,ot.call(et,t,e),e},B=function(t){return rt.call(et,t)||{}},$=function(t){return nt.call(et,t)}}else{var it=K("state");Z[it]=!0,G=function(t,e){if(x(t,it))throw new TypeError(Q);return e.facade=t,F(t,it,e),e},B=function(t){return x(t,it)?t[it]:{}},$=function(t){return x(t,it)}}var ct={set:G,get:B,has:$,enforce:function(t){return $(t)?B(t):G(t,{})},getterFor:function(t){return function(e){var r;if(!O(e)||(r=B(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},at=c((function(t){var e=ct.get,r=ct.enforce,n=String(String).split("String");(t.exports=function(t,e,o,i){var c,a=!!i&&!!i.unsafe,f=!!i&&!!i.enumerable,s=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||x(o,"name")||F(o,"name",e),(c=r(o)).source||(c.source=n.join("string"==typeof e?e:""))),t!==u?(a?!s&&t[e]&&(f=!0):delete t[e],f?t[e]=o:F(t,e,o)):f?t[e]=o:D(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||q(this)}))})),ut=u,ft=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?ft(ut[t])||ft(u[t]):ut[t]&&ut[t][e]||u[t]&&u[t][e]},lt=Math.ceil,pt=Math.floor,yt=function(t){return isNaN(t=+t)?0:(t>0?pt:lt)(t)},gt=Math.min,ht=function(t){return t>0?gt(yt(t),9007199254740991):0},vt=Math.max,dt=Math.min,bt=function(t){return function(e,r,n){var o,i=m(e),c=ht(i.length),a=function(t,e){var r=yt(t);return r<0?vt(r+e,0):dt(r,e)}(n,c);if(t&&r!=r){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},Et={includes:bt(!0),indexOf:bt(!1)}.indexOf,mt=function(t,e){var r,n=m(t),o=0,i=[];for(r in n)!x(Z,r)&&x(n,r)&&i.push(r);for(;e.length>o;)x(n,r=e[o++])&&(~Et(i,r)||i.push(r));return i},Ot=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],St=Ot.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return mt(t,St)}},At={f:Object.getOwnPropertySymbols},xt=st("Reflect","ownKeys")||function(t){var e=wt.f(L(t)),r=At.f;return r?e.concat(r(t)):e},It=function(t,e){for(var r=xt(e),n=_.f,o=N.f,i=0;ii;)_.f(t,r=n[i++],e[r]);return t},Bt=st("document","documentElement"),$t=K("IE_PROTO"),qt=function(){},Vt=function(t){return"