Skip to content

Commit

Permalink
MBS-13921: Add Genie links to sidebar (#3462)
Browse files Browse the repository at this point in the history
* MBS-13921: Add Genie links to sidebar
  • Loading branch information
Maxr1998 authored Feb 3, 2025
1 parent 9dd0c4e commit 14bedac
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/MusicBrainz/Server/Data/URL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ my %URL_SPECIALIZATIONS = (
'FonoFi' => qr{^https?://(?:www\.)?fono\.fi/}i,
'Gakki' => qr{^https?://(?:www\.)?saisaibatake\.ame-zaiku\.com/(?:gakki|musical|musical_instrument)/}i,
'Generasia' => qr{^https?://(?:www\.)?generasia\.com/wiki/}i,
'Genie' => qr{^https?://(?:www\.)?genie\.co\.kr/}i,
'Genius' => qr{^https?://(?:[^/]+\.)?genius\.com/}i,
'GeoNames' => qr{^http://sws\.geonames\.org/}i,
'Goodreads' => qr{^https?://(?:www\.)?goodreads\.com/}i,
Expand Down
23 changes: 23 additions & 0 deletions lib/MusicBrainz/Server/Entity/URL/Genie.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package MusicBrainz::Server::Entity::URL::Genie;

use Moose;
use utf8;

extends 'MusicBrainz::Server::Entity::URL';
with 'MusicBrainz::Server::Entity::URL::Sidebar';

sub sidebar_name { 'Genie' }

__PACKAGE__->meta->make_immutable;
no Moose;
1;

=head1 COPYRIGHT AND LICENSE
Copyright (C) 2025 MetaBrainz Foundation
This file is part of MusicBrainz, the open internet music database,
and is licensed under the GPL version 2, or (at your option) any
later version: http://www.gnu.org/licenses/gpl-2.0.txt
=cut
Binary file added root/static/images/external-favicons/genie-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions root/static/scripts/common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export const FAVICON_CLASSES: {
'flattr.com': 'flattr',
'fono.fi': 'fonofi',
'generasia.com/wiki': 'generasia',
'genie.co.kr': 'genie',
'genius.com': 'genius',
'geonames.org': 'geonames',
'goodreads.com': 'goodreads',
Expand Down
1 change: 1 addition & 0 deletions root/static/styles/favicons.less
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
.favicon("fortyfiveworlds", 32);
.favicon("gakki");
.favicon("generasia", 32);
.favicon("genie", 32);
.favicon("genius", 32);
.favicon("geonames");
.favicon("goodreads", 32);
Expand Down

0 comments on commit 14bedac

Please sign in to comment.