Skip to content

Commit

Permalink
fix: plugn
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushusir committed Aug 10, 2024
1 parent 67a4693 commit 712244f
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions apps/meteor/public/create-univer.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ function createUniverWithCollaboration(container, url) {
UniverUi,
UniverSheets,
UniverSheetsUi,
UniverSheetsNumfmt:{UniverSheetsNumfmtPlugin},
UniverCollaboration,
UniverCollaborationClient,
UniverSheetsThreadComment,
UniverSheetsFormula: { UniverSheetsFormulaPlugin },
} = window

Expand Down Expand Up @@ -134,6 +134,9 @@ function createUniverWithCollaboration(container, url) {
footer: false,
});


univer.registerPlugin(UniverSheetsNumfmtPlugin);

univer.registerPlugin(UniverDocsUi.UniverDocsUIPlugin);

univer.registerPlugin(UniverSheets.UniverSheetsPlugin);
Expand Down Expand Up @@ -183,34 +186,34 @@ function getUnitByURL(url) {
return null;
}


function registerRichFeatures(univer){
const {
UniverSheetsNumfmt: {UniverSheetsNumfmtPlugin},
UniverSheetsZenEditor: {UniverSheetsZenEditorPlugin},
UniverSheetsFindReplace: {UniverSheetsFindReplacePlugin},
UniverSheetsConditionalFormatting: {UniverSheetsConditionalFormattingUIPlugin},
UniverSheetsConditionalFormatting: {UniverSheetsConditionalFormattingPlugin},
UniverDataValidation: {UniverDataValidationPlugin},
UniverSheetsDataValidation: {UniverSheetsDataValidationPlugin},
UniverSheetsFilter: {UniverSheetsFilterPlugin},
UniverSheetsFilterUI: {UniverSheetsFilterUIPlugin},
UniverDrawing: {UniverDrawingUIPlugin},
UniverSheetsFilterUi: {UniverSheetsFilterUIPlugin},
UniverDrawing: {UniverDrawingPlugin,IImageIoService},
UniverDrawingUi: {UniverDrawingUIPlugin},
UniverSheetsDrawing: {UniverSheetsDrawingPlugin},
UniverSheetsDrawingUI: {UniverSheetsDrawingUIPlugin},
UniverSheetsDrawingUi: {UniverSheetsDrawingUIPlugin},
UniverSheetsSort: {UniverSheetsSortPlugin},
UniverSheetsSortUI: {UniverSheetsSortUIPlugin},
UniverSheetsPivotTable: {UniverSheetsPivotTablePlugin},
UniverSheetsPivotTableUI: {UniverSheetsPivotTableUIPlugin},
UniverSheetsHyperLinkUI: {UniverSheetsHyperLinkUIPlugin},
UniverSheetsSortUi: {UniverSheetsSortUIPlugin},
UniverSheetsPivot: {UniverSheetsPivotTablePlugin},
UniverSheetsPivotUi: {UniverSheetsPivotTableUIPlugin},
UniverSheetsHyperLinkUi: {UniverSheetsHyperLinkUIPlugin},
} = window;
univer.registerPlugin(UniverSheetsNumfmtPlugin);
// zen editor
univer.registerPlugin(UniverSheetsZenEditorPlugin);

// find replace
univer.registerPlugin(UniverSheetsFindReplacePlugin);

// conditional formatting
univer.registerPlugin(UniverSheetsConditionalFormattingUIPlugin);
univer.registerPlugin(UniverSheetsConditionalFormattingPlugin);

// data validation
univer.registerPlugin(UniverDataValidationPlugin);
Expand All @@ -221,17 +224,22 @@ function registerRichFeatures(univer){
univer.registerPlugin(UniverSheetsFilterUIPlugin);

// drawing
univer.registerPlugin(UniverDrawingPlugin, {
override: [[IImageIoService, null]],
});
univer.registerPlugin(UniverDrawingUIPlugin);
univer.registerPlugin(UniverSheetsDrawingPlugin);
univer.registerPlugin(UniverSheetsDrawingUIPlugin);
univer.registerPlugin(UniverSheetsDrawingPlugin);
univer.registerPlugin(UniverSheetsDrawingUIPlugin);

// sort
univer.registerPlugin(UniverSheetsSortPlugin);
univer.registerPlugin(UniverSheetsSortUIPlugin);

// pivot table
univer.registerPlugin(UniverSheetsPivotTablePlugin);
univer.registerPlugin(UniverSheetsPivotTableUIPlugin);
// univer.registerPlugin(UniverSheetsPivotTablePlugin,{
// isServer: true,
// });
// univer.registerPlugin(UniverSheetsPivotTableUIPlugin);

univer.registerPlugin(UniverSheetsHyperLinkUIPlugin);
}

0 comments on commit 712244f

Please sign in to comment.