-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.- incluimos contenido externo con un CDN usando : paths 2.- creamos nuestro archivo de piliticas de privacidad que permita hacer solicitudes HTTP a CDNS externos csp_whitelist.xml 3.- creamos nuevo phtml que implementará VUE 4.- creamos nuestro layout para el phtml cms_index_index.xml Mas información de políticas de contenido seguro : https://developer.adobe.com/commerce/php/development/security/content-security-policies/
- Loading branch information
1 parent
f0940f6
commit 7a8e84c
Showing
5 changed files
with
12,049 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
code/JavaScriptDev/JsFun/view/frontend/layout/cms_index_index.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0"?> | ||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | ||
<body> | ||
<referenceContainer name="content"> | ||
<block name="vue.test" template="JavaScriptDev_JsFun::vue-test.phtml"></block> | ||
</referenceContainer> | ||
</body> | ||
</page> |
10 changes: 10 additions & 0 deletions
10
code/JavaScriptDev/JsFun/view/frontend/layout/csp_whitelist.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd"> | ||
<policies> | ||
<policy id="script-src"> | ||
<values> | ||
<value id="jsdelivr" type="host">https://cdn.jsdelivr.net</value> | ||
</values> | ||
</policy> | ||
</policies> | ||
</csp_whitelist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
code/JavaScriptDev/JsFun/view/frontend/templates/vue-test.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div id="vue-test"> | ||
<h1>{{ message }}</h1> | ||
</div> | ||
<script> | ||
require(['vue'],function(Vue){ | ||
'use strict' | ||
new Vue({ | ||
el:'#vue-test', | ||
data:{ | ||
message : 'This is test LuisPC ' | ||
} | ||
}) | ||
}) | ||
</script> |
Oops, something went wrong.