ediwang / moonglade Goto Github PK
View Code? Open in Web Editor NEWThe ASP.NET Core blog system of https://edi.wang, runs on Microsoft Azure
Home Page: https://edi.wang
License: GNU General Public License v3.0
The ASP.NET Core blog system of https://edi.wang, runs on Microsoft Azure
Home Page: https://edi.wang
License: GNU General Public License v3.0
Make a new tab!
Add a setting to control if enable HTTPS redirection and HSTS on non-dev env.
Make email more readable!
Allow user to upload customized favicons and generate image files
Add a swichable local account authentication other than only AzureAD
Make sure attackers can't save scripts to db and then execute alert('shit') on the page.
Let user have more control
Currently, the tag names are normalized in Utils.TagNormalizeSourceTable, which some chars don't make sense:
(, ), {, }, @, #
They need to be disallowed rather than normalized
Delete spams by batch!
Current log is in application root directory, which should be read only.
Research: Find a good location to store log files.
[2019-02-17 13:25:14.8645][RD00155DB89807][Warn][Microsoft.EntityFrameworkCore.Query] The Include operation for navigation '[p].PostPublish' is unnecessary and was ignored because the navigation is not reachable in the final query results. See https://go.microsoft.com/fwlink/?linkid=850303 for more information.
[2019-02-17 13:25:14.8645][RD00155DB89807][Warn][Microsoft.EntityFrameworkCore.Query] The Include operation for navigation '[p].PostCategory.Category' is unnecessary and was ignored because the navigation is not reachable in the final query results. See https://go.microsoft.com/fwlink/?linkid=850303 for more information.
Make it easir to use admin portal on phones.
Package WindowsAzure.Storage is no longer updated, as:
https://www.nuget.org/packages/WindowsAzure.Storage/
NOTE: As of version 9.4.0, this library has been split into multiple parts and replaced: See https://www.nuget.org/packages/Microsoft.Azure.Storage.Blob/, https://www.nuget.org/packages/Microsoft.Azure.Storage.File/, https://www.nuget.org/packages/Microsoft.Azure.Storage.Queue/, and https://www.nuget.org/packages/Microsoft.Azure.Storage.Common/.
For table support, see https://www.nuget.org/packages/Microsoft.Azure.CosmosDB.Table/.
This client library enables working with the Microsoft Azure storage services which include the blob and file service for storing binary and text data, the table service for storing structured non-relational data, and the queue service for storing messages that may be accessed by a client.
For this release see notes - https://github.com/Azure/azure-storage-net/blob/master/README.md and https://github.com/Azure/azure-storage-net/blob/master/changelog.txt
Microsoft Azure Storage team's blog - https://blogs.msdn.com/b/windowsazurestorage/
Empower comments to achieve more
remove BindingUrl from settings.
Use RegEx to refact this SB Code:
public Response<Post> GetPost(string url)
{
try
{
// https://domain/post/yyyy/MM/dd/slug
// TODO: There must be a nicer way to do this
var uri = new Uri(url);
if (uri.Segments.Length < 5)
{
return null;
}
var yyyy = Convert.ToInt32(uri.Segments[2].Replace("/", string.Empty));
var mm = Convert.ToInt32(uri.Segments[3].Replace("/", string.Empty));
var dd = Convert.ToInt32(uri.Segments[4].Replace("/", string.Empty));
var slug = uri.Segments[5];
var post = GetPost(yyyy, mm, dd, slug.Trim());
return post;
}
catch (Exception ex)
{
return new FailedResponse<Post>((int)ResponseFailureCode.GeneralException, ex.Message, ex);
}
}
InvalidOperationException: Error generated for warning 'Microsoft.EntityFrameworkCore.Infrastructure.DetachedLazyLoadingWarning: An attempt was made to lazy-load navigation property 'Comment' on detached entity of type 'PostProxy'. Lazy-loading is not supported for detached entities or entities that are loaded with 'AsNoTracking()'.'. This exception can be suppressed or logged by passing event ID 'CoreEventId.DetachedLazyLoadingWarning' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Page is loaded with correct post content
Additional context
Related to Repository pattern code refact
Also with a settings key to control show admin link or not.
Reduce project file counts
Reduce CI get source time
Auto complete tags when writing post
Not everyone lives in China.
In case of some bad word awkward
Use generated robots.txt, not physical file.
Because of issue #17 images are getting stored in Temp folder in FileSystemImageProvider.
Provide a settings for image storage location for FileSystemImageProvider
And support HTML in it
In case of hand slip
Everyone deserves a second chance!
Add a OOBE setup wizard, use UI to setup BlogConfiguration table.
MD everywhere!
font-awesome 5.x is finally released on CDNJS, just use it!
if urlrewrite.xml is not present, code blow up.
Let user set this value in admin portal.
Some user don't use Azure ApplicationInsights. How to separate this part?
Describe the bug
Local Authentication Provider will make 400 error when posting data to actions with ValidateAntiForgeryToken attribute
To Reproduce
Steps to reproduce the behavior:
Expected behavior
POST requests work with ValidateAntiForgeryToken
DEFAULT is not "political rightness".
Change Bit NULL to Bit NOT NULL on database.
Use latest TinyMCE to make admin portal cooler
Use HTML5 File API to load the image
Crop image with some js lib
Upload image as base64 string
How could I miss that...
Make it easier to use
Make code more clean
This function is not useful. User would rather manually go to Azure or some other tool to see the details.
Integrate Custom Search API to improve blog search capabilities.
Reference: https://azure.microsoft.com/en-us/services/cognitive-services/bing-custom-search/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.