Skip to content

Commit

Permalink
rename project to totoro
Browse files Browse the repository at this point in the history
  • Loading branch information
insomniachi committed Sep 17, 2022
1 parent 671bc89 commit d38064a
Show file tree
Hide file tree
Showing 182 changed files with 3,405 additions and 265 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- 'v*'

env:
INSTALLER_PATH: 'AnimDL.Installer/AnimDL.Installer.wixproj'
BOOTSTRAPPER_PATH: 'AnimDL.Installer/AnimDL.Bootstrapper.wixproj'
INSTALLER_PATH: 'Totoro.Installer/Totoro.Installer.wixproj'
BOOTSTRAPPER_PATH: 'Totoro.Installer/Totoro.Bootstrapper.wixproj'

jobs:
deploy:
Expand Down Expand Up @@ -48,5 +48,5 @@ jobs:
uses: csexton/release-asset-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pattern: AnimDL.Installer/bin/Release/AnimDL.exe
pattern: Totoro.Installer/bin/Release/Totoro.exe
release-url: ${{ steps.create_release.outputs.upload_url }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using AnimDL.Api;
using AnimDL.UI.Core.ViewModels;
using Totoro.Core.ViewModels;

namespace AnimDL.WinUI.Tests.Builders;
namespace Totoro.Core.Tests.Builders;

public class WatchViewModelBuilder
{
Expand All @@ -14,7 +14,8 @@ public class WatchViewModelBuilder
private IAnimeService _animeService = Mock.Of<IAnimeService>();
private IMediaPlayer _mediaPlayer = Mock.Of<IMediaPlayer>();
private Mock<IDiscordRichPresense> _discordRpcMock;

private ITimestampsService _timestampsService = Mock.Of<ITimestampsService>();

public WatchViewModel Bulid()
{
return new WatchViewModel(_providerFactory,
Expand All @@ -24,7 +25,8 @@ public WatchViewModel Bulid()
_playbackStateStorage,
_discordRpc,
_animeService,
_mediaPlayer);
_mediaPlayer,
_timestampsService);
}

public WatchViewModelBuilder WithProviderFactory(Action<Mock<IProviderFactory>> configure)
Expand Down Expand Up @@ -91,6 +93,14 @@ public WatchViewModelBuilder WithMediaPlayer(Action<Mock<IMediaPlayer>> configur
return this;
}

public WatchViewModelBuilder WithTimeStampService(Action<Mock<ITimestampsService>> configure)
{
var mock = new Mock<ITimestampsService>();
configure(mock);
_timestampsService = mock.Object;
return this;
}

public void Verify(Action<Mock<IDiscordRichPresense>> verify) => verify(_discordRpcMock);

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Tests.Helpers;
namespace Totoro.Tests.Helpers;

public abstract class TestCatalog : ICatalog, IMalCatalog
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand All @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AnimDL.UI.Core\AnimDL.UI.Core.csproj" />
<ProjectReference Include="..\Totoro.Core\Totoro.Core.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions AnimDL.UI.Tests/Usings.cs → Totoro.Core.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
global using AnimDL.Core.Api;
global using AnimDL.Core.Models;
global using AnimDL.UI.Core.Contracts;
global using AnimDL.UI.Core.Models;
global using Totoro.Core.Contracts;
global using Totoro.Core.Models;
global using Moq;
global using ReactiveUI;
global using Xunit;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using AnimDL.Api;
using AnimDL.UI.Tests.Helpers;
using AnimDL.WinUI.Tests.Builders;
using Totoro.Core.Tests.Builders;
using Totoro.Tests.Helpers;

namespace AnimDL.WinUI.Tests.ViewModels;
namespace Totoro.WinUI.Tests.ViewModels;

public class WatchViewModelTests
{
Expand Down
2 changes: 1 addition & 1 deletion AnimDL.UI.Core/Constants.cs → Totoro.Core/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core;
namespace Totoro.Core;

public class Constants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.UI.Core.Contracts;

public interface IActivationService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IAnimeService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IDiscordRichPresense
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IFeaturedAnimeProvider
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IFileService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.CompilerServices;

namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IHaveState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface ILocalSettingsService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IMediaPlayer : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface INavigationAware
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;

namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface INavigationService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IRecentEpisodesProvider
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IPlaybackStateStorage
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface ISchedule
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AnimDL.Api;

namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface ISettings
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IThemeSelectorService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AnimDL.UI.Core.Services;
using Totoro.Core.Services;

namespace AnimDL.UI.Core.Contracts
namespace Totoro.Core.Contracts
{
public interface ITimestampsService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface ITrackingService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AnimDL.Api;

namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IViewService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Contracts;
namespace Totoro.Core.Contracts;

public interface IVolatileStateStorage
{
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
global using System.Windows.Input;
global using AnimDL.Core.Api;
global using AnimDL.Core.Models;
global using AnimDL.UI.Core.Contracts;
global using AnimDL.UI.Core.Models;
global using Totoro.Core.Contracts;
global using Totoro.Core.Models;
global using DynamicData;
global using DynamicData.Binding;
global using ReactiveUI;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Helpers;
namespace Totoro.Core.Helpers;

public class AnimeHelpers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace AnimDL.UI.Core.Helpers
namespace Totoro.Core.Helpers
{
internal static class GraphQLQueries
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Helpers;
namespace Totoro.Core.Helpers;

public static class Json
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace AnimDL.UI.Core.Helpers;
namespace Totoro.Core.Helpers;

internal static class NativeMethods
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Humanizer;

namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public class AiredEpisode
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;

namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public enum AiringStatus
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;

namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public class Inpc : INotifyPropertyChanged
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public class MalToModelConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public enum AnimeSeason
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;

namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public enum AnimeStatus
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public enum DisplayMode
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public enum ElementTheme
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public class FeaturedAnime
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace AnimDL.UI.Core.Models
namespace Totoro.Core.Models
{
class MediaResponse
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public class ScheduleModel : ReactiveObject
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public sealed record Season(AnimeSeason SeasonName, int Year);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public class Tracking
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Models;
namespace Totoro.Core.Models;

public class WeeklyScheduleModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.Globalization;
using System.Text.Json.Nodes;
using Totoro.Core.Contracts;

namespace AnimDL.UI.Core.Services.AnimixPlay;
namespace Totoro.Core.Services.AnimixPlay;

public class AnimixPlayEpisodesProvider : IRecentEpisodesProvider
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AnimDL.UI.Core.Services.AnimixPlay;
namespace Totoro.Core.Services.AnimixPlay;

public class AnimixPlayFeaturedAnimeProvider : IFeaturedAnimeProvider
{
Expand Down
Loading

0 comments on commit d38064a

Please sign in to comment.