Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Commit

Permalink
Beta8 (#13)
Browse files Browse the repository at this point in the history
* Fix missing AssertPermissionTrait

* Add extend file

* Update package.json

* Replace gulp with webpack

* Remove all gulp files and old package.json

* Gitignore changes

* Fix missing modules and paths

* Remove clutter

* Update composer to beta8

* Move events to extend

* Remove clutter

* Working for beta 8 & fixed a flarum bug in the proccess

* Apply fixes from StyleCI (#12)

* Package.json fix
  • Loading branch information
Charlie authored Nov 16, 2018
1 parent ee988f1 commit 70f09fb
Show file tree
Hide file tree
Showing 36 changed files with 4,960 additions and 10,026 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
js/*/node_modules
js/*/pakcage-lock.json
vendor/
composer.lock
/vendor
composer.phar
.DS_Store
Thumbs.db
node_modules
js/dist/*
22 changes: 0 additions & 22 deletions bootstrap.php

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
},
{
"name": "Shahiem Seymor",
"email": "shahiem.seymor@reflar.email",
"email": "s.seymor@live.nl",
"homepage": "https://shahiemseymor.com"
}
],
"require": {
"flarum/core": "^0.1.0-beta.7",
"flarum/core": "^0.1.0-beta.8",
"flarum/flarum-ext-tags": "*"
},
"extra": {
"flarum-extension": {
"title": "ReFlar Koseki",
"icon": {
"name": "th-list",
"name": "fas fa-th-list",
"backgroundColor": "#263238",
"color": "#FFF"
}
Expand Down
33 changes: 33 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/*
* This file is part of reflar/koseki.
*
* Copyright (c) ReFlar.
*
* http://reflar.io
*
* For the full copyright and license information, please view the license.md
* file that was distributed with this source code.
*/

namespace Reflar\Koseki;

use Flarum\Extend;
use Illuminate\Contracts\Events\Dispatcher;

return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/categories.less')
->css(__DIR__.'/resources/css/bootstrap.css')
->route('/koseki', 'koseki'),
(new Extend\Frontend('admin'))
->css(__DIR__.'/resources/less/admin.less')
->js(__DIR__.'/js/dist/admin.js'),
(new Extend\Locales(__DIR__.'/resources/locale')),

function (Dispatcher $events) {
$events->subscribe(Listeners\AddRelationships::class);
$events->subscribe(Listeners\SaveIconToDatabase::class);
},
];
Binary file removed js/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions js/admin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/admin';
9 changes: 0 additions & 9 deletions js/admin/Gulpfile.js

This file was deleted.

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

This file was deleted.

Loading

0 comments on commit 70f09fb

Please sign in to comment.