Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into feat/float-dom-scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
weird94 committed Oct 24, 2024
2 parents bd2ac83 + 3e3e795 commit 41cdba4
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ packages/sheets-zen-editor @Jocs
# business - slides
packages/slides @jikkai
packages/slides-ui @jikkai

# collaboration
**/mutations/** @yuhongz
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.
1 change: 1 addition & 0 deletions packages/network/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

export { UniverNetworkPlugin } from './plugin';
export { HTTPHeaders } from './services/http/headers';
export { HTTPService } from './services/http/http.service';
export { IHTTPImplementation } from './services/http/implementations/implementation';
Expand Down
40 changes: 40 additions & 0 deletions packages/network/src/plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* Copyright 2023-present DreamNum Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Inject, Injector, Plugin, registerDependencies } from '@univerjs/core';
import { HTTPService } from './services/http/http.service';
import { IHTTPImplementation } from './services/http/implementations/implementation';
import { XHRHTTPImplementation } from './services/http/implementations/xhr';

/**
* This plugin add network services to the Univer instance.
*/
export class UniverNetworkPlugin extends Plugin {
static override pluginName = 'UNIVER_NETWORK_PLUGIN';

constructor(
@Inject(Injector) protected readonly _injector: Injector
) {
super();
}

override onStarting(): void {
registerDependencies(this._injector, [
[HTTPService],
[IHTTPImplementation, { useClass: XHRHTTPImplementation }],
]);
}
}
1 change: 1 addition & 0 deletions packages/sheets-ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export { SheetPrintInterceptorService } from './services/print-interceptor.servi
export { UniverSheetsMobileUIPlugin } from './mobile-plugin';
export { MobileSheetBar } from './views/mobile/sheet-bar/MobileSheetBar';
export { SheetPermissionInitController } from './controllers/permission/sheet-permission-init.controller';
export { type IUniverSheetsUIConfig } from './controllers/config.schema';

export { FormatPainterStatus, IFormatPainterService } from './services/format-painter/format-painter.service';
export type { IFormatPainterBeforeApplyHookParams, IFormatPainterHook } from './services/format-painter/format-painter.service';
Expand Down
1 change: 1 addition & 0 deletions packages/sheets/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export {
transformCellDataToSelectionData,
} from './basics/selection';
export { createTopMatrixFromMatrix, createTopMatrixFromRanges, findAllRectangle, rangeMerge, RangeMergeUtil } from './basics/rangeMerge';
export { type IUniverSheetsConfig } from './controllers/config.schema';
export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';
export { BorderStyleManagerService, type IBorderInfo } from './services/border-style-manager.service';
export * from './services/permission/permission-point';
Expand Down

0 comments on commit 41cdba4

Please sign in to comment.