@clevercloud/components
Advanced tools
Comparing version 1.3.0-beta.6 to 1.3.0-beta.7
@@ -1,2 +0,2 @@ | ||
import{classMap as t}from"lit-html/directives/class-map.js";import{css as o,html as e,LitElement as i}from"lit-element";import{dispatchCustomEvent as s}from"../lib/events.js";import{i18n as r}from"../lib/i18n.js";import{skeleton as n}from"../styles/skeleton.js";export class CcButton extends i{static get properties(){return{disabled:{type:Boolean,reflect:!0},primary:{type:Boolean},success:{type:Boolean},warning:{type:Boolean},danger:{type:Boolean},outlined:{type:Boolean},delay:{type:Number},skeleton:{type:Boolean},t:{type:Boolean,attribute:!1}}}constructor(){super(),this.t=!1}set disabled(t){const o=this.o;this.o=t,this.requestUpdate("disabled",o),!0===t&&this.i()}get disabled(){return this.o}i(){null!=this.s&&(this.s.cancel(),this.s=null),clearTimeout(this.l),this.t=!1}h(){if(null==this.delay)return s(this,"click");this.t?this.i():(this.t=!0,this.s=this.shadowRoot.querySelector("button").animate([{backgroundSize:"0 10%"},{backgroundSize:"100% 10%"}],{duration:1e3*this.delay,easing:"linear"}),this.l=setTimeout(()=>{s(this,"click"),this.t=!1},1e3*this.delay))}render(){const o={primary:this.primary&&!this.success&&!this.warning&&!this.danger,success:!this.primary&&this.success&&!this.warning&&!this.danger,warning:!this.primary&&!this.success&&this.warning&&!this.danger,danger:!this.primary&&!this.success&&!this.warning&&this.danger,skeleton:this.skeleton};o.simple=!(o.primary||o.success||o.warning||o.danger),o.outlined=this.outlined||o.simple;const i=null!=this.delay?e`<div class=${t({hidden:!this.t})}>${r("cc-button.cancel")}</div>`:"";return e`<button type=button class=${t(o)} .disabled=${this.disabled||this.skeleton} @click=${this.h}><div class=${t({hidden:this.t})}><slot></slot></div>${i}</button>`}static get styles(){return[n,o`:host{box-sizing:border-box;display:inline-block;margin:.2rem;vertical-align:top}button{background:left bottom/0 no-repeat #fff;border:1px solid #000;display:block;font-size:14px;font-family:inherit;margin:0;padding:0 .5rem;border-radius:.15rem;cursor:pointer;font-weight:700;min-height:2rem;text-transform:uppercase;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;background-color:var(--btn-color);border-color:var(--btn-color);color:#fff;background-image:linear-gradient(#fff,#fff);box-shadow:0 0 0 0 rgba(255,255,255,0);transition:75ms ease-in-out}.simple{--btn-color:hsl(210, 23%, 26%);border-color:#aaa}.primary{--btn-color:hsl(213, 55%, 62%)}.success{--btn-color:hsl(144, 56%, 43%)}.warning{--btn-color:hsl(35, 84%, 37%)}.danger{--btn-color:hsl(351, 70%, 47%)}.outlined{background-image:linear-gradient(var(--btn-color),var(--btn-color));background-color:#fff;color:var(--btn-color)}button:enabled:focus{box-shadow:0 0 0 .2em rgba(50,115,220,.25);outline:0}button:enabled:hover{box-shadow:0 1px 3px #888}button:enabled:active{box-shadow:none;outline:0}button:disabled{cursor:inherit;opacity:.5}.skeleton{background-color:#bbb;border-color:#777;color:transparent}.hidden{color:transparent;height:0;overflow:hidden}button::-moz-focus-inner{border:0}`]}}window.customElements.define("cc-button",CcButton); | ||
import{classMap as t}from"lit-html/directives/class-map.js";import{css as e,html as o,LitElement as s}from"lit-element";import{dispatchCustomEvent as r}from"../lib/events.js";import{i18n as i}from"../lib/i18n.js";import{skeleton as n}from"../styles/skeleton.js";export class CcButton extends s{static get properties(){return{disabled:{type:Boolean,reflect:!0},primary:{type:Boolean},success:{type:Boolean},warning:{type:Boolean},danger:{type:Boolean},outlined:{type:Boolean},delay:{type:Number},skeleton:{type:Boolean},t:{type:Boolean,attribute:!1}}}constructor(){super(),this.t=!1}set disabled(t){const e=this.o;this.o=t,this.requestUpdate("disabled",e),!0===t&&this.s()}get disabled(){return this.o}s(){null!=this.i&&(this.i.cancel(),this.i=null),clearTimeout(this.l),this.t=!1}h(){if(null==this.delay)return r(this,"click");this.t?this.s():(this.t=!0,this.l=setTimeout(()=>{r(this,"click"),this.t=!1},1e3*this.delay))}render(){const e={primary:this.primary&&!this.success&&!this.warning&&!this.danger,success:!this.primary&&this.success&&!this.warning&&!this.danger,warning:!this.primary&&!this.success&&this.warning&&!this.danger,danger:!this.primary&&!this.success&&!this.warning&&this.danger,skeleton:this.skeleton};return e.simple=!(e.primary||e.success||e.warning||e.danger),e.outlined=this.outlined||e.simple,o`<button type=button class=${t(e)} .disabled=${this.disabled||this.skeleton} @click=${this.h}><div class=${t({hidden:this.t})}><slot></slot></div>${null!=this.delay?o`<div class=${t({hidden:!this.t})}>${i("cc-button.cancel")}</div><progress class=${t({active:this.t})} style=--delay:${this.delay}s></progress>`:""}</button>`}static get styles(){return[n,e`:host{box-sizing:border-box;display:inline-block;margin:.2rem;vertical-align:top}button{background:#fff;border:1px solid #000;display:block;font-size:14px;font-family:inherit;margin:0;padding:0 .5rem;border-radius:.15rem;cursor:pointer;font-weight:700;min-height:2rem;overflow:hidden;position:relative;text-transform:uppercase;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;background-color:var(--btn-color);border-color:var(--btn-color);color:#fff;box-shadow:0 0 0 0 rgba(255,255,255,0);transition:box-shadow 75ms ease-in-out}.simple{--btn-color:hsl(210, 23%, 26%);border-color:#aaa}.primary{--btn-color:hsl(213, 55%, 62%)}.success{--btn-color:hsl(144, 56%, 43%)}.warning{--btn-color:hsl(35, 84%, 37%)}.danger{--btn-color:hsl(351, 70%, 47%)}.outlined{background-color:#fff;color:var(--btn-color)}button:enabled:focus{box-shadow:0 0 0 .2em rgba(50,115,220,.25);outline:0}button:enabled:hover{box-shadow:0 1px 3px #888}button:enabled:active{box-shadow:none;outline:0}button:disabled{cursor:inherit;opacity:.5}.skeleton{background-color:#bbb;border-color:#777;color:transparent}.hidden{color:transparent;height:0;overflow:hidden}progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;bottom:0;height:.2rem;left:0;position:absolute;width:0}progress.active{transition:width var(--delay) linear;width:100%}progress,progress::-webkit-progress-bar{background-color:#fff}.outlined progress,.outlined progress::-webkit-progress-bar{background-color:var(--btn-color)}progress::-moz-progress-bar,progress::-webkit-progress-value{background-color:transparent}button::-moz-focus-inner{border:0}`]}}window.customElements.define("cc-button",CcButton); | ||
//# sourceMappingURL=cc-button.js.map |
@@ -1,2 +0,2 @@ | ||
import e from"./clipboard.svg";import o from"clipboard-copy";import t from"./tick.svg";import{classMap as r}from"lit-html/directives/class-map.js";import{css as i,html as s,LitElement as a}from"lit-element";import{dispatchCustomEvent as n}from"../lib/events.js";import{i18n as l}from"../lib/i18n.js";import{skeleton as p}from"../styles/skeleton.js";export class CcInputText extends a{static get properties(){return{disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},skeleton:{type:Boolean,reflect:!0},multi:{type:Boolean,reflect:!0},clipboard:{type:Boolean,reflect:!0},value:{type:String},name:{type:String,reflect:!0},placeholder:{type:String},o:{type:Boolean,attribute:!1}}}constructor(){super(),this.name="",this.value="",this.placeholder="",this.o=!1}focus(){this.shadowRoot.querySelector(".input").focus()}t(e){this.value=e.target.value,n(this,"input",this.value)}i(e){this.readonly&&e.target.select()}s(){o(this.value).then(()=>{this.o=!0,setTimeout(()=>this.o=!1,1e3)})}l(e){e.stopPropagation()}render(){const o=(this.value||"").split("\n").length,i=this.clipboard&&!this.disabled&&!this.skeleton;return s`<div class="${r({skeleton:this.skeleton,clipboard:i})} wrapper" @input=${this.t} @keydown=${this.l} @keypress=${this.l}>${this.multi?s`<textarea class=input style=--rows:${o} rows=${o} ?disabled=${this.disabled||this.skeleton} ?readonly=${this.readonly} .value=${this.value} name=${this.name} placeholder=${this.placeholder} spellcheck=false wrap=off @focus=${this.i}></textarea>`:""} ${this.multi?"":s`${i&&this.readonly?s`<div class="auto-size input">${this.value}</div>`:""} <input class=input ?disabled=${this.disabled||this.skeleton} ?readonly=${this.readonly} .value=${this.value} name=${this.name} placeholder=${this.placeholder} spellcheck=false @focus=${this.i}>`}</div>${i?s`<button class=clipboard-btn ?disabled=${this.disabled||this.skeleton} @click=${this.s} title=${l("cc-input-text.clipboard")}><img class=clipboard-img src=${this.o?t:e} alt=""></button>`:""}`}static get styles(){return[p,i`:host{display:inline-block;box-sizing:border-box;margin:.2rem;position:relative;vertical-align:top}:host([multi]){display:block}.wrapper{border-radius:.25rem;border:1px solid #aaa;box-shadow:0 0 0 0 rgba(255,255,255,0);overflow:hidden;padding:.15rem .5rem;transition:75ms ease-in-out,height}.wrapper:focus-within{box-shadow:0 0 0 .2em rgba(50,115,220,.25);border-color:#777}.wrapper:hover{border-color:#777}:host([disabled]) .wrapper{background:#eee;border-color:#eee;cursor:default;opacity:.75}:host([readonly]) .wrapper{background:#eee}.input{-webkit-appearance:none;background:0 0;border:1px solid #000;box-sizing:border-box;display:block;font-family:SourceCodePro,monaco,monospace;font-size:14px;margin:0;padding:0;resize:none;width:100%;border:none;height:calc(var(--rows,1) * 1.7rem);line-height:1.7rem;overflow:hidden}.input:active,.input:focus{outline:0}.input[disabled]{pointer-events:none}.auto-size{height:0}.skeleton,.skeleton:hover{background-color:#eee;border-color:#eee;cursor:progress}.skeleton .input,.skeleton .input::placeholder{color:transparent}.wrapper.clipboard{padding-right:2.2rem}.clipboard-btn{background:0 0;border:none;display:block;font-family:inherit;margin:0;padding:0;border-radius:.1rem;cursor:pointer;height:1.6rem;position:absolute;right:calc(.2rem + 1px);top:calc(.2rem + 1px);width:1.6rem}.clipboard-btn[disabled],.clipboard-btn[skeleton]{display:none}.clipboard-btn:focus{box-shadow:0 0 0 .2rem rgba(50,115,220,.25);outline:0}.clipboard-btn:active,.clipboard-btn:hover{box-shadow:none;outline:0}.clipboard-btn:hover{background-color:#f5f5f5}.clipboard-btn:active{background-color:#eee}:host([readonly]) .clipboard-btn:hover{background-color:#e5e5e5}:host([readonly]) .clipboard-btn:active{background-color:#ddd}.clipboard-btn::-moz-focus-inner{border:0}.clipboard-img{box-sizing:border-box;padding:15%;height:100%;width:100%;filter:grayscale(100%)}.clipboard-img:hover{filter:grayscale(0)}`]}}window.customElements.define("cc-input-text",CcInputText); | ||
import e from"./clipboard.svg";import o from"clipboard-copy";import t from"./tick.svg";import{classMap as r}from"lit-html/directives/class-map.js";import{css as i,html as s,LitElement as a}from"lit-element";import{dispatchCustomEvent as n}from"../lib/events.js";import{i18n as l}from"../lib/i18n.js";import{skeleton as p}from"../styles/skeleton.js";export class CcInputText extends a{static get properties(){return{disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},skeleton:{type:Boolean,reflect:!0},multi:{type:Boolean,reflect:!0},clipboard:{type:Boolean,reflect:!0},value:{type:String},name:{type:String,reflect:!0},placeholder:{type:String},o:{type:Boolean,attribute:!1}}}constructor(){super(),this.name="",this.value="",this.placeholder="",this.o=!1}focus(){this.shadowRoot.querySelector(".input").focus()}t(e){this.value=e.target.value,n(this,"input",this.value)}i(e){this.readonly&&e.target.select()}s(){o(this.value).then(()=>{this.o=!0,setTimeout(()=>this.o=!1,1e3)})}l(e){e.stopPropagation()}render(){const o=(this.value||"").split("\n").length,i=this.clipboard&&!this.disabled&&!this.skeleton;return s`<div class="${r({skeleton:this.skeleton,clipboard:i})} wrapper" @input=${this.t} @keydown=${this.l} @keypress=${this.l}>${this.multi?s`<textarea class=input style=--rows:${o} rows=${o} ?disabled=${this.disabled||this.skeleton} ?readonly=${this.readonly} .value=${this.value} name=${this.name} placeholder=${this.placeholder} spellcheck=false wrap=off @focus=${this.i}></textarea>`:""} ${this.multi?"":s`${i&&this.readonly?s`<div class="auto-size input">${this.value}</div>`:""} <input class=input ?disabled=${this.disabled||this.skeleton} ?readonly=${this.readonly} .value=${this.value} name=${this.name} placeholder=${this.placeholder} spellcheck=false @focus=${this.i}>`}</div>${i?s`<button class=clipboard-btn ?disabled=${this.disabled||this.skeleton} @click=${this.s} title=${l("cc-input-text.clipboard")}><img class=clipboard-img src=${this.o?t:e} alt=""></button>`:""}`}static get styles(){return[p,i`:host{display:inline-block;box-sizing:border-box;margin:.2rem;position:relative;vertical-align:top}:host([multi]){display:block}.wrapper{border-radius:.25rem;border:1px solid #aaa;box-shadow:0 0 0 0 rgba(255,255,255,0);overflow:hidden;padding:.15rem .5rem;transition:box-shadow 75ms ease-in-out,height}.wrapper:focus-within{box-shadow:0 0 0 .2em rgba(50,115,220,.25);border-color:#777}.wrapper:hover{border-color:#777}:host([disabled]) .wrapper{background:#eee;border-color:#eee;cursor:default;opacity:.75}:host([readonly]) .wrapper{background:#eee}.input{-webkit-appearance:none;background:0 0;border:1px solid #000;box-sizing:border-box;display:block;font-family:SourceCodePro,monaco,monospace;font-size:14px;margin:0;padding:0;resize:none;width:100%;border:none;height:calc(var(--rows,1) * 1.7rem);line-height:1.7rem;overflow:hidden}.input:active,.input:focus{outline:0}.input[disabled]{pointer-events:none}.auto-size{height:0}.skeleton,.skeleton:hover{background-color:#eee;border-color:#eee;cursor:progress}.skeleton .input,.skeleton .input::placeholder{color:transparent}.wrapper.clipboard{padding-right:2.2rem}.clipboard-btn{background:0 0;border:none;display:block;font-family:inherit;margin:0;padding:0;border-radius:.1rem;cursor:pointer;height:1.6rem;position:absolute;right:calc(.2rem + 1px);top:calc(.2rem + 1px);width:1.6rem}.clipboard-btn[disabled],.clipboard-btn[skeleton]{display:none}.clipboard-btn:focus{box-shadow:0 0 0 .2rem rgba(50,115,220,.25);outline:0}.clipboard-btn:active,.clipboard-btn:hover{box-shadow:none;outline:0}.clipboard-btn:hover{background-color:#f5f5f5}.clipboard-btn:active{background-color:#eee}:host([readonly]) .clipboard-btn:hover{background-color:#e5e5e5}:host([readonly]) .clipboard-btn:active{background-color:#ddd}.clipboard-btn::-moz-focus-inner{border:0}.clipboard-img{box-sizing:border-box;padding:15%;height:100%;width:100%;filter:grayscale(100%)}.clipboard-img:hover{filter:grayscale(0)}`]}}window.customElements.define("cc-input-text",CcInputText); | ||
//# sourceMappingURL=cc-input-text.js.map |
@@ -1,2 +0,2 @@ | ||
export{CcButton}from"./atoms/cc-button.js";export{CcDatetimeRelative}from"./atoms/cc-datetime-relative.js";export{CcExpand}from"./atoms/cc-expand.js";export{CcInfoApp}from"./info-tiles/cc-info-app.js";export{CcInfoConsumption}from"./info-tiles/cc-info-consumption.js";export{CcInfoDeployments}from"./info-tiles/cc-info-deployments.js";export{CcInfoInstances}from"./info-tiles/cc-info-instances.js";export{CcInfoScalability}from"./info-tiles/cc-info-scalability.js";export{CcInputText}from"./atoms/cc-input-text.js";export{CcLoader}from"./atoms/cc-loader.js";export{CcMap}from"./maps/cc-map.js";export{CcLogsMap}from"./maps/cc-logsmap.js";export{CcToggle}from"./atoms/cc-toggle.js";export{EnvVarCreate}from"./env-var/env-var-create.js";export{EnvVarEditorExpert}from"./env-var/env-var-editor-expert.js";export{EnvVarEditorSimple}from"./env-var/env-var-editor-simple.js";export{EnvVarForm}from"./env-var/env-var-form.js";export{EnvVarFull}from"./env-var/env-var-full.js";export{EnvVarInput}from"./env-var/env-var-input.js"; | ||
export{CcButton}from"./atoms/cc-button.js";export{CcDatetimeRelative}from"./atoms/cc-datetime-relative.js";export{CcExpand}from"./atoms/cc-expand.js";export{CcImg}from"./atoms/cc-img.js";export{CcInfoApp}from"./info-tiles/cc-info-app.js";export{CcInfoConsumption}from"./info-tiles/cc-info-consumption.js";export{CcInfoDeployments}from"./info-tiles/cc-info-deployments.js";export{CcInfoInstances}from"./info-tiles/cc-info-instances.js";export{CcInfoOrga}from"./info-tiles/cc-info-orga.js";export{CcInfoScalability}from"./info-tiles/cc-info-scalability.js";export{CcInputText}from"./atoms/cc-input-text.js";export{CcLoader}from"./atoms/cc-loader.js";export{CcLogsMap}from"./maps/cc-logsmap.js";export{CcMap}from"./maps/cc-map.js";export{CcToggle}from"./atoms/cc-toggle.js";export{EnvVarCreate}from"./env-var/env-var-create.js";export{EnvVarEditorExpert}from"./env-var/env-var-editor-expert.js";export{EnvVarEditorSimple}from"./env-var/env-var-editor-simple.js";export{EnvVarForm}from"./env-var/env-var-form.js";export{EnvVarFull}from"./env-var/env-var-full.js";export{EnvVarInput}from"./env-var/env-var-input.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import"../atoms/cc-loader.js";import leaflet from"leaflet";import"leaflet.heat";import{css as t,html as o,LitElement as e}from"lit-element";import{i18n as r}from"../lib/i18n.js";import{leafletStyles as i}from"../styles/leaflet.js";import{WORLD_GEOJSON as s}from"./world-110m.geo.js";export class CcMap extends e{static get properties(){return{centerLat:{type:Number,attribute:"center-lat"},centerLon:{type:Number,attribute:"center-lon"},viewZoom:{type:Number,attribute:"view-zoom",reflect:!0},mode:{type:String},loading:{type:Boolean,reflect:!0},heatmapPoints:{type:Array,attribute:!1},error:{type:Boolean,reflect:!0}}}constructor(){super(),this.centerLat=48.9,this.centerLon=2.4,this.viewZoom=2,this.mode="points",this.t=[],this.o={},this.i=0}get centerLat(){return this.s}get centerLon(){return this.l}get viewZoom(){return this.h}get mode(){return this.m}get heatmapPoints(){return this.p}set centerLat(t){const o=this.s;this.s=t,this.requestUpdate("centerLat",o),null!=this.g&&this.g.setView([t,this.l])}set centerLon(t){const o=this.l;this.l=t,this.requestUpdate("centerLon",o),null!=this.g&&this.g.setView([this.s,t])}set viewZoom(t){const o=this.h;this.h=t,this.requestUpdate("viewZoom",o),null!=this.g&&this.g.setZoom(t)}set mode(t){const o=this.m;this.m=t,this.requestUpdate("mode",o),this.u()}set heatmapPoints(t){this.p=t,null==this.g?this.updateComplete.then(()=>this.v(t)):this.v(t)}addPoints(t,o={}){if(null==this.g)return void this.updateComplete.then(()=>this.addPoints(t,o));const{spreadDuration:e=!1}=o,r=!1!==e?Math.floor(e/t.length):0;t.forEach((t,o)=>{setTimeout(()=>this.k(t),r*o)})}u(){null!=this.g&&("heatmap"===this.m?this.g.addLayer(this.L):this.g.removeLayer(this.L),"points"===this.m?this.g.addLayer(this.C):this.g.removeLayer(this.C))}v(t){const o=t.map(({count:t})=>t),e=t.length>0?Math.max(...o):1,r=t.map(({lat:t,lon:o,count:e})=>[t,o,e]),i={blur:7,max:e,minOpacity:.3,radius:8};this.L.clearLayers().addLayer(leaflet.heatLayer(r,i))}k({lat:t,lon:o,count:e=1,delay:r=1e3,tooltip:i,country:s}){const a={lat:t,lon:o,count:e,delay:r,tooltip:i,country:s,coords:[t,o].join(",")};this.t.push(a),this.$(a),"number"==typeof r&&setTimeout(()=>{this.t=this.t.filter(t=>t!==a),this.$(a)},r)}$(t){if(this.j(t),0===this.t.filter(o=>o.coords===t.coords).map(t=>t.count).reduce((t,o)=>t+o,0))return;const o=this.i;this.i=(this.i+1)%8;const e=leaflet.divIcon({html:`<div class="dot" data-color-index="${o}"></div>`,iconSize:[30,30],bgPos:[15,15],className:"cc-map-marker"}),r=leaflet.marker([t.lat,t.lon],{icon:e}).addTo(this.C);this.o[t.coords]=r;const i=this.t.filter(o=>o.coords===t.coords&&null!=o.tooltip&&""!==o.tooltip).map(t=>t.tooltip),s=Array.from(new Set(i));if(i.length>0){const t=s.length>=3?"...":"",o=s.slice(0,3).join("<br>")+t;r.bindTooltip(o,{direction:"top"})}}j(t){const o=this.o[t.coords];null!=o&&(this.C.removeLayer(o),delete this.o[t.coords])}connectedCallback(){super.connectedCallback(),this.P=new ResizeObserver(()=>this.g.invalidateSize()),this.P.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.P.unobserve(this)}firstUpdated(){this.g=leaflet.map(this.renderRoot.getElementById("cc-map-container"),{attributionControl:!1,doubleClickZoom:!0,dragging:!0,keyboard:!0,maxBounds:[[-84,-180],[90,180]],maxBoundsViscosity:1,maxZoom:6,minZoom:1,zoomControl:!0}).setView([this.s,this.l],this.h),this.g.on("zoomanim",t=>{this.viewZoom=t.zoom}),this.g.zoomControl.setPosition("bottomright"),leaflet.geoJSON(s,{style:{className:"map-country"},pane:"tilePane"}).addTo(this.g),this.C=leaflet.layerGroup(),this.L=leaflet.layerGroup(),this.u()}render(){const t="heatmap"===this.mode&&null!=this.heatmapPoints&&0===this.heatmapPoints.length;return o`<div id=cc-map-container></div><div class=legend><slot></slot></div>${this.loading&&!this.error?o`<cc-loader class=loader></cc-loader>`:""} ${this.error||t?o`<div class=error-container><div class=error-panel>${this.loading?o`<cc-loader class=error-loader></cc-loader>`:""} ${this.error?o`<div class=error-message>${r("cc-map.error")}</div>`:""} ${t?o`<div class=error-message>${r("cc-map.no-points")}</div>`:""}</div></div>`:""}`}static get styles(){return[i,t`:host{display:flex;flex-direction:column;height:50px;position:relative}#cc-map-container{flex:1 1 0;width:100%}:host([error]) .leaflet-control-container,:host([loading]) .leaflet-control-container{display:none}:host([error]) #cc-map-container,:host([error]) .legend,:host([loading]) #cc-map-container,:host([loading]) .legend{filter:blur(.1rem)}.leaflet-container{background-color:#aadaff;z-index:1}.map-country{fill:#f5f5f5;fill-opacity:1;stroke:#ddd;stroke-width:1}:host(:not(:empty)) .legend{background-color:#f1f5ff;box-shadow:inset 0 6px 6px -6px #a4b1c9;box-sizing:border-box;color:#2e2e2e;font-size:.9rem;font-style:italic;padding:.4rem 1rem}.loader{height:100%;left:0;position:absolute;top:0;width:100%;z-index:2000}.error-loader{height:1.5rem;margin-right:1rem;width:1.5rem}.error-container{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:2000}.error-panel{align-items:center;background-color:#fff;border-radius:.25rem;border:1px solid #ccc;display:flex;justify-content:center;max-width:80%;padding:1rem}.cc-map-marker{align-items:center;background:0 0;display:flex;justify-content:center}.dot{animation:2s infinite pulse;background:var(--dot-color);border-radius:50%;color:#1a1a1a;cursor:pointer;height:var(--dot-size);line-height:var(--dot-size);position:relative;text-align:center;width:var(--dot-size)}:host([view-zoom="1"]) .dot{--dot-size:6px}:host([view-zoom="2"]) .dot{--dot-size:8px}:host([view-zoom="3"]) .dot{--dot-size:10px}:host([view-zoom="4"]) .dot{--dot-size:12px}:host([view-zoom="5"]) .dot{--dot-size:14px}:host([view-zoom="6"]) .dot{--dot-size:16px}.dot[data-color-index="0"]{--dot-color:rgba(228, 26, 28, 1);--dot-color-half:rgba(228, 26, 28, 0.4);--dot-color-zero:rgba(228, 26, 28, 0.0)}.dot[data-color-index="1"]{--dot-color:rgba(55, 126, 184, 1);--dot-color-half:rgba(55, 126, 184, 0.4);--dot-color-zero:rgba(55, 126, 184, 0)}.dot[data-color-index="2"]{--dot-color:rgba(77, 175, 74, 1);--dot-color-half:rgba(77, 175, 74, 0.4);--dot-color-zero:rgba(77, 175, 74, 0)}.dot[data-color-index="3"]{--dot-color:rgba(152, 78, 163, 1);--dot-color-half:rgba(152, 78, 163, 0.4);--dot-color-zero:rgba(152, 78, 163, 0)}.dot[data-color-index="4"]{--dot-color:rgba(255, 127, 0, 1);--dot-color-half:rgba(255, 127, 0, 0.4);--dot-color-zero:rgba(255, 127, 0, 0)}.dot[data-color-index="5"]{--dot-color:rgba(190, 190, 51, 1);--dot-color-half:rgba(190, 190, 51, 0.4);--dot-color-zero:rgba(190, 190, 51, 0)}.dot[data-color-index="6"]{--dot-color:rgba(166, 86, 40, 1);--dot-color-half:rgba(166, 86, 40, 0.4);--dot-color-zero:rgba(166, 86, 40, 0)}.dot[data-color-index="7"]{--dot-color:rgba(190, 129, 160, 1);--dot-color-half:rgba(190, 129, 160, 0.4);--dot-color-zero:rgba(190, 129, 160, 0)}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--dot-color-half)}70%{box-shadow:0 0 0 var(--dot-size) var(--dot-color-zero)}100%{box-shadow:0 0 0 0 var(--dot-color-zero)}}`]}}window.customElements.define("cc-map",CcMap); | ||
import"../atoms/cc-loader.js";import leaflet from"leaflet";import"leaflet.heat";import{css as t,html as e,LitElement as o}from"lit-element";import{i18n as i}from"../lib/i18n.js";import{leafletStyles as s}from"../styles/leaflet.js";import{WORLD_GEOJSON as r}from"./world-110m.geo.js";const a=["#40b970","#36a562","#2c9254","#237f46","#1a6c39","#115a2c","#084920","#003814"];export class CcMap extends o{static get properties(){return{centerLat:{type:Number,attribute:"center-lat"},centerLon:{type:Number,attribute:"center-lon"},viewZoom:{type:Number,attribute:"view-zoom",reflect:!0},mode:{type:String},loading:{type:Boolean,reflect:!0},heatmapPoints:{type:Array,attribute:!1},error:{type:Boolean,reflect:!0}}}constructor(){super(),this.centerLat=48.9,this.centerLon=2.4,this.viewZoom=2,this.mode="points",this.t=[],this.o={},this.i=0}get centerLat(){return this.s}get centerLon(){return this.l}get viewZoom(){return this.h}get mode(){return this.m}get heatmapPoints(){return this.p}set centerLat(t){const e=this.s;this.s=t,this.requestUpdate("centerLat",e),null!=this.u&&this.u.setView([t,this.l])}set centerLon(t){const e=this.l;this.l=t,this.requestUpdate("centerLon",e),null!=this.u&&this.u.setView([this.s,t])}set viewZoom(t){const e=this.h;this.h=t,this.requestUpdate("viewZoom",e),null!=this.u&&this.u.setZoom(t)}set mode(t){const e=this.m;this.m=t,this.requestUpdate("mode",e),this.g()}set heatmapPoints(t){this.p=t,null==this.u?this.updateComplete.then(()=>this.v(t)):this.v(t)}addPoints(t,e={}){if(null==this.u)return void this.updateComplete.then(()=>this.addPoints(t,e));const{spreadDuration:o=!1}=e,i=!1!==o?Math.floor(o/t.length):0;t.forEach((t,e)=>{setTimeout(()=>this.k(t),i*e)})}g(){null!=this.u&&("heatmap"===this.m?this.u.addLayer(this.$):this.u.removeLayer(this.$),"points"===this.m?this.u.addLayer(this.C):this.u.removeLayer(this.C))}v(t){const e=t.map(({count:t})=>t),o=t.length>0?Math.max(...e):1,i=t.map(({lat:t,lon:e,count:o})=>[t,e,o]),s={blur:7,max:o,minOpacity:.3,radius:8};this.$.clearLayers().addLayer(leaflet.heatLayer(i,s))}k({lat:t,lon:e,count:o=1,delay:i=1e3,tooltip:s,country:r}){const a={lat:t,lon:e,count:o,delay:i,tooltip:s,country:r,coords:[t,e].join(",")};this.t.push(a),this.L(a),"number"==typeof i&&setTimeout(()=>{this.t=this.t.filter(t=>t!==a),this.L(a)},i)}L(t){this.M(t);const e=this.t.filter(e=>e.coords===t.coords).map(t=>t.count).reduce((t,e)=>t+e,0);if(0===e)return;const o=this.j(e),i=leaflet.divIcon({html:`<div class="dot" style="${o}"></div>`,iconSize:[30,30],bgPos:[15,15],className:"cc-map-marker"}),s=leaflet.marker([t.lat,t.lon],{icon:i}).addTo(this.C);this.o[t.coords]=s;const r=this.t.filter(e=>e.coords===t.coords&&null!=e.tooltip&&""!==e.tooltip).map(t=>t.tooltip),a=Array.from(new Set(r));if(r.length>0){const t=a.length>=3?"...":"",e=a.slice(0,3).join("<br>")+t;s.bindTooltip(e,{direction:"top"})}}M(t){const e=this.o[t.coords];null!=e&&(this.C.removeLayer(e),delete this.o[t.coords])}j(t){const e=Math.floor(Math.log(t)),o=Math.min(e,a.length),i=a[o];return[`--dot-color: ${i}ff`,`--dot-color-half: ${i}66`,`--dot-color-zero: ${i}00`].join(";")}connectedCallback(){super.connectedCallback(),this.P=new ResizeObserver(()=>this.u.invalidateSize()),this.P.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.P.unobserve(this)}firstUpdated(){this.u=leaflet.map(this.renderRoot.getElementById("cc-map-container"),{attributionControl:!1,doubleClickZoom:!0,dragging:!0,keyboard:!0,maxBounds:[[-84,-180],[90,180]],maxBoundsViscosity:1,maxZoom:6,minZoom:1,zoomControl:!0}).setView([this.s,this.l],this.h),this.u.on("zoomanim",t=>{this.viewZoom=t.zoom}),this.u.zoomControl.setPosition("bottomright"),leaflet.geoJSON(r,{style:{className:"map-country"},pane:"tilePane"}).addTo(this.u),this.C=leaflet.layerGroup(),this.$=leaflet.layerGroup(),this.g()}render(){const t="heatmap"===this.mode&&null!=this.heatmapPoints&&0===this.heatmapPoints.length;return e`<div id=cc-map-container></div><div class=legend><slot></slot></div>${this.loading&&!this.error?e`<cc-loader class=loader></cc-loader>`:""} ${this.error||t?e`<div class=error-container><div class=error-panel>${this.loading?e`<cc-loader class=error-loader></cc-loader>`:""} ${this.error?e`<div class=error-message>${i("cc-map.error")}</div>`:""} ${t?e`<div class=error-message>${i("cc-map.no-points")}</div>`:""}</div></div>`:""}`}static get styles(){return[s,t`:host{display:flex;flex-direction:column;height:50px;position:relative}#cc-map-container{flex:1 1 0;width:100%}:host([error]) .leaflet-control-container,:host([loading]) .leaflet-control-container{display:none}:host([error]) #cc-map-container,:host([error]) .legend,:host([loading]) #cc-map-container,:host([loading]) .legend{filter:blur(.1rem)}.leaflet-container{background-color:#aadaff;z-index:1}.map-country{fill:#f5f5f5;fill-opacity:1;stroke:#ddd;stroke-width:1}:host(:not(:empty)) .legend{background-color:#f1f5ff;box-shadow:inset 0 6px 6px -6px #a4b1c9;box-sizing:border-box;color:#2e2e2e;font-size:.9rem;font-style:italic;padding:.4rem 1rem}.loader{height:100%;left:0;position:absolute;top:0;width:100%;z-index:2000}.error-loader{height:1.5rem;margin-right:1rem;width:1.5rem}.error-container{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:2000}.error-panel{align-items:center;background-color:#fff;border-radius:.25rem;border:1px solid #ccc;display:flex;justify-content:center;max-width:80%;padding:1rem}.cc-map-marker{align-items:center;background:0 0;display:flex;justify-content:center}.dot{animation:2s infinite pulse;background:var(--dot-color);border-radius:50%;color:#1a1a1a;cursor:pointer;height:var(--dot-size);line-height:var(--dot-size);position:relative;text-align:center;width:var(--dot-size)}:host([view-zoom="1"]) .dot{--dot-size:6px}:host([view-zoom="2"]) .dot{--dot-size:8px}:host([view-zoom="3"]) .dot{--dot-size:10px}:host([view-zoom="4"]) .dot{--dot-size:12px}:host([view-zoom="5"]) .dot{--dot-size:14px}:host([view-zoom="6"]) .dot{--dot-size:16px}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--dot-color-half)}70%{box-shadow:0 0 0 var(--dot-size) var(--dot-color-zero)}100%{box-shadow:0 0 0 0 var(--dot-color-zero)}}`]}}window.customElements.define("cc-map",CcMap); | ||
//# sourceMappingURL=cc-map.js.map |
@@ -1,2 +0,2 @@ | ||
import{prepareFormatDate as e,prepareFormatDistanceToNow as a}from"../lib/i18n-date.js";export const lang="en";const t=a("en",(e,a)=>{return`${e} ${a}${1===e?"":"s"} ago`},"just now"),n=e("en"),o=new Intl.NumberFormat("en",{style:"currency",currency:"EUR"});export const translations={LANGUAGE:"đŹđ§ English","cc-button.cancel":"Click to cancel","cc-datetime-relative.distance":({date:e})=>t(e),"cc-datetime-relative.title":({date:e})=>n(e),"cc-info-app.action.cancel-deployment":"Cancel deployment","cc-info-app.action.restart":"Restart","cc-info-app.action.restart-last-commit":"Restart last pushed commit","cc-info-app.action.restart-rebuild":"Re-build and restart","cc-info-app.action.start":"Start","cc-info-app.action.start-last-commit":"Start last pushed commit","cc-info-app.action.start-rebuild":"Re-build and start","cc-info-app.action.stop":"Stop app","cc-info-app.disable-buttons":"You are not authorized to perform those actions","cc-info-app.read-logs":"read logs here","cc-info-app.commits.no-commits":"no commits yet","cc-info-app.commits.git":({commit:e})=>`git repo version (HEAD): ${e}`,"cc-info-app.commits.running":({commit:e})=>`running version: ${e}`,"cc-info-app.commits.starting":({commit:e})=>`deploying version: ${e}`,"cc-info-app.state-msg.app-is-restarting":"Your application is restarting...","cc-info-app.state-msg.app-is-running":"Your application is running!","cc-info-app.state-msg.app-is-starting":"Your application is starting...","cc-info-app.state-msg.app-is-stopped":"Your application is currently stopped.","cc-info-app.state-msg.last-deploy-failed":"The last deployment failed,","cc-info-app.state-msg.unknown-state":"Unknown state, try to restart the application or contact our support if you have additional questions.","cc-info-app.user-action-msg.app-will-start":"Your application is about to start...","cc-info-app.user-action-msg.deploy-will-begin":"A new deployment is about to begin...","cc-info-app.user-action-msg.deploy-cancelled":"This deployment has been cancelled.","cc-info-app.user-action-msg.app-will-stop":"Your application is about to stop...","cc-info-app.error":"Something went wrong while loading app info.","cc-info-consumption.title":"Credits consumption","cc-info-consumption.yesterday":"Yesterday","cc-info-consumption.last-30-days":"Last 30 days","cc-info-consumption.amount":({amount:e})=>o.format(e),"cc-info-consumption.error":"Something went wrong while loading consumption info.","cc-info-deployments.title":"Last deployments","cc-info-deployments.state.failed":"Failed","cc-info-deployments.state.started":"Started","cc-info-deployments.state.cancelled":"Cancelled","cc-info-deployments.state.stopped":"Stopped","cc-info-deployments.error":"Something went wrong while loading deployments info.","cc-info-deployments.no-deployments":"No deployments yet.","cc-info-instances.title":"Instances","cc-info-instances.status.deploying":"Deploying","cc-info-instances.status.running":"Running","cc-info-instances.no-instances":"No instances. Your app is stopped.","cc-info-instances.error":"Something went wrong while loading instances.","cc-info-scalability.title":"Scalability","cc-info-scalability.size":"Size","cc-info-scalability.number":"Number","cc-info-scalability.flavor-info":e=>{return[`CPUs: ${e.cpus}`+(e.microservice?" (shared)":""),e.gpus>0?`GPUs: ${e.gpus}`:"",`RAM: ${e.mem<1024?`${e.mem} MB`:`${e.mem/1024} GB`}`].filter(e=>e).join("\n")},"cc-info-scalability.error":"Something went wrong while loading scalability config.","cc-input-text.clipboard":"Copy to clipboard","cc-logsmap.mode.points":"Realtime","cc-logsmap.mode.heatmap":"Last 24h","cc-logsmap.legend.points":({orgaName:e})=>`Realtime map of HTTP requests received by all apps from ${e}.`,"cc-logsmap.legend.points.app":({appName:e})=>`Realtime map of HTTP requests received by ${e}.`,"cc-logsmap.legend.heatmap":({orgaName:e})=>`Heatmap of HTTP requests received by all apps from ${e} during the past 24 hours.`,"cc-logsmap.legend.heatmap.app":({appName:e})=>`Heatmap of HTTP requests received by ${e} during the past 24 hours.`,"cc-map.error":"Something went wrong while trying to fetch data for the map.","cc-map.no-points":"No data to display on the map right now.","env-var-create.name.placeholder":"VARIABLE_NAME","env-var-create.value.placeholder":"variable value","env-var-create.create-button":"Add","env-var-create.errors.invalid-name":({name:e})=>`Name ${e} is invalid`,"env-var-create.errors.already-defined-name":({name:e})=>`Name ${e} is already defined`,"env-var-editor-simple.empty-data":"There are no variables.","env-var-editor-expert.placeholder":'VARIABLE_NAME="variable value"',"env-var-editor-expert.placeholder-readonly":"There are no variables.","env-var-editor-expert.errors.unknown":"Unknown Error","env-var-editor-expert.errors.line":"line","env-var-editor-expert.errors.invalid-name":({name:e})=>`${e} is not a valid variable name`,"env-var-editor-expert.errors.duplicated-name":({name:e})=>`be careful, the name ${e} is already defined`,"env-var-editor-expert.errors.invalid-line":'this line is not valid, the correct pattern is: NAME="VALUE"',"env-var-editor-expert.errors.invalid-value":'the value is not valid, if you use quotes, you need to escape them like this: \\" or quote the whole value.',"env-var-form.mode.simple":"Simple","env-var-form.mode.expert":"Expert","env-var-form.reset":"Reset changes","env-var-form.restart-app":"Restart the app to apply changes","env-var-form.update":"Update changes","env-var-form.error.loading":"Something went wrong while loading environment variables.","env-var-form.error.saving":"Something went wrong while updating environment variables.","env-var-form.error.unknown":"Something went wrong...","env-var-input.delete-button":"Remove","env-var-input.keep-button":"Keep","env-var-input.value-placeholder":"variable value","env-var-full.heading":"Environment variables","env-var-full.message":"Environment variables allow you to inject data in your applicationâs environment.","env-var-full.link":"Learn more"}; | ||
import{prepareFormatDate as e,prepareFormatDistanceToNow as n}from"../lib/i18n-date.js";export const lang="en";const a=n("en",(e,n)=>{return`${e} ${n}${1===e?"":"s"} ago`},"just now"),t=e("en"),o=new Intl.NumberFormat("en",{style:"currency",currency:"EUR"});export const translations={LANGUAGE:"đŹđ§ English","cc-button.cancel":"Click to cancel","cc-datetime-relative.distance":({date:e})=>a(e),"cc-datetime-relative.title":({date:e})=>t(e),"cc-info-app.action.cancel-deployment":"Cancel deployment","cc-info-app.action.restart":"Restart","cc-info-app.action.restart-last-commit":"Restart last pushed commit","cc-info-app.action.restart-rebuild":"Re-build and restart","cc-info-app.action.start":"Start","cc-info-app.action.start-last-commit":"Start last pushed commit","cc-info-app.action.start-rebuild":"Re-build and start","cc-info-app.action.stop":"Stop app","cc-info-app.disable-buttons":"You are not authorized to perform those actions","cc-info-app.read-logs":"read logs here","cc-info-app.commits.no-commits":"no commits yet","cc-info-app.commits.git":({commit:e})=>`git repo version (HEAD): ${e}`,"cc-info-app.commits.running":({commit:e})=>`running version: ${e}`,"cc-info-app.commits.starting":({commit:e})=>`deploying version: ${e}`,"cc-info-app.state-msg.app-is-restarting":"Your application is restarting...","cc-info-app.state-msg.app-is-running":"Your application is running!","cc-info-app.state-msg.app-is-starting":"Your application is starting...","cc-info-app.state-msg.app-is-stopped":"Your application is currently stopped.","cc-info-app.state-msg.last-deploy-failed":"The last deployment failed,","cc-info-app.state-msg.unknown-state":"Unknown state, try to restart the application or contact our support if you have additional questions.","cc-info-app.user-action-msg.app-will-start":"Your application is about to start...","cc-info-app.user-action-msg.deploy-will-begin":"A new deployment is about to begin...","cc-info-app.user-action-msg.deploy-cancelled":"This deployment has been cancelled.","cc-info-app.user-action-msg.app-will-stop":"Your application is about to stop...","cc-info-app.error":"Something went wrong while loading app info.","cc-info-consumption.title":"Credits consumption","cc-info-consumption.yesterday":"Yesterday","cc-info-consumption.last-30-days":"Last 30 days","cc-info-consumption.amount":({amount:e})=>o.format(e),"cc-info-consumption.error":"Something went wrong while loading consumption info.","cc-info-deployments.title":"Last deployments","cc-info-deployments.state.failed":"Failed","cc-info-deployments.state.started":"Started","cc-info-deployments.state.cancelled":"Cancelled","cc-info-deployments.state.stopped":"Stopped","cc-info-deployments.error":"Something went wrong while loading deployments info.","cc-info-deployments.no-deployments":"No deployments yet.","cc-info-instances.title":"Instances","cc-info-instances.status.deploying":"Deploying","cc-info-instances.status.running":"Running","cc-info-instances.no-instances":"No instances. Your app is stopped.","cc-info-instances.error":"Something went wrong while loading instances.","cc-info-orga.hotline":"Hotline:","cc-info-orga.error":"Something went wrong while loading organization info.","cc-info-scalability.title":"Scalability","cc-info-scalability.size":"Size","cc-info-scalability.number":"Number","cc-info-scalability.flavor-info":e=>{return[`CPUs: ${e.cpus}`+(e.microservice?" (shared)":""),e.gpus>0?`GPUs: ${e.gpus}`:"",`RAM: ${e.mem<1024?`${e.mem} MB`:`${e.mem/1024} GB`}`].filter(e=>e).join("\n")},"cc-info-scalability.error":"Something went wrong while loading scalability config.","cc-input-text.clipboard":"Copy to clipboard","cc-logsmap.mode.points":"Realtime","cc-logsmap.mode.heatmap":"Last 24h","cc-logsmap.legend.points":({orgaName:e})=>`Realtime map of HTTP requests received by all apps from ${e}.`,"cc-logsmap.legend.points.app":({appName:e})=>`Realtime map of HTTP requests received by ${e}.`,"cc-logsmap.legend.heatmap":({orgaName:e})=>`Heatmap of HTTP requests received by all apps from ${e} during the past 24 hours.`,"cc-logsmap.legend.heatmap.app":({appName:e})=>`Heatmap of HTTP requests received by ${e} during the past 24 hours.`,"cc-map.error":"Something went wrong while trying to fetch data for the map.","cc-map.no-points":"No data to display on the map right now.","env-var-create.name.placeholder":"VARIABLE_NAME","env-var-create.value.placeholder":"variable value","env-var-create.create-button":"Add","env-var-create.errors.invalid-name":({name:e})=>`Name ${e} is invalid`,"env-var-create.errors.already-defined-name":({name:e})=>`Name ${e} is already defined`,"env-var-editor-simple.empty-data":"There are no variables.","env-var-editor-expert.placeholder":'VARIABLE_NAME="variable value"',"env-var-editor-expert.placeholder-readonly":"There are no variables.","env-var-editor-expert.errors.unknown":"Unknown Error","env-var-editor-expert.errors.line":"line","env-var-editor-expert.errors.invalid-name":({name:e})=>`${e} is not a valid variable name`,"env-var-editor-expert.errors.duplicated-name":({name:e})=>`be careful, the name ${e} is already defined`,"env-var-editor-expert.errors.invalid-line":'this line is not valid, the correct pattern is: NAME="VALUE"',"env-var-editor-expert.errors.invalid-value":'the value is not valid, if you use quotes, you need to escape them like this: \\" or quote the whole value.',"env-var-form.mode.simple":"Simple","env-var-form.mode.expert":"Expert","env-var-form.reset":"Reset changes","env-var-form.restart-app":"Restart the app to apply changes","env-var-form.update":"Update changes","env-var-form.error.loading":"Something went wrong while loading environment variables.","env-var-form.error.saving":"Something went wrong while updating environment variables.","env-var-form.error.unknown":"Something went wrong...","env-var-input.delete-button":"Remove","env-var-input.keep-button":"Keep","env-var-input.value-placeholder":"variable value","env-var-full.heading":"Environment variables","env-var-full.message":"Environment variables allow you to inject data in your applicationâs environment.","env-var-full.link":"Learn more"}; | ||
//# sourceMappingURL=translations.en.js.map |
@@ -1,2 +0,2 @@ | ||
import{prepareFormatDate as e,prepareFormatDistanceToNow as n}from"../lib/i18n-date.js";export const lang="fr";const a={year:"annĂ©e",month:"mois",week:"semaine",day:"jour",hour:"heure",minute:"minute",second:"seconde"},r=n("fr",(e,n)=>{const r=e>=1||a[n].endsWith("s")?"":"s";return`il y a ${e} ${a[n]}${r}`},"Ă l'instant"),t=e("fr"),i=new Intl.NumberFormat("fr",{style:"currency",currency:"EUR"});export const translations={LANGUAGE:"đ«đ· Français","cc-button.cancel":"Cliquez pour annuler","cc-datetime-relative.distance":({date:e})=>r(e),"cc-datetime-relative.title":({date:e})=>t(e),"cc-info-app.action.cancel-deployment":"Annuler le dĂ©ploiement","cc-info-app.action.restart":"RedĂ©marrer","cc-info-app.action.restart-last-commit":"RedĂ©marrer le dernier commit poussĂ©","cc-info-app.action.restart-rebuild":"Re-build et redĂ©marrer","cc-info-app.action.start":"DĂ©marrer","cc-info-app.action.start-last-commit":"DĂ©marrer le dernier commit poussĂ©","cc-info-app.action.start-rebuild":"Re-build et dĂ©marrer","cc-info-app.action.stop":"ArrĂȘter l'application","cc-info-app.disable-buttons":"Vous n'ĂȘtes pas autorisĂ© Ă rĂ©aliser ces actions","cc-info-app.read-logs":"voir les logs","cc-info-app.commits.no-commits":"pas encore de commit","cc-info-app.commits.git":({commit:e})=>`version du dĂ©pĂŽt git (HEAD) : ${e}`,"cc-info-app.commits.running":({commit:e})=>`version en ligne : ${e}`,"cc-info-app.commits.starting":({commit:e})=>`version en cours de dĂ©ploiement : ${e}`,"cc-info-app.state-msg.app-is-restarting":"L'application redĂ©marre...","cc-info-app.state-msg.app-is-running":"Votre application est disponible !","cc-info-app.state-msg.app-is-starting":"L'application dĂ©marre...","cc-info-app.state-msg.app-is-stopped":"L'application est arrĂȘtĂ©e.","cc-info-app.state-msg.last-deploy-failed":"Le dernier dĂ©ploiement a Ă©chouĂ©,","cc-info-app.state-msg.unknown-state":"Ătat inconnu, essayez de redĂ©marrer l'application ou de contacter notre support si vous avez des questions.","cc-info-app.user-action-msg.app-will-start":"L'application va bientĂŽt dĂ©marrer...","cc-info-app.user-action-msg.deploy-will-begin":"Un dĂ©ploiement va bientĂŽt commencer...","cc-info-app.user-action-msg.deploy-cancelled":"Ce dĂ©ploiement a Ă©tĂ© annulĂ©.","cc-info-app.user-action-msg.app-will-stop":"L'application va s'arrĂȘter...","cc-info-app.error":"Une erreur est survenue pendant le chargement des informations de l'application.","cc-info-consumption.title":"Consommation de crĂ©dits","cc-info-consumption.yesterday":"Hier","cc-info-consumption.last-30-days":"30 derniers jours","cc-info-consumption.amount":({amount:e})=>i.format(e),"cc-info-consumption.error":"Une erreur est survenue pendant le chargement de la consommation.","cc-info-deployments.title":"Derniers dĂ©ploiements","cc-info-deployments.state.failed":"ĂchouĂ©","cc-info-deployments.state.started":"DĂ©marrĂ©","cc-info-deployments.state.cancelled":"AnnulĂ©","cc-info-deployments.state.stopped":"ArrĂȘtĂ©","cc-info-deployments.error":"Something went wrong while loading deployments info.","cc-info-deployments.no-deployments":"No deployments yet.","cc-info-instances.title":"Instances","cc-info-instances.status.deploying":"En dĂ©ploiement","cc-info-instances.status.running":"En ligne","cc-info-instances.no-instances":"Pas d'instance. L'application est arrĂȘtĂ©e.","cc-info-instances.error":"Une erreur est survenue pendant le chargement des instances.","cc-info-scalability.title":"ScalabilitĂ©","cc-info-scalability.size":"Taille","cc-info-scalability.number":"Nombre","cc-info-scalability.flavor-info":e=>{return[`CPUs : ${e.cpus}`+(e.microservice?" (partagĂ©)":""),e.gpus>0?`GPUs : ${e.gpus}`:"",`RAM : ${e.mem<1024?`${e.mem} Mo`:`${e.mem/1024} Go`}`].filter(e=>e).join("\n")},"cc-info-scalability.error":"Une erreur est survenue pendant le chargement de la configuration de scalabilitĂ©.","cc-input-text.clipboard":"Copier dans le presse-papier","cc-logsmap.mode.points":"En direct","cc-logsmap.mode.heatmap":"DerniĂšres 24h","cc-logsmap.legend.points":({orgaName:e})=>`Carte temps rĂ©el des requĂȘtes HTTP reçues par toutes les applications de ${e}.`,"cc-logsmap.legend.points.app":({appName:e})=>`Carte temps rĂ©el des requĂȘtes HTTP reçues par l'application ${e}.`,"cc-logsmap.legend.heatmap":({orgaName:e})=>`Carte de chaleur des requĂȘtes HTTP reçues par les applications de ${e} durant les derniĂšres 24 heures.`,"cc-logsmap.legend.heatmap.app":({appName:e})=>`Carte de chaleur des requĂȘtes HTTP reçues par l'application ${e} durant les derniĂšres 24 heures.`,"cc-map.error":"Une erreur est survenue pendant le chargement des donnĂ©es de la carte.","cc-map.no-points":"Pas de donnĂ©es Ă afficher sur la carte en ce moment.","env-var-create.name.placeholder":"NOM_DE_LA_VARIABLE","env-var-create.value.placeholder":"valeur de la variable","env-var-create.create-button":"Ajouter","env-var-create.errors.invalid-name":({name:e})=>`Le nom ${e} n'est pas valide`,"env-var-create.errors.already-defined-name":({name:e})=>`Le nom ${e} est dĂ©jĂ dĂ©fini`,"env-var-editor-simple.empty-data":"Il n'y a pas de variable.","env-var-editor-expert.placeholder":'NOM_DE_LA_VARIABLE="valeur de la variable"',"env-var-editor-expert.placeholder-readonly":"Il n'y a pas de variable.","env-var-editor-expert.errors.unknown":"Erreur inconnue","env-var-editor-expert.errors.line":"ligne","env-var-editor-expert.errors.invalid-name":({name:e})=>`Le nom ${e} n'est pas valide`,"env-var-editor-expert.errors.duplicated-name":({name:e})=>`attention, le nom ${e} est dĂ©jĂ dĂ©fini`,"env-var-editor-expert.errors.invalid-line":'cette ligne est invalide, le format correct est : NOM="VALEUR"',"env-var-editor-expert.errors.invalid-value":'la valeur est invalide, si vous utilisez des guillements, vous devez les Ă©chapper comme ceci : \\" ou alors mettre toute la valeur entre guillemets.',"env-var-form.mode.simple":"Simple","env-var-form.mode.expert":"Expert","env-var-form.reset":"Annuler les changements","env-var-form.restart-app":"RedĂ©marrer l'app pour appliquer les changements","env-var-form.update":"Mettre Ă jour les changements","env-var-form.error.loading":"Une erreur est survenue pendant le chargement des variables d'environnement.","env-var-form.error.saving":"Une erreur est survenue pendant la mise Ă jour des variables d'environnement.","env-var-form.error.unknown":"Une erreur est survenue...","env-var-input.delete-button":"Enlever","env-var-input.keep-button":"Garder","env-var-input.value-placeholder":"valeur de la variable","env-var-full.heading":"Variables d'environnement","env-var-full.message":"Les variables d'environnement sont des variables dynamiques que vous pouvez injecter dans votre application.","env-var-full.link":"En savoir plus"}; | ||
import{prepareFormatDate as e,prepareFormatDistanceToNow as n}from"../lib/i18n-date.js";export const lang="fr";const r={year:"annĂ©e",month:"mois",week:"semaine",day:"jour",hour:"heure",minute:"minute",second:"seconde"},a=n("fr",(e,n)=>{const a=e>1&!r[n].endsWith("s")?"s":"";return`il y a ${e} ${r[n]}${a}`},"Ă l'instant"),t=e("fr"),i=new Intl.NumberFormat("fr",{style:"currency",currency:"EUR"});export const translations={LANGUAGE:"đ«đ· Français","cc-button.cancel":"Cliquez pour annuler","cc-datetime-relative.distance":({date:e})=>a(e),"cc-datetime-relative.title":({date:e})=>t(e),"cc-info-app.action.cancel-deployment":"Annuler le dĂ©ploiement","cc-info-app.action.restart":"RedĂ©marrer","cc-info-app.action.restart-last-commit":"RedĂ©marrer le dernier commit poussĂ©","cc-info-app.action.restart-rebuild":"Re-build et redĂ©marrer","cc-info-app.action.start":"DĂ©marrer","cc-info-app.action.start-last-commit":"DĂ©marrer le dernier commit poussĂ©","cc-info-app.action.start-rebuild":"Re-build et dĂ©marrer","cc-info-app.action.stop":"ArrĂȘter l'application","cc-info-app.disable-buttons":"Vous n'ĂȘtes pas autorisĂ© Ă rĂ©aliser ces actions","cc-info-app.read-logs":"voir les logs","cc-info-app.commits.no-commits":"pas encore de commit","cc-info-app.commits.git":({commit:e})=>`version du dĂ©pĂŽt git (HEAD) : ${e}`,"cc-info-app.commits.running":({commit:e})=>`version en ligne : ${e}`,"cc-info-app.commits.starting":({commit:e})=>`version en cours de dĂ©ploiement : ${e}`,"cc-info-app.state-msg.app-is-restarting":"L'application redĂ©marre...","cc-info-app.state-msg.app-is-running":"Votre application est disponible !","cc-info-app.state-msg.app-is-starting":"L'application dĂ©marre...","cc-info-app.state-msg.app-is-stopped":"L'application est arrĂȘtĂ©e.","cc-info-app.state-msg.last-deploy-failed":"Le dernier dĂ©ploiement a Ă©chouĂ©,","cc-info-app.state-msg.unknown-state":"Ătat inconnu, essayez de redĂ©marrer l'application ou de contacter notre support si vous avez des questions.","cc-info-app.user-action-msg.app-will-start":"L'application va bientĂŽt dĂ©marrer...","cc-info-app.user-action-msg.deploy-will-begin":"Un dĂ©ploiement va bientĂŽt commencer...","cc-info-app.user-action-msg.deploy-cancelled":"Ce dĂ©ploiement a Ă©tĂ© annulĂ©.","cc-info-app.user-action-msg.app-will-stop":"L'application va s'arrĂȘter...","cc-info-app.error":"Une erreur est survenue pendant le chargement des informations de l'application.","cc-info-consumption.title":"Consommation de crĂ©dits","cc-info-consumption.yesterday":"Hier","cc-info-consumption.last-30-days":"30 derniers jours","cc-info-consumption.amount":({amount:e})=>i.format(e),"cc-info-consumption.error":"Une erreur est survenue pendant le chargement de la consommation.","cc-info-deployments.title":"Derniers dĂ©ploiements","cc-info-deployments.state.failed":"ĂchouĂ©","cc-info-deployments.state.started":"DĂ©marrĂ©","cc-info-deployments.state.cancelled":"AnnulĂ©","cc-info-deployments.state.stopped":"ArrĂȘtĂ©","cc-info-deployments.error":"Something went wrong while loading deployments info.","cc-info-deployments.no-deployments":"No deployments yet.","cc-info-instances.title":"Instances","cc-info-instances.status.deploying":"En dĂ©ploiement","cc-info-instances.status.running":"En ligne","cc-info-instances.no-instances":"Pas d'instance. L'application est arrĂȘtĂ©e.","cc-info-instances.error":"Une erreur est survenue pendant le chargement des instances.","cc-info-orga.hotline":"NumĂ©ro d'urgence :","cc-info-orga.error":"Une erreur est survenue pendant le chargement des informations de l'organisation.","cc-info-scalability.title":"ScalabilitĂ©","cc-info-scalability.size":"Taille","cc-info-scalability.number":"Nombre","cc-info-scalability.flavor-info":e=>{return[`CPUs : ${e.cpus}`+(e.microservice?" (partagĂ©)":""),e.gpus>0?`GPUs : ${e.gpus}`:"",`RAM : ${e.mem<1024?`${e.mem} Mo`:`${e.mem/1024} Go`}`].filter(e=>e).join("\n")},"cc-info-scalability.error":"Une erreur est survenue pendant le chargement de la configuration de scalabilitĂ©.","cc-input-text.clipboard":"Copier dans le presse-papier","cc-logsmap.mode.points":"En direct","cc-logsmap.mode.heatmap":"DerniĂšres 24h","cc-logsmap.legend.points":({orgaName:e})=>`Carte temps rĂ©el des requĂȘtes HTTP reçues par toutes les applications de ${e}.`,"cc-logsmap.legend.points.app":({appName:e})=>`Carte temps rĂ©el des requĂȘtes HTTP reçues par l'application ${e}.`,"cc-logsmap.legend.heatmap":({orgaName:e})=>`Carte de chaleur des requĂȘtes HTTP reçues par les applications de ${e} durant les derniĂšres 24 heures.`,"cc-logsmap.legend.heatmap.app":({appName:e})=>`Carte de chaleur des requĂȘtes HTTP reçues par l'application ${e} durant les derniĂšres 24 heures.`,"cc-map.error":"Une erreur est survenue pendant le chargement des donnĂ©es de la carte.","cc-map.no-points":"Pas de donnĂ©es Ă afficher sur la carte en ce moment.","env-var-create.name.placeholder":"NOM_DE_LA_VARIABLE","env-var-create.value.placeholder":"valeur de la variable","env-var-create.create-button":"Ajouter","env-var-create.errors.invalid-name":({name:e})=>`Le nom ${e} n'est pas valide`,"env-var-create.errors.already-defined-name":({name:e})=>`Le nom ${e} est dĂ©jĂ dĂ©fini`,"env-var-editor-simple.empty-data":"Il n'y a pas de variable.","env-var-editor-expert.placeholder":'NOM_DE_LA_VARIABLE="valeur de la variable"',"env-var-editor-expert.placeholder-readonly":"Il n'y a pas de variable.","env-var-editor-expert.errors.unknown":"Erreur inconnue","env-var-editor-expert.errors.line":"ligne","env-var-editor-expert.errors.invalid-name":({name:e})=>`Le nom ${e} n'est pas valide`,"env-var-editor-expert.errors.duplicated-name":({name:e})=>`attention, le nom ${e} est dĂ©jĂ dĂ©fini`,"env-var-editor-expert.errors.invalid-line":'cette ligne est invalide, le format correct est : NOM="VALEUR"',"env-var-editor-expert.errors.invalid-value":'la valeur est invalide, si vous utilisez des guillements, vous devez les Ă©chapper comme ceci : \\" ou alors mettre toute la valeur entre guillemets.',"env-var-form.mode.simple":"Simple","env-var-form.mode.expert":"Expert","env-var-form.reset":"Annuler les changements","env-var-form.restart-app":"RedĂ©marrer l'app pour appliquer les changements","env-var-form.update":"Mettre Ă jour les changements","env-var-form.error.loading":"Une erreur est survenue pendant le chargement des variables d'environnement.","env-var-form.error.saving":"Une erreur est survenue pendant la mise Ă jour des variables d'environnement.","env-var-form.error.unknown":"Une erreur est survenue...","env-var-input.delete-button":"Enlever","env-var-input.keep-button":"Garder","env-var-input.value-placeholder":"valeur de la variable","env-var-full.heading":"Variables d'environnement","env-var-full.message":"Les variables d'environnement sont des variables dynamiques que vous pouvez injecter dans votre application.","env-var-full.link":"En savoir plus"}; | ||
//# sourceMappingURL=translations.fr.js.map |
{ | ||
"name": "@clevercloud/components", | ||
"version": "1.3.0-beta.6", | ||
"version": "1.3.0-beta.7", | ||
"description": "This is a Work In Progress to introduce Web Components in our Clever Cloud Web based UIs.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
804333
82
879