| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,9 @@ This is one example of use abp framework as traditional way(aspnetboilerplate) w | |||
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | 7 | # Done | |
| 8 | - | ||
| 8 | + - Add bundle generation | ||
| 9 | + - create proxy scripts | ||
| 9 | 10 | ||
| 10 | 11 | # TODO | |
| 11 | - - Crear proxy scripts | ||
| 12 | 12 | - Add localization only for test, how works | |
| 13 | - - Add bundle generation | ||
| 13 | + - Disable proxy generation | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,11 @@ | |||
| 1 | - using Volo.Abp.Application.Services; | ||
| 1 | + using Volo.Abp; | ||
| 2 | + using Volo.Abp.Application.Services; | ||
| 2 | 3 | using Volo.Abp.Domain.Repositories; | |
| 3 | 4 | using Washyn.Domain; | |
| 4 | 5 | ||
| 5 | 6 | namespace Washyn.Application | |
| 6 | 7 | { | |
| 8 | + | ||
| 7 | 9 | public class PruebaAppService : CrudAppService<Prueba, PruebaDto, long>,IPruebaAppService | |
| 8 | 10 | { | |
| 9 | 11 | public PruebaAppService(IRepository<Prueba, long> repository) : base(repository) | |
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,6 +23,15 @@ | |||
| 23 | 23 | "environmentVariables": { | |
| 24 | 24 | "ASPNETCORE_ENVIRONMENT": "Development" | |
| 25 | 25 | } | |
| 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 | + } | ||
| 26 | 35 | } | |
| 27 | 36 | } | |
| 28 | 37 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,4 +14,8 @@ | |||
| 14 | 14 | { | |
| 15 | 15 | <li>@item.Nombre</li> | |
| 16 | 16 | } | |
| 17 | - </ul> | ||
| 17 | + </ul> | ||
| 18 | + | ||
| 19 | + <hr /> | ||
| 20 | + | ||
| 21 | + hi | ||
| Original file line number | Diff line number | Diff 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> | ||
| 2 | 5 | <html lang="en"> | |
| 3 | 6 | <head> | |
| 4 | 7 | <meta charset="utf-8" /> | |
| 5 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| 6 | 9 | <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 | + | ||
| 9 | 23 | </head> | |
| 10 | 24 | <body> | |
| 11 | 25 | <header> | |
@@ -43,13 +57,21 @@ | |||
| 43 | 57 | © 2021 - Washyn.Web - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a> | |
| 44 | 58 | </div> | |
| 45 | 59 | </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> | ||
| 49 | 60 | ||
| 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> | ||
| 53 | 75 | ||
| 54 | 76 | @await RenderSectionAsync("Scripts", required: false) | |
| 55 | 77 | </body> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,8 @@ | |||
| 1 | 1 | @using Washyn.Web | |
| 2 | 2 | @using Washyn.Web.Models | |
| 3 | 3 | @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 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,10 +5,12 @@ | |||
| 5 | 5 | </PropertyGroup> | |
| 6 | 6 | ||
| 7 | 7 | <ItemGroup> | |
| 8 | + <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared" Version="4.4.0" /> | ||
| 8 | 9 | <PackageReference Include="Volo.Abp.Core" Version="4.4.3" /> | |
| 9 | 10 | <PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="4.4.0" /> | |
| 10 | 11 | <PackageReference Include="Volo.Abp.Autofac" Version="4.4.0" /> | |
| 11 | 12 | <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="4.4.0" /> | |
| 13 | + <PackageReference Include="Volo.Abp.Http.Client" Version="4.4.3" /> | ||
| 12 | 14 | </ItemGroup> | |
| 13 | 15 | ||
| 14 | 16 | <ItemGroup> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments