Skip to content

Commit

Permalink
Some code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaexplorer74 committed May 28, 2023
1 parent a2cdcce commit ab090d5
Show file tree
Hide file tree
Showing 98 changed files with 302 additions and 2,411 deletions.
4 changes: 2 additions & 2 deletions HHExplorer/HHExplorer.UWP/App.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Application
x:Class="News.UWP.App"
x:Class="HHExplorer.UWP.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:News.UWP">
xmlns:local="using:HHExplorer.UWP">

</Application>
2 changes: 1 addition & 1 deletion HHExplorer/HHExplorer.UWP/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace News.UWP
namespace HHExplorer.UWP
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
Expand Down
Binary file modified HHExplorer/HHExplorer.UWP/Assets/LargeTile.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/LargeTile.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/LargeTile.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/SmallTile.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/SmallTile.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/SmallTile.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/SplashScreen.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/SplashScreen.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Square150x150Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Square150x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Square150x150Logo.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Square44x44Logo.scale-100.png
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Square44x44Logo.scale-200.png
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Square44x44Logo.scale-400.png
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Square44x44Logo.targetsize-16.png
Binary file modified HHExplorer/HHExplorer.UWP/Assets/StoreLogo.scale-100.png
Binary file modified HHExplorer/HHExplorer.UWP/Assets/StoreLogo.scale-200.png
Binary file modified HHExplorer/HHExplorer.UWP/Assets/StoreLogo.scale-400.png
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Wide310x150Logo.scale-100.png
Binary file modified HHExplorer/HHExplorer.UWP/Assets/Wide310x150Logo.scale-200.png
52 changes: 52 additions & 0 deletions HHExplorer/HHExplorer.UWP/DependencyService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Security.ExchangeActiveSyncProvisioning;
using Windows.System.Profile;
using Xamarin.Forms;

using System.ServiceModel;

using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;

using Windows.Storage;
using System.Diagnostics;
using static HHExplorer.Views.VacanciesPage;

[assembly: Dependency(typeof(HHExplorer.UWP.MegaClient))]
namespace HHExplorer.UWP
{

// 3 IMegaClient "interface realization"
public class MegaClient : IMegaClient
{

// Run Uri link
public async void RunUri(string s_uri)
{
Debug.WriteLine("cp 1");

Uri uri = new Uri(s_uri, UriKind.Absolute);

if (uri != null)
{

Debug.WriteLine("cp 2");

// Launch the retrieved file
bool success = await Windows.System.Launcher.LaunchUriAsync(uri);

Debug.WriteLine("cp 3");
}

}//RunUri end

}//MegaClient end


}// namespace end
16 changes: 10 additions & 6 deletions HHExplorer/HHExplorer.UWP/HHExplorer.UWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<ProjectGuid>{90B825E5-85E9-4016-8E1D-FBFF73CC8F66}</ProjectGuid>
<OutputType>AppContainerExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>News.UWP</RootNamespace>
<AssemblyName>News.UWP</AssemblyName>
<RootNamespace>HHExplorer.UWP</RootNamespace>
<AssemblyName>HHExplorer.UWP</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
Expand All @@ -20,13 +20,15 @@
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
<AppxBundlePlatforms>arm</AppxBundlePlatforms>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<PackageCertificateKeyFile>News.UWP_TemporaryKey.pfx</PackageCertificateKeyFile>
<PackageCertificateKeyFile>HHExplorer.UWP_TemporaryKey.pfx</PackageCertificateKeyFile>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<AppxBundle>Always</AppxBundle>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<PackageCertificateThumbprint>
</PackageCertificateThumbprint>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -101,6 +103,7 @@
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="DependencyService.cs" />
<Compile Include="MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -133,6 +136,7 @@
<Content Include="Assets\Square44x44Logo.targetsize-16.png" />
<Content Include="Assets\Square44x44Logo.targetsize-256.png" />
<Content Include="Assets\Square44x44Logo.targetsize-48.png" />
<Content Include="Assets\StoreLogo.backup.png" />
<Content Include="Assets\StoreLogo.scale-100.png" />
<Content Include="Assets\StoreLogo.scale-200.png" />
<Content Include="Assets\StoreLogo.scale-400.png" />
Expand Down Expand Up @@ -166,15 +170,15 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="News.UWP_TemporaryKey.pfx" />
<None Include="HHExplorer.UWP_TemporaryKey.pfx" />
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
<UserProperties XamarinHotReloadXFormsNugetUpgradeInfoBarNewsUWPHideInfoBar="True" XamarinHotReloadXFormsNugetUpgradeInfoBarHHExplorerUWPHideInfoBar="True" />
<UserProperties XamarinHotReloadXFormsNugetUpgradeInfoBarHHExplorerUWPHideInfoBar="True" XamarinHotReloadXFormsNugetUpgradeInfoBarNewsUWPHideInfoBar="True" />
</VisualStudio>
</ProjectExtensions>
</Project>
4 changes: 2 additions & 2 deletions HHExplorer/HHExplorer.UWP/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<forms:WindowsPage
x:Class="News.UWP.MainPage"
x:Class="HHExplorer.UWP.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:forms="using:Xamarin.Forms.Platform.UWP"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:News.UWP"
xmlns:local="using:HHExplorer.UWP"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
Expand Down
4 changes: 2 additions & 2 deletions HHExplorer/HHExplorer.UWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace News.UWP
namespace HHExplorer.UWP
{
public sealed partial class MainPage
{
public MainPage()
{
this.InitializeComponent();

LoadApplication(new News.App());
LoadApplication(new HHExplorer.App());
}
}
}
20 changes: 12 additions & 8 deletions HHExplorer/HHExplorer.UWP/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
IgnorableNamespaces="uap mp">

<Identity
Name="dc352dba-6862-4e70-b037-062190ce1a20"
Name="ME.HHExplorerV1"
Publisher="CN=Admin"
Version="1.1.1.0" />
Version="1.1.2.0" />

<mp:PhoneIdentity PhoneProductId="ec0cc741-fd3e-4851-82b5-68815c480690" PhonePublisherId="00070000-0080-0000-0000-000000001025"/>

<Properties>
<DisplayName>News.UWP</DisplayName>
<PublisherDisplayName>c79ab523-0c9f-488a-bdd2-d638932d02aa</PublisherDisplayName>
<DisplayName>HHExplorer.UWP</DisplayName>
<PublisherDisplayName>mediaexplorer</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>

Expand All @@ -30,12 +30,12 @@
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="News.UWP.App">
EntryPoint="HHExplorer.UWP.App">
<uap:VisualElements
DisplayName="News.UWP"
DisplayName="HHExplorer.UWP"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="News.UWP"
Description="HHExplorer.UWP"
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" Square310x310Logo="Assets\LargeTile.png" Square71x71Logo="Assets\SmallTile.png">
<uap:ShowNameOnTiles>
Expand All @@ -45,13 +45,17 @@
</uap:ShowNameOnTiles>
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
<uap:InitialRotationPreference>
<uap:Rotation Preference="landscape"/>
<uap:Rotation Preference="portrait"/>
<uap:Rotation Preference="landscapeFlipped"/></uap:InitialRotationPreference>
</uap:VisualElements>

<Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="com.vipxam.webauthenticator-12345" ReturnResults="optional">
<uap:Logo>Assets\StoreLogo.backup.png</uap:Logo>
<uap:DisplayName>HHWebAuthenticator</uap:DisplayName>
<uap:DisplayName>HHExplorer</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
</Extensions>
Expand Down
4 changes: 2 additions & 2 deletions HHExplorer/HHExplorer.UWP/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("News.UWP")]
[assembly: AssemblyTitle("HHExplorer.UWP")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("News.UWP")]
[assembly: AssemblyProduct("HHExplorer.UWP")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
4 changes: 2 additions & 2 deletions HHExplorer/HHExplorer/Api/HHConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ public class HHConfiguration
{
// Credentials
public const string ClientId
= ""; //client_id
= "KL9UN728TH5S1CD95RPOEPHPAPJSPGEF123J5FS0MVEV3UT9J5S85UJJG6LFDQHS"; //client_id
public const string ClientSecret
= ""; //client_secret
= "M8EE75DDHHADRRIJ5GEL5AG5BSUORLRNIJOH2MJ8D86MR7C7D9PTISKC1SOUU7KC"; //client_secret

// Callback
public const string Callback
Expand Down
2 changes: 1 addition & 1 deletion HHExplorer/HHExplorer/App.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="News.App">
x:Class="HHExplorer.App">
<Application.Resources>

</Application.Resources>
Expand Down
2 changes: 1 addition & 1 deletion HHExplorer/HHExplorer/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Xamarin.Forms.Xaml;
using Xamarin.Essentials;

namespace News
namespace HHExplorer
{
public partial class App : Application
{
Expand Down
73 changes: 0 additions & 73 deletions HHExplorer/HHExplorer/Consoles/Program.cs

This file was deleted.

11 changes: 7 additions & 4 deletions HHExplorer/HHExplorer/Converters/TimePadConverter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

// TimePadConverter (not used at now)

using System;
using System.Collections.Generic;
using System.Text;
Expand All @@ -7,8 +8,10 @@
using Newtonsoft.Json.Linq;
using HHLibrary;

// HH.Converters namespace
namespace HH.Converters
{
// TimePadConverter class
internal class TimePadConverter
{
// TimePadItem ConvertJsonToPocketItem(JToken itemObject)
Expand Down Expand Up @@ -91,7 +94,7 @@ public static Vacancy ConvertJsonToPocketItem(JToken itemObject)
return hhItem;

}//ConvertJsonToPocketItem


}
}
}//class end

}//namespace end
Loading

0 comments on commit ab090d5

Please sign in to comment.