This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
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
1 parent
45b65af
commit 02b45bf
Showing
44 changed files
with
5,102 additions
and
5,268 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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
js/*/node_modules | ||
js/node_modules | ||
vendor/ | ||
composer.lock | ||
package-lock.json |
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
This file was deleted.
Oops, something went wrong.
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
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,38 @@ | ||
<?php | ||
|
||
namespace Flagrow\Fonts; | ||
|
||
use Flagrow\Fonts\Api\Controllers; | ||
use Flagrow\Fonts\Content\FontsStylesheet; | ||
use Flarum\Extend; | ||
use Illuminate\Contracts\Events\Dispatcher; | ||
use s9e\TextFormatter\Configurator; | ||
|
||
return [ | ||
(new Extend\Frontend('admin')) | ||
->js(__DIR__ . '/js/dist/admin.js') | ||
->css(__DIR__ . '/resources/less/admin.less'), | ||
(new Extend\Frontend('forum')) | ||
->js(__DIR__ . '/js/dist/forum.js') | ||
->css(__DIR__ . '/resources/less/forum.less') | ||
->content(FontsStylesheet::class), | ||
new Extend\Locales(__DIR__ . '/resources/locale'), | ||
(new Extend\Routes('api')) | ||
->get( | ||
'/flagrow/fonts', | ||
'flagrow.fonts.index', | ||
Controllers\ListFontController::class | ||
) | ||
->patch( | ||
'/flagrow/fonts/{family}', | ||
'flagrow.fonts.toggle', | ||
Controllers\ToggleFontController::class | ||
), | ||
(new Extend\Formatter()) | ||
->configure(function (Configurator $configurator) { | ||
$configurator->BBCodes->addFromRepository('FONT'); | ||
}), | ||
function (Dispatcher $events) { | ||
$events->subscribe(Listeners\AddForumAttributes::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'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.