mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-11 10:36:07 +00:00
Merge pull request #11 from yusufipk/pr9
Add 2 new packages for Windows curated list.
This commit is contained in:
@@ -23,7 +23,8 @@ export const PACKAGE_PRESETS: Record<PlatformId, Record<UserCategory, string[]>>
|
|||||||
"PuTTY.PuTTY",
|
"PuTTY.PuTTY",
|
||||||
"WinMerge.WinMerge",
|
"WinMerge.WinMerge",
|
||||||
"EclipseFoundation.Eclipse",
|
"EclipseFoundation.Eclipse",
|
||||||
"Anysphere.Cursor"
|
"Anysphere.Cursor",
|
||||||
|
"Microsoft.VisualStudio.2022.Community"
|
||||||
],
|
],
|
||||||
"design": [
|
"design": [
|
||||||
"GIMP.GIMP",
|
"GIMP.GIMP",
|
||||||
@@ -76,7 +77,8 @@ export const PACKAGE_PRESETS: Record<PlatformId, Record<UserCategory, string[]>>
|
|||||||
"Valve.Steam",
|
"Valve.Steam",
|
||||||
"Discord.Discord",
|
"Discord.Discord",
|
||||||
"EpicGames.EpicGamesLauncher",
|
"EpicGames.EpicGamesLauncher",
|
||||||
"GOG.Galaxy"
|
"GOG.Galaxy",
|
||||||
|
"Playnite.Playnite"
|
||||||
],
|
],
|
||||||
"productivity": [
|
"productivity": [
|
||||||
"Notion.Notion",
|
"Notion.Notion",
|
||||||
@@ -757,7 +759,7 @@ export function getPresetIcon(name: string): string | undefined {
|
|||||||
if (PACKAGE_ICONS[name]) {
|
if (PACKAGE_ICONS[name]) {
|
||||||
return PACKAGE_ICONS[name];
|
return PACKAGE_ICONS[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try case insensitive
|
// Try case insensitive
|
||||||
const lowerName = name.toLowerCase();
|
const lowerName = name.toLowerCase();
|
||||||
const key = Object.keys(PACKAGE_ICONS).find(k => k.toLowerCase() === lowerName);
|
const key = Object.keys(PACKAGE_ICONS).find(k => k.toLowerCase() === lowerName);
|
||||||
@@ -773,7 +775,7 @@ export function getPresetDetails(name: string): { description: string } {
|
|||||||
if (PRESET_DESCRIPTIONS[name]) {
|
if (PRESET_DESCRIPTIONS[name]) {
|
||||||
return { description: PRESET_DESCRIPTIONS[name] };
|
return { description: PRESET_DESCRIPTIONS[name] };
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try case insensitive
|
// Try case insensitive
|
||||||
const lowerName = name.toLowerCase();
|
const lowerName = name.toLowerCase();
|
||||||
const key = Object.keys(PRESET_DESCRIPTIONS).find(k => k.toLowerCase() === lowerName);
|
const key = Object.keys(PRESET_DESCRIPTIONS).find(k => k.toLowerCase() === lowerName);
|
||||||
|
|||||||
Reference in New Issue
Block a user