Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple sources and rearrange UI #5

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions EndpointSetup/EndpointSetup.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

</Project>
69 changes: 69 additions & 0 deletions EndpointSetup/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
using System;
using System.Collections.Generic;

using Newtonsoft.Json;

namespace EndpointSetup {
internal class Program {
public struct Endpoint {
public string name;
public string apiInfo;
public string SfwEndpoint;
public string NsfwEndpoint;
public List<string> SfwEndpoints;
public List<string> NsfwEndpoints;
}
public static List<Endpoint> endpoints = new List<Endpoint>();

static void Main(string[] args) {

endpoints.Add(new Endpoint {
name = "waifu.pics",
apiInfo = "url",
SfwEndpoint = "https://api.waifu.pics/sfw",
NsfwEndpoint = "https://api.waifu.pics/nsfw",
SfwEndpoints = new List<string> { "waifu", "neko", "shinobu", "megumin", "bully", "cuddle", "cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush", "smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill", "kick", "happy", "wink", "poke", "dance", "cringe" },
NsfwEndpoints = new List<string> { "waifu", "neko", "trap", "blowjob" }
});

endpoints.Add(new Endpoint {
name = "nekos.life",
SfwEndpoint = "https://nekos.life/api/v2/img/",
NsfwEndpoint = "https://nekos.life/api/v2/img/",
apiInfo = "url",
SfwEndpoints = new List<string>
{
"neko", "waifu", "tickle", "slap", "pat", "meow", "lizard", "kiss", "hug", "fox_girl","feed", "cuddle", "ngif", "smug", "woof", "wallpaper", "goose", "gecg", "avatar"
},
NsfwEndpoints = new List<string>() { "lewd" }
});

endpoints.Add(new Endpoint {
name = "xsky.dev",
SfwEndpoint = "https://api.xsky.dev/",
NsfwEndpoint = "https://api.xsky.dev/",
apiInfo = "url",
SfwEndpoints = new List<string> { "neko", "catboy" },
NsfwEndpoints = new List<string> { "hentai", "bdsm", "furry", "ff", "feet", "trap", "gif", "futa" }
});

endpoints.Add(new Endpoint {
name = "anime-images",
SfwEndpoint = "https://anime-api.hisoka17.repl.co/img/",
NsfwEndpoint = "https://anime-api.hisoka17.repl.co/img/",
apiInfo = "url",
SfwEndpoints = new List<string> { "hug", "kiss", "slap", "wink", "pat", "kill", "cuddle", "punch", "waifu" },
NsfwEndpoints = new List<string> { "hentai", "boobs", "lesbian" }
});





Console.WriteLine(JsonConvert.SerializeObject(endpoints, Formatting.Indented));
Console.ReadKey();
Console.WriteLine("\n\n\n\n\n\n\n");
Console.WriteLine(JsonConvert.SerializeObject(endpoints, Formatting.None));
}
}
}
10 changes: 8 additions & 2 deletions NyaDesktop.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31702.278
# Visual Studio Version 17
VisualStudioVersion = 17.1.32228.430
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NyaDesktop", "NyaDesktop\NyaDesktop.csproj", "{4E049685-DF3B-4301-BE3D-5C0CF1A3251D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EndpointSetup", "EndpointSetup\EndpointSetup.csproj", "{DFFE4998-AD89-4C21-94D6-1FEC22B8AAF5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +17,10 @@ Global
{4E049685-DF3B-4301-BE3D-5C0CF1A3251D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4E049685-DF3B-4301-BE3D-5C0CF1A3251D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4E049685-DF3B-4301-BE3D-5C0CF1A3251D}.Release|Any CPU.Build.0 = Release|Any CPU
{DFFE4998-AD89-4C21-94D6-1FEC22B8AAF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DFFE4998-AD89-4C21-94D6-1FEC22B8AAF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DFFE4998-AD89-4C21-94D6-1FEC22B8AAF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DFFE4998-AD89-4C21-94D6-1FEC22B8AAF5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
10 changes: 10 additions & 0 deletions NyaDesktop/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NyaDesktop {
internal class Class1 {
}
}
184 changes: 84 additions & 100 deletions NyaDesktop/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading