Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-pack
Project
Project
Details
Activity
Releases
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
劳工
zeroing-pack
Commits
9587a0d8
Commit
9587a0d8
authored
Dec 20, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑器版本更新
parent
9c04420d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
index.js
src/index.js
+0
-39
No files found.
src/index.js
View file @
9587a0d8
...
...
@@ -82,36 +82,6 @@ function deleteUnusedData(processes) {
}
}
function
findDepPids
(
list
,
process
)
{
if
(
process
.
sub
)
{
for
(
let
key
in
process
.
sub
)
{
let
p
=
process
.
sub
[
key
];
if
(
!
list
.
includes
(
p
.
meta
))
{
list
.
push
(
p
.
meta
);
}
}
}
}
function
findDepPidsBat
(
list
,
processes
)
{
for
(
let
process
of
processes
)
{
findDepPids
(
list
,
process
);
}
}
async
function
addBuiltinProcesses
(
list
,
ids
,
getProcesses
)
{
let
newPids
=
[];
if
(
ids
.
length
>
0
)
{
let
processes
=
await
getProcesses
(
ids
);
for
(
let
processData
of
processes
)
{
let
process
=
JSON
.
parse
(
processData
);
list
.
push
(
process
);
findDepPids
(
newPids
,
process
);
}
}
return
newPids
;
}
function
pageTemplate
(
tpl
,
options
,
version
)
{
const
params
=
{
version
,
...
...
@@ -130,12 +100,3 @@ function fillTemplate(tpl, options, params) {
options
.
newTpl
=
tpl
;
}
function
traverseNode
(
root
,
callback
)
{
callback
(
root
);
if
(
root
.
children
&&
root
.
children
.
length
>
0
)
{
for
(
let
childNode
of
root
.
children
)
{
traverseNode
(
childNode
,
callback
);
}
}
}
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