Skip to content

Commit

Permalink
refactor: rename PLUGIN_CONFIG_KEY (#4174)
Browse files Browse the repository at this point in the history
Co-authored-by: ybzky <ybzkyfafa@gmail.com>
  • Loading branch information
hexf00 and ybzky authored Nov 29, 2024
1 parent 243acdb commit 284a454
Show file tree
Hide file tree
Showing 103 changed files with 280 additions and 262 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

import type { MenuConfig } from '@univerjs/ui';

export const PLUGIN_CONFIG_KEY = 'action-recorder.config';
export const ACTION_RECORDER_PLUGIN_CONFIG_KEY = 'action-recorder.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(ACTION_RECORDER_PLUGIN_CONFIG_KEY);

export interface IUniverActionRecorderConfig {
menu?: MenuConfig;
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/action-recorder/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type { Dependency } from '@univerjs/core';
import type { IUniverActionRecorderConfig } from './controllers/config.schema';
import { IConfigService, Inject, Injector, Plugin } from '@univerjs/core';
import { ActionRecorderController } from './controllers/action-recorder.controller';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { ACTION_RECORDER_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';
import { ActionRecorderService } from './services/action-recorder.service';
import { ActionReplayService } from './services/replay.service';

Expand All @@ -41,7 +41,7 @@ export class UniverActionRecorderPlugin extends Plugin {
if (menu) {
this._configService.setConfig('menu', menu, { merge: true });
}
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(ACTION_RECORDER_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

import type { MenuConfig } from '@univerjs/ui';

export const PLUGIN_CONFIG_KEY = 'debugger.config';
export const DEBUGGER_PLUGIN_CONFIG_KEY = 'debugger.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DEBUGGER_PLUGIN_CONFIG_KEY);

export interface IUniverDebuggerConfig {
menu?: MenuConfig;
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/debugger/src/debugger-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import type { Dependency } from '@univerjs/core';
import type { IUniverDebuggerConfig } from './controllers/config.schema';
import { IConfigService, Inject, Injector, Plugin } from '@univerjs/core';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DEBUGGER_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';
import { DebuggerController } from './controllers/debugger.controller';
import { E2EController } from './controllers/e2e/e2e.controller';
import { PerformanceMonitorController } from './controllers/performance-monitor.controller';
Expand All @@ -40,7 +40,7 @@ export class UniverDebuggerPlugin extends Plugin {
if (menu) {
this._configService.setConfig('menu', menu, { merge: true });
}
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DEBUGGER_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/data-validation/src/controllers/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

export const PLUGIN_CONFIG_KEY = 'data-validation.config';
export const DATA_VALIDATION_PLUGIN_CONFIG_KEY = 'data-validation.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DATA_VALIDATION_PLUGIN_CONFIG_KEY);

export interface IUniverDataValidationConfig {
}
Expand Down
4 changes: 2 additions & 2 deletions packages/data-validation/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type { IUniverDataValidationConfig } from './controllers/config.schema';
import { ICommandService, IConfigService, Inject, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
import { AddDataValidationCommand, RemoveAllDataValidationCommand, RemoveDataValidationCommand, UpdateDataValidationOptionsCommand, UpdateDataValidationSettingCommand } from './commands/commands/data-validation.command';
import { AddDataValidationMutation, RemoveDataValidationMutation, UpdateDataValidationMutation } from './commands/mutations/data-validation.mutation';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DATA_VALIDATION_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';
import { DataValidationResourceController } from './controllers/dv-resource.controller';
import { DataValidationModel } from './models/data-validation-model';
import { DataValidatorRegistryService } from './services/data-validator-registry.service';
Expand All @@ -40,7 +40,7 @@ export class UniverDataValidationPlugin extends Plugin {

// Manage the plugin configuration.
const { ...rest } = this._config;
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DATA_VALIDATION_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-drawing-ui/src/controllers/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

export const PLUGIN_CONFIG_KEY = 'docs-drawing-ui.config';
export const DOCS_DRAWING_UI_PLUGIN_CONFIG_KEY = 'docs-drawing-ui.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DOCS_DRAWING_UI_PLUGIN_CONFIG_KEY);

export interface IUniverDocsDrawingUIConfig {
}
Expand Down
6 changes: 3 additions & 3 deletions packages/docs-drawing-ui/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import { UniverDrawingPlugin } from '@univerjs/drawing';
import { UniverDrawingUIPlugin } from '@univerjs/drawing-ui';
import { IRenderManagerService } from '@univerjs/engine-render';
import { UniverUIPlugin } from '@univerjs/ui';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DocDrawingUIController } from './controllers/doc-drawing.controller';
import { defaultPluginConfig, DOCS_DRAWING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DocDrawingAddRemoveController } from './controllers/doc-drawing-notification.controller';
import { DocDrawingTransformerController } from './controllers/doc-drawing-transformer-update.controller';
import { DocDrawingUIController } from './controllers/doc-drawing.controller';
import { DocDrawingPopupMenuController } from './controllers/drawing-popup-menu.controller';
import { DocDrawingTransformUpdateController } from './controllers/render-controllers/doc-drawing-transform-update.controller';
import { DocDrawingUpdateRenderController } from './controllers/render-controllers/doc-drawing-update.render-controller';
Expand All @@ -48,7 +48,7 @@ export class UniverDocsDrawingUIPlugin extends Plugin {

// Manage the plugin configuration.
const { ...rest } = this._config;
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DOCS_DRAWING_UI_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-drawing/src/controllers/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

export const PLUGIN_CONFIG_KEY = 'docs-drawing.config';
export const DOCS_DRAWING_PLUGIN_CONFIG_KEY = 'docs-drawing.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DOCS_DRAWING_PLUGIN_CONFIG_KEY);

export interface IUniverDocsDrawingConfig {
}
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-drawing/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import type { Dependency } from '@univerjs/core';
import type { IUniverDocsDrawingConfig } from './controllers/config.schema';
import { IConfigService, Inject, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { defaultPluginConfig, DOCS_DRAWING_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DocDrawingController, DOCS_DRAWING_PLUGIN } from './controllers/doc-drawing.controller';
import { DocDrawingService, IDocDrawingService } from './services/doc-drawing.service';

Expand All @@ -34,7 +34,7 @@ export class UniverDocsDrawingPlugin extends Plugin {

// Manage the plugin configuration.
const { ...rest } = this._config;
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DOCS_DRAWING_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-hyper-link-ui/src/controllers/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

import type { MenuConfig } from '@univerjs/ui';

export const PLUGIN_CONFIG_KEY = 'docs-hyper-link-ui.config';
export const DOCS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY = 'docs-hyper-link-ui.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DOCS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY);

export interface IUniverDocsHyperLinkUIConfig {
menu?: MenuConfig;
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-hyper-link-ui/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type { IUniverDocsHyperLinkUIConfig } from './controllers/config.schema';
import { DependentOn, IConfigService, Inject, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
import { UniverDocsHyperLinkPlugin } from '@univerjs/docs-hyper-link';
import { IRenderManagerService } from '@univerjs/engine-render';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { defaultPluginConfig, DOCS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DocHyperLinkSelectionController } from './controllers/doc-hyper-link-selection.controller';
import { DocHyperLinkEventRenderController } from './controllers/render-controllers/hyper-link-event.render-controller';
import { DocHyperLinkRenderController } from './controllers/render-controllers/render.controller';
Expand All @@ -45,7 +45,7 @@ export class UniverDocsHyperLinkUIPlugin extends Plugin {
if (menu) {
this._configService.setConfig('menu', menu, { merge: true });
}
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DOCS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-hyper-link/src/controllers/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

export const PLUGIN_CONFIG_KEY = 'docs-hyper-link.config';
export const DOCS_HYPER_LINK_PLUGIN_CONFIG_KEY = 'docs-hyper-link.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DOCS_HYPER_LINK_PLUGIN_CONFIG_KEY);

export interface IUniverDocsHyperLinkConfig {
}
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-hyper-link/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type { Dependency } from '@univerjs/core';
import type { IUniverDocsHyperLinkConfig } from './controllers/config.schema';
import { ICommandService, IConfigService, Inject, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
import { AddHyperLinkMuatation, DeleteHyperLinkMuatation, UpdateHyperLinkMuatation } from './commands/mutations/hyper-link.mutation';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { defaultPluginConfig, DOCS_HYPER_LINK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DOC_HYPER_LINK_PLUGIN, DocHyperLinkResourceController } from './controllers/resource.controller';

export class UniverDocsHyperLinkPlugin extends Plugin {
Expand All @@ -35,7 +35,7 @@ export class UniverDocsHyperLinkPlugin extends Plugin {

// Manage the plugin configuration.
const { ...rest } = this._config;
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DOCS_HYPER_LINK_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-mention-ui/src/controllers/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

import type { MenuConfig } from '@univerjs/ui';

export const PLUGIN_CONFIG_KEY = 'docs-mention-ui.config';
export const DOCS_MENTION_UI_PLUGIN_CONFIG_KEY = 'docs-mention-ui.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DOCS_MENTION_UI_PLUGIN_CONFIG_KEY);

export interface IUniverDocsMentionUIConfig {
menu?: MenuConfig;
Expand Down
6 changes: 3 additions & 3 deletions packages/docs-mention-ui/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
import type { Dependency } from '@univerjs/core';
import type { IUniverDocsMentionUIConfig } from './controllers/config.schema';
import { IConfigService, Inject, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { defaultPluginConfig, DOCS_MENTION_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DocMentionTriggerController } from './controllers/doc-mention-trigger.controller';
import { DocMentionUIController } from './controllers/doc-mention-ui.controller';
import { DocMentionService } from './services/doc-mention.service';
import { DocMentionPopupService } from './services/doc-mention-popup.service';
import { DocMentionService } from './services/doc-mention.service';
import { DOC_MENTION_UI_PLUGIN } from './types/const/const';

export class UniverDocsMentionUIPlugin extends Plugin {
Expand All @@ -40,7 +40,7 @@ export class UniverDocsMentionUIPlugin extends Plugin {
if (menu) {
this._configService.setConfig('menu', menu, { merge: true });
}
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DOCS_MENTION_UI_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

import type { MenuConfig } from '@univerjs/ui';

export const PLUGIN_CONFIG_KEY = 'docs-thread-comment-ui.config';
export const DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY = 'docs-thread-comment-ui.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY);

export interface IUniverDocsThreadCommentUIConfig {
menu?: MenuConfig;
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-thread-comment-ui/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { DependentOn, IConfigService, Inject, Injector, Plugin, UniverInstanceTy
import { IRenderManagerService } from '@univerjs/engine-render';
import { UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';
import { PLUGIN_NAME } from './common/const';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { defaultPluginConfig, DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DocThreadCommentSelectionController } from './controllers/doc-thread-comment-selection.controller';
import { DocThreadCommentUIController } from './controllers/doc-thread-comment-ui.controller';
import { DocThreadCommentRenderController } from './controllers/render-controllers/render.controller';
Expand All @@ -44,7 +44,7 @@ export class UniverDocsThreadCommentUIPlugin extends Plugin {
if (menu) {
this._configService.setConfig('menu', menu, { merge: true });
}
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY, rest);
}

override onStarting(): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-ui/src/controllers/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import type { MenuConfig } from '@univerjs/ui';
import type { ILayout } from '../basics';
import { DefaultDocContainerConfig, DefaultToolbarConfig } from '../basics';

export const PLUGIN_CONFIG_KEY = 'docs-ui.config';
export const DOCS_UI_PLUGIN_CONFIG_KEY = 'docs-ui.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DOCS_UI_PLUGIN_CONFIG_KEY);

export interface IUniverDocsUIConfig {
menu?: MenuConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/

import type { LocaleType } from '@univerjs/core';
import { IConfigService, Inject, Injector, LocaleService } from '@univerjs/core';

import type { DocContainer } from '../views/doc-container/DocContainer';

import type { IUniverDocsUIConfig } from './config.schema';
import { PLUGIN_CONFIG_KEY } from './config.schema';
import { IConfigService, Inject, Injector, LocaleService } from '@univerjs/core';
import { DOCS_UI_PLUGIN_CONFIG_KEY } from './config.schema';

export class DocContainerUIController {
private _docContainer?: DocContainer;
Expand All @@ -35,7 +35,7 @@ export class DocContainerUIController {
getUIConfig() {
const config = {
injector: this._injector,
config: this._configService.getConfig<IUniverDocsUIConfig>(PLUGIN_CONFIG_KEY),
config: this._configService.getConfig<IUniverDocsUIConfig>(DOCS_UI_PLUGIN_CONFIG_KEY),
changeLocale: this.changeLocale,
getComponent: this.getComponent,
};
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-ui/src/controllers/doc-ui.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import {
UnderlineShortCut,
} from '../shortcuts/toolbar.shortcut';
import { DocFooter } from '../views/doc-footer';
import { PLUGIN_CONFIG_KEY } from './config.schema';
import { DOCS_UI_PLUGIN_CONFIG_KEY } from './config.schema';
import { menuSchema } from './menu.schema';

export class DocUIController extends Disposable {
Expand Down Expand Up @@ -92,7 +92,7 @@ export class DocUIController extends Disposable {
// TODO: @zhangwei, why add workbook to docs-ui?
private _initUiParts() {
const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET);
const config = this._configService.getConfig<IUniverDocsUIConfig>(PLUGIN_CONFIG_KEY);
const config = this._configService.getConfig<IUniverDocsUIConfig>(DOCS_UI_PLUGIN_CONFIG_KEY);
if (config?.layout?.docContainerConfig?.footer && !workbook) {
this.disposeWithMe(this._uiPartsService.registerComponent(BuiltInUIPart.FOOTER, () => connectInjector(DocFooter, this._injector)));
}
Expand Down
6 changes: 3 additions & 3 deletions packages/docs-ui/src/docs-ui-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ import { MoveCursorOperation, MoveSelectionOperation } from './commands/operatio
import { DocParagraphSettingPanelOperation } from './commands/operations/doc-paragraph-setting-panel.operation';
import { SetDocZoomRatioOperation } from './commands/operations/set-doc-zoom-ratio.operation';
import { AppUIController } from './controllers';
import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { defaultPluginConfig, DOCS_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
import { DocAutoFormatController } from './controllers/doc-auto-format.controller';
import { DocHeaderFooterController } from './controllers/doc-header-footer.controller';
import { DocMoveCursorController } from './controllers/doc-move-cursor.controller';
import { DocParagraphSettingController } from './controllers/doc-paragraph-setting.controller';
import { DocTableController } from './controllers/doc-table.controller';
import { DocUIController } from './controllers/doc-ui.controller';
import { DocBackScrollRenderController } from './controllers/render-controllers/back-scroll.render-controller';
import { DocRenderController } from './controllers/render-controllers/doc.render-controller';
import { DocChecklistRenderController } from './controllers/render-controllers/doc-checklist.render-controller';
import { DocClipboardController } from './controllers/render-controllers/doc-clipboard.controller';
import { DocContextMenuRenderController } from './controllers/render-controllers/doc-contextmenu.render-controller';
Expand All @@ -71,6 +70,7 @@ import { DocIMEInputController } from './controllers/render-controllers/doc-ime-
import { DocInputController } from './controllers/render-controllers/doc-input.controller';
import { DocResizeRenderController } from './controllers/render-controllers/doc-resize.render-controller';
import { DocSelectionRenderController } from './controllers/render-controllers/doc-selection-render.controller';
import { DocRenderController } from './controllers/render-controllers/doc.render-controller';
import { DocZoomRenderController } from './controllers/render-controllers/zoom.render-controller';
import { DocClipboardService, IDocClipboardService } from './services/clipboard/clipboard.service';
import { DocAutoFormatService } from './services/doc-auto-format.service';
Expand Down Expand Up @@ -118,7 +118,7 @@ export class UniverDocsUIPlugin extends Plugin {
if (menu) {
this._configService.setConfig('menu', menu, { merge: true });
}
this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
this._configService.setConfig(DOCS_UI_PLUGIN_CONFIG_KEY, rest);

this._initDependencies(_injector);
this._initializeShortcut();
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/controllers/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

export const PLUGIN_CONFIG_KEY = 'docs.config';
export const DOCS_PLUGIN_CONFIG_KEY = 'docs.config';

export const configSymbol = Symbol(PLUGIN_CONFIG_KEY);
export const configSymbol = Symbol(DOCS_PLUGIN_CONFIG_KEY);

export interface IUniverDocsConfig {
hasScroll?: boolean;
Expand Down
Loading

0 comments on commit 284a454

Please sign in to comment.