chore: automate Matrix42 package build
This commit is contained in:
3
PackageTemplate/Files/WM/workspaces/C4IT_F4SD/F4SD.min.js
vendored
Normal file
3
PackageTemplate/Files/WM/workspaces/C4IT_F4SD/F4SD.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/*v1.0.0 (2024-10-29)*/var w;!function(o){"use strict";var e="c4it-f4sd-icons";o.mx=o.mx||{},o.mx.workspacesConfig=o.mx.workspacesConfig||{},o.mx.workspacesConfig.modules=o.mx.workspacesConfig.modules||{},o.mx.workspacesConfig.modules.add=o.mx.workspacesConfig.modules.add||function(e,n){o.mx.workspacesConfig.modules[e]=n},o.mx.workspacesConfig.modules.add("mx.C4IT.F4SD",{name:"mx.C4IT.F4SD",config:["$mdIconProvider",function(n){n.iconSet(e,"workspaces/C4IT_F4SD/F4SDIcons.svg"),o.mx=o.mx||{},o.mx.components=o.mx.components||{},o.mx.components.Icons=o.mx.components.Icons||{},o.mx.components.Icons.unshift({id:e,name:"C4IT F4SD Icons",icons:[{SVG:!0,id:e+":icon-f4sd",name:"F4SD Icon",keywords:["c4it","custom","f4sd"]},{SVG:!0,id:e+":icon-f4sd-coloured",name:"F4SD Icon (coloured)",keywords:["c4it","custom","f4sd"]}]})}]})}
|
||||
(window),window,angular.module("mx.C4IT.F4SD").controller("mx.C4IT.F4SD.Actions.callF4SD",["mx.shell.Config","mx.SolutionBuilderAgent.Http","mx.shell.NotificationService","mx.internationalization",function(o,e,n,s){var t=this;this.restHost=o.settings.restHosts.default,this.messageF4SDOpened=s.get("c4it.f4sd.action-open-called")||"F4SD is beeing opened...",this.execute=function(o,s){var c=o[0]["Sys-ObjectId"]||o[0].ID;try{t.controllerParams=new URLSearchParams(s.controllerParams)}catch(a){console.log(a),n.error("Action config parameters format exception");return}
|
||||
let i=new URL("/api/c4itf4sdwebapi/getdirectlinkf4sd/",t.restHost);i.searchParams.append("type",t.controllerParams.get("type")||s.name),i.searchParams.append("eoid",c),e.get(i.pathname+i.search).then(function(o){try{let e=new URL(o);"f4sdsend:"==e.protocol&&(t.controllerParams.has("showNotification")&&1==t.controllerParams.get("showNotification")&&n.info(t.messageF4SDOpened),window.location.href=o)}catch(s){console.log(s),n.error("Service not available")}},function o(e){console.log(e),n.error("Service not available")})}}]);
|
||||
21
PackageTemplate/Files/WM/workspaces/C4IT_F4SD/F4SDIcons.svg
Normal file
21
PackageTemplate/Files/WM/workspaces/C4IT_F4SD/F4SDIcons.svg
Normal file
@@ -0,0 +1,21 @@
|
||||
<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<symbol id="icon-f4sd-coloured" viewBox="0 0 56.69 56.69">
|
||||
<title>F4SD Icon (coloured)</title>
|
||||
<rect fill="#1d4b99" width="56.69" height="56.69" rx="8.15"/>
|
||||
<path fill="#fff" d="M46.06,34.3a1.77,1.77,0,0,0-.88,2.34A17.81,17.81,0,0,1,46.7,44a1.77,1.77,0,0,0,3.54,0,21.25,21.25,0,0,0-1.84-8.78A1.77,1.77,0,0,0,46.06,34.3Z"/>
|
||||
<path fill="#fff" d="M33.66,26.57a1.77,1.77,0,0,0,2.2-1.16,1.82,1.82,0,0,0-1.17-2.24,22.72,22.72,0,0,0-6.34-.92A21.75,21.75,0,0,0,6.63,44a1.77,1.77,0,1,0,3.54,0A18.21,18.21,0,0,1,28.41,25.79,18.64,18.64,0,0,1,33.66,26.57Z"/>
|
||||
<path fill="#fff" d="M42.17,27.18,25.87,39.3a5.53,5.53,0,0,0-1.78,1.48,5.29,5.29,0,0,0,4.61,8.44,5.17,5.17,0,0,0,3.54-1.81,5.47,5.47,0,0,0,1-1.63L42.7,27.71a.42.42,0,0,0-.28-.53A.36.36,0,0,0,42.17,27.18ZM28.35,46.35a2.27,2.27,0,0,1-2.45-2.08v-.05A2.31,2.31,0,0,1,28,41.74h0a2.37,2.37,0,0,1,2.48,2.16,2.31,2.31,0,0,1-2.15,2.45Z"/>
|
||||
<path fill="#fff" d="M48.08,3.54H8.61A5,5,0,0,0,3.54,8.36v2.27H53.15V8.36A5,5,0,0,0,48.08,3.54Z"/>
|
||||
<rect fill="#fff" x="3.65" y="13.75" width="49.43" height="2.48"/>
|
||||
</symbol>
|
||||
<symbol id="icon-f4sd" viewBox="0 0 56.69 56.69">
|
||||
<title>F4SD Icon</title>
|
||||
<path d="M46.06,34.3a1.77,1.77,0,0,0-.88,2.34A17.81,17.81,0,0,1,46.7,44a1.77,1.77,0,0,0,3.54,0,21.25,21.25,0,0,0-1.84-8.78A1.77,1.77,0,0,0,46.06,34.3Z"/>
|
||||
<path d="M33.66,26.57a1.77,1.77,0,0,0,2.2-1.16,1.82,1.82,0,0,0-1.17-2.24,22.72,22.72,0,0,0-6.34-.92A21.75,21.75,0,0,0,6.63,44a1.77,1.77,0,1,0,3.54,0A18.21,18.21,0,0,1,28.41,25.79,18.64,18.64,0,0,1,33.66,26.57Z"/>
|
||||
<path d="M42.17,27.18,25.87,39.3a5.53,5.53,0,0,0-1.78,1.48,5.29,5.29,0,0,0,4.61,8.44,5.17,5.17,0,0,0,3.54-1.81,5.47,5.47,0,0,0,1-1.63L42.7,27.71a.42.42,0,0,0-.28-.53A.36.36,0,0,0,42.17,27.18ZM28.35,46.35a2.27,2.27,0,0,1-2.45-2.08v-.05A2.31,2.31,0,0,1,28,41.74h0a2.37,2.37,0,0,1,2.48,2.16,2.31,2.31,0,0,1-2.15,2.45Z"/>
|
||||
<path d="M48.08,3.54H8.61A5,5,0,0,0,3.54,8.36v2.27H53.15V8.36A5,5,0,0,0,48.08,3.54Z"/>
|
||||
<rect x="3.65" y="13.75" width="49.43" height="2.48"/>
|
||||
</symbol>
|
||||
</defs>
|
||||
</svg>
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"description": "C4IT - F4SD - M42 ESM Integration",
|
||||
"version": "1.0.0",
|
||||
"resources": [
|
||||
"F4SD.min.js"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user