├── .gitignore ├── .npmrc ├── .nvmrc ├── README.md ├── index.html ├── package.json ├── render ├── assets │ ├── link_normal_icon.png │ ├── link_normal_selected_icon.png │ ├── loading_static.png │ ├── select_left.png │ ├── select_right.png │ ├── tab_group_left.png │ └── tab_group_right.png ├── main.ts ├── tabs │ ├── index.ts │ └── style.css └── utils │ ├── event-manager.ts │ └── gnb.desktop.ts ├── src ├── const.ts ├── container │ ├── container.ts │ └── index.ts ├── helpers │ ├── event-bus.ts │ ├── preload.js │ └── web.ts ├── main.ts ├── pages │ └── index.ts ├── service │ └── index.ts └── window │ └── index.ts ├── tsconfig.json ├── vite.config.ts └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/.npmrc -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 18.16.0 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # electron-tab-containers 2 | 3 | 使用 `BrowserView` 实现的多标签页 Demo 4 | 5 | 具体见文章: 6 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/package.json -------------------------------------------------------------------------------- /render/assets/link_normal_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/assets/link_normal_icon.png -------------------------------------------------------------------------------- /render/assets/link_normal_selected_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/assets/link_normal_selected_icon.png -------------------------------------------------------------------------------- /render/assets/loading_static.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/assets/loading_static.png -------------------------------------------------------------------------------- /render/assets/select_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/assets/select_left.png -------------------------------------------------------------------------------- /render/assets/select_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/assets/select_right.png -------------------------------------------------------------------------------- /render/assets/tab_group_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/assets/tab_group_left.png -------------------------------------------------------------------------------- /render/assets/tab_group_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/assets/tab_group_right.png -------------------------------------------------------------------------------- /render/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/main.ts -------------------------------------------------------------------------------- /render/tabs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/tabs/index.ts -------------------------------------------------------------------------------- /render/tabs/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/tabs/style.css -------------------------------------------------------------------------------- /render/utils/event-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/utils/event-manager.ts -------------------------------------------------------------------------------- /render/utils/gnb.desktop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/render/utils/gnb.desktop.ts -------------------------------------------------------------------------------- /src/const.ts: -------------------------------------------------------------------------------- 1 | export const eventKey: string = 'GAODING_NATIVE_BRIDGE_EVENT_KEY' 2 | -------------------------------------------------------------------------------- /src/container/container.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/container/container.ts -------------------------------------------------------------------------------- /src/container/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/container/index.ts -------------------------------------------------------------------------------- /src/helpers/event-bus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/helpers/event-bus.ts -------------------------------------------------------------------------------- /src/helpers/preload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/helpers/preload.js -------------------------------------------------------------------------------- /src/helpers/web.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/helpers/web.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/pages/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/pages/index.ts -------------------------------------------------------------------------------- /src/service/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/service/index.ts -------------------------------------------------------------------------------- /src/window/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/src/window/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/vite.config.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanxiao-mmc/electron-tab-containers/HEAD/yarn.lock --------------------------------------------------------------------------------