-
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.
chore: jupyter增加无编辑器的导出,避免集成方webpack配置需要调整
- Loading branch information
Showing
5 changed files
with
156 additions
and
2 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
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,33 @@ | ||
export * from '@difizen/libro-code-cell'; | ||
export * from '@difizen/libro-code-editor'; | ||
export * from '@difizen/libro-common'; | ||
export * from '@difizen/libro-core'; | ||
export * from '@difizen/libro-kernel'; | ||
export * from '@difizen/libro-l10n'; | ||
export * from '@difizen/libro-lsp'; | ||
export * from '@difizen/libro-markdown-cell'; | ||
export * from '@difizen/libro-output'; | ||
export * from '@difizen/libro-raw-cell'; | ||
export * from '@difizen/libro-rendermime'; | ||
export * from '@difizen/libro-search'; | ||
export * from '@difizen/libro-search-code-cell'; | ||
export * from './add-between-cell/index.js'; | ||
export * from './cell/index.js'; | ||
export * from './command/index.js'; | ||
export * from './components/index.js'; | ||
export * from './config/index.js'; | ||
export * from './contents/index.js'; | ||
export * from './keybind-instructions/index.js'; | ||
export * from './libro-jupyter-file-service.js'; | ||
export * from './libro-jupyter-model.js'; | ||
export * from './libro-jupyter-protocol.js'; | ||
export * from './libro-jupyter-server-launch-manager.js'; | ||
export * from './module-noeditor.js'; | ||
export * from './output/index.js'; | ||
export * from './rendermime/index.js'; | ||
export * from './theme/index.js'; | ||
export * from './toolbar/index.js'; | ||
export * from './file/index.js'; | ||
export * from './libro-jupyter-view.js'; | ||
export * from './config/index.js'; | ||
export * from './widget/index.js'; |
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,116 @@ | ||
import { | ||
CodeCellModule, | ||
LibroCodeCellModel, | ||
LibroCodeCellView, | ||
} from '@difizen/libro-code-cell'; | ||
import { | ||
CellExecutionTimeProvider, | ||
CellOutputBottomBlankProvider, | ||
LibroAddCellModule, | ||
LibroKeybindRegistry, | ||
LibroModel, | ||
LibroModule, | ||
LibroToolbarModule, | ||
} from '@difizen/libro-core'; | ||
import { LibroKernelManageModule } from '@difizen/libro-kernel'; | ||
import { MarkdownCellModule } from '@difizen/libro-markdown-cell'; | ||
import { | ||
DisplayDataOutputModule, | ||
ErrorOutputModule, | ||
StreamOutputModule, | ||
} from '@difizen/libro-output'; | ||
import { RawCellModule } from '@difizen/libro-raw-cell'; | ||
import { LibroSearchModule } from '@difizen/libro-search'; | ||
import { SearchCodeCellModule } from '@difizen/libro-search-code-cell'; | ||
import { ManaModule } from '@difizen/mana-app'; | ||
|
||
import { LibroBetweenCellModule } from './add-between-cell/index.js'; | ||
import { JupyterCodeCellModel, JupyterCodeCellView } from './cell/index.js'; | ||
import { | ||
LibroJupyterCommandContribution, | ||
LibroJupyterKeybindingContribution, | ||
} from './command/index.js'; | ||
import { CellOutputBottomBlank } from './components/cell-output-bottom-blank.js'; | ||
import { CellExecutionTip } from './components/index.js'; | ||
import { | ||
ConfigAppContribution, | ||
LibroJupyterSettingContribution, | ||
} from './config/index.js'; | ||
import { LibroJupyterContentContribution } from './contents/index.js'; | ||
import { LibroJupyterContentSaveContribution } from './contents/save-content-contribution.js'; | ||
import { LibroJupyterFileModule } from './file/index.js'; | ||
import { KeybindInstructionsModule } from './keybind-instructions/index.js'; | ||
import { LibroJupyterFileService } from './libro-jupyter-file-service.js'; | ||
import { LibroJupyterModel } from './libro-jupyter-model.js'; | ||
import { KernelStatusAndSelectorProvider } from './libro-jupyter-protocol.js'; | ||
import { JupyterServerLaunchManager } from './libro-jupyter-server-launch-manager.js'; | ||
import { LibroJupyterView } from './libro-jupyter-view.js'; | ||
import { LibroJupyterOutputArea } from './output/index.js'; | ||
import { PlotlyModule } from './rendermime/index.js'; | ||
import { LibroJupyterColorContribution } from './theme/index.js'; | ||
import { | ||
KernelStatusSelector, | ||
LibroJupyterToolbarContribution, | ||
SaveFileErrorContribution, | ||
} from './toolbar/index.js'; | ||
import { WidgetModule } from './widget/index.js'; | ||
|
||
/** | ||
* 去除editor和lsp依赖的jupyter module,在opensumi场景使用 | ||
*/ | ||
export const LibroJupyterNoEditorModule = ManaModule.create() | ||
.register( | ||
LibroJupyterFileService, | ||
LibroJupyterCommandContribution, | ||
LibroJupyterKeybindingContribution, | ||
LibroJupyterToolbarContribution, | ||
ConfigAppContribution, | ||
SaveFileErrorContribution, | ||
LibroKeybindRegistry, | ||
LibroJupyterContentContribution, | ||
LibroJupyterContentSaveContribution, | ||
LibroJupyterOutputArea, | ||
LibroJupyterColorContribution, | ||
LibroJupyterSettingContribution, | ||
JupyterServerLaunchManager, | ||
LibroJupyterView, | ||
{ | ||
token: CellExecutionTimeProvider, | ||
useValue: CellExecutionTip, | ||
}, | ||
{ | ||
token: CellOutputBottomBlankProvider, | ||
useValue: CellOutputBottomBlank, | ||
}, | ||
{ | ||
token: KernelStatusAndSelectorProvider, | ||
useValue: KernelStatusSelector, | ||
}, | ||
{ | ||
token: LibroModel, | ||
useClass: LibroJupyterModel, | ||
}, | ||
{ token: LibroCodeCellModel, useClass: JupyterCodeCellModel }, | ||
{ token: LibroCodeCellView, useClass: JupyterCodeCellView }, | ||
) | ||
.dependOn( | ||
LibroModule, | ||
CodeCellModule, | ||
MarkdownCellModule, | ||
RawCellModule, | ||
StreamOutputModule, | ||
ErrorOutputModule, | ||
DisplayDataOutputModule, | ||
LibroToolbarModule, | ||
LibroKernelManageModule, | ||
LibroSearchModule, | ||
SearchCodeCellModule, | ||
LibroAddCellModule, | ||
|
||
// custom module | ||
LibroBetweenCellModule, | ||
KeybindInstructionsModule, | ||
PlotlyModule, | ||
LibroJupyterFileModule, | ||
WidgetModule, | ||
); |
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