Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
Update for beta 8
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Dec 9, 2018
1 parent 45b65af commit 02b45bf
Show file tree
Hide file tree
Showing 44 changed files with 5,102 additions and 5,268 deletions.
17 changes: 8 additions & 9 deletions .gitattributes
Expand Up @@ -2,13 +2,12 @@
.github export-ignore
.gitignore export-ignore
.gitmodules export-ignore
.travis.yml export-ignore
changelog.md export-ignore
tests export-ignore
phpunit.xml export-ignore
js/*/src export-ignore
js/*/Gulfile.js
js/*/package.json
js/*/yarn.lock
js/src export-ignore
js/admin.js export-ignore
js/forum.js export-ignore
js/webpack.config.js export-ignore
js/package.json export-ignore
js/yarn.lock export-ignore

js/*/dist/*.js -diff
js/dist/*.js -diff
js/dist/*.map -diff
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
js/*/node_modules
js/node_modules
vendor/
composer.lock
package-lock.json
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -4,6 +4,9 @@

Easily add Google Fonts to your Flarum install.

> Note: To work around an [issue with Flarum](https://github.com/flagrow/fonts/issues/4), we disable horizontal scrolling of editor controls on mobile.
> This could make it impossible to access some buttons while on a narrow screen.
## Install

Use [Bazaar](https://discuss.flarum.org/d/5151-flagrow-bazaar-the-extension-marketplace) or install manually:
Expand Down
12 changes: 0 additions & 12 deletions bootstrap.php

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -21,20 +21,20 @@
"source": "https://github.com/flagrow/fonts"
},
"require": {
"flarum/core": "^0.1.0-beta.6",
"flarum/core": "^0.1.0-beta.8",
"guzzlehttp/guzzle": "^6.2"
},
"extra": {
"flarum-extension": {
"title": "Flagrow Fonts",
"icon": {
"name": "font",
"name": "fas fa-font",
"backgroundColor": "#f4f4f4",
"color": "#5f4bb6"
}
},
"flagrow": {
"discuss": "https://discuss.flarum.org/d/6207-flagrow-fonts-easily-add-fonts-to-your-forum"
"discuss": "https://discuss.flarum.org/d/6207"
}
},
"autoload": {
Expand Down
38 changes: 38 additions & 0 deletions extend.php
@@ -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);
},
];
1 change: 1 addition & 0 deletions js/admin.js
@@ -0,0 +1 @@
export * from './src/admin';
10 changes: 0 additions & 10 deletions js/admin/Gulpfile.js

This file was deleted.

435 changes: 0 additions & 435 deletions js/admin/dist/extension.js

This file was deleted.

8 changes: 0 additions & 8 deletions js/admin/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions js/admin/src/main.js

This file was deleted.

0 comments on commit 02b45bf

Please sign in to comment.