mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-15 16:45:17 +00:00

Configuration File Removals: .vscode/c_cpp_properties.json: Removed the entire configuration for C/C++ properties. .vscode/launch.json: Removed the Dart launch configurations for different environments and modes. .vscode/settings.json: Removed settings related to CMake, spell checking, file nesting, and Dart Flutter SDK path. .vscode/snippets.code-snippets: Removed code snippets for Dart, including PaginatedState and PaginatedNotifier templates. .vscode/tasks.json: Removed the tasks configuration file. Documentation Updates: CONTRIBUTION.md: Removed heart emoji from the introductory text. README.md: Updated the logo image and made minor text adjustments, including removing emojis and updating section titles. [1] [2] [3] [4] [5] Asset Removals: lib/collections/assets.gen.dart: Removed multiple unused asset references, including images related to Spotube logos and banners. [1] [2] [3] Minor Code Cleanups: cli/commands/build/linux.dart, cli/commands/build/windows.dart, cli/commands/translated.dart, cli/commands/untranslated.dart: Adjusted import statements for consistency. [1] [2] [3] [4] integration_test/app_test.dart: Removed an unnecessary blank line. lib/collections/routes.dart: Commented out the TrackRoute configuration.
115 lines
2.9 KiB
Dart
115 lines
2.9 KiB
Dart
import 'package:auto_route/auto_route.dart';
|
|
import 'package:shadcn_flutter/shadcn_flutter.dart';
|
|
import 'package:spotube/collections/routes.gr.dart';
|
|
import 'package:spotube/collections/spotube_icons.dart';
|
|
import 'package:spotube/l10n/l10n.dart';
|
|
|
|
class SideBarTiles {
|
|
final IconData icon;
|
|
final String title;
|
|
final String id;
|
|
final String pathPrefix;
|
|
final PageRouteInfo route;
|
|
|
|
SideBarTiles({
|
|
required this.icon,
|
|
required this.title,
|
|
required this.id,
|
|
required this.route,
|
|
required this.pathPrefix,
|
|
});
|
|
}
|
|
|
|
List<SideBarTiles> getSidebarTileList(AppLocalizations l10n) => [
|
|
SideBarTiles(
|
|
id: "home",
|
|
pathPrefix: "/home",
|
|
route: const HomeRoute(),
|
|
icon: SpotubeIcons.home,
|
|
title: l10n.browse,
|
|
),
|
|
SideBarTiles(
|
|
id: "search",
|
|
pathPrefix: "/search",
|
|
route: const SearchRoute(),
|
|
icon: SpotubeIcons.search,
|
|
title: l10n.search,
|
|
),
|
|
SideBarTiles(
|
|
id: "lyrics",
|
|
pathPrefix: "/lyrics",
|
|
route: const LyricsRoute(),
|
|
icon: SpotubeIcons.music,
|
|
title: l10n.lyrics,
|
|
),
|
|
SideBarTiles(
|
|
id: "stats",
|
|
pathPrefix: "/stats",
|
|
route: const StatsRoute(),
|
|
icon: SpotubeIcons.chart,
|
|
title: l10n.stats,
|
|
),
|
|
];
|
|
|
|
List<SideBarTiles> getSidebarLibraryTileList(AppLocalizations l10n) => [
|
|
SideBarTiles(
|
|
id: "playlists",
|
|
pathPrefix: "/library/playlists",
|
|
title: l10n.playlists,
|
|
route: const UserPlaylistsRoute(),
|
|
icon: SpotubeIcons.playlist,
|
|
),
|
|
SideBarTiles(
|
|
id: "artists",
|
|
pathPrefix: "/library/artists",
|
|
title: l10n.artists,
|
|
route: const UserArtistsRoute(),
|
|
icon: SpotubeIcons.artist,
|
|
),
|
|
SideBarTiles(
|
|
id: "albums",
|
|
pathPrefix: "/library/albums",
|
|
title: l10n.albums,
|
|
route: const UserAlbumsRoute(),
|
|
icon: SpotubeIcons.album,
|
|
),
|
|
SideBarTiles(
|
|
id: "local_library",
|
|
pathPrefix: "/library/local",
|
|
title: l10n.local_library,
|
|
route: const UserLocalLibraryRoute(),
|
|
icon: SpotubeIcons.device,
|
|
),
|
|
];
|
|
|
|
List<SideBarTiles> getNavbarTileList(AppLocalizations l10n) => [
|
|
SideBarTiles(
|
|
id: "home",
|
|
pathPrefix: "/home",
|
|
route: const HomeRoute(),
|
|
icon: SpotubeIcons.home,
|
|
title: l10n.browse,
|
|
),
|
|
SideBarTiles(
|
|
id: "search",
|
|
pathPrefix: "/search",
|
|
route: const SearchRoute(),
|
|
icon: SpotubeIcons.search,
|
|
title: l10n.search,
|
|
),
|
|
SideBarTiles(
|
|
id: "library",
|
|
pathPrefix: "/library",
|
|
route: const UserPlaylistsRoute(),
|
|
icon: SpotubeIcons.library,
|
|
title: l10n.library,
|
|
),
|
|
SideBarTiles(
|
|
id: "stats",
|
|
pathPrefix: "/stats",
|
|
route: const StatsRoute(),
|
|
icon: SpotubeIcons.chart,
|
|
title: l10n.stats,
|
|
),
|
|
];
|