-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
766348b
commit 974356e
Showing
33 changed files
with
905 additions
and
724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,3 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import './index.scss'; | ||
import Editor from './pages/editor'; | ||
import reportWebVitals from './reportWebVitals'; | ||
import EditorStore from './pages/editor/store'; | ||
|
||
import {registerContextMenu, registerTopMenuListener} from './electron/menu'; | ||
|
||
ReactDOM.render( | ||
<React.StrictMode> | ||
<EditorStore> | ||
<Editor /> | ||
</EditorStore> | ||
</React.StrictMode>, | ||
document.getElementById('root') | ||
); | ||
|
||
// 设置electron上下文菜单 | ||
registerContextMenu(); | ||
// 设置顶部菜单监听 | ||
registerTopMenuListener(); | ||
|
||
// If you want to start measuring performance in your app, pass a function | ||
// to log results (for example: reportWebVitals(console.log)) | ||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals | ||
reportWebVitals(); | ||
// must be empty file | ||
// https://github.com/facebook/create-react-app/blob/64df135c29208f08a175c941a0e94d9a56d9e4af/packages/react-scripts/config/paths.js#L18 | ||
export {}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
.pandora-editor { | ||
display: flex; | ||
height: 100%; | ||
width: 100%; | ||
font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif; | ||
.editor-file-folder { | ||
width:30%; | ||
transition: all .5s; | ||
background-color: #f3f3f7; | ||
max-width: 400px; | ||
overflow: auto; | ||
} | ||
.editor-container { | ||
overflow: hidden; | ||
width:100%; | ||
transition: all .5s; | ||
.editor-wrapper { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
position: relative; | ||
width: 100%; | ||
height: calc(100% - 50px); | ||
.md-view-wrapper { | ||
position: relative; | ||
flex: 1; | ||
margin: auto; | ||
width: 400px; | ||
padding-left: 35px; | ||
padding-right: 55px; | ||
height: 100%; | ||
overflow: auto; | ||
.md-view-layer { | ||
height: 673px; | ||
position: relative; | ||
overflow: auto; | ||
top: 36px; | ||
overflow: auto; | ||
.md-view-container { | ||
overflow: auto; | ||
padding: 0 4px; | ||
} | ||
} | ||
.iphone-frame { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 400px; | ||
height: 758px; | ||
background: url('../../assets/img/iPhone-11.png') no-repeat; | ||
background-size: contain; | ||
background-position: top; | ||
pointer-events: none; | ||
} | ||
} | ||
.md-editor-wrapper { | ||
flex: 1; | ||
.md-editor-container { | ||
height: 100%; | ||
& > div { | ||
height: 100%; | ||
} | ||
} | ||
} | ||
.Resizer { | ||
background: #000; | ||
opacity: 0.2; | ||
z-index: 1; | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
-moz-background-clip: padding; | ||
-webkit-background-clip: padding; | ||
background-clip: padding-box; | ||
} | ||
|
||
.Resizer:hover { | ||
-webkit-transition: all 2s ease; | ||
transition: all 2s ease; | ||
} | ||
|
||
.Resizer.horizontal { | ||
height: 11px; | ||
margin: -5px 0; | ||
border-top: 5px solid rgba(255, 255, 255, 0); | ||
border-bottom: 5px solid rgba(255, 255, 255, 0); | ||
cursor: row-resize; | ||
width: 100%; | ||
} | ||
|
||
.Resizer.horizontal:hover { | ||
border-top: 5px solid rgba(0, 0, 0, 0.5); | ||
border-bottom: 5px solid rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
.Resizer.vertical { | ||
width: 11px; | ||
margin: 0 -5px; | ||
border-left: 5px solid rgba(255, 255, 255, 0); | ||
border-right: 5px solid rgba(255, 255, 255, 0); | ||
cursor: col-resize; | ||
} | ||
|
||
.Resizer.vertical:hover { | ||
border-left: 5px solid rgba(0, 0, 0, 0.5); | ||
border-right: 5px solid rgba(0, 0, 0, 0.5); | ||
} | ||
.Resizer.disabled { | ||
cursor: not-allowed; | ||
} | ||
.Resizer.disabled:hover { | ||
border-color: transparent; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.pandora-message-success, | ||
.pandora-message-loading, | ||
.pandora-message-error | ||
{ | ||
.ant-message-notice-content { | ||
padding: 5px 16px; | ||
border-radius: 8px; | ||
.ant-message-success .anticon { | ||
color: #ffb531; | ||
} | ||
} | ||
} |
Oops, something went wrong.