Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs_vsofpm
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
wuhao
cs_vsofpm
Commits
d331218d
Commit
d331218d
authored
Aug 18, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sader
parent
cc25eb90
Pipeline
#4347
passed with stages
in 3 minutes and 6 seconds
Changes
7
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
18 deletions
+53
-18
config.ts
config/config.ts
+0
-3
routes.ts
config/routes.ts
+2
-2
app.jsx
src/app.jsx
+1
-9
global.less
src/global.less
+4
-1
config.jsx
src/layouts/dashboard/nav/config.jsx
+1
-1
index.jsx
src/layouts/dashboard/nav/index.jsx
+2
-2
index.jsx
src/pages/board/index.jsx
+43
-0
No files found.
config/config.ts
View file @
d331218d
...
@@ -109,7 +109,4 @@ export default defineConfig({
...
@@ -109,7 +109,4 @@ export default defineConfig({
define
:
env
[
REACT_APP_ENV
as
keyof
typeof
env
],
define
:
env
[
REACT_APP_ENV
as
keyof
typeof
env
],
title
:
'精密测量虚拟仿真实训平台'
,
title
:
'精密测量虚拟仿真实训平台'
,
esbuildMinifyIIFE
:
true
,
esbuildMinifyIIFE
:
true
,
qiankun
:
{
master
:
{},
},
});
});
config/routes.ts
View file @
d331218d
...
@@ -51,8 +51,8 @@ export default [
...
@@ -51,8 +51,8 @@ export default [
},
},
{
{
name
:
"首页"
,
name
:
"首页"
,
path
:
"/work/
app
"
,
path
:
"/work/
board
"
,
microApp
:
'app
'
,
component
:
'./board
'
,
},
},
{
{
name
:
"个人主页"
,
name
:
"个人主页"
,
...
...
src/app.jsx
View file @
d331218d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: wuhao930406 1148547900@qq.com
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-05-17 16:16:06
* @Date: 2023-05-17 16:16:06
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-1
5 17:21:4
0
* @LastEditTime: 2023-08-1
8 11:26:1
0
* @FilePath: /cs_vsofpm/src/app.jsx
* @FilePath: /cs_vsofpm/src/app.jsx
* @Description:
* @Description:
*
*
...
@@ -75,11 +75,3 @@ export async function getInitialState() {
...
@@ -75,11 +75,3 @@ export async function getInitialState() {
};
};
}
}
export
const
qiankun
=
{
apps
:
[
{
name
:
"app"
,
entry
:
"//localhost:7001"
,
},
],
};
src/global.less
View file @
d331218d
...
@@ -5,11 +5,14 @@ body,
...
@@ -5,11 +5,14 @@ body,
margin: 0 !important;
margin: 0 !important;
padding: 0 !important;
padding: 0 !important;
overflow: hidden;
overflow: hidden;
color: #333;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
}
.css-te7xho{
padding-top: 75px !important;
}
pre {
pre {
margin: 0 !important;
margin: 0 !important;
}
}
...
...
src/layouts/dashboard/nav/config.jsx
View file @
d331218d
...
@@ -66,7 +66,7 @@ const navConfig = [
...
@@ -66,7 +66,7 @@ const navConfig = [
children
:[
children
:[
{
{
title
:
"首页"
,
title
:
"首页"
,
path
:
"/work/
app
"
,
path
:
"/work/
board
"
,
icon
:
icon
(
"ic_analytics"
),
icon
:
icon
(
"ic_analytics"
),
},
},
{
{
...
...
src/layouts/dashboard/nav/index.jsx
View file @
d331218d
...
@@ -132,7 +132,7 @@ export default function Nav({ openNav, onCloseNav }) {
...
@@ -132,7 +132,7 @@ export default function Nav({ openNav, onCloseNav }) {
}
}
},
[
pathname
]);
},
[
pathname
]);
const
ifs
=
nav
===
88
;
const
ifs
=
nav
===
75
;
const
renderContent
=
(
const
renderContent
=
(
<
Box
<
Box
...
@@ -227,7 +227,7 @@ export default function Nav({ openNav, onCloseNav }) {
...
@@ -227,7 +227,7 @@ export default function Nav({ openNav, onCloseNav }) {
onClick=
{
()
=>
{
onClick=
{
()
=>
{
setnav
((
s
)
=>
{
setnav
((
s
)
=>
{
if
(
s
===
280
)
{
if
(
s
===
280
)
{
return
88
;
return
75
;
}
else
{
}
else
{
return
280
;
return
280
;
}
}
...
...
src/pages/board/index.jsx
0 → 100644
View file @
d331218d
import
{
FullscreenExitOutlined
,
FullscreenOutlined
}
from
"@ant-design/icons"
;
import
{
useFullscreen
}
from
"ahooks"
;
import
{
Button
}
from
"antd"
;
import
{
useRef
}
from
"react"
;
function
Board
()
{
const
ref
=
useRef
(
null
);
const
[
isFullscreen
,
{
toggleFullscreen
,
enterFullscreen
,
exitFullscreen
}]
=
useFullscreen
(
ref
);
return
(
<
div
style=
{
{
width
:
"100%"
,
height
:
"100%"
,
padding
:
"0 12px 12px 12px"
}
}
>
<
div
style=
{
{
width
:
"100%"
,
height
:
"100%"
,
borderRadius
:
12
,
overflow
:
"hidden"
,
}
}
ref=
{
ref
}
>
<
Button
type=
"link"
size=
"large"
icon=
{
isFullscreen
?
<
FullscreenExitOutlined
/>
:
<
FullscreenOutlined
/>
}
style=
{
{
position
:
"absolute"
,
right
:
36
,
top
:
24
}
}
onClick=
{
()
=>
{
toggleFullscreen
();
}
}
></
Button
>
<
iframe
src=
{
`http://192.168.40.100:5173/#/dashboardC-cn?token=${localStorage.getItem("TOKENES")}`
}
frameborder=
"0"
style=
{
{
width
:
"100%"
,
height
:
"100%"
,
margin
:
0
}
}
></
iframe
>
</
div
>
</
div
>
);
}
export
default
Board
;
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