-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01760f4
commit 3555a55
Showing
27 changed files
with
753 additions
and
749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,56 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Razor"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<RazorLangVersion>3.0</RazorLangVersion> | ||
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> | ||
<AssemblyName>BlazorQuery.Library</AssemblyName> | ||
<RootNamespace>BlazorQuery.Library</RootNamespace> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||
<Version>0.0.2</Version> | ||
<Authors>KevinJPetersen and contributors</Authors> | ||
<RepositoryUrl>https://github.com/kevinjpetersen/BlazorQuery</RepositoryUrl> | ||
<PackageProjectUrl>https://github.com/kevinjpetersen/BlazorQuery</PackageProjectUrl> | ||
<RepositoryType>GitHub</RepositoryType> | ||
<PackageTags>Blazor, Razor, jQuery, Query, CSharp, DOM, Manipulation</PackageTags> | ||
<PackageReleaseNotes>Version 0.0.2 - 2020-07-29 | Functionality added | ||
* Update projects to build with latest version of Blazor | ||
* Migration from blazor preview --> blazor release | ||
* Starting wrapping fadein and fadeout | ||
* New testapp to test with blazor webassembly, and refactoring to make common code between the 2 testaspp | ||
Version 0.0.1 - 2019-07-09 | Functionality added | ||
* Added Select (Equivalent to $/jQuery, to select elements) | ||
* Added AddClass, RemoveClass, | ||
* Added Height (Set & Get), Width (Set & Get) | ||
* Added Text (Set & Get) | ||
* Added CSS</PackageReleaseNotes> | ||
<Description>BlazorQuery is a Blazor Library that wraps jQuery in C# so that DOM Manipulation, Ajax, etc, can be done directly without leaving the comfort of C#.</Description> | ||
<Copyright>MIT License</Copyright> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFrameworks>net5</TargetFrameworks> | ||
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> | ||
<AssemblyName>BlazorQuery.Library</AssemblyName> | ||
<RootNamespace>BlazorQuery.Library</RootNamespace> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||
<Version>0.0.2</Version> | ||
<Authors>KevinJPetersen and contributors</Authors> | ||
<RepositoryUrl>https://github.com/kevinjpetersen/BlazorQuery</RepositoryUrl> | ||
<PackageProjectUrl>https://github.com/kevinjpetersen/BlazorQuery</PackageProjectUrl> | ||
<RepositoryType>GitHub</RepositoryType> | ||
<PackageTags>Blazor, Razor, jQuery, Query, CSharp, DOM, Manipulation</PackageTags> | ||
<PackageReleaseNotes> | ||
Version 0.0.2 - 2020-07-29 | Functionality added | ||
* Update projects to build with latest version of Blazor | ||
* Migration from blazor preview --> blazor release | ||
* Starting wrapping fadein and fadeout | ||
* New testapp to test with blazor webassembly, and refactoring to make common code between the 2 testaspp | ||
Version 0.0.1 - 2019-07-09 | Functionality added | ||
* Added Select (Equivalent to $/jQuery, to select elements) | ||
* Added AddClass, RemoveClass, | ||
* Added Height (Set & Get), Width (Set & Get) | ||
* Added Text (Set & Get) | ||
* Added CSS | ||
</PackageReleaseNotes> | ||
<Description>BlazorQuery is a Blazor Library that wraps jQuery in C# so that DOM Manipulation, Ajax, etc, can be done directly without leaving the comfort of C#.</Description> | ||
<Copyright>MIT License</Copyright> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.1.6" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.6" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Components" Version="5.0.5" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.5" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(Configuration)' == 'Debug'"> | ||
<EmbeddedResource Include="wwwroot\*.js" Exclude="wwwroot\*.min.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
<EmbeddedResource Include="wwwroot\*.css" Exclude="wwwroot\*.min.css" LogicalName="blazor:css:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(Configuration)' == 'Debug'"> | ||
<EmbeddedResource Include="wwwroot\*.js" Exclude="wwwroot\*.min.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
<EmbeddedResource Include="wwwroot\*.css" Exclude="wwwroot\*.min.css" LogicalName="blazor:css:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(Configuration)' == 'Release'"> | ||
<EmbeddedResource Include="wwwroot\*.min.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
<EmbeddedResource Include="wwwroot\*.min.css" LogicalName="blazor:css:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(Configuration)' == 'Release'"> | ||
<EmbeddedResource Include="wwwroot\*.min.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
<EmbeddedResource Include="wwwroot\*.min.css" LogicalName="blazor:css:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Remove="wwwroot\jquery.js" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace BlazorQuery.Library | ||
{ | ||
public static class BlazorQueryDOMHelpers | ||
{ | ||
// Functions - Actions | ||
public static async Task<BlazorQueryDOM> AddClass(this Task<BlazorQueryDOM> dom, string className) => await (await dom).AddClass(className); | ||
|
||
public static async Task<BlazorQueryDOM> RemoveClass(this Task<BlazorQueryDOM> dom, string className) => await (await dom).RemoveClass(className); | ||
|
||
public static async Task<BlazorQueryDOM> CSS(this Task<BlazorQueryDOM> dom, string style, string styleValue) => await (await dom).CSS(style, styleValue); | ||
|
||
public static async Task<BlazorQueryDOM> Height(this Task<BlazorQueryDOM> dom, double height) => await (await dom).Height(height); | ||
|
||
public static async Task<BlazorQueryDOM> Width(this Task<BlazorQueryDOM> dom, double width) => await (await dom).Width(width); | ||
|
||
public static async Task<BlazorQueryDOM> Text(this Task<BlazorQueryDOM> dom, string text) => await (await dom).Text(text); | ||
|
||
public static async Task<BlazorQueryDOM> FadeOut(this Task<BlazorQueryDOM> dom, Action<string> completed) => await (await dom).FadeOut(completed); | ||
|
||
// Functions - Chain-enders | ||
public static async Task<double> Height(this Task<BlazorQueryDOM> dom) => await (await dom).Height(); | ||
|
||
public static async Task<double> Width(this Task<BlazorQueryDOM> dom) => await (await dom).Width(); | ||
|
||
public static async Task<string> Text(this Task<BlazorQueryDOM> dom) => await (await dom).Text(); | ||
} | ||
} |
Oops, something went wrong.