Skip to content

Commit a8f84ce

Browse files
authored
Merge pull request #201 from Meraj-Webkul/v1.3.2
updated to v1.3.2
2 parents 1f1037b + f351c24 commit a8f84ce

File tree

8 files changed

+74
-18
lines changed

8 files changed

+74
-18
lines changed

CHANGELOG for v1.3.x.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# CHANGELOG for v1.3.0
1+
# CHANGELOG for v1.3.2
22

33
#### This changelog consists the bug & security fixes and new features being included in the releases listed below.
44

5-
## **v1.3.0(31th of March, 2021)** - *Release*
5+
## **v1.3.2(31th of March, 2021)** - *Release*
66

77
* [feature] functionality to edit home page layout from admin panel.
88

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
# CHANGELOG for v0.1.x
1+
# CHANGELOG for v1.3.2
22

33
#### This changelog consists the bug & security fixes and new features being included in the releases listed below.
44

5+
## **v1.3.2(20th of september, 2021)** - *Release*
6+
7+
- [compatible] Bagisto Version v1.3.2.
8+
9+
- [Bug] Dynamic Entries of firebase details.
10+
511
## **v0.1.5(17th of February, 2020)** - *Release*
612

713
- [Bug] Default shipping method and payment method is not selected during checkout.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ It packs with lots of demanding features that allows your business to scale in n
2727

2828
### 2. Requirements:
2929

30-
* **Bagisto**: v1.3.0.
30+
* **Bagisto**: v1.3.2.
3131

3232

3333
### 3. Installation:

publishable/pwa/firebase-messaging-sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-app.js');
22
importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-messaging.js');
33

4-
firebase.initializeApp({messagingSenderId: '1007045788486'});
4+
firebase.initializeApp({messagingSenderId: "{{core()->getConfigData('pwa.settings.push-notification.messaging-id')}}"});
55

66
const messaging = firebase.messaging();
77

publishable/pwa/service-worker.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,22 +193,22 @@ function formFilter(response) {
193193

194194
// Give the service worker access to Firebase Messaging.
195195
// Note that you can only use Firebase Messaging here, other Firebase libraries are not available in the service worker.
196-
importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-app.js');
197-
importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-messaging.js');
196+
importScripts('http://www.gstatic.com/firebasejs/4.8.1/firebase-app.js');
197+
importScripts('http://www.gstatic.com/firebasejs/4.8.1/firebase-messaging.js');
198198

199199
const firebaseConfig = {
200-
apiKey: "AIzaSyC-HKvgBpSVK27IZdxv5U7s-WDTzODswO8",
201-
authDomain: "laravel-pwa-5c45c.firebaseapp.com",
202-
databaseURL: "https://laravel-pwa-5c45c.firebaseio.com",
203-
projectId: "laravel-pwa-5c45c",
200+
apiKey: "{{core()->getConfigData('pwa.settings.push-notification.web-api-key')}}",
201+
authDomain: "{{core()->getConfigData('pwa.settings.push-notification.auth-domain')}}",
202+
databaseURL: "{{core()->getConfigData('pwa.settings.push-notification.database-url')}}",
203+
projectId: "{{core()->getConfigData('pwa.settings.push-notification.project-id')}}",
204204
storageBucket: "",
205-
messagingSenderId: "444825614301",
206-
appId: "1:444825614301:web:ee31ac20d8c7de3e"
205+
messagingSenderId: "{{core()->getConfigData('pwa.settings.push-notification.messaging-id')}}",
206+
appId: "{{core()->getConfigData('pwa.settings.push-notification.app-id')}}"
207207
};
208208

209209
// Initialize the Firebase app in the service worker by passing in themessagingSenderId.
210210
firebase.initializeApp({
211-
'messagingSenderId': '444825614301'
211+
'messagingSenderId': "{{core()->getConfigData('pwa.settings.push-notification.messaging-id')}}"
212212
});
213213

214214
// Retrieve an instance of Firebase Messaging so that it can handle background messages

src/Config/system.php

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,24 +149,62 @@
149149
'name' => 'topic',
150150
'title' => 'pwa::app.admin.system.topic',
151151
'type' => 'text',
152+
'validation' => 'required',
152153
'default' => 'bagisto',
153-
'validation' => 'alpha_num',
154+
'validation' => 'alpha_num|required',
154155
'channel_based' => true,
155156
'locale_based' => true
156157
], [
157158
'name' => 'messaging-id',
158159
'title' => 'pwa::app.admin.system.messagingId',
159160
'type' => 'text',
160-
'validation' => 'numeric',
161+
'validation' => 'required',
162+
'validation' => 'numeric|required',
161163
'channel_based' => true,
162164
'locale_based' => true
163165
], [
164166
'name' => 'api-key',
167+
'title' => 'pwa::app.admin.system.server-key',
168+
'type' => 'password',
169+
'validation' => 'required',
170+
'channel_based' => true,
171+
'locale_based' => false
172+
], [
173+
'name' => 'auth-domain',
174+
'title' => 'pwa::app.admin.system.auth-domain',
175+
'type' => 'text',
176+
'validation' => 'required',
177+
'channel_based' => true,
178+
'locale_based' => false
179+
], [
180+
'name' => 'database-url',
181+
'title' => 'pwa::app.admin.system.database-url',
182+
'type' => 'text',
183+
'validation' => 'required',
184+
'channel_based' => true,
185+
'locale_based' => false
186+
], [
187+
'name' => 'project-id',
188+
'title' => 'pwa::app.admin.system.project-id',
189+
'type' => 'password',
190+
'validation' => 'required',
191+
'channel_based' => true,
192+
'locale_based' => false
193+
], [
194+
'name' => 'app-id',
195+
'title' => 'pwa::app.admin.system.app-id',
196+
'type' => 'password',
197+
'validation' => 'required',
198+
'channel_based' => true,
199+
'locale_based' => false
200+
], [
201+
'name' => 'web-api-key',
165202
'title' => 'pwa::app.admin.system.api-key',
166203
'type' => 'password',
204+
'validation' => 'required',
167205
'channel_based' => true,
168206
'locale_based' => false
169-
]
207+
],
170208
]
171209
]
172210

src/DataGrids/PushNotificationDataGrid.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,23 @@ public function addColumns()
6767
public function prepareActions()
6868
{
6969
$this->addAction([
70+
'title' => trans('pwa::app.admin.datagrid.view'),
7071
'type' => 'View',
7172
'route' => 'pwa.pushnotification.edit',
7273
'icon' => 'icon pencil-lg-icon',
7374
'method' => 'GET'
7475
]);
7576

7677
$this->addAction([
78+
'title' => trans('pwa::app.admin.datagrid.delete'),
7779
'type' => 'Delete',
7880
'route' => 'pwa.pushnotification.delete',
7981
'icon' => 'icon trash-icon',
8082
'method' => 'GET'
8183
]);
8284

8385
$this->addAction([
86+
'title' => trans('pwa::app.admin.datagrid.send'),
8487
'type' => 'send',
8588
'route' => 'pwa.pushnotification.pushtofirebase',
8689
'icon' => 'icon bell-icon',

src/Resources/lang/en/app.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
'theme-color' => 'Theme Color',
1616
'add_in_pwa' => 'Add in PWA',
1717
'messagingId' => 'Messaging Id',
18-
'api-key' => 'Server API Key',
18+
'api-key' => 'API Key',
19+
'auth-domain' => 'AUTH DOMAIN',
20+
'database-url' => 'DATABASE URL',
21+
'project-id' => 'PROJECT ID',
22+
'app-id' => 'APP ID',
23+
'public-vapid-key' => 'PUBLIC VAPID Key',
24+
'server-key' => 'SERVER Key',
1925
'enable_slider' => 'Enable Slider',
2026
'background-color' => 'Background Color',
2127
'small' => 'App Icon (48x48)',
@@ -52,6 +58,9 @@
5258
'datagrid' => [
5359
'id' => 'ID',
5460
'title' => 'Title',
61+
'delete' => 'Delete',
62+
'view' => 'View',
63+
'send' => 'Send',
5564
'target-url' => 'Target URL',
5665
'description' => 'Description',
5766
]

0 commit comments

Comments
 (0)