FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

added abp core lis · washyn/abp-basic-example@df69476 · GitHub

Repository navigation

Commit df69476

Browse files
committed
added abp core lis
1 parent 6b0cdc1 commit df69476

23 files changed

Lines changed: 1739 additions & 20 deletions

‎readme.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This is one example of use abp framework as traditional way(aspnetboilerplate) w
55

66

77
# Done
8-
8+
- Add bundle generation
9+
- create proxy scripts
910

1011
# TODO
11-
- Crear proxy scripts
1212
- Add localization only for test, how works
13-
- Add bundle generation
13+
- Disable proxy generation

‎src/Washyn.Application/PruebaAppService.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
using Volo.Abp.Application.Services;
1+
using Volo.Abp;
2+
using Volo.Abp.Application.Services;
23
using Volo.Abp.Domain.Repositories;
34
using Washyn.Domain;
45

56
namespace Washyn.Application
67
{
8+
79
public class PruebaAppService : CrudAppService<Prueba, PruebaDto, long>,IPruebaAppService
810
{
911
public PruebaAppService(IRepository<Prueba, long> repository) : base(repository)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace Washyn.Web.Bundling
2+
{
3+
public class CustomBundles
4+
{
5+
public static class Styles
6+
{
7+
public static string Global = "CustomBundlesStyles";
8+
}
9+
10+
public static class Scripts
11+
{
12+
public static string Global = "CustomBundlesScripts";
13+
}
14+
}
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
2+
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Core;
3+
using Volo.Abp.AspNetCore.Mvc.UI.Packages.JQuery;
4+
using Volo.Abp.Modularity;
5+
6+
namespace Washyn.Web.Bundling
7+
{
8+
// [DependsOn(
9+
// typeof(CoreScriptContributor)
10+
// )]
11+
public class ScriptContributor : BundleContributor
12+
{
13+
14+
}
15+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
2+
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Core;
3+
using Volo.Abp.Modularity;
4+
5+
namespace Washyn.Web.Bundling
6+
{
7+
// [DependsOn(
8+
// typeof(CoreStyleContributor)
9+
// )]
10+
public class StyleContributor : BundleContributor
11+
{
12+
13+
}
14+
}

‎src/Washyn.Web/Properties/launchSettings.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
"environmentVariables": {
2424
"ASPNETCORE_ENVIRONMENT": "Development"
2525
}
26+
},
27+
"Washyn.Web.Production": {
28+
"commandName": "Project",
29+
"dotnetRunMessages": "true",
30+
"launchBrowser": true,
31+
"applicationUrl": "https://localhost:5001;http://localhost:5000",
32+
"environmentVariables": {
33+
"ASPNETCORE_ENVIRONMENT": "Production"
34+
}
2635
}
2736
}
2837
}

‎src/Washyn.Web/Views/Home/Index.cshtml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@
1414
{
1515
<li>@item.Nombre</li>
1616
}
17-
</ul>
17+
</ul>
18+
19+
<hr />
20+
21+
hi

‎src/Washyn.Web/Views/Shared/_Layout.cshtml‎

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
1-
<!DOCTYPE html>
1+
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling
2+
@using Washyn.Web.Bundling
3+
@using Volo.Abp.AspNetCore.Mvc.UI.Packages.Core
4+
<!DOCTYPE html>
25
<html lang="en">
36
<head>
47
<meta charset="utf-8" />
58
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
69
<title>@ViewData["Title"] - Washyn.Web</title>
7-
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
8-
<link rel="stylesheet" href="~/css/site.css" />
10+
11+
@* <abp-style-bundle name="@CustomBundles.Styles.Global" /> *@
12+
@* <abp-style-bundle name="@StandardBundles.Styles.Global" /> *@
13+
14+
<abp-style-bundle name="StylesBundle">
15+
@* <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> *@
16+
@* <link rel="stylesheet" href="~/css/site.css" /> *@
17+
18+
<abp-style src="/lib/bootstrap/dist/css/bootstrap.min.css" />
19+
<abp-style src="/css/site.css" />
20+
<abp-style type="@(typeof(CoreStyleContributor))"></abp-style>
21+
</abp-style-bundle>
22+
923
</head>
1024
<body>
1125
<header>
@@ -43,13 +57,21 @@
4357
&copy; 2021 - Washyn.Web - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
4458
</div>
4559
</footer>
46-
<script src="~/lib/jquery/dist/jquery.min.js"></script>
47-
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
48-
<script src="~/js/site.js" asp-append-version="true"></script>
4960

50-
@* TODO: add code for generate proxy scripts *@
51-
@* <script src="~/Abp/ApplicationConfigurationScript"></script> *@
52-
@* <script src="~/Abp/ServiceProxyScript"></script> *@
61+
62+
@* <abp-script-bundle name="@CustomBundles.Scripts.Global" /> *@
63+
@* <abp-script-bundle name="@StandardBundles.Scripts.Global" /> *@
64+
65+
<abp-script-bundle name="ScriptBundle">
66+
<abp-script src="/lib/jquery/dist/jquery.min.js"></abp-script>
67+
<abp-script src="/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></abp-script>
68+
<abp-script type="@(typeof(CoreScriptContributor))"></abp-script>
69+
<abp-script src="/js/site.js"></abp-script>
70+
</abp-script-bundle>
71+
72+
73+
<script src="~/Abp/ApplicationConfigurationScript"></script>
74+
<script src="~/Abp/ServiceProxyScript"></script>
5375

5476
@await RenderSectionAsync("Scripts", required: false)
5577
</body>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
@using Washyn.Web
22
@using Washyn.Web.Models
33
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4+
5+
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
6+
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
7+
8+
@addTagHelper *, Washyn.Mvc

‎src/Washyn.Web/Washyn.Web.csproj‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8+
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared" Version="4.4.0" />
89
<PackageReference Include="Volo.Abp.Core" Version="4.4.3" />
910
<PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="4.4.0" />
1011
<PackageReference Include="Volo.Abp.Autofac" Version="4.4.0" />
1112
<PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="4.4.0" />
13+
<PackageReference Include="Volo.Abp.Http.Client" Version="4.4.3" />
1214
</ItemGroup>
1315

1416
<ItemGroup>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL