Base solution for your next web application

Activities of "tonid"

Hi,

I have this one in AppNavigationProvider:

).AddItem(new MenuItemDefinition(
                    PageNames.App.Tenant.Test,
                    L("Test"),
                    url: "test.dashboard",
                    icon: "icon-notebook"
                    )

And it generates this code:

<a ui-sref="test.dashboard" ng-if="!menuItem.items.length" class="ng-scope" href="#/test/dashboard">
                <i class="icon-notebook"></i>
                <span class="title ng-binding">Test</span>
            </a>

I want to add id attribute to <a> tag, like this:

<a ui-sref="test.dashboard" ng-if="!menuItem.items.length" class="ng-scope" href="#/test/dashboard" id="testId">
                <i class="icon-notebook"></i>
                <span class="title ng-binding">Test</span>
            </a>

I have tried it with customData in MenuItemDefinition, but I didn't get any result. So, how to achieve that?

Here my implementation code:

In AppNavigationProvider.cs

).AddItem(new MenuItemDefinition(
                    PageNames.App.Tenant.Test,
                    L("Test"),
                    url: "test.dashboard",
                    icon: "icon-notebook",
                    customData: new System.Collections.Generic.Dictionary<string, string>() {{ "id", "testId" }}
                    )

When I looked at source page:

<a ui-sref="test.dashboard" ng-if="!menuItem.items.length" class="ng-scope" href="#/test/dashboard">
                <i class="icon-notebook"></i>
                <span class="title ng-binding">Test</span>
            </a>

There is no ID attribute.

Hi, any update on this issue?

For example I have this DTO:

public class SampleDTO
{
 [Display("SomeValue")]
  public string SomeValue { get; set; }
}

How to achieve localization in display attribute? I know display attribute has resource parameter, but how to connect it in ABP implementation?

<cite>hikalkan: </cite> Hi,

I have running Windows service with ABP and hosting Web APIs in a project. I will check it tomorrow and share related code parts.

Hi,

Do you have code that we could use? As you said in comment above, maybe link to github repository.

Thanks

@hikalkan Thanks for your suggestion

@easyest Cool, I will try your attribute file and thanks for your help :)

Question

I have created the issue here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/193">https://github.com/aspnetzero/aspnet-zero/issues/193</a>

Hi,

I have this unit test:

public class WindsorRegistration_Tests : AppTestBase
    {
        private readonly ITestOutputHelper output;

        public WindsorRegistration_Tests(ITestOutputHelper output)
        {
            this.output = output;
        }

        [Fact]
        public void Should_Not_Have_Any_Misconfigured_Components()
        {
            // From http://blog.usermaatre.co.uk/programming/2014/11/27/testing-dependency-registrations-with-castle-windsor/
            var container = LocalIocManager.IocContainer;
            var key = SubSystemConstants.DiagnosticsKey;
            var host = (IDiagnosticsHost)container.Kernel.GetSubSystem(key);
            var diagnostic = host.GetDiagnostic<IPotentiallyMisconfiguredComponentsDiagnostic>();
            var problems = diagnostic.Inspect();

            if (problems != null && problems.Any())
            {
                var message = new StringBuilder();
                message.AppendFormat("Misconfigured components ({0})\r\n", problems.Count());

                //Iterate over the problems, writing messages to the console
                foreach (IExposeDependencyInfo problem in problems)
                {
                    var inspector = new DependencyInspector(message);
                    problem.ObtainDependencyDetails(inspector);
                }

                output.WriteLine(message.ToString());
            }

            // No misconfigured components
            problems.Count().ShouldBe(0);
        }

    }

Then I get the following output message:

'Abp.Events.Bus.Handlers.Internals.ActionEventHandler`1' is waiting for the following dependencies:
- Service 'Action`1' which was not registered.

'Abp.Localization.Sources.Resource.ResourceFileLocalizationSource' is waiting for the following dependencies:
- Parameter 'name' which was not provided. Did you forget to set the dependency?
- Service 'System.Resources.ResourceManager' which was not registered.

'Abp.Localization.Sources.Xml.XmlLocalizationSource' is waiting for the following dependencies:
- Parameter 'name' which was not provided. Did you forget to set the dependency?
- Parameter 'directoryPath' which was not provided. Did you forget to set the dependency?

'Abp.Localization.MultiTenantLocalizationDictionary' is waiting for the following dependencies:
- Parameter 'sourceName' which was not provided. Did you forget to set the dependency?
- Service 'Abp.Localization.Dictionaries.ILocalizationDictionary' which was not registered.

'Abp.Runtime.Caching.Memory.AbpMemoryCache' is waiting for the following dependencies:
- Parameter 'name' which was not provided. Did you forget to set the dependency?

So, how to resolve these dependencies? I think this test should be included in aspnetzero.

Hi,

We also need to use antiforgery tokens. It would be great if aspnetzero has this feature in web API and angular. Any update on this issue?

Hi Hilal,

I want to debug aspnetboilerplate but symbolsource.org is internal server error. Any alternative server? Maybe we can use myget.

Showing 1 to 10 of 13 entries