Giter Site home page Giter Site logo

stardustdl / modulight Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 2.7 MB

Modulight is a light modular framework aimed to be low intrusive based on dependency injection for .NET, ASP.NET, Blazor, and command-line.

Home Page: https://stardustdl.github.io/modulight/

License: Mozilla Public License 2.0

PowerShell 0.03% C# 91.14% HTML 6.91% JavaScript 1.91% CSS 0.01%
modular dotnet blazor razor-components blazor-webassembly blazor-server lazy-loading modular-framework graphql command-line

modulight's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ“— Iโ€™m currently learning Computer Science & Technology.
  • โœจ Recently I'm working on the reseaches about software community ecology. AexPy
  • ๐ŸŒฑ I like C# & Rust & Python, and am interested in functional programming.

modulight's People

Contributors

stardustdl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

modulight's Issues

Add more logs in codes.

To trace execution flow and make debugging easily.

  • Core
  • Client.RazorComponent
  • Server.AspNet
  • Server.GraphQL

Add module-manager module.

  • Define module information schema
  • Support web API, command-line(modulight module), Blazor UI(/modulight/modules/)
  • View list of modules
  • View module information (manifest)

Add checker module.

  • Add strategy for module multi-registering.
    • Check module existence before adding
  • Add checking service for Modules.RazorComponents.Core
    • Check when initializing: RootPath, lazy load (for debug mode).
    • Provide checking service.

Add core-modules in UseXXXModules methods.

Now the core-modules are dependencies of other modules. But if there is no user modules, the core-modules will not be added, and then the related services such as module collections will not be added.
This behavior may make the app crashed in this special environment.

Update documents.

  • Add guide for blazer-ui and razor-component usage
  • Update code samples for new version

Redesign the modular framework.

  • Easy to add module, declarative design.
    • Add module by type
    • Module dependent
    • Unified configuration
    • Context
  • Lifetime
    • Initialing
    • Cleanup
  • No need to have a service

Add methods to custom manifest.

  • Add IModuleManifestBuilder to build a manifest
    • Provide a default implement with attribute auto loading
    • Add to builder transient services.
  • Add a method to Startup: ConfigureManifest(builder)
  • Update building implementation to use IModuleManifestBuilder.
    • wont Create a service scope for each module building.

Add ModuleDatabaseAttribute.

  • Add new project Modulight.Modules.Data
  • Add ModuleDbContextAttribute(typeof(DbContext), ispooled).
  • Add plugin for resolve the attributes.
  • Add DbModule base class to initialize db auto.
  • Update module implementation.

Redesign RazorComponents.

Usage:

  • Module/ModuleStartup: define razor-manifest.
  • Plugin: extract manifest, add razor-host.
  • Host: load resources.

Todos:

  • Add IRazorComponentModuleStartup
  • Move UIResource & GlobalComponent to startup stage.
  • Add RazorComponent plugin & UseRazorComponents.
    • Register resources in the plugin

Remove Bootstrap dependency for BlazorUI

Bootstrap css may conflict with AntDesign css.

Now uses 3 css in bootstrap:

.text-center {
    text-align: center!important;
}

.p-0 {
    padding: 0!important;
}

.p-1 {
    padding: .25rem!important;
}

@media (min-width: 1400px)
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1320px;
}
@media (min-width: 1200px)
.container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1140px;
}
@media (min-width: 992px)
.container, .container-lg, .container-md, .container-sm {
    max-width: 960px;
}
@media (min-width: 768px)
.container, .container-md, .container-sm {
    max-width: 720px;
}
@media (min-width: 576px)
.container, .container-sm {
    max-width: 540px;
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    width: 100%;
    padding-right: var(--bs-gutter-x,.75rem);
    padding-left: var(--bs-gutter-x,.75rem);
    margin-right: auto;
    margin-left: auto;
}

Menu text is hidden when folding menu.

In UI.Blazor project, the menu fold when window size changed, and the menu text is hidden unexpected. 2 possible approaches:

  • Keep the menu text (may lead to wrong position for icon)
  • Add tooltip for menu

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.