mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
797b9b2532
* Initialize left menu react migration and migration download menu UI to react * Add test case to DownloadMenu react component * Update test description and add an href check to one of the download link * Extract storybook document mock to its own fixture file * Add mockCompileOnLoad config on storybook editor scope - if mockCompileOnLoad: true (default), then the default compile mock will be used - If mockCompileOnLoad: false, then we have to provide a compile mock on the storybook component * Create download menu storybook component * Use a single "editor-left-menu" controller on the editor left menu migrations * Remove the form import from the react version of the left menu * Change inline style to utility class name GitOrigin-RevId: 5357c7bfc78bf40f52b9b308df8f2b60d793fbf7
48 lines
1.3 KiB
Text
48 lines
1.3 KiB
Text
if editorLeftMenuReact
|
|
include ./left-menu-react
|
|
else
|
|
include ./left-menu
|
|
|
|
#chat-wrapper.full-size(
|
|
layout="chat",
|
|
spacing-open="{{ui.chatResizerSizeOpen}}",
|
|
spacing-closed="{{ui.chatResizerSizeClosed}}",
|
|
ng-hide="state.loading",
|
|
ng-cloak
|
|
)
|
|
.ui-layout-center
|
|
include ./header-react
|
|
|
|
include ./history/toolbarV2.pug
|
|
|
|
main#ide-body(
|
|
ng-cloak,
|
|
role="main",
|
|
ng-class="{ 'ide-history-open' : (ui.view == 'history' && history.isV2) }",
|
|
layout="main",
|
|
ng-hide="state.loading",
|
|
resize-on="layout:chat:resize,history:toggle,layout:flat-screen:toggle,south-pane-toggled",
|
|
minimum-restore-size-west="130"
|
|
custom-toggler-pane=hasFeature('custom-togglers') ? "west" : false
|
|
custom-toggler-msg-when-open=hasFeature('custom-togglers') ? translate("tooltip_hide_filetree") : false
|
|
custom-toggler-msg-when-closed=hasFeature('custom-togglers') ? translate("tooltip_show_filetree") : false
|
|
ng-keydown="handleKeyDown($event)"
|
|
tabindex="0"
|
|
initial-size-east="250"
|
|
init-closed-east="true"
|
|
open-east="ui.chatOpen"
|
|
)
|
|
.ui-layout-west
|
|
include ./file-tree-react
|
|
include ./file-tree-history
|
|
include ./history/fileTreeV2
|
|
|
|
.ui-layout-center
|
|
include ./editor
|
|
|
|
include ./history
|
|
|
|
if !isRestrictedTokenMember
|
|
.ui-layout-east
|
|
aside.chat
|
|
chat()
|