Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3c90771b
authored
Nov 17, 2023
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改drawio
1 parent
eac7419d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
27 deletions
public/drawio/index.html
public/drawio/js/diagramly/App.js
public/drawio/js/diagramly/sidebar/Sidebar-ArchiMate3.js
public/drawio/js/diagramly/sidebar/Sidebar.js
public/drawio/index.html
View file @
3c90771
...
...
@@ -54,9 +54,9 @@
if
(
!
result
.
hasOwnProperty
(
'dev'
))
{
result
[
'dev'
]
=
1
}
if
(
!
result
.
hasOwnProperty
(
'offline'
))
{
//跳过选择存储方式,不用选什么google drive,github之类的
result
[
'offline'
]
=
1
}
//
if (!result.hasOwnProperty('offline')) {//跳过选择存储方式,不用选什么google drive,github之类的
//
result['offline'] = 1
//
}
return
result
;
})();
...
...
public/drawio/js/diagramly/App.js
View file @
3c90771
...
...
@@ -714,7 +714,7 @@ App.main = function(callback, createUi)
{
var
content
=
mxUtils
.
getTextContent
(
scripts
[
0
]);
if
(
CryptoJS
.
MD5
(
content
).
toString
()
!=
'
15597006cd7196ecb7806a8ae4823027
'
)
//二次开发----修改校验值,不然会有弹框
if
(
CryptoJS
.
MD5
(
content
).
toString
()
!=
'
ecf5dfb65d485b11b1077913583d4219
'
)
//二次开发----修改校验值,不然会有弹框
{
console
.
warn
(
'Change bootstrap script MD5 in the previous line:'
,
CryptoJS
.
MD5
(
content
).
toString
());
console
.
warn
(
CryptoJS
.
MD5
(
content
).
toString
());
...
...
@@ -3730,14 +3730,14 @@ App.prototype.showSplash = function(force)
title
:
'练习.drawio'
,
data
:
`
<mxfile host="localhost" modified="2023-11-16T08:39:24.618Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" etag="LSbDr8a7waD5ITKodEjh" version="@DRAWIO-VERSION@" type="device">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="1177" dy="690" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0"
/>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0"
/>
</root>
</mxGraphModel>
</diagram>
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="1177" dy="690" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"
/>
<mxCell id="1" parent="0"
/>
</root>
</mxGraphModel>
</diagram>
</mxfile>
`
}
...
...
public/drawio/js/diagramly/sidebar/Sidebar-ArchiMate3.js
View file @
3c90771
...
...
@@ -75,7 +75,9 @@
'Data Object'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'data object'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Application'
,
'Archimate 3.0 / Application'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
// this.addPalette('archimate3Application', 'Archimate 3.0 / Application', false, mxUtils.bind(this, function(content)
// 二次开发 20231117 wangwansu ArchiMate 3.0英文改中文
this
.
addPalette
(
'archimate3Application'
,
'架构 / 应用'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
...
...
@@ -146,7 +148,8 @@
w
*
150
,
h
*
90
,
''
,
'Representation'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'representation'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Business'
,
'Archimate 3.0 / Business'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
// this.addPalette('archimate3Business', 'archimate 3.0 / Business', true, mxUtils.bind(this, function(content)
this
.
addPalette
(
'archimate3Business'
,
'架构 / 业务'
,
true
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
...
...
@@ -175,7 +178,8 @@
w
*
150
,
h
*
105
,
''
,
'Group'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'actor'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Composite'
,
'Archimate 3.0 / Composite'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
// this.addPalette('archimate3Composite', 'Archimate 3.0 / Composite', false, mxUtils.bind(this, function(content)
this
.
addPalette
(
'archimate3Composite'
,
'架构 / 组合'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
...
...
@@ -213,8 +217,9 @@
w
*
150
,
h
*
60
,
''
,
'Gap'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'gap'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Implementation and Migration'
,
'Archimate 3.0 / Implementation and Migration'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
// this.addPalette('archimate3Implementation and Migration', 'Archimate 3.0 / Implementation and Migration', false, mxUtils.bind(this, function(content)
this
.
addPalette
(
'archimate3Implementation and Migration'
,
'架构 / 实施和迁移'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
content
.
appendChild
(
fns
[
i
](
content
));
...
...
@@ -262,8 +267,9 @@
w
*
100
,
h
*
50
,
''
,
'Constraint'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'constraint'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Motivation'
,
'Archimate 3.0 / Motivation'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
// this.addPalette('archimate3Motivation', 'Archimate 3.0 / Motivation', false, mxUtils.bind(this, function(content)
this
.
addPalette
(
'archimate3Motivation'
,
'架构 / 动机'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
content
.
appendChild
(
fns
[
i
](
content
));
...
...
@@ -297,7 +303,8 @@
w
*
90
,
h
*
40
,
''
,
'Distribution Network'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'distribution'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Physical'
,
'Archimate 3.0 / Physical'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
// this.addPalette('archimate3Physical', 'Archimate 3.0 / Physical', false, mxUtils.bind(this, function(content)
this
.
addPalette
(
'archimate3Physical'
,
'架构 / 物理'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
...
...
@@ -362,8 +369,9 @@
10
,
10
,
''
,
'Or Junction'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'junction'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Relationships'
,
'Archimate 3.0 / Relationships'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
// this.addPalette('archimate3Relationships', 'Archimate 3.0 / Relationships', false, mxUtils.bind(this, function(content)
this
.
addPalette
(
'archimate3Relationships'
,
'架构 / 关系'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
content
.
appendChild
(
fns
[
i
](
content
));
...
...
@@ -393,8 +401,9 @@
w
*
150
,
h
*
75
,
''
,
'Course of Action'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'course action'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Strategy'
,
'Archimate 3.0 / Strategy'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
// this.addPalette('archimate3Strategy', 'Archimate 3.0 / Strategy', false, mxUtils.bind(this, function(content)
this
.
addPalette
(
'archimate3Strategy'
,
'架构 / 战略'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
content
.
appendChild
(
fns
[
i
](
content
));
...
...
@@ -470,8 +479,9 @@
w
*
100
,
h
*
30
,
''
,
'Path'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'path'
).
join
(
' '
))
];
this
.
addPalette
(
'archimate3Technology'
,
'Archimate 3.0 / Technology'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
// this.addPalette('archimate3Technology', 'Archimate 3.0 / Technology', false, mxUtils.bind(this, function(content)
this
.
addPalette
(
'archimate3Technology'
,
'架构 / 技术'
,
false
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
content
.
appendChild
(
fns
[
i
](
content
));
...
...
public/drawio/js/diagramly/sidebar/Sidebar.js
View file @
3c90771
...
...
@@ -505,7 +505,9 @@
{
title
:
'Veeam'
,
id
:
'veeam2'
,
image
:
IMAGE_PATH
+
'/sidebar-veeam.png'
},
{
title
:
'VMware'
,
id
:
'vvd'
,
image
:
IMAGE_PATH
+
'/sidebar-vvd.png'
}]},
{
title
:
mxResources
.
get
(
'business'
),
entries
:
[{
title
:
'ArchiMate 3.0'
,
id
:
'archimate3'
,
image
:
IMAGE_PATH
+
'/sidebar-archimate3.png'
},
// entries: [{title: 'ArchiMate 3.0', id: 'archimate3', image: IMAGE_PATH + '/sidebar-archimate3.png'},
// 二次开发 20231117 wangwansu ArchiMate 3.0英文改中文
entries
:
[{
title
:
'架构'
,
id
:
'archimate3'
,
image
:
IMAGE_PATH
+
'/sidebar-archimate3.png'
},
{
title
:
mxResources
.
get
(
'archiMate21'
),
id
:
'archimate'
,
image
:
IMAGE_PATH
+
'/sidebar-archimate.png'
},
{
title
:
mxResources
.
get
(
'bpmn'
)
+
' 2.0'
,
id
:
'bpmn2'
,
image
:
IMAGE_PATH
+
'/sidebar-bpmn.png'
},
{
title
:
mxResources
.
get
(
'sysml'
),
id
:
'sysml'
,
image
:
IMAGE_PATH
+
'/sidebar-sysml.png'
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment