Skip to content

Commit 72f9fc2

Browse files
committed
Clean up
1 parent 5e19933 commit 72f9fc2

22 files changed

Lines changed: 91 additions & 84 deletions

docs/Linq2GraphQL.Docs/Components/GenerateClient.razor.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private async Task CopyIntrospection()
5757
await toastService.AddToastAsync(new ToastModel
5858
{
5959
Title = "Copy Complete",
60-
Message = "Introspection queryExecute has been copied to the clipboard"
60+
Message = "Introspection query has been copied to the clipboard"
6161
});
6262

6363
}
@@ -79,6 +79,12 @@ private async Task SaveEntriesAsync(List<FileEntry> entries)
7979
memoryStream.Seek(0, SeekOrigin.Begin);
8080
await tablerService.SaveAsBinary($"{options.ClientName}.zip", "application/zip", memoryStream.ToArray());
8181

82+
await toastService.AddToastAsync(new ToastModel
83+
{
84+
Title = "Generate Complete",
85+
Message = $"{options.ClientName}.zip has been been created! Please check you downloads."
86+
});
87+
8288
}
8389

8490
private async Task GenerateClientJson()
@@ -89,6 +95,7 @@ private async Task GenerateClientJson()
8995
var generator = new Generator.ClientGenerator(options.Namespace, options.ClientName, options.IncludeSubscriptions, EnumGeneratorStrategy.FailIfMissing, options.Nullable);
9096
var entries = generator.Generate(options.Schema);
9197
await SaveEntriesAsync(entries);
98+
9299
}
93100
catch (Exception ex)
94101
{

src/Linq2GraphQL.Generator/ClientGenerator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ private void AddFile(string directory, string fileName, string content)
3333
{
3434
var infoText = $@"
3535
//---------------------------------------------------------------------
36-
// This code was automatically generated by Linq2GraphQL.Generator
36+
// This code was automatically generated by Linq2GraphQL
3737
// Please don't edit this file
38-
// Github: https://github.com/linq2graphql/linq2graphql.client
39-
// Project:https://linq2graphql.com
38+
// Github:https://github.com/linq2graphql/linq2graphql.client
39+
// Url: https://linq2graphql.com
4040
// Generation Date: {DateTimeOffset.Now.ToString("F")}
4141
//---------------------------------------------------------------------
4242

test/Linq2GraphQL.TestClientNullable/Generated/Client/MutationMethods.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//---------------------------------------------------------------------
3-
// This code was automatically generated by Linq2GraphQL.Generator
3+
// This code was automatically generated by Linq2GraphQL
44
// Please don't edit this file
5-
// Github: https://github.com/linq2graphql/linq2graphql.client
6-
// Project:https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 16:27:56
5+
// Github:https://github.com/linq2graphql/linq2graphql.client
6+
// Url: https://linq2graphql.com
7+
// Generation Date: den 8 september 2024 17:02:30
88
//---------------------------------------------------------------------
99

1010
using System.Collections.Generic;

test/Linq2GraphQL.TestClientNullable/Generated/Client/QueryMethods.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//---------------------------------------------------------------------
3-
// This code was automatically generated by Linq2GraphQL.Generator
3+
// This code was automatically generated by Linq2GraphQL
44
// Please don't edit this file
5-
// Github: https://github.com/linq2graphql/linq2graphql.client
6-
// Project:https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 16:27:56
5+
// Github:https://github.com/linq2graphql/linq2graphql.client
6+
// Url: https://linq2graphql.com
7+
// Generation Date: den 8 september 2024 17:02:30
88
//---------------------------------------------------------------------
99

1010
using System.Collections.Generic;

test/Linq2GraphQL.TestClientNullable/Generated/Client/SampleNullableClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//---------------------------------------------------------------------
3-
// This code was automatically generated by Linq2GraphQL.Generator
3+
// This code was automatically generated by Linq2GraphQL
44
// Please don't edit this file
5-
// Github: https://github.com/linq2graphql/linq2graphql.client
6-
// Project:https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 16:27:56
5+
// Github:https://github.com/linq2graphql/linq2graphql.client
6+
// Url: https://linq2graphql.com
7+
// Generation Date: den 8 september 2024 17:02:30
88
//---------------------------------------------------------------------
99

1010
using Linq2GraphQL.Client;

test/Linq2GraphQL.TestClientNullable/Generated/Client/SampleNullableClientExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//---------------------------------------------------------------------
3-
// This code was automatically generated by Linq2GraphQL.Generator
3+
// This code was automatically generated by Linq2GraphQL
44
// Please don't edit this file
5-
// Github: https://github.com/linq2graphql/linq2graphql.client
6-
// Project:https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 16:27:56
5+
// Github:https://github.com/linq2graphql/linq2graphql.client
6+
// Url: https://linq2graphql.com
7+
// Generation Date: den 8 september 2024 17:02:30
88
//---------------------------------------------------------------------
99

1010
using Linq2GraphQL.Client;

test/Linq2GraphQL.TestClientNullable/Generated/Enums/AddressType.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//---------------------------------------------------------------------
3-
// This code was automatically generated by Linq2GraphQL.Generator
3+
// This code was automatically generated by Linq2GraphQL
44
// Please don't edit this file
5-
// Github: https://github.com/linq2graphql/linq2graphql.client
6-
// Project:https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 16:27:56
5+
// Github:https://github.com/linq2graphql/linq2graphql.client
6+
// Url: https://linq2graphql.com
7+
// Generation Date: den 8 september 2024 17:02:30
88
//---------------------------------------------------------------------
99

1010
using Linq2GraphQL.Client;

test/Linq2GraphQL.TestClientNullable/Generated/Enums/CustomerStatus.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//---------------------------------------------------------------------
3-
// This code was automatically generated by Linq2GraphQL.Generator
3+
// This code was automatically generated by Linq2GraphQL
44
// Please don't edit this file
5-
// Github: https://github.com/linq2graphql/linq2graphql.client
6-
// Project:https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 16:27:56
5+
// Github:https://github.com/linq2graphql/linq2graphql.client
6+
// Url: https://linq2graphql.com
7+
// Generation Date: den 8 september 2024 17:02:30
88
//---------------------------------------------------------------------
99

1010
using Linq2GraphQL.Client;

test/Linq2GraphQL.TestClientNullable/Generated/Inputs/AddressInput.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//---------------------------------------------------------------------
3-
// This code was automatically generated by Linq2GraphQL.Generator
3+
// This code was automatically generated by Linq2GraphQL
44
// Please don't edit this file
5-
// Github: https://github.com/linq2graphql/linq2graphql.client
6-
// Project:https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 16:27:56
5+
// Github:https://github.com/linq2graphql/linq2graphql.client
6+
// Url: https://linq2graphql.com
7+
// Generation Date: den 8 september 2024 17:02:30
88
//---------------------------------------------------------------------
99

1010
using System;

test/Linq2GraphQL.TestClientNullable/Generated/Inputs/CustomerInput.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//---------------------------------------------------------------------
3-
// This code was automatically generated by Linq2GraphQL.Generator
3+
// This code was automatically generated by Linq2GraphQL
44
// Please don't edit this file
5-
// Github: https://github.com/linq2graphql/linq2graphql.client
6-
// Project:https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 16:27:56
5+
// Github:https://github.com/linq2graphql/linq2graphql.client
6+
// Url: https://linq2graphql.com
7+
// Generation Date: den 8 september 2024 17:02:30
88
//---------------------------------------------------------------------
99

1010
using System;

0 commit comments

Comments
 (0)