Skip to content

Commit

Permalink
added Image Resize Feature for Icons, added Splash Screens for iOS, a…
Browse files Browse the repository at this point in the history
…dded Theme Color, added apple touch icon
  • Loading branch information
thampe committed Sep 5, 2020
1 parent c2fd247 commit 7590112
Show file tree
Hide file tree
Showing 26 changed files with 544 additions and 196 deletions.
4 changes: 0 additions & 4 deletions .env

This file was deleted.

12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
# Meanbee_WebAppManifest
# M2Boilerplate WebAppManifest

A Magento 2 extension that adds a [Web App Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) to the store.

## Installation

Install this extension via Composer:

composer require meanbee/magento2-webappmanifest
composer require m2boilerplate/module-web-app-manifest

## Usage

Configure the information displayed in the manifest and enable it in * Stores > Configuration > General > Web > Web App Manifest Settings *.

## Development

### Setting up a development environment

A Docker development environment is included with the project:

docker-compose run --rm cli magento-extension-installer Meanbee_WebAppManifest \
&& docker-compose up -d
17 changes: 10 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "meanbee/magento2-webappmanifest",
"name": "m2-boilerplate/module-web-app-manifest",
"description": "A Magento 2 extension that adds a Web App Manifest to the store.",
"type": "magento2-module",
"version": "1.1.0",
"license": [
"MIT"
],
"authors": [
{
"name": "Tomas Gerulaitis",
"email": "tomas.gerulaitis@meanbee.com"
},
{
"name": "Thomas Hampe",
"email": "github@hampe.co"
}
],
"repositories": {
Expand All @@ -19,17 +22,17 @@
}
},
"require": {
"magento/framework": "^101.0.0",
"magento/module-backend": "^100.1.2",
"magento/module-config": "^101.0.0",
"magento/module-store": "^100.1.3"
"magento/framework": ">=101.0.0",
"magento/module-backend": ">=100.1.2",
"magento/module-config": ">=101.0.0",
"magento/module-store": ">=100.1.3"
},
"autoload": {
"files": [
"src/registration.php"
],
"psr-4": {
"Meanbee\\WebAppManifest\\": "src/"
"M2Boilerplate\\WebAppManifest\\": "src/"
}
}
}
98 changes: 0 additions & 98 deletions docker-compose.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/Api/Data/ManifestInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Meanbee\WebAppManifest\Api\Data;
namespace M2Boilerplate\WebAppManifest\Api\Data;

interface ManifestInterface
{
Expand Down
18 changes: 18 additions & 0 deletions src/Block/Adminhtml/Cache/Additional.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace M2Boilerplate\WebAppManifest\Block\Adminhtml\Cache;

use Magento\Backend\Block\Cache\Additional as MagentoCacheAdditional;

class Additional extends MagentoCacheAdditional
{
/**
* Clean resized images url
*
* @return string
*/
public function getCleanResizedImagesUrl()
{
return $this->getUrl('m2bp/webAppManifest/cleanResizedImages');
}
}
Loading

0 comments on commit 7590112

Please sign in to comment.