Added a simple TODO page via vue.js.

pull/179/head
Halil İbrahim Kalkan 7 years ago
parent 99de9b367f
commit 134faa5a36

@ -35,6 +35,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.0.0" />
@ -46,6 +47,8 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.0">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="2.0.2" />
<PackageReference Include="Serilog.Sinks.RollingFile" Version="3.3.0" />
</ItemGroup>

@ -22,6 +22,8 @@ namespace AbpDesk.Web.Mvc.Navigation
.AddItem(
new ApplicationMenuItem("TicketManagement.Tickets", "Tickets", url: "/App/Tickets")
)
).AddItem(
new ApplicationMenuItem("TodoList", "Todo List", url: "/App/Todo")
);
//Disabled blog module. This should be inside the module!

@ -0,0 +1,17 @@
@page
@using AbpDesk.Web.Mvc.Pages.App.Todo
@model IndexModel
<h2>TODO application!</h2>
<div id="TodoApp">
<ol>
<li v-for="todo in todos">
{{ todo.text }}
</li>
</ol>
</div>
@section scripts {
<script src="https://unpkg.com/vue"></script>
<script src="~/pages/app/todo/index.js"></script>
}

@ -0,0 +1,12 @@
using Volo.Abp.AspNetCore.Mvc.RazorPages;
namespace AbpDesk.Web.Mvc.Pages.App.Todo
{
public class IndexModel : AbpPageModel
{
public void OnGet()
{
}
}
}

@ -0,0 +1,14 @@
(function() {
var app = new Vue({
el: '#TodoApp',
data: {
todos: [
{ text: 'Learn JavaScript' },
{ text: 'Learn Vue' },
{ text: 'Build something awesome' }
]
}
});
})();
Loading…
Cancel
Save