Skip to content

Commit

Permalink
Added compatibility for beta 15
Browse files Browse the repository at this point in the history
  • Loading branch information
therealsujitk committed Jan 19, 2021
1 parent 8c7fc2d commit 6283d63
Show file tree
Hide file tree
Showing 17 changed files with 241 additions and 265 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A [Flarum](http://flarum.org) extension that integrates your forum with GIF sear

### Installation

Use [Bazaar](https://discuss.flarum.org/d/5151-flagrow-bazaar-the-extension-marketplace) or install manually with composer:
Install with composer:

```sh
composer require therealsujitk/flarum-ext-gifs
Expand All @@ -35,5 +35,4 @@ composer update therealsujitk/flarum-ext-gifs

- [Packagist](https://packagist.org/packages/therealsujitk/flarum-ext-gifs)
- [Discussion Page](https://discuss.flarum.org/d/23101)
- [Github](https://therealsuji.tk/extensions/flarum-ext-gifs)
- [Donate on PayPal](https://therealsuji.tk/donate)
- [Github](https://github.com/therealsujitk/flarum-ext-gifs)
21 changes: 13 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@
"name": "therealsujitk/flarum-ext-gifs",
"description": "Integrate your forum with GIF search engines.",
"keywords": [
"flarum"
"flarum",
"gif",
"giphy"
],
"type": "flarum-extension",
"license": "MIT",
"support": {
"issues": "https://github.com/therealsujitk/flarum-ext-gifs/issues",
"source": "https://github.com/therealsujitk/flarum-ext-gifs",
"forum": "https://discuss.flarum.org/d/23101"
},
"homepage": "https://therealsuji.tk",
"require": {
"flarum/core": "^0.1.0-beta.8"
"flarum/core": "^0.1.0-beta.15"
},
"authors": [
{
"name": "Sujit Kumar",
"role": "Developer",
"email": "[email protected]"
"email": "[email protected]"
}
],
"autoload": {
Expand All @@ -24,16 +32,13 @@
"extra": {
"flarum-extension": {
"title": "GIFs",
"category": "discussion",
"icon": {
"image": "icon.svg",
"backgroundColor": "#ff9c59",
"backgroundSize": "cover",
"backgroundPosition": "center"
}
},
"flagrow": {
"discuss": "https://discuss.flarum.org/d/23101"
}
}
}

}
20 changes: 10 additions & 10 deletions extend.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

/*
* This file is part of therealsujitk/flarum-ext-show-password.
* This file is part of therealsujitk/flarum-ext-gifs.
*
* Copyright (c) 2020 Sujit Kumar.
* Copyright (c) 2021 Sujit Kumar.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
Expand All @@ -16,12 +16,12 @@
use Illuminate\Contracts\Events\Dispatcher;

return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js'),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
new Extend\Locales(__DIR__ . '/resources/locale'),
function (Dispatcher $dispatcher) {
$dispatcher->listen(Serializing::class, Listeners\SaveSettings::class);
},
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js'),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
new Extend\Locales(__DIR__ . '/resources/locale'),
function (Dispatcher $dispatcher) {
$dispatcher->listen(Serializing::class, Listeners\SaveSettings::class);
},
];
11 changes: 10 additions & 1 deletion js/admin.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
export * from './src/admin';
import app from 'flarum/app';

app.initializers.add('therealsujitk-gifs', (app) => {
app.extensionData.for('therealsujitk-gifs')
.registerSetting({
setting: 'therealsujitk-gifs.giphy_api_key',
type: 'text',
label: app.translator.trans('therealsujitk.admin.gifs.giphyAPIkey')
})
});
2 changes: 1 addition & 1 deletion js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6283d63

Please sign in to comment.