Skip to content

Commit

Permalink
Update for beta 11 and move to FoF namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Dec 20, 2019
1 parent 0ab1128 commit 2a04f81
Show file tree
Hide file tree
Showing 14 changed files with 4,849 additions and 4,147 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
js/node_modules
vendor/
composer.lock
package-lock.json
yarn.lock
43 changes: 17 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# Custom HTML Error Pages by ![Flagrow logo](https://avatars0.githubusercontent.com/u/16413865?v=3&s=20) [Flagrow](https://discuss.flarum.org/d/1832-flagrow-extension-developer-group), a project of [Gravure](https://gravure.io/)
# Custom HTML Error Pages by FriendsOfFlarum

[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/flagrow/html-errors/blob/master/LICENSE.md) [![Latest Stable Version](https://img.shields.io/packagist/v/flagrow/html-errors.svg)](https://packagist.org/packages/flagrow/html-errors) [![Total Downloads](https://img.shields.io/packagist/dt/flagrow/html-errors.svg)](https://packagist.org/packages/flagrow/html-errors) [![Donate](https://img.shields.io/badge/patreon-support-yellow.svg)](https://www.patreon.com/flagrow) [![Join our Discord server](https://discordapp.com/api/guilds/240489109041315840/embed.png)](https://flagrow.io/join-discord)

![License](https://img.shields.io/badge/license-MIT-blue.svg) [![Latest Stable Version](https://img.shields.io/packagist/v/fof/html-errors.svg)](https://packagist.org/packages/fof/html-errors) [![OpenCollective](https://img.shields.io/badge/opencollective-fof-blue.svg)](https://opencollective.com/fof/donate)

This extension allows you to customize the Flarum error pages.
By default these pages have very boring HTML content with no styling and no link in beta7.
By default these pages have only limited styling in Flarum.
Now you can change them to something that better reflects your website!

## Installation

Use [Bazaar](https://discuss.flarum.org/d/5151-flagrow-bazaar-the-extension-marketplace) or install manually:
Use Bazaar or install it with Composer:

```bash
composer require flagrow/html-errors
```
composer require fof/html-errors
```

## Updating

```bash
composer update flagrow/html-errors
php flarum migrate
php flarum cache:clear
```
composer update fof/html-errors
```

## Configuration
Expand All @@ -30,24 +29,16 @@ Leaving a field empty will show the default Flarum error page.
The custom error pages are only applied when browsing the forum front-end.
Any error response under /api or /admin is unaffected.

You can handle additional error codes by entering the values manually in the `settings` table of the database.

## Support our work
The custom error pages are not shown when debug mode is on.

We prefer to keep our work available to everyone.
In order to do so we rely on voluntary contributions on [Patreon](https://www.patreon.com/flagrow).

## Security

If you discover a security vulnerability within Custom HTML Error Pages, please send an email to the Gravure team at [email protected]. All security vulnerabilities will be promptly addressed.

Please include as many details as possible. You can use `php flarum info` to get the PHP, Flarum and extension versions installed.
You can handle additional error codes by entering the values manually in the `settings` table of the database.

## Links

- [Flarum Discuss post](https://discuss.flarum.org/d/10784-custom-html-error-pages)
- [Source code on GitHub](https://github.com/flagrow/html-errors)
- [Report an issue](https://github.com/flagrow/html-errors/issues)
- [Download via Packagist](https://packagist.org/packages/flagrow/html-errors)
[![OpenCollective](https://img.shields.io/badge/donate-friendsofflarum-44AEE5?style=for-the-badge&logo=open-collective)](https://opencollective.com/fof/donate)

- [Flarum Discuss post](https://discuss.flarum.org/d/10784)
- [Packagist](https://packagist.org/packages/fof/html-errors)
- [GitHub](https://github.com/FriendsOfFlarum/html-errors)

An extension by [Flagrow](https://flagrow.io/), a project of [Gravure](https://gravure.io/).
An extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum).
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "flagrow/html-errors",
"name": "fof/html-errors",
"description": "Add custom HTML error pages",
"keywords": [
"extension",
Expand All @@ -18,19 +18,22 @@
}
],
"support": {
"issues": "https://github.com/flagrow/html-errors/issues",
"source": "https://github.com/flagrow/html-errors"
"issues": "https://github.com/FriendsOfFlarum/html-errors/issues",
"source": "https://github.com/FriendsOfFlarum/html-errors"
},
"require": {
"flarum/core": "^0.1.0-beta.8"
"flarum/core": ">=0.1.0-beta.11 <0.1.0-beta.13"
},
"replace": {
"flagrow/html-errors": "*"
},
"extra": {
"flarum-extension": {
"title": "Flagrow HTML Errors",
"title": "FoF HTML Errors",
"icon": {
"name": "fas fa-exclamation-circle",
"backgroundColor": "#f4f4f4",
"color": "#5f4bb6"
"backgroundColor": "#e74c3c",
"color": "#fff"
}
},
"flagrow": {
Expand All @@ -39,7 +42,7 @@
},
"autoload": {
"psr-4": {
"Flagrow\\HtmlErrors\\": "src/"
"FoF\\HtmlErrors\\": "src/"
}
}
}
2 changes: 1 addition & 1 deletion extend.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Flagrow\HtmlErrors;
namespace FoF\HtmlErrors;

use Flarum\Extend;
use Illuminate\Contracts\Events\Dispatcher;
Expand Down
239 changes: 1 addition & 238 deletions js/dist/admin.js

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

Loading

0 comments on commit 2a04f81

Please sign in to comment.