Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-13921: Add Genie links to sidebar #3462

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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