Skip to content

Commit

Permalink
[create-pull-request] automated change (#1630)
Browse files Browse the repository at this point in the history
Co-authored-by: shopwareBot <[email protected]>
  • Loading branch information
github-actions[bot] and shopwareBot authored Dec 31, 2024
1 parent f818737 commit a699e74
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ For more information on snippets deleted in this course see CHANGELOG-6.3.md

* Create error notification

```javascript
```js
this.createNotificationError({
message: this.$tc('sw-module.messageError')
});
Expand All @@ -59,7 +59,7 @@ this.createNotificationError({

* Avoid cheap solutions like

```javascript
```js
this.createNotificationError({
message: err
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To avoid duplication of these privileges we use a helper function. These
function returns all privileges from the other module dynamically. You can
use it directly in the privileges:

```javascript
```js
Shopware.Service('privileges')
.addPrivilegeMappingEntry({
category: 'permissions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ An app wants to render a custom iFrame in a card on the dashboard. The "location

The app want to render different views depending on the "location" of the iFrame. So the app developer can render the correct view depending on the "locationID":

```javascript
```js
if (sw.location.is('sw-dashboard-example-app-dashboard-card')) {
renderDashboardCard();
}
Expand All @@ -46,7 +46,7 @@ Developers can extend existing areas or create new areas in the administration w

An app wants to add a new tab item to a tab-bar. In the administration are many tab-bars available. So the developer needs to choose the correct "positionID" to determine which tab-bar should be extended. In this example the developer adds a new tab item to the tab-bar in the product detail page.

```javascript
```js
sw.ui.tabs('sw-product-detail').addTabItem({ ... })
```

Expand All @@ -59,7 +59,7 @@ In most cases developers will directly use the extension capabilities of the UI

To give them more flexibility we introduce a feature named "Component Sections". These are sections where any extension developer can inject components. These components are prebuilt and they can also contain custom render views with iFrames. The developer needs to use the feature and choose the matching positionID for the component position.

```javascript
```js
// Adding a card before the manufacturer card with custom fields entries.
sw.ui.componentSection('sw-manufacturer-card-custom-fields__before').add({
// The Extension-API provides different components out of the box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Our main idea for the template part was to use native Vue components named sw-bl

For the script and logic part, we aimed to use the Composition API. Before returning all the component data and methods, we would provide a hook point for plugins so they could modify or inject everything they want.

```javascript
```js
// The original component
<script setup lang="ts">
// Hook for providing extensibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ To do so add the `Experimental` tag to the OpenApi definition of the route and a

Modules, Components, Services, etc. can be marked as experimental, meaning that they are not covered by the backwards compatibility promise.

```javascript
```js
/**
* @experimental stableVersion:v6.6.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class testClass()
```
js

```javascript
```js
/**
* @experimental stableVersion:v6.6.0 feature:WISHLIST
*/
Expand Down

0 comments on commit a699e74

Please sign in to comment.