File tree Expand file tree Collapse file tree 9 files changed +26
-36
lines changed Expand file tree Collapse file tree 9 files changed +26
-36
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,7 @@ public function getSecret(): ?string
84
84
*/
85
85
public function prepareConfig (): array
86
86
{
87
- $ config = [
88
- 'custom ' => [
89
- 'capturedBy ' => 'Magento 2 Feedbucket Module: ' . $ this ->configProvider ->getExtensionVersion (),
90
- 'magentoDeployMode ' => $ this ->state ->getMode ()
91
- ]
92
- ];
93
-
94
- return $ this ->jsConfig = $ config ;
87
+ return $ this ->jsConfig = [];
95
88
}
96
89
97
90
/**
Original file line number Diff line number Diff line change 17
17
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
18
18
xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Backend:etc/menu.xsd" >
19
19
<menu >
20
+ <!-- SOZO Core Module Menu Additions -->
21
+ <!-- sortOrder 0605, F and E are letters 6 and 5 in the alphabet-->
20
22
<add module =" Sozo_Feedbucket"
21
23
title =" Feedbucket"
22
- id =" Sozo_Feedbucket::config"
24
+ translate =" title"
25
+ id =" Sozo_Feedbucket::core_feedbucket"
23
26
resource =" Sozo_Feedbucket::config"
24
- parent =" Magento_Backend::system_other_settings"
27
+ parent =" Sozo_Core::sozo_menu"
28
+ sortOrder =" 0605" />
29
+ <add module =" Sozo_Feedbucket"
30
+ title =" Configuration"
25
31
translate =" title"
32
+ id =" Sozo_Feedbucket::core_feedbucket_config"
33
+ resource =" Sozo_Feedbucket::config"
26
34
action =" admin/system_config/edit/section/sozo_feedbucket"
27
- dependsOnModule =" Sozo_Feedbucket"
28
- sortOrder =" 40 " />
35
+ parent =" Sozo_Feedbucket::core_feedbucket "
36
+ sortOrder =" 10 " />
29
37
</menu >
30
38
</config >
Original file line number Diff line number Diff line change 20
20
<policies >
21
21
<policy id =" script-src" >
22
22
<values >
23
- <value id =" sozo-feedbucket-widget" type =" host" >widget.usersnap.com</value >
24
- <value id =" sozo-feedbucket-resources" type =" host" >resources.usersnap.com</value >
23
+ <value id =" sozo-feedbucket-widget" type =" host" >cdn.feedbucket.app</value >
25
24
</values >
26
25
</policy >
27
26
<policy id =" style-src" >
28
27
<values >
29
- <!-- GoogleFonts-->
30
- <value id =" sozo-feedbucket-googlefonts" type =" host" >https://fonts.googleapis.com</value >
28
+ <value id =" sozo-feedbucket" type =" host" >https://cdn.feedbucket.app</value >
31
29
</values >
32
30
</policy >
33
- <policy id =" font -src" >
31
+ <policy id =" connect -src" >
34
32
<values >
35
- <value id =" cw-usersnao-googlefonts" type =" host" >https://fonts.gstatic.com</value >
33
+ <value id =" sozo-feedbucket-dashboard" type =" host" >dashboard.feedbucket.app</value >
34
+ <value id =" sozo-feedbucket-cdn" type =" host" >cdn.feedbucket.app</value >
36
35
</values >
37
36
</policy >
38
- <policy id =" connect -src" >
37
+ <policy id =" img -src" >
39
38
<values >
40
- <value id =" sozo-feedbucket-widget" type =" host" >widget.usersnap.com</value >
41
-
42
- <value id =" sozo-feedbucket-aws" type =" host" >*.amazonaws.com</value >
39
+ <value id =" sozo-feedbucket" type =" host" >https://dashboard.feedbucket.app</value >
43
40
</values >
44
41
</policy >
45
- <policy id =" img -src" >
42
+ <policy id =" media -src" >
46
43
<values >
47
- <value id =" sozo-feedbucket-gravatar " type =" host" >www.gravatar.com </value >
44
+ <value id =" sozo-feedbucket" type =" host" >blob: </value >
48
45
</values >
49
46
</policy >
50
47
</policies >
Original file line number Diff line number Diff line change 21
21
<block class =" Sozo\Feedbucket\Block\Backend"
22
22
name =" feedbucket_js"
23
23
as =" feedbucket_js"
24
- template =" Sozo_Feedbucket::snap/ widget.phtml" />
24
+ template =" Sozo_Feedbucket::widget.phtml" />
25
25
</referenceContainer >
26
26
</body >
27
27
</page >
Original file line number Diff line number Diff line change 21
21
?>
22
22
<!-- BEGIN FEEDBUCKET CODE {literal} -->
23
23
<script>
24
- window.feedbucketConfig = {
25
- <?= $ block ->getJsConfig ()?>
26
- }
24
+ window.feedbucketConfig = <?= $ block ->getJsConfig ()?>
27
25
</script>
28
26
<script type="text/javascript">
29
27
(function(k) {
Original file line number Diff line number Diff line change 27
27
float :left ;
28
28
padding-right : @indent__base ;
29
29
}
30
- strong {
31
- color : @feedbucket-primary ;
32
- }
33
30
}
Original file line number Diff line number Diff line change 14
14
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
15
*/
16
16
17
- @cw-primary : #ea7601 ;
18
- @feedbucket-primary : #4438ca ;
17
+
Original file line number Diff line number Diff line change 21
21
?>
22
22
<!-- BEGIN FEEDBUCKET CODE {literal} -->
23
23
<script>
24
- window.feedbucketConfig = {
25
- <?= $ block ->getJsConfig ()?>
26
- }
24
+ window.feedbucketConfig = <?= $ block ->getJsConfig ()?>
27
25
</script>
28
26
<script type="text/javascript">
29
27
(function(k) {
You can’t perform that action at this time.
0 commit comments