Skip to content

Commit

Permalink
Apply code formatting and fixable ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp authored and github-actions[bot] committed Dec 18, 2024
1 parent 85e9142 commit c2ddd3d
Show file tree
Hide file tree
Showing 48 changed files with 901 additions and 871 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<div>
<h2>Config!</h2>

Video-Code: <input v-model="dailyUrl" type="text" /><br />
Video-Code: <input
v-model="dailyUrl"
type="text"
><br>
</div>
</template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@
developer can see, what are the possibilities of the Meteor Admin SDK. It
is not intended to be used in production.

<br />
<br />
<br>
<br>

You can find in the menu a separate module for this App. There are all
features described.
</p>

<br />
<br>

<SwButton variant="primary" @click="goToExampleModule">
<SwButton
variant="primary"
@click="goToExampleModule"
>
Go to the example module
</SwButton>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,49 @@
<div>
<p><strong>Changing existing data: </strong></p>

<br />
<br />
<br>
<br>

<SwTextField v-model="productName" label="Product name" />
<SwTextField
v-model="productName"
label="Product name"
/>

<p>
You can see in the title that the product name gets updated in realtime.
</p>

<br />
<br />
<br>
<br>

<p><strong>Working with repository: </strong></p>

<br />
<br />
<br>
<br>

<p>
You can have access to the whole repository functionalities for creating,
reading, updating and deleting entities.
</p>

<br />
<br>

<SwButton @click="loadManufacturer"> Load first manufacturer </SwButton>
<SwButton @click="loadManufacturer">
Load first manufacturer
</SwButton>

<br />
<br />
<br>
<br>

<SwTextField
v-if="manufacturer"
v-model="manufacturer.name"
label="Manufacturer name"
/>
<SwButton v-if="manufacturer" @click="saveManufacturer">
<SwButton
v-if="manufacturer"
@click="saveManufacturer"
>
Save manufacturer
</SwButton>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
<template>
<div :style="componentStyling">
<p>Auto-Resize: {{ isAutoResizing ? "On" : "Off" }}</p>
<SwNumberField :value="heightInput" @input-change="setHeightInput" />
<SwNumberField
:value="heightInput"
@input-change="setHeightInput"
/>

<br /><br />
<br><br>

<SwButton @click="changeHeight">
Set height of blue box to {{ heightInput }}
</SwButton>
<br />
<br>
<SwButton @click="changeHeightManually">
Set height of iFrame manually to {{ heightInput }}
</SwButton>

<br /><br />
<br><br>

<SwButton @click="startAutoResizing"> Start auto resizing </SwButton>
<SwButton @click="stopAutoResizing"> Stop auto resizing </SwButton>
<SwButton @click="startAutoResizing">
Start auto resizing
</SwButton>
<SwButton @click="stopAutoResizing">
Stop auto resizing
</SwButton>
</div>
</template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<SwCard title="CMS">
<p>
You can create your own custom CMS elements with the Meteor Admin SDK. You
can go to the <a href="#" @click="goToCmsModule">CMS module</a> and
can go to the <a
href="#"
@click="goToCmsModule"
>CMS module</a> and
replace an existing element with the dailymotion element.
</p>
</SwCard>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@
</p>

<div class="context-functionality-buttons">
<SwButton @click="getCurrentLanguage"> Get current language </SwButton>
<SwButton @click="getCurrentLanguage">
Get current language
</SwButton>
<SwButton @click="getCurrentEnvironment">
Get current environment
</SwButton>
<SwButton @click="getCurrentLocale"> Get current locale </SwButton>
<SwButton @click="getCurrentCurrency"> Get current currency </SwButton>
<SwButton @click="getCurrentLocale">
Get current locale
</SwButton>
<SwButton @click="getCurrentCurrency">
Get current currency
</SwButton>
<SwButton @click="getCurrentShopwareVersion">
Get current Shopware version
</SwButton>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
import { test, expect } from "../fixtures/AcceptanceTest";
import { getSDKiFrame, mockUpdateApi } from "../fixtures/Helper";
import { test, expect } from '../fixtures/AcceptanceTest';
import { getSDKiFrame, mockUpdateApi } from '../fixtures/Helper';

test.beforeEach(async ({ ShopAdmin, TestDataService, AdminProductDetail }) => {
await mockUpdateApi(ShopAdmin.page);

const product = await TestDataService.createBasicProduct();
ShopAdmin.goesTo(AdminProductDetail.url(product.id));

const mainHidden = await getSDKiFrame(ShopAdmin.page, "sw-main-hidden");
await expect(mainHidden.locator("body")).not.toBeEmpty();
const mainHidden = await getSDKiFrame(ShopAdmin.page, 'sw-main-hidden');
await expect(mainHidden.locator('body')).not.toBeEmpty();
});

test("@sdk: action button", async ({ ShopAdmin }) => {
await ShopAdmin.page.locator(".sw-app-actions").click();
test('@sdk: action button', async ({ ShopAdmin }) => {
await ShopAdmin.page.locator('.sw-app-actions').click();
await ShopAdmin.page
.locator(".sw-context-menu__content .sw-app-action-button", {
hasText: "Test action",
.locator('.sw-context-menu__content .sw-app-action-button', {
hasText: 'Test action',
})
.click();

await expect(
ShopAdmin.page.locator(".sw-alert__title", {
hasText: "Action button click",
ShopAdmin.page.locator('.sw-alert__title', {
hasText: 'Action button click',
}),
).toBeVisible();
await expect(
ShopAdmin.page.locator(".sw-alert__message", {
hasText: "The action button in the product detail page was clicked",
ShopAdmin.page.locator('.sw-alert__message', {
hasText: 'The action button in the product detail page was clicked',
}),
).toBeVisible();
});
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
import { test, expect } from "../fixtures/AcceptanceTest";
import { getSDKiFrame, mockUpdateApi } from "../fixtures/Helper";
import { test, expect } from '../fixtures/AcceptanceTest';
import { getSDKiFrame, mockUpdateApi } from '../fixtures/Helper';

test.beforeEach(async ({ ShopAdmin, TestDataService, AdminProductDetail }) => {
await mockUpdateApi(ShopAdmin.page);

const product = await TestDataService.createBasicProduct();
ShopAdmin.goesTo(AdminProductDetail.url(product.id));

const mainHidden = await getSDKiFrame(ShopAdmin.page, "sw-main-hidden");
await expect(mainHidden.locator("body")).not.toBeEmpty();
const mainHidden = await getSDKiFrame(ShopAdmin.page, 'sw-main-hidden');
await expect(mainHidden.locator('body')).not.toBeEmpty();
});

test("@sdk: add a component section", async ({ ShopAdmin }) => {
await ShopAdmin.page.getByRole("link", { name: "Specifications" }).click();
test('@sdk: add a component section', async ({ ShopAdmin }) => {
await ShopAdmin.page.getByRole('link', { name: 'Specifications' }).click();

await expect(
ShopAdmin.page.locator(".sw-card__title", { hasText: "Location tests" }),
ShopAdmin.page.locator('.sw-card__title', { hasText: 'Location tests' }),
).toBeVisible();
await expect(
ShopAdmin.page.locator(".sw-card__subtitle", {
hasText: "Testing if the location methods work correctly",
ShopAdmin.page.locator('.sw-card__subtitle', {
hasText: 'Testing if the location methods work correctly',
}),
).toBeVisible();

await getSDKiFrame(ShopAdmin.page, "location-index");
await getSDKiFrame(ShopAdmin.page, 'location-index');
});

test("@sdk: add a component section with tabs", async ({ ShopAdmin }) => {
await ShopAdmin.page.getByRole("link", { name: "Specifications" }).click();
test('@sdk: add a component section with tabs', async ({ ShopAdmin }) => {
await ShopAdmin.page.getByRole('link', { name: 'Specifications' }).click();

await expect(
ShopAdmin.page.locator(".sw-card__title", { hasText: "Card tabs tests" }),
ShopAdmin.page.locator('.sw-card__title', { hasText: 'Card tabs tests' }),
).toBeVisible();
await expect(
ShopAdmin.page.locator(".sw-card__subtitle", {
hasText: "Testing if the the card tabs work correctly",
ShopAdmin.page.locator('.sw-card__subtitle', {
hasText: 'Testing if the the card tabs work correctly',
}),
).toBeVisible();
await expect(
ShopAdmin.page.locator(".sw-tabs-item", { hasText: "Tab 1" }),
ShopAdmin.page.locator('.sw-tabs-item', { hasText: 'Tab 1' }),
).toBeVisible();

await getSDKiFrame(ShopAdmin.page, "card-tab-1");
await getSDKiFrame(ShopAdmin.page, 'card-tab-1');

await ShopAdmin.page.locator(".sw-tabs-item", { hasText: "Tab 2" }).click();
await ShopAdmin.page.locator('.sw-tabs-item', { hasText: 'Tab 2' }).click();

await getSDKiFrame(ShopAdmin.page, "card-tab-2");
await getSDKiFrame(ShopAdmin.page, 'card-tab-2');
});
Loading

0 comments on commit c2ddd3d

Please sign in to comment.