name change surgery 2 !!!
This commit is contained in:
parent
44b5f82ed7
commit
b540154bc7
5 changed files with 25 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
# WMstodon
|
||||
Mastodon client for Windows 10 Mobile made without API Libraries
|
||||
# UniversalFedi
|
||||
Fedi client (Mastodon API) for Windows 10 Mobile made without API Libraries
|
||||
|
||||
## Requirements
|
||||
- Windows 10 Creators Update (version 1703) or later (or Windows 11)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
x:Class="UniversalFedi.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:WMstodon"
|
||||
xmlns:local="using:UniversalFedi"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
|
@ -11,11 +11,11 @@
|
|||
<Grid>
|
||||
<CommandBar>
|
||||
<CommandBar.Content>
|
||||
<TextBlock Text="Home Timeline" Margin="12,14"/>
|
||||
<TextBlock x:Name="TimelineText" Text="Home Timeline" Margin="12,14"/>
|
||||
</CommandBar.Content>
|
||||
|
||||
<AppBarButton Icon="Add" Label="New Post" Click="NewPostButton_Click" FontFamily="Segoe UI" VerticalAlignment="Stretch" HorizontalAlignment="Center" Margin="0,4,0,0"/>
|
||||
<AppBarButton Icon="Refresh" Label="Refresh" Click="RefreshButton_Click" HorizontalAlignment="Center" VerticalAlignment="Stretch" Margin="0,4,0,0"/>
|
||||
<AppBarButton Icon="Add" Label="New Post" Click="NewPostButton_Click" FontFamily="Segoe UI" VerticalAlignment="Stretch" HorizontalAlignment="Center" Width="64"/>
|
||||
<AppBarButton Icon="Refresh" Label="Refresh" Click="RefreshButton_Click" HorizontalAlignment="Center" VerticalAlignment="Stretch" Width="64"/>
|
||||
|
||||
<CommandBar.SecondaryCommands>
|
||||
<AppBarButton Label=" Home Timeline" FontFamily="Segoe MDL2 Assets" Click="HomeTimelineButton_Click"/>
|
||||
|
|
|
@ -26,6 +26,21 @@ namespace UniversalFedi
|
|||
|
||||
protected async override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
string topString = "Loading";
|
||||
switch (localSettings.Values["timelineMode"])
|
||||
{
|
||||
case "home":
|
||||
topString = "Home Timeline";
|
||||
break;
|
||||
case "public":
|
||||
topString = "Federated Timeline";
|
||||
break;
|
||||
case "public?local=true":
|
||||
topString = "Local Timeline";
|
||||
break;
|
||||
}
|
||||
TimelineText.Text = topString;
|
||||
|
||||
string accountJSON;
|
||||
|
||||
try
|
||||
|
|
|
@ -25,10 +25,10 @@ namespace UniversalFedi
|
|||
private async void NextButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Dictionary<string, string> postopts = new Dictionary<string, string>();
|
||||
postopts["client_name"] = "WMStodon";
|
||||
postopts["client_name"] = "UniversalFedi";
|
||||
postopts["redirect_uris"] = "urn:ietf:wg:oauth:2.0:oob";
|
||||
postopts["scopes"] = "read write push";
|
||||
postopts["website"] = "https://github.com/kawaiizenbo/WMStodon";
|
||||
postopts["website"] = "https://github.com/kawaiizenbo/UniversalFedi";
|
||||
HttpResponseMessage response =
|
||||
await HTTPUtils.POSTGenericAsync(InstanceURLTextBox.Text + "/api/v1/apps", new FormUrlEncodedContent(postopts));
|
||||
if (response.StatusCode == HttpStatusCode.OK)
|
||||
|
@ -42,6 +42,7 @@ namespace UniversalFedi
|
|||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (localSettings.Values["timelineMode"] == null) localSettings.Values["timelineMode"] = "home";
|
||||
if (localSettings.Values["instanceURL"] != null && localSettings.Values["accessToken"] != null) Frame.Navigate(typeof(MainPage), null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
x:Class="UniversalFedi.StatusPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:WMstodon"
|
||||
xmlns:local="using:UniversalFedi"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
|
|
Loading…
Add table
Reference in a new issue