Skip to content

Commit 5110a4f

Browse files
zuifengwuchoufusepilot
authored andcommitted
.env add option 'UI_TYPE' (#33)
* Update cep.js, add env "UI_TYPE" * add setting uiType * fix create-cep-extension-scripts version "1.0.0-beta.30"
1 parent 8f10b47 commit 5110a4f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/create-cep-extension-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-cep-extension-scripts",
3-
"version": "1.0.0-beta.29",
3+
"version": "1.0.0-beta.30",
44
"author": "Michael Delaney",
55
"description": "Configuration and scripts for Create CEP Extension.",
66
"repository": "fusepilot/create-cep-extension",

packages/create-cep-extension-scripts/scripts/cep.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function getSettings() {
2020
BUNDLE_ID: process.env.BUNDLE_ID || 'my.cep.extension',
2121
BUNDLE_VERSION: process.env.BUNDLE_VERSION || VERSION || '1.0.0',
2222
CEP_VERSION: process.env.CEP_VERSION || '',
23+
UI_TYPE: process.env.UI_TYPE || 'Panel',//Panel,ModalDialog,Modeless,default Panel.
2324
PANEL_WIDTH: process.env.PANEL_WIDTH || '500',
2425
PANEL_HEIGHT: process.env.PANEL_HEIGHT || '500',
2526
CEF_PARAMS: process.env.CEF_PARAMS || '',
@@ -152,6 +153,7 @@ function writeExtensionTemplates(env, { port } = {}) {
152153
BUNDLE_ID,
153154
BUNDLE_VERSION,
154155
HOSTS,
156+
UI_TYPE,
155157
PANEL_WIDTH,
156158
PANEL_HEIGHT,
157159
ICON_NORMAL,
@@ -195,6 +197,7 @@ function writeExtensionTemplates(env, { port } = {}) {
195197
bundleId: BUNDLE_ID,
196198
version: VERSION,
197199
hosts,
200+
uiType: UI_TYPE,
198201
width: PANEL_WIDTH,
199202
height: PANEL_HEIGHT,
200203
bundleVersion: BUNDLE_VERSION,

packages/create-cep-extension-scripts/scripts/templates/manifest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = function({
55
hosts,
66
bundleVersion = '1.0.0',
77
cepVersion = '6.0',
8+
uiType = 'Panel',
89
width = '500',
910
height = '500',
1011
cefParams = [
@@ -50,7 +51,7 @@ module.exports = function({
5051
<AutoVisible>true</AutoVisible>
5152
</Lifecycle>
5253
<UI>
53-
<Type>Panel</Type>
54+
<Type>${uiType}</Type>
5455
<Menu>${bundleName}</Menu>
5556
<Geometry>
5657
<Size>

0 commit comments

Comments
 (0)