Day.js 2KB immutable date-time library alternative to Moment.js with the same modern API
github.com/iamkun/dayjs
Category: Uncategorized
Feathers | A framework for real-time applications and REST APIs
Feathers is a lightweight web-framework for creating real-time applications and REST APIs using JavaScript or TypeScript.
feathersjs.com/
10 useful HTML5 features, you may not be using
Javascript Event Bubbling – DEV Community
Javascript passing by Reference vs Value – DEV Community
8 Projects with modern designs to become a Full-stack Master 2020
c# – How to read request body in a asp.net core webapi controller?
How to read request body in a asp.net core webapi controller?
A clearer solution, works in ASP.Net Core 2.1 / 3.1
Filter class
using Microsoft.AspNetCore.Authorization;
// For ASP.NET 2.1
using Microsoft.AspNetCore.Http.Internal;
// For ASP.NET 3.1
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Filters;
public class ReadableBodyStreamAttribute : AuthorizeAttribute, IAuthorizationFilter
{
public void OnAuthorization(AuthorizationFilterContext context)
{
// For ASP.NET 2.1
// context.HttpContext.Request.EnableRewind();
// For ASP.NET 3.1
// context.HttpContext.Request.EnableBuffering();
}
}
In an Controller
[HttpPost]
[ReadableBodyStream]
public string SomePostMethod()
{
//Note: if you're late and body has already been read, you may need this next line
//Note2: if "Note" is true and Body was read using StreamReader too, then it may be necessary to set "leaveOpen: true" for that stream.
HttpContext.Request.Body.Seek(0, SeekOrigin.Begin);
using (StreamReader stream = new StreamReader(HttpContext.Request.Body))
{
string body = stream.ReadToEnd();
// body = "param=somevalue¶m2=someothervalue"
}
}
Source: c# – How to read request body in a asp.net core webapi controller? – Stack Overflow
GitHub – handsontable
Handsontable is a JavaScript/HTML5 data grid with spreadsheet look & feel. Available for React, Vue and Angular.
github.com/handsontable/handsontable
React Spectrum
React Spectrum A React implementation of Spectrum, Adobe’s design system.
react-spectrum.adobe.com/react-spectrum/index.html