This repository was archived by the owner on Jun 4, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +118
-0
lines changed Expand file tree Collapse file tree 10 files changed +118
-0
lines changed Original file line number Diff line number Diff line change
1
+ .vscode
2
+ .DS_Store
3
+ node_modules
4
+ vendor
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
9
+ <head >
10
+ </head >
11
+ <body >
12
+ </body >
13
+ </page >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
9
+ <head >
10
+ </head >
11
+ </page >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+ /**
8
+ * Try not to put things in this file.
9
+ */
10
+
11
+ // @codingStandardsIgnoreFile
12
+ /** @var $block Magento\Pwa\Block\Bundle */
13
+ ?>
14
+ <!doctype html>
15
+ <html>
16
+ <head>
17
+ <?= /* @escapeNotVerified */ $ headContent ?>
18
+ <?= /* @escapeNotVerified */ $ headAdditional ?>
19
+ </head>
20
+ <body>
21
+ <div id="root"></div>
22
+ <script src="/client.js"></script>
23
+ </body>
24
+ </html>
Original file line number Diff line number Diff line change 1
1
# pwa-base-theme
2
+
2
3
Required base theme for Magento PWA Studio.
4
+
5
+ ⚠️ ** This theme contains no UI or presentational code.** Its role is to
6
+ configure the Magento 2 layout system to render the Application Shell for a PWA,
7
+ and to serve as a common base theme for Magento PWAs that helps Magento to
8
+ identify PWA-enabled themes.
9
+
10
+ ## Usage
11
+
12
+ Add this repository to the ` repositories ` section of ` composer.json ` , and then
13
+ declare theme inheritance as usual.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " magento/pwa-base-theme" ,
3
+ "description" : " Required base theme for Magento PWAs" ,
4
+ "require" : {
5
+ "php" : " ~5.5.0|~5.6.0|~7.0.0" ,
6
+ "magento/framework" : " 100.0.*"
7
+ },
8
+ "type" : " magento2-theme" ,
9
+ "version" : " 100.0.1" ,
10
+ "license" : [
11
+ " OSL-3.0" ,
12
+ " AFL-3.0"
13
+ ],
14
+ "autoload" : {
15
+ "files" : [
16
+ " registration.php"
17
+ ]
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+
2
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
3
+ <!--
4
+ /**
5
+ * Copyright © Magento, Inc. All rights reserved.
6
+ * See COPYING.txt for license details.
7
+ */
8
+ -->
9
+ <view xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Config/etc/view.xsd" >
10
+ </view >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+ use \Magento \Framework \Component \ComponentRegistrar ;
8
+
9
+ ComponentRegistrar::register (
10
+ ComponentRegistrar::THEME ,
11
+ 'frontend/Magento/pwa_base ' ,
12
+ __DIR__
13
+ );
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <theme xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Config/etc/theme.xsd" >
9
+ <title >Magento PWA Base</title >
10
+ <media >
11
+ <preview_image >media/preview.jpg</preview_image >
12
+ </media >
13
+ </theme >
You can’t perform that action at this time.
0 commit comments