commit 6752558cfe6db0b9d9b85432f81b9042d0bf6a93 Author: Fabien BOURGEOIS Date: Sat May 4 05:31:27 2019 +0200 [ADD]ODSA first commit diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..14e2f77 --- /dev/null +++ b/LICENSE @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/dist/bundle.js b/dist/bundle.js new file mode 100644 index 0000000..efeb0b6 --- /dev/null +++ b/dist/bundle.js @@ -0,0 +1 @@ +!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var o=function(e,t){var n=new a(e,t);return function(){return n.current()}};Object.defineProperty(o,"default",{value:o});var r=o;o.root=function(e){var t=m,n=0===e.length?y:new a(null,null),o=void 0,r=0===e.length?null:function(){null!==g?h.disposes.add(n):O(n)};return m=n,null===g?o=function(e,t,n){try{return null===t?e():e(t)}finally{m=n}}(e,r,t):(o=null===r?e():e(r),m=t),o},o.on=function(e,t,n,r){var l;return Array.isArray(e)&&(l=e,e=function(){for(var e=0;e0||h.updates.count>0)&&(h.time++,S(h))}finally{g=m=v=null}}(this):this.value=this.fn(this.value),n&&n!==y&&(null===n.owned?n.owned=[this]:n.owned.push(this)),m=n,v=o}}return e.prototype.current=function(){if(null!==v){if(this.age===h.time){if(this.state===b)throw new Error("circular dependency");N(this)}!function(e,t){null===e.log&&(e.log=new u);w(e.log,t)}(this,v)}return this.value},e.prototype.clock=function(){return i},e}(),u=function(){return function(){this.node1=null,this.node1slot=0,this.nodes=null,this.nodeslots=null}}(),c=function(){function e(){this.items=[],this.count=0}return e.prototype.reset=function(){this.count=0},e.prototype.add=function(e){this.items[this.count++]=e},e.prototype.run=function(e){for(var t=this.items,n=0;n0&&e.time++,e.changes.run(C),e.updates.run(N),e.disposes.run(O),n++>1e5)throw new Error("Runaway clock detected");g=t}function C(e){e.value=e.pending,e.pending=d,e.log&&k(e.log)}function k(e){var t=e.node1,n=e.nodes;if(null!==t&&_(t),null!==n)for(var o=0,r=n.length;o!0,deleteProperty:()=>!0};function H(e,t,n){if(n=T(n),e[t]===n)return;const o=Array.isArray(e)||!(t in e);void 0===n?delete e[t]:e[t]=n;let r,l=B(e);(r=l[t])&&r.next(),o&&(r=l._self)&&r.next()}function z(e,t){const n=Object.keys(t);for(let o=0;o{const i=U(n(t,o),e,r,++Q);return p.set(i,l),i})}function g(){d&&d(l?l.nextSibling:e.firstChild,i)}a(function(){for(let e of p.keys())p.get(e)();p.clear()}),s((n=[])=>{const o=t()||[];return c(()=>{e=i&&i.parentNode||e;const t=o.length;if(b){if(void 0!==l||void 0!==i){let t=null!=l?l.nextSibling:e.firstChild;W(e,t,void 0===i?null:i)}else e.textContent="";for(let e of p.keys())p.get(e)();p.clear(),b=!1}if(0===t){if(void 0!==l||void 0!==i){let t=null!=l?l.nextSibling:e.firstChild;W(e,t,void 0===i?null:i)}else e.textContent="";for(let e of p.keys())p.get(e)();return p.clear(),g(),f&&(b=!0,u(t=>{const n=U(f(),e,i,++Q);p.set(n,t)})),[]}if(0===n.length){let e=new Array(t);for(let n=0;n=0;i=l[i],r--)n[r]=i;return n}(C,c),j=[];let O,M=y,E=A.length-1;for(let e=a;e<=v;e++)j[e]=M,M=V(M,X);for(let t=0;t=c;t--)A[E]===t?(S=j[C[A[E]]],E--):(-1===C[t]?O=h(o[t],t,S):(O=j[C[t]],Y(e,O,V(O,X),S)),S=O);return g(),o.slice(0)})})}function te(e,t){var n=-1,o=e.length;if(o>0&&e[o-1]<=t)return o-1;for(;o-n>1;){var r=Math.floor((n+o)/2);e[r]>t?o=r:n=r}return n}const ne="property",oe={href:{type:"attribute"},style:{type:ne,alias:"style.cssText"},for:{type:ne,alias:"htmlFor"},class:{type:ne,alias:"className"},spellCheck:{type:ne,alias:"spellcheck"},allowFullScreen:{type:ne,alias:"allowFullscreen"},autoCapitalize:{type:ne,alias:"autocapitalize"},autoFocus:{type:ne,alias:"autofocus"},autoPlay:{type:ne,alias:"autoplay"}};function re(e,t,n,o){if(!n)return e.textContent="";if(Array.isArray(t))for(let n=0;nn(),enumerable:!0})}const ie=new Set;function se(e){return e&&(e.model||se(e.host||e.parentNode))}function ae(e){const t=`__${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n});null!==n;){const o=n[t];if(o){if(o(e,o.length>1?se(n):void 0),e.cancelBubble)return}n=n.host||n.parentNode}}new Set(["abort","animationstart","animationend","animationiteration","blur","change","copy","cut","error","focus","load","loadend","loadstart","mouseenter","mouseleave","paste","progress","reset","select","submit","transitionstart","transitioncancel","transitionend","transitionrun"]);const ue=function(e){const{wrap:t,cleanup:n,root:o,sample:r}=e;function l(e,n,o,r){if(n===o)return o;e=r&&r.parentNode||e;const i=typeof n;if("string"===i||"number"===i)if("number"===i&&(n=n.toString()),r){if(""===n)re(e,o,r);else if(""!==o&&"string"==typeof o)r.previousSibling.data=n;else{const t=document.createTextNode(n);""!==o&&null!=o?e.replaceChild(t,r.previousSibling):e.insertBefore(t,r)}o=n}else o=""!==o&&"string"==typeof o?e.firstChild.data=n:e.textContent=n;else if(null==n||"boolean"===i)o=re(e,o,r);else if("function"===i)t(function(){o=l(e,n(),o,r)});else if(n instanceof Node)Array.isArray(o)?0===o.length?e.insertBefore(n,r):1===o.length?e.replaceChild(n,o[0]):(re(e,o,r),e.appendChild(n)):null==o||""===o?e.insertBefore(n,r):e.replaceChild(n,r&&r.previousSibling||e.firstChild),o=n;else{if(!Array.isArray(n))throw new Error("content must be Node, stringable, or array of same");{let t=J([],n);if(re(e,o,r),0!==t.length)for(let n=0,o=t.length;nl(e,n(),t,r))},classList:i,createComponent(e,t,n){if(n)for(let e=0;es(e,n())):s(e,n)},flow(i,s,a,u,c,d){let f;if(d&&(f=d.previousSibling),"each"===s)ee(i,a,u,c,e,f,d);else if("when"===s){let e,s;const{afterRender:p,fallback:b}=c;n(function(){s&&s()}),t(t=>{const n=a();return n===t?t:r(()=>(i=d&&d.parentNode||i,s&&s(),null==n||!1===n?(re(i,e,d,f),e=null,p&&p(e,d),b&&o(t=>{s=t,e=l(i,b(),e,d)}),n):(o(t=>{s=t,e=l(i,u(n),e,d)}),p&&p(e,d),n)))})}else if("suspend"===s){const{fallback:e}=c,s=document.implementation.createHTMLDocument(),p=r(u);let b,h,g=!0;for(let e of ie.keys())s.addEventListener(e,ae);Object.defineProperty(s.body,"host",{get:()=>d&&d.parentNode||i}),n(function(){b&&b()}),t(t=>{const n=!!a();let u;if(n===t)return t;if(i=d&&d.parentNode||i,n){if(g)l(s.body,p),g=!1;else for(u=f?f.nextSibling:i.firstChild;u&&u!==d;){const e=u.nextSibling;s.body.appendChild(u),u=e}return e&&r(()=>o(t=>{b=t,h=l(i,e(),null,d)})),n}if(g)l(i,p,null,d),g=!1;else for(b&&(re(i,h,d,f),b());u=s.body.firstChild;)i.insertBefore(u,d);return n})}else if("portal"===s){const{useShadow:e}=c,t=document.createElement("div"),o=a&&r(a)||document.body,s=e&&t.attachShadow?t.attachShadow({mode:"open"}):t;Object.defineProperty(t,"host",{get:()=>d&&d.parentNode||i});const f=r(()=>u(t));l(t,f),t!==s&&Promise.resolve().then(()=>{for(;t.firstChild;)s.appendChild(t.firstChild)}),o.appendChild(t),n(()=>o.removeChild(t))}}},e)}({wrap:r.makeComputationNode,root:r.root,cleanup:r.cleanup,sample:r.sample});const ce=document.createElement("template");ce.innerHTML="

Odoo Docker SSH Admin

\x3c!--66--\x3e\x3c!--67--\x3e\x3c!--68--\x3e\x3c!--69--\x3e\x3c!--70--\x3e";const de=document.createElement("template");de.innerHTML="

đŸ–„ Retour serveur

";const fe=document.createElement("template");fe.innerHTML="

🗄 Modules

Bases sélectionnées : \x3c!--43--\x3e

";const pe=document.createElement("template");pe.innerHTML="

đŸš© Actions

";const be=document.createElement("template");be.innerHTML="
  • ";const he=document.createElement("template");he.innerHTML="

    📙 Bases de donnĂ©es

    Merci de renseigner toutes les bases de votre domaine ici. Pour effectuer une installation ou mise à jour de module, sélectionnez les bases sur lesquelles agir.

      ";const ge=document.createElement("template");function ve(e){const[t,n]=function(e){return[P(e=T(e||{})),function(){const t=arguments;r.freeze(()=>{if(Array.isArray(t[0]))for(let n=0;nlocalStorage.odoodockerssh=JSON.stringify(t)),l?r.on(l,o,void 0,i):r.makeComputationNode(o),[t,n]}ge.innerHTML="

      🛠 Configuration

      ";const me={address:"",port:"",username:"",key:"",password:"",database:"",databases:[],modules:"",serverlog:""},ye=()=>{const[e,t]=ve(me),n=({target:e})=>t(e.name,e.value),o=n=>{if(n.preventDefault(),e.database){let n={name:e.database,checked:!1};t(["databases",[...e.databases,n]],["database",""])}},r=()=>{let n=e.databases.map(e=>Object.assign({},e));t("databases",n.map(e=>Object.assign(e,{checked:!e.checked})))},l=()=>{let n=e.databases.map(e=>Object.assign({},e));t("databases",n.map(e=>Object.assign(e,{checked:!0})))},i=()=>{let n=e.databases.map(e=>Object.assign({},e));t("databases",n.map(e=>Object.assign(e,{checked:!1})))};return function(){const s=he.content.firstChild.cloneNode(!0),a=s.firstChild.nextSibling.nextSibling,u=a.firstChild.firstChild,c=u.nextSibling,d=c.nextSibling,f=d.nextSibling,p=a.nextSibling.firstChild.firstChild.firstChild.firstChild,b=p.firstChild,h=p.nextSibling.firstChild;return u.__click=r,c.__click=l,d.__click=i,ue.flow(f,"each",()=>e.databases,(n,o)=>(function(){const o=be.content.firstChild.cloneNode(!0),r=o.firstChild,l=r.nextSibling,i=l.nextSibling;return r.__click=(e=>(({target:{checked:e}},n)=>{t("databases",e=>e.name===n,{name:n,checked:e})})(e,n.name)),ue.wrap(()=>r.checked=n.checked),ue.insert(l,()=>n.name),i.__click=(()=>(n=>{t("databases",e.databases.filter(e=>e.name!==n))})(n.name)),o})(),{}),b.__input=n,ue.wrap(()=>b.value=e.database),h.__click=o,ue.wrap(()=>h.disabled=!e.database),s}()},we=()=>{const[e,t]=function(e,t){const n=r.makeDataNode(e);let o;if(t){let r=-1;o=(o=>{if(!t(e,o)){const t=n.clock().time();if(t===r)throw new Error(`Conflicting value update: ${o} is not the same as ${e}`);r=t,e=o,n.next(o)}})}else o=n.next.bind(n);return[n.current.bind(n),o]}("configuration"),n=t=>e()===t?"active":"";return function(){const o=ce.content.cloneNode(!0),r=o.firstChild.nextSibling,l=r.firstChild,i=l.nextSibling,s=i.nextSibling,a=s.nextSibling,u=a.nextSibling,c=r.nextSibling,d=c.nextSibling,f=d.nextSibling,p=f.nextSibling,b=p.nextSibling;return l.__click=(()=>t("configuration")),ue.wrap(()=>l.className=n("configuration")),i.__click=(()=>t("actions")),ue.wrap(()=>i.className=n("actions")),s.__click=(()=>t("databases")),ue.wrap(()=>s.className=n("databases")),a.__click=(()=>t("modules")),ue.wrap(()=>a.className=n("modules")),u.__click=(()=>t("serverlog")),ue.wrap(()=>u.className=n("serverlog")),ue.flow(o,"when",()=>"configuration"===e(),()=>(()=>{const[e,t]=ve(me),n=({target:e})=>t(e.name,e.value);return function(){const t=ge.content.firstChild.cloneNode(!0),o=t.firstChild.nextSibling.firstChild.firstChild,r=o.firstChild.nextSibling,l=r.nextSibling.nextSibling,i=o.nextSibling,s=i.firstChild.nextSibling,a=i.nextSibling.firstChild.nextSibling;return r.onchange=n,ue.wrap(()=>r.value=e.address),l.onchange=n,ue.wrap(()=>l.value=e.port),s.onchange=n,ue.wrap(()=>s.value=e.username),a.onchange=n,ue.wrap(()=>a.value=e.key),t}()})(),{},c),ue.flow(o,"when",()=>"databases"===e(),()=>ye(),{},d),ue.flow(o,"when",()=>"modules"===e(),()=>(()=>{const[e,t]=ve(me),n=({target:e})=>t(e.name,e.value);return function(){const t=fe.content.firstChild.cloneNode(!0),o=t.firstChild.nextSibling.firstChild,r=o.firstChild.nextSibling,l=o.nextSibling.firstChild,i=l.firstChild.nextSibling,s=l.nextSibling.firstChild.nextSibling;return ue.insert(o,(e=>{let t=e.filter(e=>e.checked).map(e=>e.name);return t.length?t.join(", "):"Aucune base sélectionnée"})(e.databases),null,r),i.__input=n,ue.wrap(()=>i.value=e.modules),ue.wrap(()=>s.value=e.stop),t}()})(),{},f),ue.flow(o,"when",()=>"actions"===e(),()=>(()=>{const[e,t]=ve(me);return pe.content.firstChild.cloneNode(!0)})(),{},p),ue.flow(o,"when",()=>"serverlog"===e(),()=>(()=>{const[e,t]=ve(me),n=()=>t("serverlog","");return function(){const t=de.content.firstChild.cloneNode(!0),o=t.firstChild.nextSibling.firstChild,r=o.firstChild,l=o.nextSibling.firstChild;return ue.insert(r,()=>e.serverlog),l.__click=n,t}()})(),{},b),o}()};q(()=>document.body.appendChild(we())),ue.delegateEvents(["click","input"])}]); \ No newline at end of file diff --git a/dist/chota.min.css b/dist/chota.min.css new file mode 100644 index 0000000..68806bc --- /dev/null +++ b/dist/chota.min.css @@ -0,0 +1 @@ +/*! chota.css v0.6.1 | MIT License | github.com/jenil/chota */:root{--color-primary:#1a9f60;--color-lightGrey:#d2d6dd;--color-grey:#7e818b;--color-darkGrey:#3f4144;--color-error:#d43939;--color-success:#28bd14;--grid-maxWidth:120rem;--grid-gutter:2rem;--font-size:1.6rem;--font-family:-apple-system,BlinkMacSystemFont,Avenir,"Avenir Next","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif}*{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{letter-spacing:.01em;line-height:1.6;font-size:var(--font-size);font-weight:400;font-family:Segoe UI,Helvetica Neue,sans-serif;font-family:var(--font-family);margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-weight:500;margin:.35em 0 .7em}h1{font-size:2em}h2{font-size:1.75em}h3{font-size:1.5em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.85em}a{color:var(--color-primary);text-decoration:none}a:hover:not(.button){opacity:.75}p{margin-top:0}blockquote{background-color:#f3f3f6;padding:1.5rem 2rem;border-left:3px solid var(--color-lightGrey)}dl dt{font-weight:700}hr{background-color:var(--color-lightGrey);height:1px;margin:1rem 0}hr,table{border:none}table{width:100%;border-collapse:collapse;border-spacing:0;text-align:left}table.striped tr:nth-of-type(2n){background-color:#f3f3f6}td,th{vertical-align:middle;padding:1.2rem .4rem}thead{border-bottom:2px solid var(--color-lightGrey)}tfoot{border-top:2px solid var(--color-lightGrey)}code,kbd,pre,samp,tt{font-family:monaco,Consolas,Lucida Console,monospace}code,kbd{font-size:90%;white-space:pre-wrap;border-radius:4px;color:#d43939;padding:.2em .4em}code,kbd,pre{background-color:#f3f3f6}pre{font-size:1em;padding:1rem;overflow-x:auto}pre code{background:none;padding:0}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}img{max-width:100%}fieldset{border:1px solid var(--color-lightGrey)}iframe{border:0}.container{max-width:var(--grid-maxWidth);margin:0 auto;width:96%;padding:0 calc(var(--grid-gutter)/2)}.row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin-left:calc(var(--grid-gutter)/-2);margin-right:calc(var(--grid-gutter)/-2)}.row,.row.reverse{-webkit-box-orient:horizontal}.row.reverse{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.col{-webkit-box-flex:1;-ms-flex:1;flex:1}.col,[class*=" col-"],[class^=col-]{margin:0 calc(var(--grid-gutter)/2) calc(var(--grid-gutter)/2)}.col-1{-ms-flex:0 0 calc(8.33333% - var(--grid-gutter));flex:0 0 calc(8.33333% - var(--grid-gutter));max-width:calc(8.33333% - var(--grid-gutter))}.col-1,.col-2{-webkit-box-flex:0}.col-2{-ms-flex:0 0 calc(16.66667% - var(--grid-gutter));flex:0 0 calc(16.66667% - var(--grid-gutter));max-width:calc(16.66667% - var(--grid-gutter))}.col-3{-ms-flex:0 0 calc(25% - var(--grid-gutter));flex:0 0 calc(25% - var(--grid-gutter));max-width:calc(25% - var(--grid-gutter))}.col-3,.col-4{-webkit-box-flex:0}.col-4{-ms-flex:0 0 calc(33.33333% - var(--grid-gutter));flex:0 0 calc(33.33333% - var(--grid-gutter));max-width:calc(33.33333% - var(--grid-gutter))}.col-5{-ms-flex:0 0 calc(41.66667% - var(--grid-gutter));flex:0 0 calc(41.66667% - var(--grid-gutter));max-width:calc(41.66667% - var(--grid-gutter))}.col-5,.col-6{-webkit-box-flex:0}.col-6{-ms-flex:0 0 calc(50% - var(--grid-gutter));flex:0 0 calc(50% - var(--grid-gutter));max-width:calc(50% - var(--grid-gutter))}.col-7{-ms-flex:0 0 calc(58.33333% - var(--grid-gutter));flex:0 0 calc(58.33333% - var(--grid-gutter));max-width:calc(58.33333% - var(--grid-gutter))}.col-7,.col-8{-webkit-box-flex:0}.col-8{-ms-flex:0 0 calc(66.66667% - var(--grid-gutter));flex:0 0 calc(66.66667% - var(--grid-gutter));max-width:calc(66.66667% - var(--grid-gutter))}.col-9{-ms-flex:0 0 calc(75% - var(--grid-gutter));flex:0 0 calc(75% - var(--grid-gutter));max-width:calc(75% - var(--grid-gutter))}.col-9,.col-10{-webkit-box-flex:0}.col-10{-ms-flex:0 0 calc(83.33333% - var(--grid-gutter));flex:0 0 calc(83.33333% - var(--grid-gutter));max-width:calc(83.33333% - var(--grid-gutter))}.col-11{-ms-flex:0 0 calc(91.66667% - var(--grid-gutter));flex:0 0 calc(91.66667% - var(--grid-gutter));max-width:calc(91.66667% - var(--grid-gutter))}.col-11,.col-12{-webkit-box-flex:0}.col-12{-ms-flex:0 0 calc(100% - var(--grid-gutter));flex:0 0 calc(100% - var(--grid-gutter));max-width:calc(100% - var(--grid-gutter))}@media screen and (max-width:599px){.container{width:100%}.col,[class*=col-],[class^=col-]{-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;max-width:100%}}@media screen and (min-width:900px){.col-1-md{-webkit-box-flex:0;-ms-flex:0 0 calc(8.33333% - var(--grid-gutter));flex:0 0 calc(8.33333% - var(--grid-gutter));max-width:calc(8.33333% - var(--grid-gutter))}.col-2-md{-webkit-box-flex:0;-ms-flex:0 0 calc(16.66667% - var(--grid-gutter));flex:0 0 calc(16.66667% - var(--grid-gutter));max-width:calc(16.66667% - var(--grid-gutter))}.col-3-md{-webkit-box-flex:0;-ms-flex:0 0 calc(25% - var(--grid-gutter));flex:0 0 calc(25% - var(--grid-gutter));max-width:calc(25% - var(--grid-gutter))}.col-4-md{-webkit-box-flex:0;-ms-flex:0 0 calc(33.33333% - var(--grid-gutter));flex:0 0 calc(33.33333% - var(--grid-gutter));max-width:calc(33.33333% - var(--grid-gutter))}.col-5-md{-webkit-box-flex:0;-ms-flex:0 0 calc(41.66667% - var(--grid-gutter));flex:0 0 calc(41.66667% - var(--grid-gutter));max-width:calc(41.66667% - var(--grid-gutter))}.col-6-md{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - var(--grid-gutter));flex:0 0 calc(50% - var(--grid-gutter));max-width:calc(50% - var(--grid-gutter))}.col-7-md{-webkit-box-flex:0;-ms-flex:0 0 calc(58.33333% - var(--grid-gutter));flex:0 0 calc(58.33333% - var(--grid-gutter));max-width:calc(58.33333% - var(--grid-gutter))}.col-8-md{-webkit-box-flex:0;-ms-flex:0 0 calc(66.66667% - var(--grid-gutter));flex:0 0 calc(66.66667% - var(--grid-gutter));max-width:calc(66.66667% - var(--grid-gutter))}.col-9-md{-webkit-box-flex:0;-ms-flex:0 0 calc(75% - var(--grid-gutter));flex:0 0 calc(75% - var(--grid-gutter));max-width:calc(75% - var(--grid-gutter))}.col-10-md{-webkit-box-flex:0;-ms-flex:0 0 calc(83.33333% - var(--grid-gutter));flex:0 0 calc(83.33333% - var(--grid-gutter));max-width:calc(83.33333% - var(--grid-gutter))}.col-11-md{-webkit-box-flex:0;-ms-flex:0 0 calc(91.66667% - var(--grid-gutter));flex:0 0 calc(91.66667% - var(--grid-gutter));max-width:calc(91.66667% - var(--grid-gutter))}.col-12-md{-webkit-box-flex:0;-ms-flex:0 0 calc(100% - var(--grid-gutter));flex:0 0 calc(100% - var(--grid-gutter));max-width:calc(100% - var(--grid-gutter))}}@media screen and (min-width:1200px){.col-1-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(8.33333% - var(--grid-gutter));flex:0 0 calc(8.33333% - var(--grid-gutter));max-width:calc(8.33333% - var(--grid-gutter))}.col-2-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(16.66667% - var(--grid-gutter));flex:0 0 calc(16.66667% - var(--grid-gutter));max-width:calc(16.66667% - var(--grid-gutter))}.col-3-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(25% - var(--grid-gutter));flex:0 0 calc(25% - var(--grid-gutter));max-width:calc(25% - var(--grid-gutter))}.col-4-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(33.33333% - var(--grid-gutter));flex:0 0 calc(33.33333% - var(--grid-gutter));max-width:calc(33.33333% - var(--grid-gutter))}.col-5-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(41.66667% - var(--grid-gutter));flex:0 0 calc(41.66667% - var(--grid-gutter));max-width:calc(41.66667% - var(--grid-gutter))}.col-6-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - var(--grid-gutter));flex:0 0 calc(50% - var(--grid-gutter));max-width:calc(50% - var(--grid-gutter))}.col-7-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(58.33333% - var(--grid-gutter));flex:0 0 calc(58.33333% - var(--grid-gutter));max-width:calc(58.33333% - var(--grid-gutter))}.col-8-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(66.66667% - var(--grid-gutter));flex:0 0 calc(66.66667% - var(--grid-gutter));max-width:calc(66.66667% - var(--grid-gutter))}.col-9-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(75% - var(--grid-gutter));flex:0 0 calc(75% - var(--grid-gutter));max-width:calc(75% - var(--grid-gutter))}.col-10-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(83.33333% - var(--grid-gutter));flex:0 0 calc(83.33333% - var(--grid-gutter));max-width:calc(83.33333% - var(--grid-gutter))}.col-11-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(91.66667% - var(--grid-gutter));flex:0 0 calc(91.66667% - var(--grid-gutter));max-width:calc(91.66667% - var(--grid-gutter))}.col-12-lg{-webkit-box-flex:0;-ms-flex:0 0 calc(100% - var(--grid-gutter));flex:0 0 calc(100% - var(--grid-gutter));max-width:calc(100% - var(--grid-gutter))}}fieldset{padding:.5rem 2rem}legend{text-transform:uppercase;font-size:.8em;letter-spacing:.1rem}input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]),select,textarea,textarea[type=text]{font-family:inherit;padding:.8rem 1rem;border-radius:4px;border:1px solid var(--color-lightGrey);font-size:1em;-webkit-transition:all .2s ease;transition:all .2s ease;display:block;width:100%}input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]):not(:disabled):hover,select:hover,textarea:hover,textarea[type=text]:hover{border-color:var(--color-grey)}input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]):focus,select:focus,textarea:focus,textarea[type=text]:focus{outline:none;border-color:var(--color-primary);-webkit-box-shadow:0 0 1px var(--color-primary);box-shadow:0 0 1px var(--color-primary)}input.error:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]),textarea.error{border-color:var(--color-error)}input.success:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]),textarea.success{border-color:var(--color-success)}select{-webkit-appearance:none;background:#f3f3f6 no-repeat 100%;background-size:1ex;background-origin:content-box;background-image:url("data:image/svg+xml;utf8,")}[type=checkbox],[type=radio]{width:1.6rem;height:1.6rem}.button,[type=button],[type=reset],[type=submit],button{padding:1rem 2.5rem;color:var(--color-darkGrey);background:var(--color-lightGrey);border-radius:4px;border:1px solid transparent;font-size:var(--font-size);line-height:1;text-align:center;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;text-decoration:none;-webkit-transform:scale(1);transform:scale(1);display:inline-block;cursor:pointer}.grouped{display:-webkit-box;display:-ms-flexbox;display:flex}.grouped>.button:not(:last-child),.grouped>input:not(:last-child){margin-right:16px}.button+.button{margin-left:1rem}.button:hover,[type=button]:hover,[type=reset]:hover,[type=submit]:hover,button:hover{opacity:.8}.button:active,[type=button]:active,[type=reset]:active,[type=submit]:active,button:active{-webkit-transform:scale(.98);transform:scale(.98)}button:disabled,button:disabled:hover,input:disabled,input:disabled:hover{opacity:.4;cursor:not-allowed}.button.dark,.button.error,.button.primary,.button.secondary,.button.success,[type=submit]{color:#fff;background-color:#000;background-color:var(--color-primary)}.button.secondary{background-color:var(--color-grey)}.button.dark{background-color:var(--color-darkGrey)}.button.error{background-color:var(--color-error)}.button.success{background-color:var(--color-success)}.button.outline{background-color:transparent;border-color:var(--color-lightGrey)}.button.outline.primary{border-color:var(--color-primary);color:var(--color-primary)}.button.outline.secondary{border-color:var(--color-grey);color:var(--color-grey)}.button.outline.dark{border-color:var(--color-darkGrey);color:var(--color-darkGrey)}.button.clear{background-color:transparent;border-color:transparent;color:var(--color-primary)}.button.icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.button.icon>img{margin-left:2px}.button.icon-only{padding:1rem}::-webkit-input-placeholder{color:#bdbfc4}:-ms-input-placeholder{color:#bdbfc4}::-ms-input-placeholder{color:#bdbfc4}::placeholder{color:#bdbfc4}.nav{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:5rem;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.nav img{max-height:3rem}.nav-center,.nav-left,.nav-right,.nav>.container{display:-webkit-box;display:-ms-flexbox;display:flex}.nav-center,.nav-left,.nav-right{-webkit-box-flex:1;-ms-flex:1;flex:1}.nav-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.nav-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.nav-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media screen and (max-width:480px){.nav,.nav>.container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.nav-center,.nav-left,.nav-right{-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.nav .brand,.nav a{text-decoration:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:1rem 2rem;color:var(--color-darkGrey)}.nav .active:not(.button){color:#000;color:var(--color-primary)}.nav .brand{font-size:1.75em;padding-top:0;padding-bottom:0}.nav .brand img{padding-right:1rem}.nav .button{margin:auto 1rem}.card{padding:1rem 2rem;border-radius:4px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.3);box-shadow:0 1px 3px rgba(0,0,0,.3)}.card p:last-child{margin:0}.card header>*{margin-top:0;margin-bottom:1rem}.tabs{display:-webkit-box;display:-ms-flexbox;display:flex}.tabs a{text-decoration:none}.tabs>a{padding:1rem 2rem;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;color:var(--color-darkGrey);border-bottom:2px solid var(--color-lightGrey);text-align:center}.tabs>a.active,.tabs>a:hover{opacity:1;border-bottom:2px solid var(--color-darkGrey)}.tabs>a.active{border-color:var(--color-primary)}.tabs.is-full a{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.tag{display:inline-block;border:1px solid var(--color-lightGrey);text-transform:uppercase;color:var(--color-grey);padding:.5rem;line-height:1;letter-spacing:.5px}.tag.is-small{padding:.4rem;font-size:.75em}.tag.is-large{padding:.7rem;font-size:1.125em}.tag+.tag{margin-left:1rem}.bg-primary{background-color:var(--color-primary)!important}.bg-light{background-color:var(--color-lightGrey)!important}.bg-dark{background-color:var(--color-darkGrey)!important}.bg-grey{background-color:var(--color-grey)!important}.bg-error{background-color:var(--color-error)!important}.bg-success{background-color:var(--color-success)!important}.bd-primary{border:1px solid var(--color-primary)!important}.bd-light{border:1px solid var(--color-lightGrey)!important}.bd-dark{border:1px solid var(--color-darkGrey)!important}.bd-grey{border:1px solid var(--color-grey)!important}.bd-error{border:1px solid var(--color-error)!important}.bd-success{border:1px solid var(--color-success)!important}.text-primary{color:var(--color-primary)!important}.text-light{color:var(--color-lightGrey)!important}.text-dark{color:var(--color-darkGrey)!important}.text-grey{color:var(--color-grey)!important}.text-error{color:var(--color-error)!important}.text-success{color:var(--color-success)!important}.text-white{color:#fff!important}.pull-right{float:right!important}.pull-left{float:left!important}.is-text-center{text-align:center}.is-text-left{text-align:left}.is-text-right{text-align:right}.is-text-uppercase{text-transform:uppercase}.is-text-lowercase{text-transform:lowercase}.is-text-capitalize{text-transform:capitalize}.is-full-screen{width:100%;min-height:100vh}.is-full-width{width:100%!important}.is-vertical-align{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.is-center,.is-horizontal-align{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.is-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.is-left,.is-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.is-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.is-fixed{position:fixed;width:100%}.is-paddingless{padding:0!important}.is-marginless{margin:0!important}.clearfix{content:"";display:table;clear:both}.is-hidden{display:none!important}@media screen and (max-width:599px){.hide-sm{display:none!important}}@media screen and (min-width:600px) and (max-width:1199px){.hide-md{display:none!important}}@media screen and (min-width:1200px){.hide-lg{display:none!important}} \ No newline at end of file diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..13da371 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,26 @@ + + + + + + + + + Odoo Docker SSH Administration + + + + + + + + + diff --git a/index.jsx b/index.jsx new file mode 100644 index 0000000..5080c5f --- /dev/null +++ b/index.jsx @@ -0,0 +1,246 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + +import { createRoot, createSignal, createState, createEffect } from 'solid-js'; +import { r } from 'solid-js/dom'; + +function createLocalState(initState) { + const [state, setState] = createState(initState); + if (localStorage.odoodockerssh) { setState(JSON.parse(localStorage.odoodockerssh)); } + createEffect(() => localStorage.odoodockerssh = JSON.stringify(state)); + return [state, setState]; +} + +const initialState = { + address: '', port: '', username: '', key: '', password: '', + database: '', databases: [], modules: '', serverlog: '' +}; + +const OdooDockerSshAdminConfig = () => { + const [state, setState] = createLocalState(initialState); + const valueSet = ({target}) => setState(target.name, target.value); + + return
      +

      🛠 Configuration

      +
      +
      +
      + + + + +
      +
      + + +
      +
      + + +
      +
      + +
      +
      +
      +}; + +const OdooDockerSshAdmin = () => { + const [visibleTab, setVisibleTab] = createSignal('configuration'); + const getClassName = (name) => visibleTab() === name ? 'active' : ''; + + return <> +

      Odoo Docker SSH Admin

      + + <$ when={(visibleTab() === 'configuration')}> + <$ when={(visibleTab() === 'databases')}> + <$ when={(visibleTab() === 'modules')}> + <$ when={(visibleTab() === 'actions')}> + <$ when={(visibleTab() === 'serverlog')}> + +} +createRoot(() => document.body.appendChild()); diff --git a/package.json b/package.json new file mode 100644 index 0000000..7ada644 --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "odoodockersshcmd", + "version": "0.1.0", + "description": "", + "scripts": { + "dev": "webpack -w", + "prod": "webpack -p" + }, + "author": "Fabien BOURGEOIS", + "license": "MPL", + "homepage": "", + "repository": { + "type": "git", + "url": "https://git.yaltik.net/Yaltik/odoo-docker-ssh-cmd.git" + }, + "private": true, + "dependencies": { + "solid-js": "~0.5.0", + "babel-plugin-jsx-dom-expressions": "~0.7.0" + }, + "devDependencies": { + "@babel/core": "^7.1.0", + "@babel/preset-env": "^7.4.3", + "babel-loader": "^8.0.2", + "webpack": "^4.19.1", + "webpack-cli": "^3.1.0" + } +} diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..c4855ea --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,27 @@ +const path = require('path'); + +module.exports = { + entry: './index.jsx', + mode: 'production', + //devtool: 'cheap-eval-source-map', + target: 'web', + output: { + filename: "bundle.js", + publicPath: "/", + path: path.resolve(__dirname, "dist"), + }, + resolve: { + extensions: ['.jsx', '.js'] + }, + module: { + rules: [{ + test: /\.jsx?$/, + use: { + loader: 'babel-loader', + options: { + plugins: ['jsx-dom-expressions'] + } + } + }] + } +}