Skip to content

Commit

Permalink
Merge pull request #3 from branchzero/master
Browse files Browse the repository at this point in the history
Support Flarum Beta 0.1.0-beta.8
  • Loading branch information
jjandxa authored Jan 22, 2019
2 parents ad80679 + 2bbdff5 commit 0ee6436
Show file tree
Hide file tree
Showing 18 changed files with 4,917 additions and 236 deletions.
17 changes: 0 additions & 17 deletions bootstrap.php

This file was deleted.

8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{
"name": "jjandxa/flarum-ext-chinese-search",
"description": "chinese search",
"version": "0.0.7",
"version": "0.0.8",
"type": "flarum-extension",
"license": "Apache License 2.0",
"authors": [
{
"name": "jjandxa",
"email": "[email protected]"
},
{
"name": "branchzero",
"email": "[email protected]"
}
],
"minimum-stability": "beta",
"require": {
"flarum/core": "^0.1.0-beta.7",
"flarum/core": "^0.1.0-beta.8",
"hightman/xunsearch": "*@beta"
},
"autoload": {
Expand Down
17 changes: 17 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Plugin\XunSearch;

use Flarum\Extend;
use Illuminate\Contracts\Events\Dispatcher;
use Plugin\XunSearch\Controller\XunSearchController;

return [
(new Extend\Frontend('forum'))
->js(__DIR__ . '/js/dist/forum.js'),
(new Extend\Routes('api'))
->get('/xun/discussions', 'xun.discussions.index', XunSearchController::class),
function (Dispatcher $events) {
$events->subscribe(XunSearchDispatcher::class);
}
];
2 changes: 2 additions & 0 deletions js/dist/forum.js

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

1 change: 1 addition & 0 deletions js/dist/forum.js.map

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

10 changes: 10 additions & 0 deletions js/forum.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

export * from './src/forum';
9 changes: 0 additions & 9 deletions js/forum/Gulpfile.js

This file was deleted.

61 changes: 0 additions & 61 deletions js/forum/dist/extension.js

This file was deleted.

7 changes: 0 additions & 7 deletions js/forum/package.json

This file was deleted.

Loading

0 comments on commit 0ee6436

Please sign in to comment.