File tree 9 files changed +52
-15
lines changed
9 files changed +52
-15
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 1.0.0] - 2022-12-17
10
+ Initial release 🎉
11
+
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types=1 );
2
2
3
+ /**
4
+ * @author Siteation (https://siteation.dev/)
5
+ * @copyright Copyright 2022 Siteation (https://siteation.dev/)
6
+ * @license MIT
7
+ */
8
+
3
9
namespace Siteation \Share \Observer ;
4
10
5
11
use Magento \Framework \Component \ComponentRegistrar ;
Original file line number Diff line number Diff line change 1
- # Siteation - Magento 2 Module Share
1
+ # Siteation - Magento 2 module Share
2
2
3
3
[ ![ Packagist Version] ( https://img.shields.io/packagist/v/siteation/magento2-module-share?style=for-the-badge )] ( https://packagist.org/packages/siteation/magento2-module-share )
4
4
![ Supported Magento Versions] ( https://img.shields.io/badge/magento-%202.4-brightgreen.svg?logo=magento&longCache=true&style=for-the-badge )
@@ -13,7 +13,7 @@ using the Share API with an fallback to the Clipboard API for unsupported browse
13
13
Install the package via;
14
14
15
15
``` bash
16
- composer require siteation/magento2-module- share
16
+ composer require siteation/magento2-share
17
17
bin/magento setup:upgrade
18
18
```
19
19
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types=1 );
2
2
3
+ /**
4
+ * @author Siteation (https://siteation.dev/)
5
+ * @copyright Copyright 2022 Siteation (https://siteation.dev/)
6
+ * @license MIT
7
+ */
8
+
3
9
namespace Siteation \Share \ViewModel ;
4
10
5
- use Magento \Framework \View \Element \Block \ArgumentInterface ;
6
11
use Hyva \Theme \ViewModel \StoreConfig ;
12
+ use Magento \Framework \View \Element \Block \ArgumentInterface ;
7
13
8
14
class Share implements ArgumentInterface
9
15
{
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " siteation/magento2-module- share" ,
3
- "version" : " 0.1 .0" ,
2
+ "name" : " siteation/magento2-share" ,
3
+ "version" : " 1.0 .0" ,
4
4
"license" : " MIT" ,
5
5
"type" : " magento2-module" ,
6
6
"description" : " Share products with ease" ,
20
20
}
21
21
],
22
22
"require" : {
23
- "magento/framework" : " ^102.0|^103.0" ,
24
- "hyva-themes/magento2-theme-module" : " *"
23
+ "magento/framework" : " ^103.0" ,
24
+ "magento/module-backend" : " ^102.0" ,
25
+ "magento/module-store" : " ^101.1" ,
26
+ "hyva-themes/magento2-theme-module" : " ^1.1|^1.2"
25
27
},
26
28
"autoload" : {
27
- "files" : [
28
- " registration.php"
29
- ],
29
+ "files" : [" registration.php" ],
30
30
"psr-4" : {
31
31
"Siteation\\ Share\\ " : " "
32
32
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
- <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
2
+ <config
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd"
5
+ >
4
6
<module name =" Siteation_Share" >
5
- <sequence >Hyva_Theme</sequence >
7
+ <sequence >
8
+ <module name =" Magento_Store" />
9
+ <module name =" Magento_Backend" />
10
+ <module name =" Hyva_Theme" />
11
+ </sequence >
6
12
</module >
7
13
</config >
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types=1 );
2
2
3
+ /**
4
+ * Share module for Magento
5
+ *
6
+ * @author Siteation (https://siteation.dev/)
7
+ * @copyright Copyright 2022 Siteation (https://siteation.dev/)
8
+ * @license MIT
9
+ */
10
+
3
11
use Magento \Framework \Component \ComponentRegistrar ;
4
12
5
13
ComponentRegistrar::register (
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
- <page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
2
+ <page
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd"
5
+ >
4
6
<body >
5
7
<referenceContainer name =" product.info.additional.actions" >
6
8
<block name =" product.info.share" template =" Siteation_Share::product/view/share.phtml" />
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types=1 );
2
2
3
+ /**
4
+ * @author Siteation (https://siteation.dev/)
5
+ * @copyright Copyright 2022 Siteation (https://siteation.dev/)
6
+ * @license MIT
7
+ */
8
+
3
9
use Hyva \Theme \Model \ViewModelRegistry ;
4
10
use Hyva \Theme \ViewModel \CurrentProduct ;
5
11
use Hyva \Theme \ViewModel \HeroiconsOutline ;
You can’t perform that action at this time.
0 commit comments