Koc Digital Safe Frames Micro-frontend Interface
npm install @kocdigital/sf-interfaceKOÇ
DIGITAL
Safe
Frames
-
Main
Frame
Micro-Frontend
VUE.JS
Interface
`````
npm install
``
npm run build
`javascript
const core = {
store,
vuetify,
router
}
defineSf(Vue, {
...Components,
...core,
i18n,
render: h => h(App)
}, {
...core,
dialog,
...services
});
`
`javascript`
{
getSolution,
checkUser,
createSecureInstance,
createUnsecureInstance,
getToken,
getSettings,
setConfig,
signOut
}
javascript
import {revokeSf} from '@sf/sf-frames';const sfCore = revokeSf();
const instance = sfCore.services.createSecureInstance(
${config.API.BASEURL}, {loader: true});instance.get(url);
instance.post(url, data);
`$3
`javascript
interface ApiInstanceOptions {
customHeaders?: object;
errorMiddleware?(d: Date): void;
loader?: boolean;
disableErrorNotifications?: boolean;
}
``