-
Notifications
You must be signed in to change notification settings - Fork 13
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
757f7c3
commit a797a51
Showing
7 changed files
with
894 additions
and
6 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
|
@@ -2,3 +2,7 @@ | |
margin-right: 4px; | ||
animation: loadingCircle 1s infinite linear; | ||
} | ||
|
||
.libro-lab-success { | ||
margin-right: 4px; | ||
} |
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
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,115 @@ | ||
import { singleton, view } from '@difizen/mana-app'; | ||
import { BaseView } from '@difizen/mana-app'; | ||
import { Col, Row } from 'antd'; | ||
import { forwardRef } from 'react'; | ||
import { | ||
KeybindIcon, | ||
MoreIcon, | ||
NotebookIcon, | ||
PreferenceIcon, | ||
PythonIcon, | ||
SQLIcon, | ||
TerminalIcon, | ||
} from '../common/icon.js'; | ||
|
||
import './index.less'; | ||
|
||
export const EntryPointComponent = forwardRef(function EntryPointComponent() { | ||
return ( | ||
<div className="libro-lab-entry-point"> | ||
<div className="libro-lab-entry-point-title">请选择你要创建的文件类型:</div> | ||
<div className="libro-lab-entry-point-item-title">文件</div> | ||
<Row> | ||
<Col | ||
className="gutter-row" | ||
style={{ paddingLeft: 'unset', paddingRight: '32px' }} | ||
> | ||
<div className="libro-lab-entry-point-item"> | ||
<NotebookIcon /> | ||
<span className="libro-lab-entry-point-item-text">Notebook</span> | ||
</div> | ||
</Col> | ||
<Col | ||
className="gutter-row" | ||
style={{ paddingLeft: 'unset', paddingRight: '32px' }} | ||
> | ||
<div className="libro-lab-entry-point-item"> | ||
<PythonIcon /> | ||
<span className="libro-lab-entry-point-item-text">Python</span> | ||
</div> | ||
</Col> | ||
<Col | ||
className="gutter-row" | ||
style={{ paddingLeft: 'unset', paddingRight: '32px' }} | ||
> | ||
<div className="libro-lab-entry-point-item"> | ||
<SQLIcon /> | ||
<span className="libro-lab-entry-point-item-text">SQL</span> | ||
</div> | ||
</Col> | ||
<Col | ||
className="gutter-row" | ||
style={{ paddingLeft: 'unset', paddingRight: '32px' }} | ||
> | ||
<div className="libro-lab-entry-point-item"> | ||
<MoreIcon /> | ||
<span className="libro-lab-entry-point-item-text">其他</span> | ||
</div> | ||
</Col> | ||
</Row> | ||
<div className="libro-lab-entry-point-item-title">其他</div> | ||
<Row> | ||
<Col | ||
className="gutter-row" | ||
style={{ paddingLeft: 'unset', paddingRight: '32px' }} | ||
> | ||
<div className="libro-lab-entry-point-item"> | ||
<TerminalIcon /> | ||
<span className="libro-lab-entry-point-item-text">Terminal</span> | ||
</div> | ||
</Col> | ||
</Row> | ||
{/* <div className="libro-lab-entry-point-item-title">最近使用</div> | ||
<Row> | ||
<Col | ||
className="gutter-row" | ||
style={{ paddingLeft: 'unset', paddingRight: '24px' }} | ||
> | ||
<div className="libro-lab-entry-point-item-recent"> | ||
<span className="libro-lab-entry-point-item-recent-icon">📋 </span> | ||
<span className="libro-lab-entry-point-item-recent-text"> | ||
这是一个文件名 | ||
</span> | ||
</div> | ||
</Col> | ||
</Row> */} | ||
<div className="libro-lab-entry-point-item-title">系统设置</div> | ||
<Row> | ||
<Col | ||
className="gutter-row" | ||
style={{ paddingLeft: 'unset', paddingRight: '24px' }} | ||
> | ||
<div className="libro-lab-entry-point-item-config"> | ||
<PreferenceIcon></PreferenceIcon> | ||
<span className="libro-lab-entry-point-item-config-text">偏好设置</span> | ||
</div> | ||
</Col> | ||
<Col | ||
className="gutter-row" | ||
style={{ paddingLeft: 'unset', paddingRight: '24px' }} | ||
> | ||
<div className="libro-lab-entry-point-item-config"> | ||
<KeybindIcon></KeybindIcon> | ||
<span className="libro-lab-entry-point-item-config-text">快捷键设置</span> | ||
</div> | ||
</Col> | ||
</Row> | ||
</div> | ||
); | ||
}); | ||
|
||
@singleton() | ||
@view('entry-point-view') | ||
export class EntryPointView extends BaseView { | ||
override view = EntryPointComponent; | ||
} |
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