Browse Source

Resolved #369

pull/395/head
Yunus Emre Kalkan 8 years ago
parent
commit
a1f30d96d6
  1. 4
      docs/Tutorials/AspNetCore-Mvc/Part-I.md
  2. BIN
      docs/Tutorials/AspNetCore-Mvc/images/bookstore-index-js-file.png
  3. 2
      modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml
  4. 4
      modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/New.cshtml
  5. 0
      modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/edit.js
  6. 0
      modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/new.css
  7. 0
      modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/new.js
  8. 0
      modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/new.scss
  9. 8
      modules/blogging/src/Volo.Blogging.Web/Volo.Blogging.Web.csproj
  10. 4
      samples/BookStore/src/Acme.BookStore.Web/Acme.BookStore.Web.csproj
  11. 2
      samples/BookStore/src/Acme.BookStore.Web/Pages/Books/Index.cshtml
  12. 0
      samples/BookStore/src/Acme.BookStore.Web/Pages/Books/index.js
  13. 3
      samples/BookStore/src/Acme.BookStore.Web/Pages/Index.cshtml
  14. 1
      samples/BookStore/src/Acme.BookStore.Web/wwwroot/pages/index.css
  15. 1
      samples/BookStore/src/Acme.BookStore.Web/wwwroot/pages/index.min.css
  16. 3
      samples/BookStore/src/Acme.BookStore.Web/wwwroot/pages/index.scss

4
docs/Tutorials/AspNetCore-Mvc/Part-I.md

@ -365,7 +365,7 @@ Change the `Pages/Books/Index.cshtml` as following:
@model IndexModel @model IndexModel
@section scripts @section scripts
{ {
<abp-script src="/pages/books/index.js" /> <abp-script src="/Pages/Books/index.js" />
} }
<abp-card> <abp-card>
<abp-card-header> <abp-card-header>
@ -393,7 +393,7 @@ Change the `Pages/Books/Index.cshtml` as following:
##### Add a Script File ##### Add a Script File
Create `index.js` JavaScript file under the `wwwroot/pages/books/` folder: Create `index.js` JavaScript file under the `Pages/Books/` folder:
![bookstore-index-js-file](images/bookstore-index-js-file.png) ![bookstore-index-js-file](images/bookstore-index-js-file.png)

BIN
docs/Tutorials/AspNetCore-Mvc/images/bookstore-index-js-file.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

2
modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml

@ -5,7 +5,7 @@
@section scripts { @section scripts {
<abp-script-bundle name="@typeof(EditModel).FullName"> <abp-script-bundle name="@typeof(EditModel).FullName">
<abp-script src="/pages/blog/posts/edit.js" /> <abp-script src="/Pages/Blog/Posts/edit.js" />
</abp-script-bundle> </abp-script-bundle>
} }

4
modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/New.cshtml

@ -7,14 +7,14 @@
@section styles { @section styles {
<abp-style-bundle @*name="@typeof(NewModel).FullName"*@> <abp-style-bundle @*name="@typeof(NewModel).FullName"*@>
<abp-style type="@typeof(TuiEditorStyleContributor)" /> <abp-style type="@typeof(TuiEditorStyleContributor)" />
<abp-style src="/pages/blog/posts/new.css" /> <abp-style src="/Pages/Blog/Posts/new.css" />
</abp-style-bundle> </abp-style-bundle>
} }
@section scripts { @section scripts {
<abp-script-bundle @*name="@typeof(NewModel).FullName"*@> <abp-script-bundle @*name="@typeof(NewModel).FullName"*@>
<abp-script type="@typeof(LodashScriptContributor)" /> <abp-script type="@typeof(LodashScriptContributor)" />
<abp-script type="@typeof(TuiEditorScriptContributor)" /> <abp-script type="@typeof(TuiEditorScriptContributor)" />
<abp-script src="/pages/blog/posts/new.js" /> <abp-script src="/Pages/Blog/Posts/new.js" />
</abp-script-bundle> </abp-script-bundle>
} }
<div id="qa-new-post-container"> <div id="qa-new-post-container">

0
modules/blogging/src/Volo.Blogging.Web/wwwroot/pages/blog/posts/edit.js → modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/edit.js

0
modules/blogging/src/Volo.Blogging.Web/wwwroot/pages/blog/posts/new.css → modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/new.css

0
modules/blogging/src/Volo.Blogging.Web/wwwroot/pages/blog/posts/new.js → modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/new.js

0
modules/blogging/src/Volo.Blogging.Web/wwwroot/pages/blog/posts/new.scss → modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/new.scss

8
modules/blogging/src/Volo.Blogging.Web/Volo.Blogging.Web.csproj

@ -32,7 +32,15 @@
<Content Remove="Pages\**\*.cshtml" /> <Content Remove="Pages\**\*.cshtml" />
<Content Remove="Localization\Resources\**\*.json" /> <Content Remove="Localization\Resources\**\*.json" />
<Content Remove="Properties\launchSettings.json" /> <Content Remove="Properties\launchSettings.json" />
<EmbeddedResource Include="Pages\Blog\Posts\edit.js" />
<EmbeddedResource Include="Pages\Blog\Posts\new.css" />
<EmbeddedResource Include="Pages\Blog\Posts\new.js" />
<EmbeddedResource Include="Pages\Blog\Posts\new.scss" />
<None Include="Properties\launchSettings.json" /> <None Include="Properties\launchSettings.json" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\pages\blog\posts\" />
</ItemGroup>
</Project> </Project>

4
samples/BookStore/src/Acme.BookStore.Web/Acme.BookStore.Web.csproj

@ -17,6 +17,10 @@
<None Remove="Logs\**" /> <None Remove="Logs\**" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="Pages\Books\index.js" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.1" /> <PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.1" />
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" /> <PackageReference Include="Serilog.AspNetCore" Version="2.1.1" />

2
samples/BookStore/src/Acme.BookStore.Web/Pages/Books/Index.cshtml

@ -4,7 +4,7 @@
@model IndexModel @model IndexModel
@section scripts @section scripts
{ {
<abp-script src="/pages/books/index.js" /> <abp-script src="/Pages/Books/index.js" />
} }
<abp-card> <abp-card>
<abp-card-header> <abp-card-header>

0
samples/BookStore/src/Acme.BookStore.Web/wwwroot/pages/books/index.js → samples/BookStore/src/Acme.BookStore.Web/Pages/Books/index.js

3
samples/BookStore/src/Acme.BookStore.Web/Pages/Index.cshtml

@ -2,9 +2,6 @@
@using Acme.BookStore.Pages @using Acme.BookStore.Pages
@inherits BookStorePageBase @inherits BookStorePageBase
@model IndexModel @model IndexModel
@section styles {
<link href="~/pages/index.css" rel="stylesheet" />
}
<abp-card> <abp-card>
<abp-card-header>@L["Welcome"]</abp-card-header> <abp-card-header>@L["Welcome"]</abp-card-header>
<abp-card-body> <abp-card-body>

1
samples/BookStore/src/Acme.BookStore.Web/wwwroot/pages/index.css

@ -1 +0,0 @@


1
samples/BookStore/src/Acme.BookStore.Web/wwwroot/pages/index.min.css

@ -1 +0,0 @@


3
samples/BookStore/src/Acme.BookStore.Web/wwwroot/pages/index.scss

@ -1,3 +0,0 @@
body{
}
Loading…
Cancel
Save