Giter VIP home page Giter VIP logo

blazm.components's Introduction

  • 👋 Hi, I’m jimmy Engström
  • 👀 I’m interested in Blazor and .NET development in general
  • 🌱 I’m currently learning all new things I can get my hands on, but mostly in the .NET area.
  • 💞️ I’m looking to collaborate on any thing Blazor or fun things in general
  • 📫 I am on Twitter @EngstromJimmy and also on mastodon @[email protected]

blazm.components's People

Contributors

egil avatar engstromjimmy avatar jimmyengstrom avatar johanskoldekrans avatar rextremendae avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blazm.components's Issues

Case sensitivity of folder names not maintained.

While deploying my application onto a Linux platform and stumbled upon a couple of errors caused by Blazm: should be an easy fix.

GET [domain]/_content/Blazm.Components/css/styles.min.css net::ERR_ABORTED 404 (Not Found)
Renamed Blazm.Components/css/Styles.min.css to Blazm.Components/css/styles.min.css to resolve this issue.

GET [domain]/_content/Blazm.Components/scripts/ResizeTable.js net::ERR_ABORTED 404 (Not Found)
_Renamed /_content/Blazm.Components/Scripts to ]/content/Blazm.Components/scripts to resolve this issue.

Sort by CurrentCulture

When sorting the current culture is not used. Make sure that sorting handles characters that have a special sort order for the selected culture.

Please add a LICENSE

Please add a LICENSE file (e.g. MIT) to allow using it. Without it you're not really granting others permission to use it.
Awesome project, and book (Web Development with Blazor), BTW!

Problems with loading data

After the implementation of faster itemsprovider grids using virtualization doesn't work as expected.

Columns without Field are not all appearing

Steps to reproduce

Create a new Blazor Server project and add the following code to any page:

<BlazmGrid Data="@Items">
    <GridColumns>
        <GridColumn Title="First">
            <Template>
                <span>1st static content</span>
            </Template>
        </GridColumn>
        <GridColumn Title="Second">
            <Template>
                <span>2nd static content</span>
            </Template>
        </GridColumn>
        <GridColumn Field="Key" />
        <GridColumn Field="Value" />
    </GridColumns>
</BlazmGrid>

@code {
    public KeyValuePair<int, string>[] Items = new[]
    {
        new KeyValuePair<int, string>(1, "#1"),
        new KeyValuePair<int, string>(2, "#2"),
        new KeyValuePair<int, string>(3, "#3")
    };
}

Actual result

Running the above code will yield the following result:

image

Expected result

I would expect to get the second static content string printed out in the column titled 'Second', and all the following columns aligned correctly to each title.

Code

The problem seems to be the identification of the columns in BlazmGrid.razor.cs when there is no Field or Format specified:

image

Problem with dotnet publish in a linux container

I'm having an issue when using dotnet publish for the project that references Blazm.Components. It seems to fail because of the filename case sensitivity on linux. Publish is looking for the Styles.css and Styles.min.css (with uppercase first letter), and they are in the filesystem with all lowercase names.

=> ERROR [build 8/8] RUN dotnet publish "DbServiceManager.csproj" -c Release -o /app/publish                                         75.5s
------
 > [build 8/8] RUN dotnet publish "DbServiceManager.csproj" -c Release -o /app/publish:
#14 0.668 Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
#14 0.668 Copyright (C) Microsoft Corporation. All rights reserved.
#14 0.668
#14 1.272   Determining projects to restore...
#14 1.685   All projects are up-to-date for restore.
#14 2.674   DbServiceManager -> /src/bin/Release/net6.0/DbServiceManager.dll
#14 2.678   DbServiceManager (Blazor output) -> /src/bin/Release/net6.0/wwwroot
#14 34.78   Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
#14 34.86   Compressing Blazor WebAssembly publish artifacts. This may take a while...
#14 75.44 /usr/share/dotnet/sdk/6.0.101/Sdks/Microsoft.NET.Sdk.Razor/targets/Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(616,5): error MSB3030: Could not copy the file "/root/.nuget/packages/blazm.components/1.0.5/staticwebassets/css/Styles.css" because it was not found. [/src/DbServiceManager.csproj]
#14 75.44 /usr/share/dotnet/sdk/6.0.101/Sdks/Microsoft.NET.Sdk.Razor/targets/Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(616,5): error MSB3030: Could not copy the file "/root/.nuget/packages/blazm.components/1.0.5/staticwebassets/css/Styles.min.css" because it was not found. [/src/DbServiceManager.csproj]
------
executor failed running [/bin/sh -c dotnet publish "DbServiceManager.csproj" -c Release -o /app/publish]: exit code: 1

support Dictionary<string, object>

hi, jimmy.

Are there any plans to officially support types like "Dictionary<string, object>" ?

I implemented it as below as needed.

//GridDataRow.razor
// ...
            if (Row.GetType() == typeof(Dictionary<string, object>))
            {
                var KeyValue = Row as Dictionary<string, object>;
                <td class="@column.Class  @ContainerGrid.GetSignClass(column, KeyValue[column.Field].ToString()) @column.DataClass">@KeyValue[column.Field]</td>
            }
// ...

I hope you can officially support.

thx.


I'm sorry.

I found a way to use it "dynamic".

solved it.

RowClass with lambda expression

To be able to set a css class on an entire row. For example if an item has been cancelled and you want that to be clearly visible. Can be a strike-through or colored red etc.

Creating Bond before connecting

Hello,

I am working on trying to get a wearable barcode scanner to interact with a blazor application.

The barcode scanner supports BLE, however it requires 'bonding' before if would lead you read certain characteristics.

So even though Bluetooth web things I connected to the device, the device actually doesn't let me read/recieve notification for the key Characteristics.

Any idea how this could be sorted and if there is any way to control the bonding behavior

(NB: I plan to get this to work only for Windows and Android devices).

I have not been able to figure out how to do this bonding before tr

Testproject

To be able to test changes and view them before making a PR.

Unpairing/Forgetting Device

Hi Jimmy,

First of all thankyou for an excellent library.

I have been trying to connect a BLE barcode scanner with a Blazor Server app, To succesfully connect to the scanner, it requires you to completely unpair and then connect again, I couldnt understand how to unpair/forget a device?

Nouman

Filtering problem

If I am on the second page and then filter the view I won't get any results since they are on the first page.

Solution: When filtering turn of paging

Accessing list of items in a column?

I am using the grid to display a object (person) and the field of a column would be a list of addresses for example, how can I write each of these address for the person?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.