Skip to content

Commit 39cc220

Browse files
committed
fix: Tweaks from testing
1 parent 9f27ab6 commit 39cc220

File tree

9 files changed

+26
-36
lines changed

9 files changed

+26
-36
lines changed

Block/Display.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,7 @@ public function getSecret(): ?string
8484
*/
8585
public function prepareConfig(): array
8686
{
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 = [];
9588
}
9689

9790
/**

etc/adminhtml/menu.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@
1717
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1818
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
1919
<menu>
20+
<!-- SOZO Core Module Menu Additions -->
21+
<!-- sortOrder 0605, F and E are letters 6 and 5 in the alphabet-->
2022
<add module="Sozo_Feedbucket"
2123
title="Feedbucket"
22-
id="Sozo_Feedbucket::config"
24+
translate="title"
25+
id="Sozo_Feedbucket::core_feedbucket"
2326
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"
2531
translate="title"
32+
id="Sozo_Feedbucket::core_feedbucket_config"
33+
resource="Sozo_Feedbucket::config"
2634
action="admin/system_config/edit/section/sozo_feedbucket"
27-
dependsOnModule="Sozo_Feedbucket"
28-
sortOrder="40"/>
35+
parent="Sozo_Feedbucket::core_feedbucket"
36+
sortOrder="10"/>
2937
</menu>
3038
</config>

etc/csp_whitelist.xml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,28 @@
2020
<policies>
2121
<policy id="script-src">
2222
<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>
2524
</values>
2625
</policy>
2726
<policy id="style-src">
2827
<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>
3129
</values>
3230
</policy>
33-
<policy id="font-src">
31+
<policy id="connect-src">
3432
<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>
3635
</values>
3736
</policy>
38-
<policy id="connect-src">
37+
<policy id="img-src">
3938
<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>
4340
</values>
4441
</policy>
45-
<policy id="img-src">
42+
<policy id="media-src">
4643
<values>
47-
<value id="sozo-feedbucket-gravatar" type="host">www.gravatar.com</value>
44+
<value id="sozo-feedbucket" type="host">blob:</value>
4845
</values>
4946
</policy>
5047
</policies>

view/adminhtml/layout/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<block class="Sozo\Feedbucket\Block\Backend"
2222
name="feedbucket_js"
2323
as="feedbucket_js"
24-
template="Sozo_Feedbucket::snap/widget.phtml"/>
24+
template="Sozo_Feedbucket::widget.phtml"/>
2525
</referenceContainer>
2626
</body>
2727
</page>

view/adminhtml/templates/snap/widget.phtml renamed to view/adminhtml/templates/widget.phtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
?>
2222
<!-- BEGIN FEEDBUCKET CODE {literal} -->
2323
<script>
24-
window.feedbucketConfig = {
25-
<?= $block->getJsConfig()?>
26-
}
24+
window.feedbucketConfig = <?= $block->getJsConfig()?>
2725
</script>
2826
<script type="text/javascript">
2927
(function(k) {

view/adminhtml/web/css/source/_module.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,4 @@
2727
float:left;
2828
padding-right: @indent__base;
2929
}
30-
strong {
31-
color: @feedbucket-primary;
32-
}
3330
}

view/adminhtml/web/css/source/module/variables/_variables.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1515
*/
1616

17-
@cw-primary: #ea7601;
18-
@feedbucket-primary: #4438ca;
17+
Binary file not shown.

view/frontend/templates/widget.phtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
?>
2222
<!-- BEGIN FEEDBUCKET CODE {literal} -->
2323
<script>
24-
window.feedbucketConfig = {
25-
<?= $block->getJsConfig()?>
26-
}
24+
window.feedbucketConfig = <?= $block->getJsConfig()?>
2725
</script>
2826
<script type="text/javascript">
2927
(function(k) {

0 commit comments

Comments
 (0)