mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-18 15:02:50 +00:00
commit
cb60dfa9b5
2
Dockerfile
Normal file
2
Dockerfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FROM nginx:latest
|
||||||
|
COPY ./default.conf /etc/nginx/conf.d/default.conf
|
||||||
@ -47,7 +47,7 @@ export default function Layout({ children }: IRouteComponentProps) {
|
|||||||
<div>welcome!欢迎使用h5-Dooring,你有任何问题,都可以咨询我哦~</div>,
|
<div>welcome!欢迎使用h5-Dooring,你有任何问题,都可以咨询我哦~</div>,
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<div>
|
<div style={{ height: '100%', width: '100%' }}>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import {
|
|||||||
ExpandOutlined,
|
ExpandOutlined,
|
||||||
PlayCircleOutlined,
|
PlayCircleOutlined,
|
||||||
HighlightOutlined,
|
HighlightOutlined,
|
||||||
|
ReloadOutlined,
|
||||||
} from '@ant-design/icons';
|
} from '@ant-design/icons';
|
||||||
import TextLoop from 'react-text-loop';
|
import TextLoop from 'react-text-loop';
|
||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
@ -194,7 +195,11 @@ const Container = (props: { history?: any; location?: any; pstate?: any; dispatc
|
|||||||
canvasId={canvasId}
|
canvasId={canvasId}
|
||||||
allType={allType}
|
allType={allType}
|
||||||
/>
|
/>
|
||||||
|
<div className={styles.resetBall}>
|
||||||
|
<ReloadOutlined onClick={() => setDragState({ x: 0, y: 0 })} />
|
||||||
|
</div>
|
||||||
<div className={styles.controllBall}>{render}</div>
|
<div className={styles.controllBall}>{render}</div>
|
||||||
|
|
||||||
<div className={styles.sliderWrap}>
|
<div className={styles.sliderWrap}>
|
||||||
<span className={styles.sliderBtn} onClick={handleSlider.bind(this, 1)}>
|
<span className={styles.sliderBtn} onClick={handleSlider.bind(this, 1)}>
|
||||||
+
|
+
|
||||||
|
|||||||
@ -41,7 +41,7 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
|||||||
window.open(
|
window.open(
|
||||||
isDev
|
isDev
|
||||||
? `/preview?tid=${props.location.query.tid}`
|
? `/preview?tid=${props.location.query.tid}`
|
||||||
: `http://io.nainor.com/h5_plus/preview?tid=${props.location.query.tid}`,
|
: `/preview?tid=${props.location.query.tid}`,
|
||||||
);
|
);
|
||||||
}, 600);
|
}, 600);
|
||||||
};
|
};
|
||||||
@ -49,9 +49,7 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
|||||||
const content = () => {
|
const content = () => {
|
||||||
const { tid } = location.query || '';
|
const { tid } = location.query || '';
|
||||||
return (
|
return (
|
||||||
<QRCode
|
<QRCode value={`${window.location.protocol}//${window.location.host}/preview?tid=${tid}`} />
|
||||||
value={`${window.location.protocol}//${window.location.host}/h5_plus/preview?tid=${tid}`}
|
|
||||||
/>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -114,7 +112,10 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
|||||||
const newPage = () => {
|
const newPage = () => {
|
||||||
let prev = localStorage.getItem('myH5');
|
let prev = localStorage.getItem('myH5');
|
||||||
try {
|
try {
|
||||||
localStorage.setItem('myH5', JSON.stringify(prev ? [...prev, pointData] : [pointData]));
|
localStorage.setItem(
|
||||||
|
'myH5',
|
||||||
|
JSON.stringify(prev ? [...Array.from(prev), pointData] : [pointData]),
|
||||||
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,19 +1,24 @@
|
|||||||
.layout {
|
.layout {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
.editorWrap {
|
.editorWrap {
|
||||||
background-color: rgba(245, 245, 245, 1);
|
background-color: rgba(245, 245, 245, 1);
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.container {
|
.container {
|
||||||
width: 100vw;
|
width: 100%; //写vw产生滚动条会出现横向滚动条
|
||||||
// height: 100vh;
|
// height: 100vh;
|
||||||
|
height: calc(100% - 56px);
|
||||||
display: flex;
|
display: flex;
|
||||||
.list {
|
.list {
|
||||||
width: 350px;
|
width: 350px;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
padding: 10px 16px 16px;
|
padding: 10px 16px 16px;
|
||||||
box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
|
box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
overflow: scroll;
|
overflow: auto;
|
||||||
.searchBar {
|
.searchBar {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
@ -42,7 +47,7 @@
|
|||||||
.tickMark {
|
.tickMark {
|
||||||
width: calc(100% - 750px);
|
width: calc(100% - 750px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
.tickMarkTop {
|
.tickMarkTop {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -92,6 +97,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.resetBall {
|
||||||
|
position: absolute;
|
||||||
|
right: 24px;
|
||||||
|
bottom: 445px;
|
||||||
|
}
|
||||||
.controllBall {
|
.controllBall {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 380px;
|
bottom: 380px;
|
||||||
@ -128,9 +138,9 @@
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
padding: 20px 0 20px 20px;
|
padding: 20px 0 20px 20px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
box-shadow: -2px 0px 4px 0px rgba(0, 0, 0, 0.1);
|
box-shadow: -2px 0px 4px 0px rgba(0, 0, 0, 0.1);
|
||||||
overflow: scroll;
|
overflow: auto;
|
||||||
.tit {
|
.tit {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|||||||
@ -56,7 +56,7 @@ const PreviewPage = memo((props: PreviewPageProps) => {
|
|||||||
const width = useGetScrollBarWidth(ref);
|
const width = useGetScrollBarWidth(ref);
|
||||||
const pcStyle = useMemo(() => {
|
const pcStyle = useMemo(() => {
|
||||||
return {
|
return {
|
||||||
width: isMac ? 395 : 375 + width,
|
width: isMac ? 395 : 375 + width + 1, //小数会有偏差
|
||||||
margin: '20px auto',
|
margin: '20px auto',
|
||||||
border: '10px solid #000',
|
border: '10px solid #000',
|
||||||
borderRadius: '20px',
|
borderRadius: '20px',
|
||||||
|
|||||||
@ -82,7 +82,12 @@ const Home = () => {
|
|||||||
<a href="https://github.com/MrXujiang/h5-Dooring">
|
<a href="https://github.com/MrXujiang/h5-Dooring">
|
||||||
<GithubOutlined />
|
<GithubOutlined />
|
||||||
</a>
|
</a>
|
||||||
<p>Welcome to H5-Dooring 👋</p>
|
<p>
|
||||||
|
Welcome to H5-Dooring{' '}
|
||||||
|
<span role="img" aria-label="welcome">
|
||||||
|
👋
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user