-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from hahwul/dev
Release 0.7.0
- Loading branch information
Showing
67 changed files
with
3,034 additions
and
174 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,5 +1,5 @@ | ||
name: noir | ||
version: 0.6.0 | ||
version: 0.7.0 | ||
|
||
authors: | ||
- hahwul <[email protected]> | ||
|
29 changes: 29 additions & 0 deletions
29
spec/functional_test/fixtures/aspnet_mvc/App_Start/RouteConfig.cs
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,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.Mvc; | ||
using System.Web.Routing; | ||
|
||
namespace Senparc.Weixin.MP.Sample | ||
{ | ||
public class RouteConfig | ||
{ | ||
public static void RegisterRoutes(RouteCollection routes) | ||
{ | ||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | ||
|
||
routes.MapRoute( | ||
name: "Open", | ||
url: "Open/Callback/{appId}", | ||
defaults: new { controller = "Open", action = "Callback", appId = UrlParameter.Optional } | ||
); | ||
|
||
routes.MapRoute( | ||
name: "Default", | ||
url: "data/default", | ||
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } | ||
); | ||
} | ||
} | ||
} |
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.AspNet.Mvc" version="5.2.9" targetFramework="net462" /> | ||
<package id="Microsoft.AspNet.Mvc.zh-Hans" version="5.2.9" targetFramework="net462" /> | ||
</packages> |
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,3 @@ | ||
## Notes | ||
|
||
This project uses a portion of the source code from [DjangoBlog](https://github.com/liangliangyy/DjangoBlog) for testing purposes. (Djangoblog is released under the MIT License) |
This file was deleted.
Oops, something went wrong.
Empty file.
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,70 @@ | ||
from django.urls import path | ||
from django.views.decorators.cache import cache_page | ||
|
||
from . import views | ||
|
||
app_name = "blog" | ||
urlpatterns = [ | ||
path( | ||
r'', | ||
views.IndexView.as_view(), | ||
name='index'), | ||
path( | ||
r'page/<int:page>/', | ||
views.IndexView.as_view(), | ||
name='index_page'), | ||
path( | ||
r'article/<int:year>/<int:month>/<int:day>/<int:article_id>.html', | ||
views.ArticleDetailView.as_view(), | ||
name='detailbyid'), | ||
path( | ||
r'category/<slug:category_name>.html', | ||
views.CategoryDetailView.as_view(), | ||
name='category_detail'), | ||
path( | ||
r'category/<slug:category_name>/<int:page>.html', | ||
views.CategoryDetailView.as_view(), | ||
name='category_detail_page'), | ||
path( | ||
r'author/<author_name>.html', | ||
views.AuthorDetailView.as_view(), | ||
name='author_detail'), | ||
path( | ||
r'author/<author_name>/<int:page>.html', | ||
views.AuthorDetailView.as_view(), | ||
name='author_detail_page'), | ||
path( | ||
r'tag/<slug:tag_name>.html', | ||
views.TagDetailView.as_view(), | ||
name='tag_detail'), | ||
path( | ||
r'tag/<slug:tag_name>/<int:page>.html', | ||
views.TagDetailView.as_view(), | ||
name='tag_detail_page'), | ||
path( | ||
'archives.html', | ||
cache_page( | ||
60 * 60)( | ||
views.ArchivesView.as_view()), | ||
name='archives'), | ||
path( | ||
'links.html', | ||
views.LinkListView.as_view(), | ||
name='links'), | ||
path( | ||
r'upload', | ||
views.fileupload, | ||
name='upload'), | ||
path( | ||
r'not_found', | ||
views.page_not_found_view, | ||
name='page_not_found_view'), | ||
path( | ||
r'test', | ||
views.test, | ||
name='test'), | ||
path( | ||
r'delete_test', | ||
views.delete_test, | ||
name='delete_test'), | ||
] |
Oops, something went wrong.