![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@shopware-ag/admin-extension-sdk
Advanced tools
The SDK for App iframes to communicate with the Shopware Administration
The admin-extension-sdk
is a JavaScript library for all Shopware 6 App and Plugin developer which want an easy way to extend and customize the administration.
Install it to your package.json
npm i --save @shopware-ag/admin-extension-sdk
and import it in your app:
// import everything
import * as sw from '@shopware-ag/admin-extension-sdk';
// or import only needed functionality
import { notification } from '@shopware-ag/admin-extension-sdk';
Import the source from the CDN
// use the latest version available
<script src="https://unpkg.com/@shopware-ag/admin-extension-sdk/cdn"></script>
// use a fix version (example here: 1.2.3)
<script src="https://unpkg.com/@shopware-ag/admin-extension-sdk@1.2.3/cdn"></script>
and then you can access it with the global variable sw
.
sw.notification.dispatch({
title: 'My first notification',
message: 'This was really easy to do'
})
Throw a notification:
sw.notification.dispatch({
title: 'My first notification',
message: 'This was really easy to do'
})
Get the system currency:
const currency = await sw.context.getCurrency();
Subscribe for UI locale changes:
let currentLocale = 'en-GB';
sw.context.subscribeLocale(({ locale }) => {
currentLocale = locale;
})
See more examples in the Documentation.
FAQs
The SDK for App iframes to communicate with the Shopware Administration
The npm package @shopware-ag/admin-extension-sdk receives a total of 1,843 weekly downloads. As such, @shopware-ag/admin-extension-sdk popularity was classified as popular.
We found that @shopware-ag/admin-extension-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.