@acedatacloud/nexior 2.14.5 → 2.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Auth.9d209ffb.js → Auth.b99a2fc5.js} +1 -1
- package/dist/assets/{Buy.16d334fd.js → Buy.442738e8.js} +1 -1
- package/dist/assets/{Buy.ecf0b41e.js → Buy.952500f3.js} +1 -1
- package/dist/assets/{Callback.519e528e.js → Callback.4dbae2f2.js} +1 -1
- package/dist/assets/{Chatdoc.92b9df41.js → Chatdoc.527cbb49.js} +1 -1
- package/dist/assets/{Console.d58c59fd.js → Console.19588ea6.js} +1 -1
- package/dist/assets/{Conversation.abde74f3.css → Conversation.499bd9c5.css} +1 -1
- package/dist/assets/{Conversation.b6002fd3.js → Conversation.7fc85c0a.js} +1 -1
- package/dist/assets/{Conversation.27a7f32f.js → Conversation.8dbad2d5.js} +1 -1
- package/dist/assets/{CopyToClipboard.49c25aa1.js → CopyToClipboard.da42bd6a.js} +1 -1
- package/dist/assets/{DarkSelector.0020d592.js → DarkSelector.d4ce65b4.js} +1 -1
- package/dist/assets/{Detail.035c2f27.js → Detail.d6556cea.js} +1 -1
- package/dist/assets/{History.a47031b2.js → History.8b92a5ec.js} +1 -1
- package/dist/assets/{Index.4c54f382.js → Index.10d06737.js} +1 -1
- package/dist/assets/{Index.439d2636.js → Index.3bbdba8d.js} +1 -1
- package/dist/assets/{Index.23b0fdaa.js → Index.67b8774a.js} +1 -1
- package/dist/assets/{Index.6aac3364.js → Index.6905093f.js} +1 -1
- package/dist/assets/{Index.ce8797cd.js → Index.6fe966e4.js} +1 -1
- package/dist/assets/{Index.d85fa482.js → Index.769cfaa7.js} +1 -1
- package/dist/assets/{Index.fed17efb.js → Index.7f7898cc.js} +1 -1
- package/dist/assets/{Index.677b8d8a.js → Index.8f5c788c.js} +1 -1
- package/dist/assets/{Index.68d4db93.js → Index.90dc1fff.js} +1 -1
- package/dist/assets/{Index.c7071555.js → Index.a19b964c.js} +1 -1
- package/dist/assets/{Index.977e8f7d.js → Index.b98934ed.js} +1 -1
- package/dist/assets/{Index.ca1e236a.js → Index.d873b013.js} +1 -1
- package/dist/assets/Index.eb8f3362.js +1 -0
- package/dist/assets/{InfoIcon.79530078.js → InfoIcon.cab8777c.js} +1 -1
- package/dist/assets/{Invitees.d2ec63d2.js → Invitees.d1772922.js} +1 -1
- package/dist/assets/{List.a7410e8a.js → List.6bde1fe8.js} +1 -1
- package/dist/assets/{List.abb01214.js → List.8ab4c14e.js} +1 -1
- package/dist/assets/{List.5250332a.js → List.f1521cdb.js} +1 -1
- package/dist/assets/{Login.abe1b2d4.js → Login.834b478f.js} +1 -1
- package/dist/assets/{Main.f632cb1e.js → Main.bbec1309.js} +1 -1
- package/dist/assets/{Manage.060074e5.js → Manage.a7697182.js} +1 -1
- package/dist/assets/{MarkdownRenderer.8f35e0c1.js → MarkdownRenderer.e84733d8.js} +1 -1
- package/dist/assets/{Navigator.621791f9.js → Navigator.9c3c8ae0.js} +1 -1
- package/dist/assets/{Pagination.4cf2c8a6.js → Pagination.ec011e25.js} +1 -1
- package/dist/assets/{Setting.790811a9.js → Setting.35cec66a.js} +1 -1
- package/dist/assets/{Status.80964f7e.js → Status.9e8c29ef.js} +1 -1
- package/dist/assets/{distribution.bdaf1394.js → distribution.1cefa2a9.js} +1 -1
- package/dist/assets/{index.d8c35250.js → index.f12167ac.js} +1 -1
- package/dist/assets/{order.602bb27f.js → order.4d777989.js} +1 -1
- package/dist/assets/{price.f32a5455.js → price.14c8385e.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Index.75abfb77.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var z=Object.defineProperty;var j=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var L=(e,t,n)=>(j(e,typeof t!="symbol"?t+"":t,n),n);import"./vendor-others.56d45bbc.js";import{B as E,U as F,_ as R,I as G,E as Q,G as H}from"./index.
|
|
1
|
+
var z=Object.defineProperty;var j=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var L=(e,t,n)=>(j(e,typeof t!="symbol"?t+"":t,n),n);import"./vendor-others.56d45bbc.js";import{B as E,U as F,_ as R,I as G,E as Q,G as H}from"./index.f12167ac.js";import{E as q,G as W,H as K,D as X,Q as Y,l as A,M as O,y as J,A as Z,C as x,R as ee}from"./vendor-element-plus.0a44791e.js";import{H as w,al as s,o as a,L as k,M as r,f as c,V as o,T as b,U as i,e as d,W as te,ai as ie,S as h}from"./vendor-@vue.01066951.js";const ne="duplication",Pe="api_error",Se="bad_request",Ue="used_up",Be="unknown",Ie="canceled",Ve="timeout",Me="content_too_large",Le="too_many_requests",qe="not_applied";class se{constructor(){L(this,"key","credentials")}async getAll(t){return await E.get(`/${this.key}/`,{params:t})}async get(t){return await E.get(`/${this.key}/${t}`)}async create(t){return await E.post(`/${this.key}/`,t)}async delete(t){return await E.delete(`/${this.key}/${t}`)}}const oe=new se;const ae=w({name:"ApplicationConfirm",components:{ElDialog:q,ElDescriptions:W,ElDescriptionsItem:K,ElDivider:X,ElCheckbox:Y,ElButton:A},props:{service:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["update:visible","apply"],data(){return{checked:!0}},watch:{},methods:{getBaseUrlPlatform:F,onApply(){if(!this.checked){O.error(this.$t("application.message.notAgreePolicy"));return}this.$emit("apply")}}}),le={class:"content"},re={class:"policy"},pe={class:"policy-title"},ce=["href"];function de(e,t,n,u,m,D){const _=s("el-descriptions-item"),v=s("el-descriptions"),f=s("el-divider"),$=s("el-checkbox"),p=s("el-button"),y=s("el-dialog");return a(),k(y,{"model-value":e.visible,width:"500px",title:e.$t("application.message.confirmApplying"),center:"",onClose:t[1]||(t[1]=l=>e.$emit("update:visible",!1))},{default:r(()=>[c("div",le,[o(v,{column:1},{default:r(()=>[o(_,{label:e.$t("application.field.name")},{default:r(()=>{var l;return[b(i((l=e.service)==null?void 0:l.title),1)]}),_:1},8,["label"]),o(_,{label:e.$t("application.field.freeAmount")},{default:r(()=>{var l,g;return[c("span",null,i((l=e.service)==null?void 0:l.free_amount)+" "+i(e.$t(`service.unit.${(g=e.service)==null?void 0:g.unit}`)),1)]}),_:1},8,["label"])]),_:1}),o(f,{class:"my-2"}),c("div",re,[o($,{modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=l=>e.checked=l),size:"large",class:"policy-checkbox"},null,8,["modelValue"]),c("span",pe,i(e.$t("application.message.readPolicy")),1),c("a",{class:"policy-title highlight",target:"_blank",href:e.getBaseUrlPlatform()+"/terms"}," \xA0"+i(e.$t("application.message.policy")),9,ce)]),o(p,{round:"",type:"primary",onClick:e.onApply},{default:r(()=>[b(i(e.$t("common.button.apply")),1)]),_:1},8,["onClick"])])]),_:1},8,["model-value","title"])}var ue=R(ae,[["render",de],["__scopeId","data-v-666cd2fe"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Confirm.vue"]]);const me=w({name:"ApiPrice",components:{ElTable:J,ElTableColumn:Z,ElDialog:q,ElButton:A},props:{price:{type:Object,required:!0}},data(){return{visible:!1}},computed:{data(){var e;return((e=this.price)==null?void 0:e.data)||[]},columns(){var e;return(e=this.price)==null?void 0:e.columns},spans(){var e;return(e=this.price)==null?void 0:e.spans}},methods:{cellStyle(){return{"font-weight":"bold","text-align":"center"}},spanMethod({row:e,column:t,rowIndex:n,columnIndex:u}){if(this.spans){for(const m of this.spans)if(n===m[0]&&u===m[1])return[m[2],m[3]]}return[1,1]}}});function _e(e,t,n,u,m,D){const _=s("el-table-column"),v=s("el-table"),f=s("el-dialog"),$=s("el-button");return a(),d("div",null,[o(f,{modelValue:e.visible,"onUpdate:modelValue":t[0]||(t[0]=p=>e.visible=p),center:"",width:"80%"},{default:r(()=>[o(v,{data:e.data,stripe:"","span-method":e.spanMethod,"header-cell-style":e.cellStyle,"cell-style":e.cellStyle},{default:r(()=>[(a(!0),d(te,null,ie(e.columns,(p,y)=>(a(),k(_,{key:y,prop:p.key,label:p.label},null,8,["prop","label"]))),128))]),_:1},8,["data","span-method","header-cell-style","cell-style"])]),_:1},8,["modelValue"]),o($,{round:"",size:"small",onClick:t[1]||(t[1]=p=>e.visible=!0)},{default:r(()=>[b(i(e.$t("service.button.pricing")),1)]),_:1})])}var fe=R(me,[["render",_e],["__scopeId","data-v-4600b314"],["__file","/home/runner/work/Nexior/Nexior/src/components/api/Price.vue"]]);const ye=w({name:"ApplicationStatus",components:{ElButton:A,ApplicationConfirm:ue,ElSkeleton:x,ElSkeletonItem:ee,ApiPrice:fe},props:{application:{type:Object,required:!0},initializing:{type:Boolean,default:!1},showPrice:{type:Boolean,default:!0},service:{type:Object,required:!0},needApply:{type:Boolean,default:!1}},emits:["apply","refresh","applied","update:application"],data(){return{confirming:this.needApply,applicationType:G}},computed:{authenticated(){return!!this.$store.state.token.access},user(){return this.$store.state.user}},watch:{needApply(e){e&&(this.confirming=e)}},mounted(){var e,t;this.application&&!((t=(e=this.application)==null?void 0:e.credentials)!=null&&t.find(n=>n.host===window.location.origin))&&(console.debug("create extra credential"),this.onCreateCredential(this.application))},methods:{onBuyMore(e){this.$router.push({name:Q,params:{id:e.id}})},onCreateCredential(e){oe.create({application_id:e==null?void 0:e.id,host:window.location.origin}).then(()=>{setTimeout(()=>{this.$emit("refresh")},2e3),this.confirming=!1}).finally(()=>{this.$emit("applied")})},onApply(){var e;H.create({service_id:(e=this.service)==null?void 0:e.id}).then(({data:t})=>{O.success(this.$t("application.message.applySuccessfully")),this.onCreateCredential(t)}).catch(t=>{var n,u;((u=(n=t==null?void 0:t.response)==null?void 0:n.data)==null?void 0:u.code)===ne&&O.error(this.$t("application.message.alreadyApplied")),this.confirming=!1})}}}),he={class:"element"},ve={key:0},$e={key:1,class:"status"},ge={key:0,class:"info"},be={key:1,class:"info"},Ee={class:"actions"},ke={key:2,class:"text-center info"},Ce={class:"mr-2"},Oe={class:"ml-1"};function Re(e,t,n,u,m,D){var y,l,g,N,T,P,S,U,B,I,V,M;const _=s("el-skeleton-item"),v=s("el-skeleton"),f=s("el-button"),$=s("api-price"),p=s("application-confirm");return a(),d("div",he,[e.initializing&&e.application===void 0?(a(),d("div",ve,[o(v,{rows:1,class:"text-center"},{template:r(()=>[o(_,{variant:"p",class:"shimmer"})]),_:1})])):e.application?(a(),d("div",$e,[e.application.type==="Period"?(a(),d("span",ge,i(e.$t("common.message.expiredAt"))+": "+i(e.$dayjs.format(e.application.expired_at)),1)):h("v-if",!0),e.application.type==="Usage"?(a(),d("span",be,i(e.$t("common.message.remainingAmount"))+": "+i((l=(y=e.application)==null?void 0:y.remaining_amount)==null?void 0:l.toFixed(6))+" "+i(e.$t("service.unit."+((N=(g=e.application)==null?void 0:g.service)==null?void 0:N.unit)+"s")),1)):h("v-if",!0),c("span",Ee,[o(f,{round:"",size:"small",type:"primary",class:"mr-1",onClick:t[0]||(t[0]=C=>e.onBuyMore(e.application))},{default:r(()=>[b(i(e.$t("common.button.buyMore")),1)]),_:1}),e.showPrice&&((U=(S=(P=(T=e.application)==null?void 0:T.service)==null?void 0:P.apis)==null?void 0:S[0])==null?void 0:U.price)?(a(),k($,{key:0,class:"price inline-block",price:(M=(V=(I=(B=e.application)==null?void 0:B.service)==null?void 0:I.apis)==null?void 0:V[0])==null?void 0:M.price},null,8,["price"])):h("v-if",!0)])])):h("v-if",!0),e.needApply&&e.service?(a(),d("div",ke,[c("span",Ce,i(e.$t("chat.message.notApplied")),1),c("span",null,[o(f,{round:"",type:"primary",class:"btn btn-apply",size:"small",onClick:t[1]||(t[1]=C=>e.confirming=!0)},{default:r(()=>[b(i(e.$t("common.button.apply")),1)]),_:1})]),c("span",Oe,i(e.$t("chat.message.tryForFree")),1),e.service&&e.authenticated?(a(),k(p,{key:0,modelValue:e.confirming,"onUpdate:modelValue":t[2]||(t[2]=C=>e.confirming=C),modelModifiers:{visible:!0},service:e.service,onApply:e.onApply},null,8,["modelValue","service","onApply"])):h("v-if",!0)])):h("v-if",!0)])}var ze=R(ye,[["render",Re],["__scopeId","data-v-2941d97e"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Status.vue"]]);export{ze as A,Be as E,Ie as a,qe as b,Me as c,Le as d,Ve as e,Se as f,Pe as g,Ue as h,ne as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a=Object.defineProperty;var n=(i,t,s)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(n(i,typeof t!="symbol"?t+"":t,s),s);import{B as r}from"./index.
|
|
1
|
+
var a=Object.defineProperty;var n=(i,t,s)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(n(i,typeof t!="symbol"?t+"":t,s),s);import{B as r}from"./index.f12167ac.js";class o{constructor(){e(this,"key","distribution-histories")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const b=new o;class l{constructor(){e(this,"key","distribution-statuses")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}async initialize(){return await r.post(`/${this.key}/initialize/`)}}const h=new l;class c{constructor(){e(this,"key","distribution-levels")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const k=new c;class u{constructor(){e(this,"key","shorturl")}async create(t){return await r.post(`/${this.key}`,{content:t})}}const w=new u;export{k as a,b,h as d,w as s};
|