-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4258204
Showing
17 changed files
with
5,107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
js/src export-ignore | ||
.git* export-ignore | ||
|
||
js/dist/*.js -diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
vendor | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 FriendsOfFlarum | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Open Collective by FriendsOfFlarum | ||
|
||
![License](https://img.shields.io/badge/license-MIT-blue.svg) [![Latest Stable Version](https://img.shields.io/packagist/v/fof/open-collective.svg)](https://packagist.org/packages/fof/open-collective) | ||
|
||
A [Flarum](http://flarum.org) extension. Open Collective integration for your Flarum forum. | ||
|
||
### Installation | ||
|
||
Use [Bazaar](https://discuss.flarum.org/d/5151-flagrow-bazaar-the-extension-marketplace) or install manually with composer: | ||
|
||
```sh | ||
composer require fof/open-collective | ||
``` | ||
|
||
#### Scheduler | ||
|
||
You'll need to set up a Cron job. | ||
|
||
``` | ||
* * * * * cd /path-to-your-project && php flarum schedule:run >> /dev/null 2>&1 | ||
``` | ||
|
||
### Updating | ||
|
||
```sh | ||
composer update fof/open-collective | ||
``` | ||
|
||
### Links | ||
|
||
- [Packagist](https://packagist.org/packages/fof/open-collective) | ||
- [GitHub](https://github.com/FriendsOfFlarum/open-collective) | ||
|
||
An extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "fof/open-collective", | ||
"description": "Open Collective integration for your Flarum forum", | ||
"keywords": [ | ||
"flarum" | ||
], | ||
"type": "flarum-extension", | ||
"license": "MIT", | ||
"require": { | ||
"flarum/core": "^0.1.0-beta.8", | ||
"fof/console": "^0.5.0", | ||
"euautomation/graphql-client": "^0.2.0" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "David Sevilla Martín", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"FoF\\OpenCollective\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"flarum-extension": { | ||
"title": "FoF Open Collective", | ||
"icon": { | ||
"image": "resources/oc.svg", | ||
"backgroundColor": "#e74c3c", | ||
"backgroundSize": "60%", | ||
"backgroundRepeat": "no-repeat", | ||
"backgroundPosition": "center" | ||
} | ||
}, | ||
"flagrow": { | ||
"discuss": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of fof/open-collective. | ||
* | ||
* Copyright (c) 2019 FriendsOfFlarum. | ||
* | ||
* For the full copyright and license information, please view the LICENSE.md | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace FoF\OpenCollective; | ||
|
||
use Flarum\Console\Event\Configuring; | ||
use Flarum\Extend; | ||
use Flarum\Foundation\Application; | ||
use FoF\Console\Extend\EnableConsole; | ||
use FoF\OpenCollective\Console\UpdateCommand; | ||
use Illuminate\Console\Scheduling\Schedule; | ||
use Illuminate\Events\Dispatcher; | ||
|
||
return [ | ||
(new Extend\Frontend('admin')) | ||
->js(__DIR__.'/js/dist/admin.js'), | ||
new Extend\Locales(__DIR__ . '/resources/locale'), | ||
new EnableConsole, | ||
|
||
new Extend\Compat(function (Application $app, Dispatcher $events) { | ||
$app->register(Provider\ConsoleProvider::class); | ||
|
||
$events->listen(Configuring::class, function (Configuring $event) { | ||
if ($event->app->bound(Schedule::class)) { | ||
$event->addCommand(UpdateCommand::class); | ||
} | ||
}); | ||
}) | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './src/admin'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.