Skip to content

Commit

Permalink
chore: Build release
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Dec 23, 2023
1 parent 6f05405 commit 5237f46
Show file tree
Hide file tree
Showing 16 changed files with 58 additions and 150 deletions.
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/pack-plugin.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

77 changes: 0 additions & 77 deletions .shopware-extension.yml

This file was deleted.

Empty file modified src/Resources/config/plugin.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
(()=>{var a=Shopware.Classes.ApiService,{Application:o}=Shopware,n=class extends a{constructor(t,s,i="bunnycdn-api-test"){super(t,s,i)}check(t){let s=this.getBasicHeaders({});return this.httpClient.post(`_action/${this.getApiBasePath()}/check`,t,{headers:s}).then(i=>a.handleResponse(i))}};o.addServiceProvider("bunnycdnApiTest",e=>{let t=o.getContainer("init");return new n(t.httpClient,e.loginService)});var c=`<div>
<sw-button-process
:isLoading="isLoading"
:processSuccess="isSaveSuccessful"
@process-finish="saveFinish"
@click="check"
>{{ btnLabel }}</sw-button-process>
</div>
`;var{Component:d,Mixin:u}=Shopware;d.register("bunnycdn-api-test-button",{template:c,props:["btnLabel"],inject:["bunnycdnApiTest"],mixins:[u.getByName("notification")],data(){return{isLoading:!1,isSaveSuccessful:!1}},computed:{pluginConfigData(){let e=this.$parent;for(let t=0;t<20;t++){if(e.actualConfigData)return e.actualConfigData.null;e=e.$parent}throw"Can not get pluginConfigData"}},methods:{saveFinish(){this.isSaveSuccessful=!1},check(){this.isLoading=!0,this.bunnycdnApiTest.check(this.pluginConfigData).then(e=>{e.success?(this.isSaveSuccessful=!0,this.createNotificationSuccess({title:this.$tc("bunnycdn-api-test-button.title"),message:this.$tc("bunnycdn-api-test-button.success")})):this.createNotificationError({title:this.$tc("bunnycdn-api-test-button.title"),message:this.$tc("bunnycdn-api-test-button.error")}),setTimeout(()=>{this.isLoading=!1},2500)})}}});var{Component:p,Mixin:w}=Shopware;p.register("bunnycdn-config-restriction",{template:" ",created(){this.checkAndHideSetting()},updated(){this.checkAndHideSetting()},methods:{checkAndHideSetting(){let e=document.querySelectorAll('input[name^="FroshPlatformBunnycdnMediaStorage.config"],.sw-plugin-config__save-action');this.pluginConfigData().currentSalesChannelId?e.forEach(t=>{t.setAttribute("disabled","disabled")}):e.forEach(t=>{t.removeAttribute("disabled")})},pluginConfigData(){let e=this.$parent;for(let t=0;t<20;t++){if(e.actualConfigData)return e;e=e.$parent}throw"Can not get pluginConfigData"}}});var l=`<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_alert %}
<div
class="sw-alert"
:class="alertClasses"
role="alert"
>
<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_alert_inner %}
<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_alert_icon %}
<slot name="customIcon">
<sw-icon
v-if="showIcon"
size="20px"
class="sw-alert__icon"
:name="alertIcon"
decorative
/>
</slot>
{% endblock %}
<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_alert_body %}
<div
class="sw-alert__body"
:class="alertBodyClasses"
>
<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_alert_title %}
<div
v-if="title"
class="sw-alert__title"
>
{{ title }}
</div>
{% endblock %}
<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_alert_message %}
<div class="sw-alert__message">
{{ message }}
</div>
{% endblock %}
</div>
{% endblock %}
{% endblock %}
</div>
{% endblock %}
`;var{Component:g}=Shopware;g.extend("bunnycdn-alert","sw-alert",{template:l,props:{message:{type:String,required:!1,default:""}}});})();
9 changes: 0 additions & 9 deletions src/Resources/store/de.md

This file was deleted.

1 change: 0 additions & 1 deletion src/Resources/store/de_manual.md

This file was deleted.

9 changes: 0 additions & 9 deletions src/Resources/store/en.md

This file was deleted.

1 change: 0 additions & 1 deletion src/Resources/store/en_manual.md

This file was deleted.

Binary file removed src/Resources/store/icon.png
Binary file not shown.
Binary file removed src/Resources/store/images/0.png
Binary file not shown.
Binary file removed src/Resources/store/images/1.png
Binary file not shown.
Binary file removed src/Resources/store/images/2.jpg
Binary file not shown.
Binary file removed src/Resources/store/images/3.jpg
Binary file not shown.

0 comments on commit 5237f46

Please sign in to comment.