Skip to content

Commit

Permalink
修改
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Dec 12, 2023
1 parent 4ec7cee commit 5d45ea5
Show file tree
Hide file tree
Showing 18 changed files with 2,288 additions and 2,048 deletions.
7 changes: 6 additions & 1 deletion extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use Flarum\Extend;

use Mattoid\MoneyHistory\Api\Controller\ListUserMoneyHistoryController;
use Mattoid\MoneyHistory\Event\MoneyAllHistoryEvent;
use Mattoid\MoneyHistory\Listeners\MoneyAllHistoryListeners;
use Mattoid\MoneyHistory\Listeners\MoneyHistoryListeners;
Expand All @@ -19,12 +20,16 @@
return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/less/forum.less'),
->css(__DIR__.'/less/forum.less')
->route('/u/{username}/money/history', 'mattoid-money-history.forum.nav'),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js')
->css(__DIR__.'/less/admin.less'),
new Extend\Locales(__DIR__.'/locale'),

(new Extend\Routes('api'))
->get('/users/{id}/money/history', 'money.history', ListUserMoneyHistoryController::class),

(new Extend\Event())
->listen(MoneyHistoryEvent::class, MoneyHistoryListeners::class)
->listen(MoneyAllHistoryEvent::class, MoneyAllHistoryListeners::class),
Expand Down
1 change: 0 additions & 1 deletion js/admin.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './src/common';
export * from './src/admin';
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.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

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

2 changes: 1 addition & 1 deletion js/dist/forum.js

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

Loading

0 comments on commit 5d45ea5

Please sign in to comment.