Skip to content

Commit

Permalink
stash iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed May 9, 2022
1 parent f7e1160 commit 9fb9883
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/app/electron-main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function createWindow(): BrowserWindow {
contextIsolation: false, // false if you want to run e2e test with Spectron
},
});
// main
if (['serve'].includes(processEnv)) {
require('electron-reload')(__dirname, {
electron: require(path.join(__dirname, '../node_modules/electron')),
Expand Down
4 changes: 2 additions & 2 deletions src/core/market/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"logo": "icon-apps",
"main_debug": "http://localhost:8080",
"moduleID": "default",
"moduleName": "插件广场",
"moduleName": "拓展广场",
"moduleType": "app",
"features": {
"export": {
Expand All @@ -21,7 +21,7 @@
"extension": "json"
},
"configuration": {
"title": "插件广场配置",
"title": "拓展广场配置",
"properties": {
"core.market.url": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion src/core/market/browser/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import App from './App.vue';
import router from './router.js';
import 'windi.css';
import { createPinia } from 'pinia';

window.eo=window.parent.eo;
createApp(App).use(router).use(Antd).use(createPinia()).mount('#app');
1 change: 1 addition & 0 deletions src/workbench/browser/src/app/pages/pages.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<eo-navbar></eo-navbar>
<div class="home_container f_row">
<eo-sidebar></eo-sidebar>
<iframe src="http://localhost:8080" style="width: 100vw;"></iframe>
<div class="home fg1">
<router-outlet></router-outlet>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class SidebarComponent implements OnInit, OnDestroy {
];
if (!this.electron.isElectron) {
defaultModule.push({
moduleName: '插件广场',
moduleName: '拓展广场',
moduleID: '@eo-core-extension',
logo: 'icon-apps',
activeRoute: 'home/preview',
Expand Down

0 comments on commit 9fb9883

Please sign in to comment.