All Projects → ambit-tsai → m-app

ambit-tsai / m-app

Licence: Apache-2.0 license
📦 微应用容器组件,对 DOM、CSS、JS 进行硬隔离,达到真正的技术栈无关,并且运行时集成,微应用可独立开发、部署、升级。使用如 iframe 般简便,却超脱 iframe 的局限,你值得一试!

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to m-app

event-bus
Typesafe cross-platform pubsub event bus ensuring reliable communication between fragments and micro frontends.
Stars: ✭ 15 (-81.48%)
Mutual labels:  micro-frontends
ListEx
List control with innate tool-tips, color, sorting, embedded hyperlinks, sub-item custom data, column hiding and lot more abilities.
Stars: ✭ 17 (-79.01%)
Mutual labels:  mfc
MFC-Drawing-Program
MFC 绘图程序及 MFC 程序设计详解
Stars: ✭ 43 (-46.91%)
Mutual labels:  mfc
Micro Frontends
extending the microservice paradigms to web development
Stars: ✭ 3,862 (+4667.9%)
Mutual labels:  micro-frontends
fhash
fHash - an open source files hash calculator for Windows and macOS
Stars: ✭ 222 (+174.07%)
Mutual labels:  mfc
FFmpegPlayer
Simple FFmpeg video player
Stars: ✭ 72 (-11.11%)
Mutual labels:  mfc
react-micro-frontend-example
One approach for a micro frontend in React.
Stars: ✭ 51 (-37.04%)
Mutual labels:  micro-frontends
micro-lc
An open source micro-frontend orchestrator
Stars: ✭ 199 (+145.68%)
Mutual labels:  micro-frontends
GraphEditor
图形编辑器(MFC VC6.0)
Stars: ✭ 20 (-75.31%)
Mutual labels:  mfc
cgridlistctrlex
MFC Grid control using a custom draw CListCtrl with subitem editing and formatting
Stars: ✭ 80 (-1.23%)
Mutual labels:  mfc
Qiankun
📦 🚀 Blazing fast, simple and complete solution for micro frontends.
Stars: ✭ 11,497 (+14093.83%)
Mutual labels:  micro-frontends
PortableTelemedicineMonitoringSystem
Portable Telemedicine Monitoring System(便携式远程医疗监控系统): The windows/winCE ECG, Blood Pressure, Pulse Oximeter displays, TCP connection between Windows and Win CE
Stars: ✭ 31 (-61.73%)
Mutual labels:  mfc
MFC
😳 mfc课程设计,学生成绩管理系统
Stars: ✭ 64 (-20.99%)
Mutual labels:  mfc
wasedatime-web
An unofficial web app for syllabus searching, classroom finding, and bus schedule checking at Waseda University.
Stars: ✭ 30 (-62.96%)
Mutual labels:  micro-frontends
CherryLib
Win32/MFC UI Control, Live Update, Utility Library
Stars: ✭ 19 (-76.54%)
Mutual labels:  mfc
qiankun-simple-main-app-web
react微前端聚合系统(qiankun.js)
Stars: ✭ 19 (-76.54%)
Mutual labels:  micro-frontends
NMRI
2D Fourier Transform of Nuclear Magnetic Resonance Imaging raw data
Stars: ✭ 13 (-83.95%)
Mutual labels:  mfc
application-modernization-javaee-quarkus
Application Modernization Sample - From Java EE (2010) to Cloud-Native (2021)
Stars: ✭ 99 (+22.22%)
Mutual labels:  micro-frontends
Winmerge
WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
Stars: ✭ 2,358 (+2811.11%)
Mutual labels:  mfc
IsingMonteCarlo
A program implementing Metropolis Monte Carlo for the 2D square-lattice Ising model and the spin block renormalization
Stars: ✭ 20 (-75.31%)
Mutual labels:  mfc

<m-app>

可能是你见过最简单的微前端解决方案,一行代码即可实现应用的接入 😎

<m-app entry="http://example.com/path/to/entry.html"></m-app>

体验一下,并且可以在线接入你的应用 🎉

  1. Gitee Pages
  2. GitHub Pages

📃 简介

<m-app> 将微应用的 DOM 树置于 Shadow DOM 中维护,从而实现 DOM 树独立以及 CSS 隔离,而 JavaScript 代码则置于同源 iframe 中运行,由 iframe 提供独立的运行环境。

出于降低改造成本的考虑,微应用的 Shadow DOM 与正常 DOM 的结构保持一致。

微应用的 Shadow DOM 结构:

           ├─<iframe hidden>  
           │                 ├─<meta>
ShadowRoot─│        ├─<head>─├─<title>
           │        │        ├─...
           ├─<html>─│
                    │        ├─<h1>
                    ├─<body>─├─<div>
                             ├─...

正常 DOM 结构:

                             ├─<meta>
                    ├─<head>─├─<title>
                    │        ├─...
   Document──<html>─│
                    │        ├─<h1>
                    ├─<body>─├─<div>
                             ├─...

特性

  1. 对 DOM、CSS、JS 进行硬隔离,实现真正的技术栈无关
  2. 微应用与基座应用的 UI 可以完美融合,无 <iframe> 的窗口隔离问题
  3. 运行时集成,微应用可独立开发、部署、升级
  4. 支持多应用同时接入
  5. 支持 <script>type="module"deferasync 等特性
  6. HTML Entry,符合一般应用的开发方式,无需改造

⬇️ 安装

npm i -S @ambit_tsai/m-app

🔨 使用

import '@ambit_tsai/m-app';

或者

<script src="path/to/m-app.js"></script>

更多信息请查看 Wiki

🎉 招聘

稿定科技招人啦 👇联系我可内推,或是推荐给需要的朋友

  1. 地点:厦门、深圳、杭州
  2. 职位:前端、后端、SRE工程师、产品、测试、UI设计、运营、市场 ...
  3. 福利:双休、弹性上下班、六险一金、餐补、MacBook、人体工学椅、班车、零食供应 ...

🔓联系我解锁更多信息)

☎️ 联系

  1. 微信: cai_fanwei
  2. QQ: 854521460
  3. QQ群: 663286147
  4. 邮箱: [email protected]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].