Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
flowable-engine-fontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王万里
flowable-engine-fontend
Commits
b2958eff
Commit
b2958eff
authored
Dec 21, 2020
by
王万里
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改配置文件
parent
887629bb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
16 deletions
+59
-16
config.js
adminfrontend/scripts/config.js
+4
-2
app-cfg.js
idmfrontend/scripts/app-cfg.js
+25
-5
login.html
idmfrontend/views/login.html
+6
-0
app-cfg.js
modelerfrontend/scripts/app-cfg.js
+10
-2
app-cfg.js
taskfrontend/scripts/app-cfg.js
+14
-7
No files found.
adminfrontend/scripts/config.js
View file @
b2958eff
...
@@ -22,8 +22,10 @@ var flowableAdminPathName = window.location.pathname.replace(/^(\/[^\/]*)(\/.*)?
...
@@ -22,8 +22,10 @@ var flowableAdminPathName = window.location.pathname.replace(/^(\/[^\/]*)(\/.*)?
var
FlowableAdmin
=
{};
var
FlowableAdmin
=
{};
FlowableAdmin
.
Config
=
{};
FlowableAdmin
.
Config
=
{};
FlowableAdmin
.
Config
.
contextRoot
=
flowableAdminPathName
;
// FlowableAdmin.Config.contextRoot = flowableAdminPathName;
FlowableAdmin
.
Config
.
adminContextRoot
=
flowableAdminPathName
+
"/admin-app/"
;
FlowableAdmin
.
Config
.
contextRoot
=
"/adminweb"
;
// FlowableAdmin.Config.adminContextRoot = flowableAdminPathName + "/admin-app/";
FlowableAdmin
.
Config
.
adminContextRoot
=
"/adminweb"
+
"/admin-app/"
;
// General settings
// General settings
FlowableAdmin
.
Config
.
alert
=
{};
FlowableAdmin
.
Config
.
alert
=
{};
...
...
idmfrontend/scripts/app-cfg.js
View file @
b2958eff
...
@@ -18,16 +18,36 @@
...
@@ -18,16 +18,36 @@
var
FLOWABLE
=
FLOWABLE
||
{};
var
FLOWABLE
=
FLOWABLE
||
{};
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
idm
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
idm
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
console
.
log
(
pathname
)
// 源码
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
// 'contextRoot' : pathname,
// 'contextIdmRestRoot' : pathname + "/idm-app",
// 'webContextRoot' : pathname,
// 'datesLocalization' : false
// };
//
// DEV ENV OVERRIDES
//
// 第一次修改
FLOWABLE
.
CONFIG
=
{
FLOWABLE
.
CONFIG
=
{
'onPremise'
:
true
,
'onPremise'
:
true
,
'contextRoot'
:
pathname
,
'contextRoot'
:
"/idmweb"
,
'contextIdmRestRoot'
:
pathname
+
"/idm-app"
,
'contextIdmRestRoot'
:
"/idmweb"
+
"/idm-app"
,
'webContextRoot'
:
pathname
,
'webContextRoot'
:
pathname
,
'datesLocalization'
:
false
'datesLocalization'
:
false
};
};
//
// DEV ENV OVERRIDES
// 第二次修改
//
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
// 'contextRoot' : pathname,
// 'contextIdmRestRoot' : "/idmweb" + "/idm-app",
// 'webContextRoot' : pathname,
// 'datesLocalization' : false
// };
idmfrontend/views/login.html
View file @
b2958eff
<div
class=
"login-container"
>
<div
class=
"login-container"
>
<div
class=
"text-center"
style=
"padding:50px 0"
>
<div
class=
"text-center"
style=
"padding:50px 0"
>
<div
class=
"logo"
>
<img
src=
"images/logo-login.png"
srcset=
"images/logo-login.png 1x, images/logo-login@2x.png 2x"
>
</div>
<div
class=
"logo"
>
<div
class=
"logo"
>
<img
src=
"images/logo-login.png"
srcset=
"images/logo-login.png 1x, images/logo-login@2x.png 2x"
>
<img
src=
"images/logo-login.png"
srcset=
"images/logo-login.png 1x, images/logo-login@2x.png 2x"
>
</div>
</div>
...
@@ -14,6 +17,9 @@
...
@@ -14,6 +17,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<input
type=
"password"
class=
"form-control"
id=
"password"
placeholder=
"{{'LOGIN.PASSWORD-PLACEHOLDER' | translate}}"
ng-model=
"password"
>
<input
type=
"password"
class=
"form-control"
id=
"password"
placeholder=
"{{'LOGIN.PASSWORD-PLACEHOLDER' | translate}}"
ng-model=
"password"
>
</div>
</div>
<div
class=
"form-group"
>
<input
type=
"password"
class=
"form-control"
id=
"password"
placeholder=
"{{'LOGIN.PASSWORD-PLACEHOLDER' | translate}}"
ng-model=
"password"
>
</div>
</div>
</div>
<button
type=
"submit"
class=
"login-button"
ng-click=
"login()"
ng-disabled=
"model.loading"
>
<button
type=
"submit"
class=
"login-button"
ng-click=
"login()"
ng-disabled=
"model.loading"
>
<i
class=
"glyphicon glyphicon-chevron-right"
></i>
<i
class=
"glyphicon glyphicon-chevron-right"
></i>
...
...
modelerfrontend/scripts/app-cfg.js
View file @
b2958eff
...
@@ -19,10 +19,18 @@ var FLOWABLE = FLOWABLE || {};
...
@@ -19,10 +19,18 @@ var FLOWABLE = FLOWABLE || {};
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
modeler
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
modeler
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
// 'contextRoot' : pathname,
// 'contextModelerRestRoot' : pathname + '/modeler-app',
// 'webContextRoot' : pathname,
// 'datesLocalization' : false
// };
FLOWABLE
.
CONFIG
=
{
FLOWABLE
.
CONFIG
=
{
'onPremise'
:
true
,
'onPremise'
:
true
,
'contextRoot'
:
pathname
,
'contextRoot'
:
"/modelerweb"
,
'contextModelerRestRoot'
:
pathname
+
'/modeler-app'
,
'contextModelerRestRoot'
:
"/modelerweb"
+
'/modeler-app'
,
'webContextRoot'
:
pathname
,
'webContextRoot'
:
pathname
,
'datesLocalization'
:
false
'datesLocalization'
:
false
};
};
taskfrontend/scripts/app-cfg.js
View file @
b2958eff
...
@@ -20,15 +20,22 @@ var FLOWABLE = FLOWABLE || {};
...
@@ -20,15 +20,22 @@ var FLOWABLE = FLOWABLE || {};
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
workflow
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
workflow
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
var
landingPathName
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
var
landingPathName
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
FLOWABLE
.
CONFIG
=
{
//
FLOWABLE.CONFIG = {
'onPremise'
:
true
,
//
'onPremise' : true,
'contextRoot'
:
pathname
,
//
'contextRoot' : pathname,
'webContextRoot'
:
pathname
,
//
'webContextRoot' : pathname,
'landingContextRoot'
:
landingPathName
,
//
'landingContextRoot' : landingPathName,
'datesLocalization'
:
false
//
'datesLocalization' : false
};
//
};
//
//
// DEV ENV OVERRIDES
// DEV ENV OVERRIDES
//
//
FLOWABLE
.
CONFIG
=
{
'onPremise'
:
true
,
'contextRoot'
:
"/taskweb"
,
'contextModelerRestRoot'
:
"/taskweb"
+
'/modeler-app'
,
'webContextRoot'
:
pathname
,
'datesLocalization'
:
false
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment