diff --git a/js/admin/Gulpfile.js b/js/admin/Gulpfile.js deleted file mode 100644 index afb6ff6..0000000 --- a/js/admin/Gulpfile.js +++ /dev/null @@ -1,9 +0,0 @@ -var gulp = require('flarum-gulp'); - -gulp({ - modules: { - 'extum/flarum-ext-old-title': [ - 'src/**/*.js', - ] - } -}); diff --git a/js/admin/dist/extension.js b/js/admin/dist/extension.js deleted file mode 100644 index ae59190..0000000 --- a/js/admin/dist/extension.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -System.register('extum/flarum-ext-old-title/main', ['flarum/app'], function (_export, _context) { - "use strict"; - - var app; - return { - setters: [function (_flarumApp) { - app = _flarumApp.default; - }], - execute: function () { - - app.initializers.add('extum/flarum-ext-old-title', function () { - //console.log('Hello, admin!'); - }); - } - }; -}); diff --git a/js/admin/package.json b/js/admin/package.json deleted file mode 100644 index 4f1ffd6..0000000 --- a/js/admin/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "private": true, - "devDependencies": { - "gulp": "^3.9.1", - "flarum-gulp": "^0.2.0" - }, - "dependencies": {} -} diff --git a/js/admin/src/main.js b/js/admin/src/main.js deleted file mode 100644 index 03f33bd..0000000 --- a/js/admin/src/main.js +++ /dev/null @@ -1,9 +0,0 @@ -import app from 'flarum/app'; -import {extend} from 'flarum/extend'; -import Page from 'flarum/components/Page'; - -app.initializers.add('extum/flarum-ext-old-title', () => { - extend(Page.prototype, 'init', function () { - $('head').prepend(); - }); -}); diff --git a/js/forum/Gulpfile.js b/js/forum/Gulpfile.js deleted file mode 100644 index afb6ff6..0000000 --- a/js/forum/Gulpfile.js +++ /dev/null @@ -1,9 +0,0 @@ -var gulp = require('flarum-gulp'); - -gulp({ - modules: { - 'extum/flarum-ext-old-title': [ - 'src/**/*.js', - ] - } -}); diff --git a/js/forum/dist/extension.js b/js/forum/dist/extension.js deleted file mode 100644 index e9fc8a3..0000000 --- a/js/forum/dist/extension.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -System.register('extum/flarum-ext-old-title/main', ['flarum/app'], function (_export, _context) { - "use strict"; - - var app; - return { - setters: [function (_flarumApp) { - app = _flarumApp.default; - }], - execute: function () { - - app.initializers.add('extum/flarum-ext-old-title', function () { - $('head').prepend(''); - }); - } - }; -}); diff --git a/js/forum/package.json b/js/forum/package.json deleted file mode 100644 index 4f1ffd6..0000000 --- a/js/forum/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "private": true, - "devDependencies": { - "gulp": "^3.9.1", - "flarum-gulp": "^0.2.0" - }, - "dependencies": {} -} diff --git a/js/forum/src/main.js b/js/forum/src/main.js deleted file mode 100644 index 207c752..0000000 --- a/js/forum/src/main.js +++ /dev/null @@ -1,5 +0,0 @@ -import app from 'flarum/app'; - -app.initializers.add('extum/flarum-ext-old-title', () => { - $('head').prepend('') -}); diff --git a/resources/locale/en.yml b/resources/locale/en.yml deleted file mode 100644 index 8b13789..0000000 --- a/resources/locale/en.yml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Listeners/AddClientAssets.php b/src/Listeners/AddClientAssets.php index cb19634..7e3ad74 100644 --- a/src/Listeners/AddClientAssets.php +++ b/src/Listeners/AddClientAssets.php @@ -41,10 +41,9 @@ public function configureWebApp(ConfigureWebApp $event) if ($event->isForum()) { $event->addAssets([ - __DIR__.'/../../js/forum/dist/extension.js', + __DIR__.'/../../resources/less/app.less', ]); - $event->addBootstrapper('extum/flarum-ext-old-title/main'); } }