Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
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
zhaowei
dlink
Commits
d51a3ede
Commit
d51a3ede
authored
Mar 13, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端修复与优化
parent
559622d8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
63 deletions
+5
-63
TaskQueue.java
...emon/src/main/java/com/dlink/daemon/entity/TaskQueue.java
+0
-2
config.dev.ts
dlink-web/config/config.dev.ts
+2
-25
config.ts
dlink-web/config/config.ts
+2
-25
package.json
dlink-web/package.json
+1
-7
conf.ts
dlink-web/src/pages/ClusterConfiguration/conf.ts
+0
-4
No files found.
dlink-daemon/src/main/java/com/dlink/daemon/entity/TaskQueue.java
View file @
d51a3ede
package
com
.
dlink
.
daemon
.
entity
;
import
javafx.concurrent.Task
;
import
java.util.LinkedList
;
public
class
TaskQueue
<
T
>
{
...
...
dlink-web/config/config.dev.ts
View file @
d51a3ede
// https://umijs.org/config/
import
{
defineConfig
}
from
'umi'
;
const
HappyPack
=
require
(
'happypack'
);
const
happyThreadPool
=
HappyPack
.
ThreadPool
({
size
:
require
(
'os'
).
cpus
().
length
})
const
TerserPlugin
=
require
(
'terser-webpack-plugin'
);
import
{
defineConfig
}
from
'umi'
;
export
default
defineConfig
({
plugins
:
[
...
...
@@ -16,26 +12,7 @@ export default defineConfig({
babelPlugins
:
[],
babelOptions
:
{},
},
chainWebpack
:
(
memo
,
{
webpack
})
=>
{
memo
.
plugin
(
'HappyPack'
).
use
(
HappyPack
,
[{
id
:
'js'
,
loaders
:
[
'babel-loader'
],
threadPool
:
happyThreadPool
,
},
memo
.
plugin
(
'TerserPlugin'
).
use
(
TerserPlugin
,
[{
parallel
:
require
(
'os'
).
cpus
().
length
-
1
,
terserOptions
:
{
compress
:
{
inline
:
false
},
mangle
:
{
safari10
:
true
}
}
}])
])
}
/*webpack5: {
//
: {},
// lazyCompilation
: {},
},*/
});
dlink-web/config/config.ts
View file @
d51a3ede
// https://umijs.org/config/
import
{
defineConfig
}
from
'umi'
;
import
{
join
}
from
'path'
;
import
{
defineConfig
}
from
'umi'
;
import
{
join
}
from
'path'
;
import
defaultSettings
from
'./defaultSettings'
;
import
proxy
from
'./proxy'
;
import
routes
from
'./routes'
;
const
HappyPack
=
require
(
'happypack'
);
const
happyThreadPool
=
HappyPack
.
ThreadPool
({
size
:
require
(
'os'
).
cpus
().
length
})
const
TerserPlugin
=
require
(
'terser-webpack-plugin'
);
const
{
REACT_APP_ENV
}
=
process
.
env
;
export
default
defineConfig
({
...
...
@@ -73,23 +69,4 @@ export default defineConfig({
projectName
:
'swagger'
,
},
],
chainWebpack
:
(
memo
,
{
webpack
})
=>
{
memo
.
plugin
(
'HappyPack'
).
use
(
HappyPack
,
[{
id
:
'js'
,
loaders
:
[
'babel-loader'
],
threadPool
:
happyThreadPool
,
},
memo
.
plugin
(
'TerserPlugin'
).
use
(
TerserPlugin
,
[{
parallel
:
require
(
'os'
).
cpus
().
length
-
1
,
terserOptions
:
{
compress
:
{
inline
:
false
},
mangle
:
{
safari10
:
true
}
}
}])
])
}
});
dlink-web/package.json
View file @
d51a3ede
...
...
@@ -87,10 +87,7 @@
"react-monaco-editor"
:
"^0.43.0"
,
"sql-formatter"
:
"^4.0.2"
,
"umi"
:
"^3.5.0"
,
"umi-serve"
:
"^1.9.10"
,
"happypack"
:
"^5.0.1"
,
"terser-webpack-plugin"
:
"^4.2.3"
,
"hap-toolkit"
:
"^1.9.8"
"umi-serve"
:
"^1.9.10"
},
"devDependencies"
:
{
"@ant-design/pro-cli"
:
"^2.0.2"
,
...
...
@@ -125,9 +122,6 @@
"puppeteer-core"
:
"^8.0.0"
,
"stylelint"
:
"^13.0.0"
,
"swagger-ui-react"
:
"^3.52.3"
,
"hap-toolkit"
:
"^1.9.8"
,
"happypack"
:
"^5.0.1"
,
"terser-webpack-plugin"
:
"^4.2.3"
,
"typescript"
:
"^4.2.2"
},
"engines"
:
{
...
...
dlink-web/src/pages/ClusterConfiguration/conf.ts
View file @
d51a3ede
...
...
@@ -14,10 +14,6 @@ export const KUBERNETES_CONFIG_LIST: Config[] = [{
name
:
'kubernetes.namespace'
,
lable
:
'kubernetes.namespace'
,
placeholder
:
'dlink'
,
},{
name
:
'kubernetes.cluster-id'
,
lable
:
'kubernetes.cluster-id'
,
placeholder
:
'dlink'
,
},{
name
:
'kubernetes.container.image'
,
lable
:
'kubernetes.container.image'
,
...
...
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