This commit is contained in:
2023-03-11 17:30:20 +00:00
commit b6c4e025bc
5124 changed files with 1153349 additions and 0 deletions
@@ -0,0 +1,61 @@
var Unibase;
(function (Unibase) {
let Apps;
(function (Apps) {
let Communications;
(function (Communications) {
let Component;
(function (Component) {
class AuthTokenUpdate extends Unibase.Platform.Core.BaseComponent {
cssFiles() {
return [];
}
jsFiles() {
return ["apps/communications/components/w_authtokenupdate.js", "apps/communications/managers/authtokenmanager.js"];
}
html(id, containerid) {
let html = ``;
return html;
}
load(id, containerid, callback) {
}
init() {
this.render();
$("#BtnUpdateAuthtoken").click(function () {
Unibase.Apps.Communications.Component.AuthTokenUpdate.Instance().updateAuthtoken();
});
}
render() {
var portletwidgetid = Number($("#hf_PortletWidgetId").val());
$(".div_portletwidget_" + portletwidgetid).empty();
let html = `<div class="card shadow-hover">
<div class="card-header card-header-action bg-light bg-gradient-light"><strong>Update Auth Token</strong></div>
<div class="card-body">
<div id="divUpdateAuthToken" class="wrapper text-center bg-success card-header">
<a id="BtnUpdateAuthtoken" href="javascript:;"><span class="h4">Update Authentication Token</span></a>
</div>
</div>
</div>`;
$(".div_portletwidget_" + portletwidgetid).append(html);
}
updateAuthtoken() {
var instance = this;
instance.fileCacheHelper.loadJsFile('apps/communications/managers/authtokenmanager.js', function () {
Unibase.Apps.Communications.Managers.AuthTokenManager.Instance().updateAuthToken().then(function (response) {
MessageHelper.Instance().showSuccess(response.message, "Unibase_ValidationSummary");
});
});
}
static Instance() {
if (this.instance === undefined) {
this.instance = new AuthTokenUpdate();
}
return this.instance;
}
}
Component.AuthTokenUpdate = AuthTokenUpdate;
})(Component = Communications.Component || (Communications.Component = {}));
})(Communications = Apps.Communications || (Apps.Communications = {}));
})(Apps = Unibase.Apps || (Unibase.Apps = {}));
})(Unibase || (Unibase = {}));
@@ -0,0 +1 @@
{"version":3,"file":"w_authtokenupdate.js","sourceRoot":"","sources":["w_authtokenupdate.ts"],"names":[],"mappings":"AACA,IAAU,OAAO,CAsFhB;AAtFD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AAI,CAAC,cAAc,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAOlG,aAAa,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,2BAA2B,CAAC,CAAC;4BAE5F,CAAC,CAAC,CAAC;wBACP,CAAC,CAAC,CAAC;oBAEP,CAAC;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;yBACzC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBAEJ;gBA5EY,yBAAe,kBA4E3B,CAAA;YAEL,CAAC,EAhFgB,SAAS,GAAT,wBAAS,KAAT,wBAAS,QAgFzB;QACL,CAAC,EAlFgB,cAAc,GAAd,mBAAc,KAAd,mBAAc,QAkF9B;IACL,CAAC,EApFgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAoFpB;AACL,CAAC,EAtFS,OAAO,KAAP,OAAO,QAsFhB"}
+9
View File
@@ -0,0 +1,9 @@
var Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseComponent{cssFiles(){return[]}jsFiles(){return["apps/communications/components/w_authtokenupdate.js","apps/communications/managers/authtokenmanager.js"]}html(){return``}load(){}init(){this.render();$("#BtnUpdateAuthtoken").click(function(){n.Apps.Communications.Component.AuthTokenUpdate.Instance().updateAuthtoken()})}render(){var n=Number($("#hf_PortletWidgetId").val());$(".div_portletwidget_"+n).empty();let t=`<div class="card shadow-hover">
<div class="card-header card-header-action bg-light bg-gradient-light"><strong>Update Auth Token</strong></div>
<div class="card-body">
<div id="divUpdateAuthToken" class="wrapper text-center bg-success card-header">
<a id="BtnUpdateAuthtoken" href="javascript:;"><span class="h4">Update Authentication Token</span></a>
</div>
</div>
</div>`;$(".div_portletwidget_"+n).append(t)}updateAuthtoken(){var t=this;t.fileCacheHelper.loadJsFile("apps/communications/managers/authtokenmanager.js",function(){n.Apps.Communications.Managers.AuthTokenManager.Instance().updateAuthToken().then(function(n){MessageHelper.Instance().showSuccess(n.message,"Unibase_ValidationSummary")})})}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.AuthTokenUpdate=i})(i=t.Component||(t.Component={}))})(i=t.Communications||(t.Communications={}))})(t=n.Apps||(n.Apps={}))})(Unibase||(Unibase={}));