Skip to content

Commit 317ba11

Browse files
author
GitHub Actions Bot
committed
chore: Build release
1 parent b1d5b0e commit 317ba11

13 files changed

Lines changed: 55 additions & 165 deletions

File tree

.github/workflows/store.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 42 deletions
This file was deleted.

.shopware-extension.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

CHANGELOG_en-GB.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 2.2.0
2+
- [Update composer.json](https://github.com/FriendsOfShopware/FroshPlatformAdminer/commit/b1d5b0e)
3+
- [feat: update adminer](https://github.com/FriendsOfShopware/FroshPlatformAdminer/commit/129023d)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"base": "/bundles/froshplatformadminer/administration/",
3+
"entryPoints": {
4+
"frosh-platform-adminer": {
5+
"css": [
6+
"/bundles/froshplatformadminer/administration/css/frosh-platform-adminer.css"
7+
],
8+
"dynamic": [],
9+
"js": [
10+
"/bundles/froshplatformadminer/administration/js/frosh-platform-adminer.js"
11+
],
12+
"legacy": false,
13+
"preload": []
14+
}
15+
},
16+
"legacy": false,
17+
"metadatas": {},
18+
"version": [
19+
"7.0.4",
20+
7,
21+
0,
22+
4
23+
],
24+
"viteServer": null
25+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"main.js": {
3+
"file": "js/frosh-platform-adminer.js",
4+
"name": "frosh-platform-adminer",
5+
"src": "main.js",
6+
"isEntry": true,
7+
"css": [
8+
"css/frosh-platform-adminer.css"
9+
]
10+
}
11+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
(()=>{var n=Shopware.Classes.ApiService,t=class extends n{constructor(e,i,m="frosh_adminer"){super(e,i,m)}loginToAdminer(){let e=`${this.getApiBasePath()}/login`;return this.httpClient.get(e,{headers:this.getBasicHeaders()}).then(i=>n.handleResponse(i))}},a=t;var{Application:o}=Shopware;o.addServiceProvider("AdminerService",r=>{let e=o.getContainer("init");return new a(e.httpClient,r.loginService)});Shopware.Service("privileges").addPrivilegeMappingEntry({category:"additional_permissions",parent:null,key:"system",roles:{frosh_adminer:{privileges:[],dependencies:[]}}});var s=`<sw-page class="adminer">
2+
<template #smart-bar-header>
3+
<h2>Adminer</h2>
4+
</template>
5+
6+
<template #content>
7+
<iframe v-if="apiAdminerUrl" :src="apiAdminerUrl" width="100%" height="99%" frameborder="0"></iframe>
8+
</template>
9+
10+
<template #smart-bar-actions>
11+
<sw-button variant="primary" v-if="apiAdminerUrl" @click="openNewTab">
12+
{{ $tc('frosh-adminer.openInNewTab') }}
13+
</sw-button>
14+
</template>
15+
</sw-page>
16+
`;var{Component:d}=Shopware;d.register("frosh-adminer-view",{template:s,inject:["AdminerService"],created(){this.createdComponent()},data(){return{apiAdminerUrl:!1}},methods:{createdComponent(){this.AdminerService.loginToAdminer().then(r=>{this.apiAdminerUrl=r.url})},openNewTab(){window.open(this.apiAdminerUrl)}}});var{Module:l}=Shopware;l.register("frosh-adminer",{type:"plugin",name:"frosh-adminer.title",description:"frosh-adminer.title",color:"#9AA8B5",icon:"regular-database",favicon:"icon-module-settings.png",routes:{list:{component:"frosh-adminer-view",path:"list",privilege:"system.frosh_adminer"}},settingsItem:[{group:"plugins",to:"frosh.adminer.list",icon:"regular-database",label:"frosh-adminer.title",privilege:"system.frosh_adminer"}],extensionEntryRoute:{extensionName:"FroshPlatformAdminer",route:"frosh.adminer.list"}});})();

src/Resources/store/de.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Resources/store/en.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Resources/store/icon.png

-9.91 KB
Binary file not shown.

0 commit comments

Comments
 (0)