From 0c36b5b7736283d153acb4188eb4fb6d26d55191 Mon Sep 17 00:00:00 2001 From: Kenny Daniel Date: Sat, 8 Jun 2024 00:38:23 -0700 Subject: [PATCH] Unify url view --- public/build/render.js | 10 +++---- src/components/Cell.tsx | 8 +++--- src/components/File.tsx | 31 +++++++++++---------- src/components/Folder.tsx | 21 ++++++++------- src/components/Url.tsx | 57 --------------------------------------- src/render.js | 15 ++++------- src/serve.js | 13 ++++----- 7 files changed, 51 insertions(+), 104 deletions(-) delete mode 100644 src/components/Url.tsx diff --git a/public/build/render.js b/public/build/render.js index d6a5cd4..a1941af 100644 --- a/public/build/render.js +++ b/public/build/render.js @@ -21,7 +21,7 @@ self["MonacoEnvironment"] = (function (paths) { })({ "editorWorkerService": "monaco-editor/esm/vs/editor/editor.worker.js" }); -function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,i={exports:{}},n={};i.exports=function(){if(t)return n;t=1;var e=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),g=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,f={};function _(e,t,i){this.props=e,this.context=t,this.refs=f,this.updater=i||p}function v(){}function b(e,t,i){this.props=e,this.context=t,this.refs=f,this.updater=i||p}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=_.prototype;var w=b.prototype=new v;w.constructor=b,m(w,_.prototype),w.isPureReactComponent=!0;var C=Array.isArray,y=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function k(t,i,n){var o,s={},r=null,a=null;if(null!=i)for(o in void 0!==i.ref&&(a=i.ref),void 0!==i.key&&(r=""+i.key),i)y.call(i,o)&&!x.hasOwnProperty(o)&&(s[o]=i[o]);var l=arguments.length-2;if(1===l)s.children=n;else if(1>>1,s=e[n];if(!(0>>1;no(l,i))do(c,l)?(e[n]=c,e[d]=i,n=d):(e[n]=l,e[a]=i,n=a);else{if(!(do(c,i)))break e;e[n]=c,e[d]=i,n=d}}}return t}function o(e,t){var i=e.sortIndex-t.sortIndex;return 0!==i?i:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;e.unstable_now=function(){return s.now()}}else{var r=Date,a=r.now();e.unstable_now=function(){return r.now()-a}}var l=[],d=[],c=1,h=null,u=3,g=!1,p=!1,m=!1,f="function"==typeof setTimeout?setTimeout:null,_="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=i(d);null!==o;){if(null===o.callback)n(d);else{if(!(o.startTime<=e))break;n(d),o.sortIndex=o.expirationTime,t(l,o)}o=i(d)}}function w(e){if(m=!1,b(e),!p)if(null!==i(l))p=!0,T(C);else{var t=i(d);null!==t&&A(w,t.startTime-e)}}function C(t,o){p=!1,m&&(m=!1,_(k),k=-1),g=!0;var s=u;try{for(b(o),h=i(l);null!==h&&(!(h.expirationTime>o)||t&&!E());){var r=h.callback;if("function"==typeof r){h.callback=null,u=h.priorityLevel;var a=r(h.expirationTime<=o);o=e.unstable_now(),"function"==typeof a?h.callback=a:h===i(l)&&n(l),b(o)}else n(l);h=i(l)}if(null!==h)var c=!0;else{var f=i(d);null!==f&&A(w,f.startTime-o),c=!1}return c}finally{h=null,u=s,g=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var y,S=!1,x=null,k=-1,L=5,D=-1;function E(){return!(e.unstable_now()-De||125r?(n.sortIndex=s,t(d,n),null===i(l)&&n===i(d)&&(m?(_(k),k=-1):m=!0,A(w,s-r))):(n.sortIndex=a,t(l,n),p||g||(p=!0,T(C))),n},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=u;return function(){var i=u;u=t;try{return e.apply(this,arguments)}finally{u=i}}}}(u)),u)),h.exports} +function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,i={exports:{}},n={};i.exports=function(){if(t)return n;t=1;var e=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),g=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,f={};function _(e,t,i){this.props=e,this.context=t,this.refs=f,this.updater=i||p}function v(){}function b(e,t,i){this.props=e,this.context=t,this.refs=f,this.updater=i||p}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=_.prototype;var w=b.prototype=new v;w.constructor=b,m(w,_.prototype),w.isPureReactComponent=!0;var C=Array.isArray,y=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function k(t,i,n){var o,s={},r=null,a=null;if(null!=i)for(o in void 0!==i.ref&&(a=i.ref),void 0!==i.key&&(r=""+i.key),i)y.call(i,o)&&!x.hasOwnProperty(o)&&(s[o]=i[o]);var l=arguments.length-2;if(1===l)s.children=n;else if(1>>1,s=e[n];if(!(0>>1;no(l,i))do(c,l)?(e[n]=c,e[d]=i,n=d):(e[n]=l,e[a]=i,n=a);else{if(!(do(c,i)))break e;e[n]=c,e[d]=i,n=d}}}return t}function o(e,t){var i=e.sortIndex-t.sortIndex;return 0!==i?i:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;e.unstable_now=function(){return s.now()}}else{var r=Date,a=r.now();e.unstable_now=function(){return r.now()-a}}var l=[],d=[],c=1,h=null,u=3,g=!1,p=!1,m=!1,f="function"==typeof setTimeout?setTimeout:null,_="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=i(d);null!==o;){if(null===o.callback)n(d);else{if(!(o.startTime<=e))break;n(d),o.sortIndex=o.expirationTime,t(l,o)}o=i(d)}}function w(e){if(m=!1,b(e),!p)if(null!==i(l))p=!0,T(C);else{var t=i(d);null!==t&&A(w,t.startTime-e)}}function C(t,o){p=!1,m&&(m=!1,_(k),k=-1),g=!0;var s=u;try{for(b(o),h=i(l);null!==h&&(!(h.expirationTime>o)||t&&!N());){var r=h.callback;if("function"==typeof r){h.callback=null,u=h.priorityLevel;var a=r(h.expirationTime<=o);o=e.unstable_now(),"function"==typeof a?h.callback=a:h===i(l)&&n(l),b(o)}else n(l);h=i(l)}if(null!==h)var c=!0;else{var f=i(d);null!==f&&A(w,f.startTime-o),c=!1}return c}finally{h=null,u=s,g=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var y,S=!1,x=null,k=-1,L=5,D=-1;function N(){return!(e.unstable_now()-De||125r?(n.sortIndex=s,t(d,n),null===i(l)&&n===i(d)&&(m?(_(k),k=-1):m=!0,A(w,s-r))):(n.sortIndex=a,t(l,n),p||g||(p=!0,T(C))),n},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(e){var t=u;return function(){var i=u;u=t;try{return e.apply(this,arguments)}finally{u=i}}}}(u)),u)),h.exports} /** * @license React * react-dom.production.min.js @@ -30,18 +30,18 @@ function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"de * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),d.exports=function(){if(r)return c;r=1;var e=a,t=g();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i