@kocdigital/sf-interface
Koc Digital Safe Frames Micro-frontend Interface
9,967
2
| Install | |
|---|---|
npm install @kocdigital/sf-interface |
|
| Latest Version: | 1.0.5 |
| License: | MIT |
| Last Updated: | Feb 11, 2022 |
| Links: | GitHub · npm |
Maintainer: anil.eladag
@sf/sf-frames
KOÇ DIGITAL Safe Frames
Main Frame Micro-Frontend VUE.JS Interface
install with npm
npm install
build with npm
npm run build
Define Main Frame with services
const core = {
store,
vuetify,
router
}
defineSf(Vue, {
...Components,
...core,
i18n,
render: h => h(App)
}, {
...core,
dialog,
...services
});
Default Services
{
getSolution,
checkUser,
createSecureInstance,
createUnsecureInstance,
getToken,
getSettings,
setConfig,
signOut
}
Create Main Frame API Instance
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);
Main Frame API Options
interface ApiInstanceOptions {
customHeaders?: object;
errorMiddleware?(d: Date): void;
loader?: boolean;
disableErrorNotifications?: boolean;
}
Version History
| Version | Released | License |
|---|---|---|
| 1.0.5 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT |