Skip to content

Commit

Permalink
Release v1
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimLink authored Dec 17, 2022
1 parent ebda36b commit 9a284ff
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.0] - 2022-12-17
Initial release 🎉

6 changes: 6 additions & 0 deletions Observer/RegisterModuleForHyvaConfig.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php declare(strict_types=1);

/**
* @author Siteation (https://siteation.dev/)
* @copyright Copyright 2022 Siteation (https://siteation.dev/)
* @license MIT
*/

namespace Siteation\Share\Observer;

use Magento\Framework\Component\ComponentRegistrar;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Siteation - Magento 2 Module Share
# Siteation - Magento 2 module Share

[![Packagist Version](https://img.shields.io/packagist/v/siteation/magento2-module-share?style=for-the-badge)](https://packagist.org/packages/siteation/magento2-module-share)
![Supported Magento Versions](https://img.shields.io/badge/magento-%202.4-brightgreen.svg?logo=magento&longCache=true&style=for-the-badge)
Expand All @@ -13,7 +13,7 @@ using the Share API with an fallback to the Clipboard API for unsupported browse
Install the package via;

```bash
composer require siteation/magento2-module-share
composer require siteation/magento2-share
bin/magento setup:upgrade
```

Expand Down
8 changes: 7 additions & 1 deletion ViewModel/Share.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<?php declare(strict_types=1);

/**
* @author Siteation (https://siteation.dev/)
* @copyright Copyright 2022 Siteation (https://siteation.dev/)
* @license MIT
*/

namespace Siteation\Share\ViewModel;

use Magento\Framework\View\Element\Block\ArgumentInterface;
use Hyva\Theme\ViewModel\StoreConfig;
use Magento\Framework\View\Element\Block\ArgumentInterface;

class Share implements ArgumentInterface
{
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "siteation/magento2-module-share",
"version": "0.1.0",
"name": "siteation/magento2-share",
"version": "1.0.0",
"license": "MIT",
"type": "magento2-module",
"description": "Share products with ease",
Expand All @@ -20,13 +20,13 @@
}
],
"require": {
"magento/framework": "^102.0|^103.0",
"hyva-themes/magento2-theme-module": "*"
"magento/framework": "^103.0",
"magento/module-backend": "^102.0",
"magento/module-store": "^101.1",
"hyva-themes/magento2-theme-module": "^1.1|^1.2"
},
"autoload": {
"files": [
"registration.php"
],
"files": ["registration.php"],
"psr-4": {
"Siteation\\Share\\": ""
}
Expand Down
12 changes: 9 additions & 3 deletions etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"
>
<module name="Siteation_Share">
<sequence>Hyva_Theme</sequence>
<sequence>
<module name="Magento_Store"/>
<module name="Magento_Backend"/>
<module name="Hyva_Theme"/>
</sequence>
</module>
</config>
8 changes: 8 additions & 0 deletions registration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php declare(strict_types=1);

/**
* Share module for Magento
*
* @author Siteation (https://siteation.dev/)
* @copyright Copyright 2022 Siteation (https://siteation.dev/)
* @license MIT
*/

use Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register(
Expand Down
6 changes: 4 additions & 2 deletions view/frontend/layout/catalog_product_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<page
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"
>
<body>
<referenceContainer name="product.info.additional.actions">
<block name="product.info.share" template="Siteation_Share::product/view/share.phtml"/>
Expand Down
6 changes: 6 additions & 0 deletions view/frontend/templates/product/view/share.phtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php declare(strict_types=1);

/**
* @author Siteation (https://siteation.dev/)
* @copyright Copyright 2022 Siteation (https://siteation.dev/)
* @license MIT
*/

use Hyva\Theme\Model\ViewModelRegistry;
use Hyva\Theme\ViewModel\CurrentProduct;
use Hyva\Theme\ViewModel\HeroiconsOutline;
Expand Down

0 comments on commit 9a284ff

Please sign in to comment.