Skip to content

Commit

Permalink
chore!: remove compat config
Browse files Browse the repository at this point in the history
  • Loading branch information
cyl3x committed Feb 14, 2025
1 parent 29f930b commit af42a1c
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import './swag-paypal-onboarding-button.scss';
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: [
'acl',
'SwagPayPalSettingsService',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const { string, object } = Shopware.Utils;
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: ['acl'],

emits: ['update:value'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import './swag-paypal-method-domain-association.scss';
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

props: {
paymentMethod: {
type: Object as PropType<TEntity<'payment_method'>>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import './swag-paypal-method-merchant-information.scss';
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

emits: ['save'],

computed: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import './swag-paypal-payment-method.scss';
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: [
'acl',
'repositoryFactory',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const { Criteria } = Shopware.Data;
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: [
'repositoryFactory',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ export default Shopware.Component.wrapComponentConfig({
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
IconsPaypalMulticolor,
},

compatConfig: Shopware.compatConfig,
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import template from './swag-paypal-settings-locale-select.html.twig';
import './swag-paypal-settings-locale-select.scss';
import { LOCALES, type LOCALE } from '../../../../constant/swag-paypal-settings.constant';
import { LOCALES, type LOCALE } from 'SwagPayPal/constant/swag-paypal-settings.constant';

type LocaleOption = {
value: string | null;
Expand All @@ -11,8 +11,6 @@ type LocaleOption = {
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

props: {
value: {
type: String as PropType<LOCALE>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ type SalesChannel = {
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: [
'acl',
'repositoryFactory',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const STATUS_WEBHOOK_VALID = 'valid';
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: [
'acl',
'SwagPayPalWebhookService',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import template from './swag-paypal-settings.html.twig';
export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: [
'acl',
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import template from './swag-paypal-settings-advanced.html.twig';
import './swag-paypal-settings-advanced.scss';
import { COUNTRY_OVERRIDES } from '../../../../constant/swag-paypal-settings.constant';
import { COUNTRY_OVERRIDES } from 'SwagPayPal/constant/swag-paypal-settings.constant';

export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

computed: {
settingsStore() {
return Shopware.Store.get('swagPayPalSettings');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import type * as PayPal from 'SwagPayPal/types';
import template from './swag-paypal-settings-general.html.twig';
import './swag-paypal-settings-general.scss';
import { INTENTS, LANDING_PAGES } from '../../../../constant/swag-paypal-settings.constant';
import { INTENTS, LANDING_PAGES } from 'SwagPayPal/constant/swag-paypal-settings.constant';

const { Criteria } = Shopware.Data;

export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: [
'acl',
'repositoryFactory',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import template from './swag-paypal-settings-storefront.html.twig';
import { BUTTON_COLORS, BUTTON_SHAPES } from '../../../../constant/swag-paypal-settings.constant';
import { BUTTON_COLORS, BUTTON_SHAPES } from 'SwagPayPal/constant/swag-paypal-settings.constant';

export default Shopware.Component.wrapComponentConfig({
template,

compatConfig: Shopware.compatConfig,

inject: [
'systemConfigApiService',
],
Expand Down

0 comments on commit af42a1c

Please sign in to comment.