Skip to content

Commit 9a284ff

Browse files
authored
Release v1
1 parent ebda36b commit 9a284ff

File tree

9 files changed

+52
-15
lines changed

9 files changed

+52
-15
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.0.0] - 2022-12-17
10+
Initial release 🎉
11+

Observer/RegisterModuleForHyvaConfig.php

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php declare(strict_types=1);
22

3+
/**
4+
* @author Siteation (https://siteation.dev/)
5+
* @copyright Copyright 2022 Siteation (https://siteation.dev/)
6+
* @license MIT
7+
*/
8+
39
namespace Siteation\Share\Observer;
410

511
use Magento\Framework\Component\ComponentRegistrar;

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Siteation - Magento 2 Module Share
1+
# Siteation - Magento 2 module Share
22

33
[![Packagist Version](https://img.shields.io/packagist/v/siteation/magento2-module-share?style=for-the-badge)](https://packagist.org/packages/siteation/magento2-module-share)
44
![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
1313
Install the package via;
1414

1515
```bash
16-
composer require siteation/magento2-module-share
16+
composer require siteation/magento2-share
1717
bin/magento setup:upgrade
1818
```
1919

ViewModel/Share.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<?php declare(strict_types=1);
22

3+
/**
4+
* @author Siteation (https://siteation.dev/)
5+
* @copyright Copyright 2022 Siteation (https://siteation.dev/)
6+
* @license MIT
7+
*/
8+
39
namespace Siteation\Share\ViewModel;
410

5-
use Magento\Framework\View\Element\Block\ArgumentInterface;
611
use Hyva\Theme\ViewModel\StoreConfig;
12+
use Magento\Framework\View\Element\Block\ArgumentInterface;
713

814
class Share implements ArgumentInterface
915
{

composer.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "siteation/magento2-module-share",
3-
"version": "0.1.0",
2+
"name": "siteation/magento2-share",
3+
"version": "1.0.0",
44
"license": "MIT",
55
"type": "magento2-module",
66
"description": "Share products with ease",
@@ -20,13 +20,13 @@
2020
}
2121
],
2222
"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"
2527
},
2628
"autoload": {
27-
"files": [
28-
"registration.php"
29-
],
29+
"files": ["registration.php"],
3030
"psr-4": {
3131
"Siteation\\Share\\": ""
3232
}

etc/module.xml

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
<?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+
>
46
<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>
612
</module>
713
</config>

registration.php

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<?php declare(strict_types=1);
22

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+
311
use Magento\Framework\Component\ComponentRegistrar;
412

513
ComponentRegistrar::register(

view/frontend/layout/catalog_product_view.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?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+
>
46
<body>
57
<referenceContainer name="product.info.additional.actions">
68
<block name="product.info.share" template="Siteation_Share::product/view/share.phtml"/>

view/frontend/templates/product/view/share.phtml

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php declare(strict_types=1);
22

3+
/**
4+
* @author Siteation (https://siteation.dev/)
5+
* @copyright Copyright 2022 Siteation (https://siteation.dev/)
6+
* @license MIT
7+
*/
8+
39
use Hyva\Theme\Model\ViewModelRegistry;
410
use Hyva\Theme\ViewModel\CurrentProduct;
511
use Hyva\Theme\ViewModel\HeroiconsOutline;

0 commit comments

Comments
 (0)