Skip to content

Commit

Permalink
🐞 fix github link issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Strypper committed Jun 29, 2023
1 parent df43afb commit a852f81
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AppSettingsJsonControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_braces_24_regular
};
public string ControlDetail => "Use appsettings.json inside your application thanks to MauiAppBuilder, we can use the ConfigurationManager that is built into configure settings in our .NET MAUI app";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/BuiltIn/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/BuiltIn/AppSettingsJson";
public string DocumentUrl => $"https://montemagno.com/dotnet-maui-appsettings-json-configuration/";
public string GroupName => ControlGroupInfo.BuiltInControls;
}
4 changes: 2 additions & 2 deletions src/Features/Gallery/Pages/BuiltIn/Popup/PopupControlInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace MAUIsland.Gallery.BuiltIn;
class PopupControlInfo : IControlInfo
class PopupControlInfo : IControlInfo
{
public string ControlName => "Pop up";
public string ControlRoute => typeof(PopupPage).FullName;
Expand All @@ -9,7 +9,7 @@ class PopupControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_square_shadow_12_regular
};
public string ControlDetail => "Displaying an alert, asking a user to make a choice, or displaying a prompt is a common UI task. .NET Multi-platform App UI (.NET MAUI) has three methods on the Page class for interacting with the user via a pop-up: DisplayAlert, DisplayActionSheet, and DisplayPromptAsync. Pop-ups are rendered with native controls on each platform.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/BuiltIn/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/BuiltIn/Popup";
public string DocumentUrl => $"https://learn.microsoft.com/en-us/dotnet/maui/user-interface/pop-ups?view=net-maui-7.0";
public string GroupName => ControlGroupInfo.BuiltInControls;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MaterialButtonControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_add_circle_24_regular
};
public string ControlDetail => "Buttons allow users to take actions, and make choices, with a single tap.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/MaterialButton";
public string DocumentUrl => $"https://mdc-maui.github.io/button";
public string GroupName => ControlGroupInfo.MaterialComponent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MaterialChipControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_oval_24_regular
};
public string ControlDetail => "Chips are compact elements that represent an input, attribute, or action.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/MaterialChip";
public string DocumentUrl => $"https://mdc-maui.github.io/chip";
public string GroupName => ControlGroupInfo.MaterialComponent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ToolbarItem
Command="{x:Binding OpenUrlCommand}"
CommandParameter="{x:Binding ControlInformation.GitHubUrl}"
IconImageSource="github.png"
IconImageSource="githublogo.png"
Text="Source code" />
<ToolbarItem
Command="{x:Binding OpenUrlCommand}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MaterialComboBoxControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_caret_down_24_regular
};
public string ControlDetail => "ComboBox displays a short list of items, from which the user can select an item.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/MaterialComboBox";
public string DocumentUrl => $"https://mdc-maui.github.io/combo-box";
public string GroupName => ControlGroupInfo.MaterialComponent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MaterialContextMenuControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_list_24_regular
};
public string ControlDetail => "ContextMenu display a list of choices on a temporary surface, It can be included in the component that has the touch event.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/MaterialContextMenu";
public string DocumentUrl => $"https://mdc-maui.github.io/context-menu";
public string GroupName => ControlGroupInfo.MaterialComponent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ToolbarItem
Command="{x:Binding OpenUrlCommand}"
CommandParameter="{x:Binding ControlInformation.GitHubUrl}"
IconImageSource="github.png"
IconImageSource="githublogo.png"
Text="Source code" />
<ToolbarItem
Command="{x:Binding OpenUrlCommand}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ protected override void OnInit(IDictionary<string, object> query)

}
#endregion

#region [ Relay Commands ]
[RelayCommand]
Task OpenUrlAsync(string url)
=> AppNavigator.OpenUrlAsync(url);
#endregion
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MaterialFABControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_add_square_24_regular
};
public string ControlDetail => "FABs(floating action button) represents the primary action of a screen.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/MaterialFAB";
public string DocumentUrl => $"https://mdc-maui.github.io/FAB";
public string GroupName => ControlGroupInfo.MaterialComponent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ToolbarItem
Command="{x:Binding OpenUrlCommand}"
CommandParameter="{x:Binding ControlInformation.GitHubUrl}"
IconImageSource="github.png"
IconImageSource="githublogo.png"
Text="Source code" />
<ToolbarItem
Command="{x:Binding OpenUrlCommand}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MaterialNavigationDrawerControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_navigation_24_regular
};
public string ControlDetail => "Navigation drawers provide ergonomic access to destinations in an app.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/MaterialNavigationDrawer";
public string DocumentUrl => $"https://mdc-maui.github.io/navigation-drawer";
public string GroupName => ControlGroupInfo.MaterialComponent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MaterialSwitchControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_toggle_left_24_regular
};
public string ControlDetail => "Switches toggle the state of a single setting on or off.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/MaterialSwitch";
public string DocumentUrl => $"https://mdc-maui.github.io/switch";
public string GroupName => ControlGroupInfo.MaterialComponent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ToolbarItem
Command="{x:Binding OpenUrlCommand}"
CommandParameter="{x:Binding ControlInformation.GitHubUrl}"
IconImageSource="github.png"
IconImageSource="githublogo.png"
Text="Source code" />
<ToolbarItem
Command="{x:Binding OpenUrlCommand}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MaterialTextFieldControlInfo : IControlInfo
Glyph = FluentUIIcon.Ic_fluent_text_field_24_regular
};
public string ControlDetail => "Text fields allow users to enter text into a UI.";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/{ControlName}";
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Material/MaterialTextField";
public string DocumentUrl => $"https://mdc-maui.github.io/text-field";
public string GroupName => ControlGroupInfo.MaterialComponent;
}
4 changes: 4 additions & 0 deletions src/MAUIsland.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
<None Remove="Resources\Images\logos\materialuibanner.png" />
<None Remove="Resources\Images\logos\materialuilogo.png" />
<None Remove="Resources\Images\logos\syncfusionlogo.png" />
<None Remove="Resources\Images\logos\tizenlogo.svg" />
<None Remove="Resources\Images\logos\windowslogo.svg" />
<None Remove="Resources\Images\mauibeach.jpeg" />
<None Remove="Resources\Images\mauilogo.png" />
<None Remove="Resources\Images\mauitoolkitbanner.png" />
Expand Down Expand Up @@ -468,6 +470,8 @@
<MauiImage Include="Resources\Images\logos\materialuilogo.png" />
<MauiImage Include="Resources\Images\logos\mauilogo.png" />
<MauiImage Include="Resources\Images\logos\syncfusionlogo.png" />
<MauiImage Include="Resources\Images\logos\tizenlogo.svg" />
<MauiImage Include="Resources\Images\logos\windowslogo.svg" />
<MauiImage Include="Resources\Images\memes\mrincredibleblackwhite.png" />
<MauiImage Include="Resources\Images\memes\mrincredibleblackwhite1.png" />
<MauiImage Include="Resources\Images\memes\mrincredibleblackwhite2.png" />
Expand Down

0 comments on commit a852f81

Please sign in to comment.