Skip to content

Commit

Permalink
Cleanup composer, readme and removed unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeSverre committed Oct 28, 2019
1 parent 487ac69 commit 5218374
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 94 deletions.
23 changes: 11 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "guilty/craft-imageshop-field",
"name": "guilty/imageshop-field",
"description": "Integrates the Imageshop file picker into Craft CMS",
"version": "1.0.0",
"type": "craft-plugin",
"keywords": [
"hubspot",
"ecommerce",
"bridge",
"imageshop",
"bildebank",
"images",
"craftcms"
],
"license": "MIT",
Expand All @@ -18,23 +18,22 @@
],
"support": {
"email": "[email protected]",
"issues": "https://github.com/guilty-as/craft-imageshop-field/issues?state=open",
"source": "https://github.com/guilty-as/craft-imageshop-field",
"docs": "https://github.com/guilty-as/craft-imageshop-field/blob/master/README.md"
"issues": "https://github.com/guilty-as/imageshop-field/issues?state=open",
"source": "https://github.com/guilty-as/imageshop-field",
"docs": "https://github.com/guilty-as/imageshop-field/blob/master/README.md"
},
"require": {
"craftcms/cms": "^3.1.0",
"ryanwinchester/hubspot-php": "~1.0"
"craftcms/cms": "^3.1.0"
},
"autoload": {
"psr-4": {
"Guilty\\Imageshop \\": "src/"
"Guilty\\Imageshop\\": "src/"
}
},
"extra": {
"handle": "craft-imageshop-field",
"handle": "imageshop-field",
"name": "Imageshop",
"class": "Guilty\\Imageshop\\Plugin",
"documentationUrl": "https://github.com/guilty-as/craft-imageshop-field/blob/master/README.md"
"documentationUrl": "https://github.com/guilty-as/imageshop-field/blob/master/README.md"
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ cd /path/to/project
2. Then tell Composer to load the plugin:

```
composer require guilty/craft-imageshop-field
composer require guilty/imageshop-field
```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for 'Imageshop'.

OR do it via the command line

```
php craft install/plugin craft-imageshop-field
php craft install/plugin imageshop-field
```

Expand Down
16 changes: 0 additions & 16 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

class Plugin extends BasePlugin
{
public $hasCpSettings = true;


public function init()
{
parent::init();
Expand All @@ -25,17 +22,4 @@ function (RegisterComponentTypesEvent $event) {
$event->types[] = ImageShopField::class;
});
}

protected function createSettingsModel()
{
return new Settings();
}


protected function settingsHtml()
{
return \Craft::$app->getView()->renderTemplate('craft-imageshop-field/settings', [
'settings' => $this->getSettings(),
]);
}
}
3 changes: 0 additions & 3 deletions src/fields/ImageshopSelection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@


use craft\base\Serializable;
use Google\Cloud\Spanner\V1\PartialResultSet;
use Imgix\UrlHelper;
use yii\base\BaseObject;
use yii\helpers\FileHelper;

class ImageshopSelection extends BaseObject implements Serializable
{
Expand Down
20 changes: 19 additions & 1 deletion src/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 0 additions & 46 deletions src/models/Settings.php

This file was deleted.

14 changes: 0 additions & 14 deletions src/templates/settings.twig

This file was deleted.

0 comments on commit 5218374

Please sign in to comment.