diff --git a/cli/src/templates/base/src/Basic/Const/PLUGIN_NAME.ts b/cli/src/templates/base/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from cli/src/templates/base/src/Basic/Const/PLUGIN_NAME.ts rename to cli/src/templates/base/src/Basics/Const/PLUGIN_NAME.ts diff --git a/cli/src/templates/base/src/Basic/Const/index.ts b/cli/src/templates/base/src/Basics/Const/index.ts similarity index 100% rename from cli/src/templates/base/src/Basic/Const/index.ts rename to cli/src/templates/base/src/Basics/Const/index.ts diff --git a/cli/src/templates/base/src/Basic/Enum/index.ts b/cli/src/templates/base/src/Basics/Enum/index.ts similarity index 100% rename from cli/src/templates/base/src/Basic/Enum/index.ts rename to cli/src/templates/base/src/Basics/Enum/index.ts diff --git a/cli/src/templates/base/src/Basic/Shared/index.ts b/cli/src/templates/base/src/Basics/Shared/index.ts similarity index 100% rename from cli/src/templates/base/src/Basic/Shared/index.ts rename to cli/src/templates/base/src/Basics/Shared/index.ts diff --git a/cli/src/templates/base/src/Basic/index.ts b/cli/src/templates/base/src/Basics/index.ts similarity index 100% rename from cli/src/templates/base/src/Basic/index.ts rename to cli/src/templates/base/src/Basics/index.ts diff --git a/cli/src/templates/base/src/SortPlugin.tsx b/cli/src/templates/base/src/SortPlugin.tsx index 9024489c66..88eabfdf4b 100644 --- a/cli/src/templates/base/src/SortPlugin.tsx +++ b/cli/src/templates/base/src/SortPlugin.tsx @@ -1,13 +1,13 @@ import { Plugin, UniverSheet } from '@univerjs/core'; import { zh, en } from './Locale'; -import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME' +import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME' import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller'; export interface I<%= projectUpperValue %>PluginConfig {} export class <%= projectUpperValue %>Plugin extends Plugin { private _<%= projectValue %>Controller: <%= projectUpperValue %>Controller; - + constructor(config ?: I<%= projectUpperValue %>PluginConfig) { super(<%= projectConstantValue %>_PLUGIN_NAME); } diff --git a/cli/src/templates/common-plugin/src/Basic/Const/PLUGIN_NAME.ts b/cli/src/templates/common-plugin/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from cli/src/templates/common-plugin/src/Basic/Const/PLUGIN_NAME.ts rename to cli/src/templates/common-plugin/src/Basics/Const/PLUGIN_NAME.ts diff --git a/cli/src/templates/common-plugin/src/Basic/Const/index.ts b/cli/src/templates/common-plugin/src/Basics/Const/index.ts similarity index 100% rename from cli/src/templates/common-plugin/src/Basic/Const/index.ts rename to cli/src/templates/common-plugin/src/Basics/Const/index.ts diff --git a/cli/src/templates/common-plugin/src/Basic/Enum/index.ts b/cli/src/templates/common-plugin/src/Basics/Enum/index.ts similarity index 100% rename from cli/src/templates/common-plugin/src/Basic/Enum/index.ts rename to cli/src/templates/common-plugin/src/Basics/Enum/index.ts diff --git a/cli/src/templates/common-plugin/src/Basic/Shared/index.ts b/cli/src/templates/common-plugin/src/Basics/Shared/index.ts similarity index 100% rename from cli/src/templates/common-plugin/src/Basic/Shared/index.ts rename to cli/src/templates/common-plugin/src/Basics/Shared/index.ts diff --git a/cli/src/templates/common-plugin/src/Basic/index.ts b/cli/src/templates/common-plugin/src/Basics/index.ts similarity index 100% rename from cli/src/templates/common-plugin/src/Basic/index.ts rename to cli/src/templates/common-plugin/src/Basics/index.ts diff --git a/cli/src/templates/common-plugin/src/SortPlugin.tsx b/cli/src/templates/common-plugin/src/SortPlugin.tsx index 8ed7447a86..b9edc4ae9d 100644 --- a/cli/src/templates/common-plugin/src/SortPlugin.tsx +++ b/cli/src/templates/common-plugin/src/SortPlugin.tsx @@ -1,6 +1,6 @@ import { Plugin, UniverSheet, UniverDoc, UniverSlide } from '@univerjs/core'; import { zh, en } from './Locale'; -import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME' +import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME' import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller'; export interface I<%= projectUpperValue %>PluginConfig {} @@ -33,7 +33,7 @@ export class <%= projectUpperValue %>Plugin extends Plugin { }); this._<%= projectValue %>Controller = new <%= projectUpperValue %>Controller(this); - + } onMounted(): void { diff --git a/cli/src/templates/docs-plugin/src/Basic/Const/PLUGIN_NAME.ts b/cli/src/templates/docs-plugin/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from cli/src/templates/docs-plugin/src/Basic/Const/PLUGIN_NAME.ts rename to cli/src/templates/docs-plugin/src/Basics/Const/PLUGIN_NAME.ts diff --git a/cli/src/templates/docs-plugin/src/Basic/Const/index.ts b/cli/src/templates/docs-plugin/src/Basics/Const/index.ts similarity index 100% rename from cli/src/templates/docs-plugin/src/Basic/Const/index.ts rename to cli/src/templates/docs-plugin/src/Basics/Const/index.ts diff --git a/cli/src/templates/docs-plugin/src/Basic/Enum/index.ts b/cli/src/templates/docs-plugin/src/Basics/Enum/index.ts similarity index 100% rename from cli/src/templates/docs-plugin/src/Basic/Enum/index.ts rename to cli/src/templates/docs-plugin/src/Basics/Enum/index.ts diff --git a/cli/src/templates/docs-plugin/src/Basic/Shared/index.ts b/cli/src/templates/docs-plugin/src/Basics/Shared/index.ts similarity index 100% rename from cli/src/templates/docs-plugin/src/Basic/Shared/index.ts rename to cli/src/templates/docs-plugin/src/Basics/Shared/index.ts diff --git a/cli/src/templates/docs-plugin/src/Basic/index.ts b/cli/src/templates/docs-plugin/src/Basics/index.ts similarity index 100% rename from cli/src/templates/docs-plugin/src/Basic/index.ts rename to cli/src/templates/docs-plugin/src/Basics/index.ts diff --git a/cli/src/templates/docs-plugin/src/Controller/SortController.ts b/cli/src/templates/docs-plugin/src/Controller/SortController.ts index c7039458f5..ac3f86abf5 100644 --- a/cli/src/templates/docs-plugin/src/Controller/SortController.ts +++ b/cli/src/templates/docs-plugin/src/Controller/SortController.ts @@ -1,6 +1,6 @@ import { BaseComponentRender } from '@univerjs/base-ui'; import { DocPlugin } from '@univerjs/base-docs'; -import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basic/Const'; +import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basics/Const'; import { <%= projectUpperValue %>Plugin } from '../<%= projectUpperValue %>Plugin'; export class <%= projectUpperValue %>Controller { diff --git a/cli/src/templates/docs-plugin/src/SortPlugin.tsx b/cli/src/templates/docs-plugin/src/SortPlugin.tsx index 698fa2bf65..3e988342db 100644 --- a/cli/src/templates/docs-plugin/src/SortPlugin.tsx +++ b/cli/src/templates/docs-plugin/src/SortPlugin.tsx @@ -1,6 +1,6 @@ import { Plugin, DocContext, UniverDoc } from '@univerjs/core'; import { zh, en } from './Locale'; -import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME' +import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME' import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller'; export interface I<%= projectUpperValue %>PluginConfig {} diff --git a/cli/src/templates/sheets-plugin/src/Basic/Const/PLUGIN_NAME.ts b/cli/src/templates/sheets-plugin/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from cli/src/templates/sheets-plugin/src/Basic/Const/PLUGIN_NAME.ts rename to cli/src/templates/sheets-plugin/src/Basics/Const/PLUGIN_NAME.ts diff --git a/cli/src/templates/sheets-plugin/src/Basic/Const/index.ts b/cli/src/templates/sheets-plugin/src/Basics/Const/index.ts similarity index 100% rename from cli/src/templates/sheets-plugin/src/Basic/Const/index.ts rename to cli/src/templates/sheets-plugin/src/Basics/Const/index.ts diff --git a/cli/src/templates/sheets-plugin/src/Basic/Enum/index.ts b/cli/src/templates/sheets-plugin/src/Basics/Enum/index.ts similarity index 100% rename from cli/src/templates/sheets-plugin/src/Basic/Enum/index.ts rename to cli/src/templates/sheets-plugin/src/Basics/Enum/index.ts diff --git a/cli/src/templates/sheets-plugin/src/Basic/Shared/index.ts b/cli/src/templates/sheets-plugin/src/Basics/Shared/index.ts similarity index 100% rename from cli/src/templates/sheets-plugin/src/Basic/Shared/index.ts rename to cli/src/templates/sheets-plugin/src/Basics/Shared/index.ts diff --git a/cli/src/templates/sheets-plugin/src/Basic/index.ts b/cli/src/templates/sheets-plugin/src/Basics/index.ts similarity index 100% rename from cli/src/templates/sheets-plugin/src/Basic/index.ts rename to cli/src/templates/sheets-plugin/src/Basics/index.ts diff --git a/cli/src/templates/sheets-plugin/src/Controller/SortController.ts b/cli/src/templates/sheets-plugin/src/Controller/SortController.ts index 747cddfdaf..6fcba615dc 100644 --- a/cli/src/templates/sheets-plugin/src/Controller/SortController.ts +++ b/cli/src/templates/sheets-plugin/src/Controller/SortController.ts @@ -2,7 +2,7 @@ import { PLUGIN_NAMES } from '@univerjs/core'; import { BaseComponentRender } from '@univerjs/base-ui'; import { IToolbarItemProps, SelectTypes, SheetPlugin } from '@univerjs/base-sheets'; -import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basic/Const'; +import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basics/Const'; import { <%= projectUpperValue %>Plugin } from '../<%= projectUpperValue %>Plugin'; export class <%= projectUpperValue %>Controller { diff --git a/cli/src/templates/sheets-plugin/src/SortPlugin.tsx b/cli/src/templates/sheets-plugin/src/SortPlugin.tsx index 608e7400a1..6a45083695 100644 --- a/cli/src/templates/sheets-plugin/src/SortPlugin.tsx +++ b/cli/src/templates/sheets-plugin/src/SortPlugin.tsx @@ -1,6 +1,6 @@ import { Plugin, SheetContext, UniverSheet } from '@univerjs/core'; import { zh, en } from './Locale'; -import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME' +import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME' import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller'; export interface I<%= projectUpperValue %>PluginConfig {} diff --git a/cli/src/templates/slides-plugin/src/Basic/Const/PLUGIN_NAME.ts b/cli/src/templates/slides-plugin/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from cli/src/templates/slides-plugin/src/Basic/Const/PLUGIN_NAME.ts rename to cli/src/templates/slides-plugin/src/Basics/Const/PLUGIN_NAME.ts diff --git a/cli/src/templates/slides-plugin/src/Basic/Const/index.ts b/cli/src/templates/slides-plugin/src/Basics/Const/index.ts similarity index 100% rename from cli/src/templates/slides-plugin/src/Basic/Const/index.ts rename to cli/src/templates/slides-plugin/src/Basics/Const/index.ts diff --git a/cli/src/templates/slides-plugin/src/Basic/Enum/index.ts b/cli/src/templates/slides-plugin/src/Basics/Enum/index.ts similarity index 100% rename from cli/src/templates/slides-plugin/src/Basic/Enum/index.ts rename to cli/src/templates/slides-plugin/src/Basics/Enum/index.ts diff --git a/cli/src/templates/slides-plugin/src/Basic/Shared/index.ts b/cli/src/templates/slides-plugin/src/Basics/Shared/index.ts similarity index 100% rename from cli/src/templates/slides-plugin/src/Basic/Shared/index.ts rename to cli/src/templates/slides-plugin/src/Basics/Shared/index.ts diff --git a/cli/src/templates/slides-plugin/src/Basic/index.ts b/cli/src/templates/slides-plugin/src/Basics/index.ts similarity index 100% rename from cli/src/templates/slides-plugin/src/Basic/index.ts rename to cli/src/templates/slides-plugin/src/Basics/index.ts diff --git a/cli/src/templates/slides-plugin/src/Controller/SortController.ts b/cli/src/templates/slides-plugin/src/Controller/SortController.ts index b47b73d14d..3670815292 100644 --- a/cli/src/templates/slides-plugin/src/Controller/SortController.ts +++ b/cli/src/templates/slides-plugin/src/Controller/SortController.ts @@ -1,6 +1,6 @@ import { BaseComponentRender } from '@univerjs/base-ui'; import { SlidePlugin } from '@univerjs/base-slides'; -import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basic/Const'; +import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basics/Const'; import { <%= projectUpperValue %>Plugin } from '../<%= projectUpperValue %>Plugin'; export class <%= projectUpperValue %>Controller { diff --git a/cli/src/templates/slides-plugin/src/SortPlugin.tsx b/cli/src/templates/slides-plugin/src/SortPlugin.tsx index d9b13a5407..a30f4054cc 100644 --- a/cli/src/templates/slides-plugin/src/SortPlugin.tsx +++ b/cli/src/templates/slides-plugin/src/SortPlugin.tsx @@ -1,6 +1,6 @@ import { Plugin, SlideContext, UniverSlide } from '@univerjs/core'; import { zh, en } from './Locale'; -import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME' +import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME' import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller'; export interface I<%= projectUpperValue %>PluginConfig {} diff --git a/cli/tsconfig.cli.json b/cli/tsconfig.cli.json index b46f63e468..89c8a245bf 100644 --- a/cli/tsconfig.cli.json +++ b/cli/tsconfig.cli.json @@ -1,6 +1,6 @@ { "compilerOptions": { - /* Basic Options */ + /* Basics Options */ // "incremental": true, /* Enable incremental compilation */ "target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, diff --git a/packages/base-docs/src/Basic/DemoData.ts b/packages/base-docs/src/Basics/DemoData.ts similarity index 100% rename from packages/base-docs/src/Basic/DemoData.ts rename to packages/base-docs/src/Basics/DemoData.ts diff --git a/packages/base-docs/src/Basic/Observer.ts b/packages/base-docs/src/Basics/Observer.ts similarity index 100% rename from packages/base-docs/src/Basic/Observer.ts rename to packages/base-docs/src/Basics/Observer.ts diff --git a/packages/base-docs/src/Basic/index.ts b/packages/base-docs/src/Basics/index.ts similarity index 100% rename from packages/base-docs/src/Basic/index.ts rename to packages/base-docs/src/Basics/index.ts diff --git a/packages/base-docs/src/DocPlugin.tsx b/packages/base-docs/src/DocPlugin.tsx index e2f1f14e17..ea807e8a41 100644 --- a/packages/base-docs/src/DocPlugin.tsx +++ b/packages/base-docs/src/DocPlugin.tsx @@ -2,7 +2,7 @@ import { DocContext, Plugin, PLUGIN_NAMES, UniverSheet, Tools, AsyncFunction } f import { zh, en } from './Locale'; import { IOCContainer } from '@univerjs/core'; import { Component, getRefElement, isElement, ISlotProps, RefObject, render } from '@univerjs/base-ui'; -import { DocPluginObserve, install } from './Basic/Observer'; +import { DocPluginObserve, install } from './Basics/Observer'; import { ToolbarController } from './Controller/ToolbarController'; import { DocumentController } from './Controller/DocumentController'; import { BaseDocContainerConfig, defaultLayout, DocContainer, IDocPluginConfigBase, ILayout } from './View/UI/DocContainer'; diff --git a/packages/base-docs/src/View/UI/Common/index.ts b/packages/base-docs/src/View/UI/Common/index.ts index cd8440b5fb..3ac4f375d8 100644 --- a/packages/base-docs/src/View/UI/Common/index.ts +++ b/packages/base-docs/src/View/UI/Common/index.ts @@ -1 +1 @@ -// Basic business components +// Basics business components diff --git a/packages/base-numfmt-engine/src/core/toYMD.ts b/packages/base-numfmt-engine/src/core/toYMD.ts index 78585cc84a..91d9149a5a 100644 --- a/packages/base-numfmt-engine/src/core/toYMD.ts +++ b/packages/base-numfmt-engine/src/core/toYMD.ts @@ -34,7 +34,7 @@ export function toYMD_1904(ord) { // https://web.archive.org/web/20080209173858/https://www.microsoft.com/globaldev/DrIntl/columns/002/default.mspx // > [algorithm] is used in many Microsoft products, including all operating systems that -// > support Arabic locales, Microsoft Office, COM, Visual Basic, VBA, and SQL Server 2000. +// > support Arabic locales, Microsoft Office, COM, Visual Basics, VBA, and SQL Server 2000. export function toYMD_1317(ord) { if (ord === 60) { throw new Error('#VALUE!'); diff --git a/packages/base-slides/src/Basic/Const/PLUGIN_NAME.ts b/packages/base-slides/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/base-slides/src/Basic/Const/PLUGIN_NAME.ts rename to packages/base-slides/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/base-slides/src/Basic/Const/index.ts b/packages/base-slides/src/Basics/Const/index.ts similarity index 100% rename from packages/base-slides/src/Basic/Const/index.ts rename to packages/base-slides/src/Basics/Const/index.ts diff --git a/packages/base-slides/src/Basic/DemoData.ts b/packages/base-slides/src/Basics/DemoData.ts similarity index 100% rename from packages/base-slides/src/Basic/DemoData.ts rename to packages/base-slides/src/Basics/DemoData.ts diff --git a/packages/base-slides/src/Basic/Enum/index.ts b/packages/base-slides/src/Basics/Enum/index.ts similarity index 100% rename from packages/base-slides/src/Basic/Enum/index.ts rename to packages/base-slides/src/Basics/Enum/index.ts diff --git a/packages/base-slides/src/Basic/Observer.ts b/packages/base-slides/src/Basics/Observer.ts similarity index 100% rename from packages/base-slides/src/Basic/Observer.ts rename to packages/base-slides/src/Basics/Observer.ts diff --git a/packages/base-slides/src/Basic/Shared/index.ts b/packages/base-slides/src/Basics/Shared/index.ts similarity index 100% rename from packages/base-slides/src/Basic/Shared/index.ts rename to packages/base-slides/src/Basics/Shared/index.ts diff --git a/packages/base-slides/src/Basic/index.ts b/packages/base-slides/src/Basics/index.ts similarity index 100% rename from packages/base-slides/src/Basic/index.ts rename to packages/base-slides/src/Basics/index.ts diff --git a/packages/base-slides/src/SlidePlugin.tsx b/packages/base-slides/src/SlidePlugin.tsx index 4e76e9c121..4b73c80152 100644 --- a/packages/base-slides/src/SlidePlugin.tsx +++ b/packages/base-slides/src/SlidePlugin.tsx @@ -2,7 +2,7 @@ import { SlideContext, Plugin, PLUGIN_NAMES, UniverSheet, Tools, AsyncFunction } import { getRefElement, isElement, ISlotProps, RefObject, render } from '@univerjs/base-ui'; import { Engine, RenderEngine } from '@univerjs/base-render'; import { zh, en } from './Locale'; -import { install, SlidePluginObserve } from './Basic/Observer'; +import { install, SlidePluginObserve } from './Basics/Observer'; import { ToolbarController } from './Controller/ToolbarController'; import { SlideController } from './Controller/SlideController'; import { InfoBarController } from './Controller/InfoBarController'; diff --git a/packages/base-slides/src/View/UI/Common/index.ts b/packages/base-slides/src/View/UI/Common/index.ts index cd8440b5fb..3ac4f375d8 100644 --- a/packages/base-slides/src/View/UI/Common/index.ts +++ b/packages/base-slides/src/View/UI/Common/index.ts @@ -1 +1 @@ -// Basic business components +// Basics business components diff --git a/packages/base-ui/src/Basics/Shared/Locale.ts b/packages/base-ui/src/Basics/Shared/Locale.ts index 20d88705f0..56c101ef07 100644 --- a/packages/base-ui/src/Basics/Shared/Locale.ts +++ b/packages/base-ui/src/Basics/Shared/Locale.ts @@ -35,7 +35,7 @@ export type ILocaleOptions = { }; /** - * Basic English internationalization object + * Basics English internationalization object * * The internationalized language pack of the plug-in will be dynamically loaded in each plug-in. */ diff --git a/packages/common-plugin-collaboration/src/Basic/Const/PLUGIN_NAME.ts b/packages/common-plugin-collaboration/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/common-plugin-collaboration/src/Basic/Const/PLUGIN_NAME.ts rename to packages/common-plugin-collaboration/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/common-plugin-collaboration/src/Basic/Const/index.ts b/packages/common-plugin-collaboration/src/Basics/Const/index.ts similarity index 100% rename from packages/common-plugin-collaboration/src/Basic/Const/index.ts rename to packages/common-plugin-collaboration/src/Basics/Const/index.ts diff --git a/packages/common-plugin-collaboration/src/Basic/Enum/index.ts b/packages/common-plugin-collaboration/src/Basics/Enum/index.ts similarity index 100% rename from packages/common-plugin-collaboration/src/Basic/Enum/index.ts rename to packages/common-plugin-collaboration/src/Basics/Enum/index.ts diff --git a/packages/common-plugin-collaboration/src/Basic/Shared/index.ts b/packages/common-plugin-collaboration/src/Basics/Shared/index.ts similarity index 100% rename from packages/common-plugin-collaboration/src/Basic/Shared/index.ts rename to packages/common-plugin-collaboration/src/Basics/Shared/index.ts diff --git a/packages/common-plugin-collaboration/src/Basic/index.ts b/packages/common-plugin-collaboration/src/Basics/index.ts similarity index 100% rename from packages/common-plugin-collaboration/src/Basic/index.ts rename to packages/common-plugin-collaboration/src/Basics/index.ts diff --git a/packages/common-plugin-collaboration/src/CollaborationPlugin.tsx b/packages/common-plugin-collaboration/src/CollaborationPlugin.tsx index 6c4c7ed2dc..63aee11c2c 100644 --- a/packages/common-plugin-collaboration/src/CollaborationPlugin.tsx +++ b/packages/common-plugin-collaboration/src/CollaborationPlugin.tsx @@ -1,6 +1,6 @@ import { Plugin, UniverSheet, UniverDoc, UniverSlide } from '@univerjs/core'; import { zh, en } from './Locale'; -import { COLLABORATION_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { COLLABORATION_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; import { CollaborationController } from './Controller/CollaborationController'; export interface ICollaborationPluginConfig { diff --git a/packages/core/src/Interfaces/IDocumentData.ts b/packages/core/src/Interfaces/IDocumentData.ts index eef16e98c6..7066da6af2 100644 --- a/packages/core/src/Interfaces/IDocumentData.ts +++ b/packages/core/src/Interfaces/IDocumentData.ts @@ -199,7 +199,7 @@ export interface IHeaderAndFooterBase { } /** - * Basic properties of doc style + * Basics properties of doc style */ export interface IDocStyleBase extends IMargin { pageNumberStart?: number; // pageNumberStart diff --git a/packages/core/src/Plugin/Plugin.ts b/packages/core/src/Plugin/Plugin.ts index 4fd03f8a70..a2a6558663 100644 --- a/packages/core/src/Plugin/Plugin.ts +++ b/packages/core/src/Plugin/Plugin.ts @@ -5,7 +5,7 @@ import { Locale, Nullable, PropsFrom } from '../Shared'; import { Univer } from '../Basics'; /** - * Basic function of plugin + * Basics function of plugin */ export interface BasePlugin { context: ContextBase; diff --git a/packages/core/src/Shared/Locale.ts b/packages/core/src/Shared/Locale.ts index 701ce1fd18..e54b691784 100644 --- a/packages/core/src/Shared/Locale.ts +++ b/packages/core/src/Shared/Locale.ts @@ -36,7 +36,7 @@ export type ILocaleOptions = { }; /** - * Basic English internationalization object + * Basics English internationalization object * * The internationalized language pack of the plug-in will be dynamically loaded in each plug-in. */ diff --git a/packages/sheets-plugin-find/src/Basic/Observer.ts b/packages/sheets-plugin-find/src/Basics/Observer.ts similarity index 100% rename from packages/sheets-plugin-find/src/Basic/Observer.ts rename to packages/sheets-plugin-find/src/Basics/Observer.ts diff --git a/packages/sheets-plugin-find/src/FindPlugin.ts b/packages/sheets-plugin-find/src/FindPlugin.ts index d54243230f..8cb2ac2de9 100644 --- a/packages/sheets-plugin-find/src/FindPlugin.ts +++ b/packages/sheets-plugin-find/src/FindPlugin.ts @@ -7,7 +7,7 @@ import { FIND_PLUGIN_NAME } from './Const/PLUGIN_NAME'; import { FindController } from './Controller/FindController'; import en from './Locale/en'; import zh from './Locale/zh'; -import { FindPluginObserve, install } from './Basic/Observer'; +import { FindPluginObserve, install } from './Basics/Observer'; import { FindModalController } from './Controller/FindModalController'; export interface IFindPluginConfig {} diff --git a/packages/sheets-plugin-find/src/View/UI/test.js b/packages/sheets-plugin-find/src/View/UI/test.js index 4e49641e7c..93a5f227b2 100644 --- a/packages/sheets-plugin-find/src/View/UI/test.js +++ b/packages/sheets-plugin-find/src/View/UI/test.js @@ -248,12 +248,12 @@ window.sheetFormula = { r: 1, c: 0, v: { - v: 'Basic Function', + v: 'Basics Function', ct: { fa: 'General', t: 'g', }, - m: 'Basic Function', + m: 'Basics Function', bg: null, bl: 1, it: 0, diff --git a/packages/sheets-plugin-formula/src/Basic/Cache.ts b/packages/sheets-plugin-formula/src/Basics/Cache.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Cache.ts rename to packages/sheets-plugin-formula/src/Basics/Cache.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Const/CONFIG.ts b/packages/sheets-plugin-formula/src/Basics/Const/CONFIG.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Const/CONFIG.ts rename to packages/sheets-plugin-formula/src/Basics/Const/CONFIG.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Const/DEFAULT_FORMULA_DATA.ts b/packages/sheets-plugin-formula/src/Basics/Const/DEFAULT_FORMULA_DATA.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Const/DEFAULT_FORMULA_DATA.ts rename to packages/sheets-plugin-formula/src/Basics/Const/DEFAULT_FORMULA_DATA.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Const/FunctionList.ts b/packages/sheets-plugin-formula/src/Basics/Const/FunctionList.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Const/FunctionList.ts rename to packages/sheets-plugin-formula/src/Basics/Const/FunctionList.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Const/PLUGIN_NAME.ts b/packages/sheets-plugin-formula/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Const/PLUGIN_NAME.ts rename to packages/sheets-plugin-formula/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Const/index.ts b/packages/sheets-plugin-formula/src/Basics/Const/index.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Const/index.ts rename to packages/sheets-plugin-formula/src/Basics/Const/index.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Enum/ACTION_NAMES.ts b/packages/sheets-plugin-formula/src/Basics/Enum/ACTION_NAMES.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Enum/ACTION_NAMES.ts rename to packages/sheets-plugin-formula/src/Basics/Enum/ACTION_NAMES.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Enum/FunctionType.ts b/packages/sheets-plugin-formula/src/Basics/Enum/FunctionType.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Enum/FunctionType.ts rename to packages/sheets-plugin-formula/src/Basics/Enum/FunctionType.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Enum/index.ts b/packages/sheets-plugin-formula/src/Basics/Enum/index.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Enum/index.ts rename to packages/sheets-plugin-formula/src/Basics/Enum/index.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Interfaces/IFormula.ts b/packages/sheets-plugin-formula/src/Basics/Interfaces/IFormula.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Interfaces/IFormula.ts rename to packages/sheets-plugin-formula/src/Basics/Interfaces/IFormula.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Interfaces/index.ts b/packages/sheets-plugin-formula/src/Basics/Interfaces/index.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Interfaces/index.ts rename to packages/sheets-plugin-formula/src/Basics/Interfaces/index.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Observer.ts b/packages/sheets-plugin-formula/src/Basics/Observer.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Observer.ts rename to packages/sheets-plugin-formula/src/Basics/Observer.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Register/FormulaActionExtension.ts b/packages/sheets-plugin-formula/src/Basics/Register/FormulaActionExtension.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Register/FormulaActionExtension.ts rename to packages/sheets-plugin-formula/src/Basics/Register/FormulaActionExtension.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Register/FormulaCellEditExtension.ts b/packages/sheets-plugin-formula/src/Basics/Register/FormulaCellEditExtension.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Register/FormulaCellEditExtension.ts rename to packages/sheets-plugin-formula/src/Basics/Register/FormulaCellEditExtension.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Register/FormulaCellInputExtension.ts b/packages/sheets-plugin-formula/src/Basics/Register/FormulaCellInputExtension.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Register/FormulaCellInputExtension.ts rename to packages/sheets-plugin-formula/src/Basics/Register/FormulaCellInputExtension.ts diff --git a/packages/sheets-plugin-formula/src/Basic/Register/index.ts b/packages/sheets-plugin-formula/src/Basics/Register/index.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/Register/index.ts rename to packages/sheets-plugin-formula/src/Basics/Register/index.ts diff --git a/packages/sheets-plugin-formula/src/Basic/index.ts b/packages/sheets-plugin-formula/src/Basics/index.ts similarity index 100% rename from packages/sheets-plugin-formula/src/Basic/index.ts rename to packages/sheets-plugin-formula/src/Basics/index.ts diff --git a/packages/sheets-plugin-formula/src/Controller/CellInputHandler.ts b/packages/sheets-plugin-formula/src/Controller/CellInputHandler.ts index b2c20398b3..3fbd792272 100644 --- a/packages/sheets-plugin-formula/src/Controller/CellInputHandler.ts +++ b/packages/sheets-plugin-formula/src/Controller/CellInputHandler.ts @@ -1,6 +1,6 @@ import { $$, getNodeindex, xssDeal } from '@univerjs/base-ui'; import { Nullable, Tools } from '@univerjs/core'; -import { FunList } from '../Basic'; +import { FunList } from '../Basics'; /** * Random color for formula cell input diff --git a/packages/sheets-plugin-formula/src/Controller/FormulaController.tsx b/packages/sheets-plugin-formula/src/Controller/FormulaController.tsx index d955f9dd30..e22ea821fe 100644 --- a/packages/sheets-plugin-formula/src/Controller/FormulaController.tsx +++ b/packages/sheets-plugin-formula/src/Controller/FormulaController.tsx @@ -2,8 +2,8 @@ import { FormulaEnginePlugin, IInterpreterDatasetConfig, SheetDataType, UnitData import { SheetPlugin } from '@univerjs/base-sheets'; import { PLUGIN_NAMES, SheetContext } from '@univerjs/core'; import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets'; -import { FORMULA_PLUGIN_NAME } from '../Basic'; -import { IFormulaConfig } from '../Basic/Interfaces/IFormula'; +import { FORMULA_PLUGIN_NAME } from '../Basics'; +import { IFormulaConfig } from '../Basics/Interfaces/IFormula'; import { FormulaPlugin } from '../FormulaPlugin'; import { FormulaDataModel } from '../Model/FormulaDataModel'; import { FormulaLabel } from '../View/UI/FormulaLabel'; diff --git a/packages/sheets-plugin-formula/src/Controller/FormulaPromptController.ts b/packages/sheets-plugin-formula/src/Controller/FormulaPromptController.ts index ee482a075f..935d4d6dec 100644 --- a/packages/sheets-plugin-formula/src/Controller/FormulaPromptController.ts +++ b/packages/sheets-plugin-formula/src/Controller/FormulaPromptController.ts @@ -2,7 +2,7 @@ import { $$, getRefElement } from '@univerjs/base-ui'; import { SheetPlugin } from '@univerjs/base-sheets'; import { KeyCode, PLUGIN_NAMES, SheetContext } from '@univerjs/core'; import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets'; -import { FORMULA_PLUGIN_NAME, FunList } from '../Basic'; +import { FORMULA_PLUGIN_NAME, FunList } from '../Basics'; import { FormulaPlugin } from '../FormulaPlugin'; import { HelpFunction, SearchFunction } from '../View/UI/FormulaPrompt'; import { CellInputHandler } from './CellInputHandler'; diff --git a/packages/sheets-plugin-formula/src/Controller/SearchFormulaModalController.ts b/packages/sheets-plugin-formula/src/Controller/SearchFormulaModalController.ts index fc03f52c37..41512ddf5d 100644 --- a/packages/sheets-plugin-formula/src/Controller/SearchFormulaModalController.ts +++ b/packages/sheets-plugin-formula/src/Controller/SearchFormulaModalController.ts @@ -2,7 +2,7 @@ import { ComponentChildren } from '@univerjs/base-ui'; import { SheetPlugin } from '@univerjs/base-sheets'; import { PLUGIN_NAMES } from '@univerjs/core'; import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets'; -import { FormulaType, FORMULA_PLUGIN_NAME, FunList, SelectCategoryType } from '../Basic'; +import { FormulaType, FORMULA_PLUGIN_NAME, FunList, SelectCategoryType } from '../Basics'; import { FormulaPlugin } from '../FormulaPlugin'; import { SearchFormulaContent } from '../View/UI/SearchFormulaModal/SearchFormulaContent'; import { SearchFormulaModal } from '../View/UI/SearchFormulaModal/SearchFormulaModal'; diff --git a/packages/sheets-plugin-formula/src/FormulaPlugin.tsx b/packages/sheets-plugin-formula/src/FormulaPlugin.tsx index 063348c56d..a7ee5bc830 100644 --- a/packages/sheets-plugin-formula/src/FormulaPlugin.tsx +++ b/packages/sheets-plugin-formula/src/FormulaPlugin.tsx @@ -4,14 +4,14 @@ import { CellEditExtensionManager, CellInputExtensionManager, Icon } from '@univ import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets'; import { zh, en } from './Locale'; -import { IFormulaConfig } from './Basic/Interfaces/IFormula'; -import { FORMULA_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { IFormulaConfig } from './Basics/Interfaces/IFormula'; +import { FORMULA_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; import { FormulaController } from './Controller/FormulaController'; import { firstLoader } from './Controller/FirstLoader'; -import { FormulaCellEditExtensionFactory } from './Basic/Register/FormulaCellEditExtension'; -import { FormulaCellInputExtensionFactory } from './Basic/Register/FormulaCellInputExtension'; -import { FormulaActionExtensionFactory } from './Basic/Register'; -import { FormulaPluginObserve, install } from './Basic/Observer'; +import { FormulaCellEditExtensionFactory } from './Basics/Register/FormulaCellEditExtension'; +import { FormulaCellInputExtensionFactory } from './Basics/Register/FormulaCellInputExtension'; +import { FormulaActionExtensionFactory } from './Basics/Register'; +import { FormulaPluginObserve, install } from './Basics/Observer'; import { SearchFormulaController } from './Controller/SearchFormulaModalController'; import { FormulaPromptController } from './Controller/FormulaPromptController'; diff --git a/packages/sheets-plugin-formula/src/Model/Apply/SetFormulaRangeData.ts b/packages/sheets-plugin-formula/src/Model/Apply/SetFormulaRangeData.ts index 4890e53423..24d4e1e52c 100644 --- a/packages/sheets-plugin-formula/src/Model/Apply/SetFormulaRangeData.ts +++ b/packages/sheets-plugin-formula/src/Model/Apply/SetFormulaRangeData.ts @@ -1,6 +1,6 @@ import { Tools, Workbook } from '@univerjs/core'; import { FormulaDataType } from '@univerjs/base-formula-engine'; -import { FORMULA_PLUGIN_NAME } from '../../Basic'; +import { FORMULA_PLUGIN_NAME } from '../../Basics'; import { FormulaPlugin } from '../../FormulaPlugin'; export function SetFormulaRangeData(workbook: Workbook, formulaData: FormulaDataType): FormulaDataType { diff --git a/packages/sheets-plugin-formula/src/Model/FormulaDataModel.ts b/packages/sheets-plugin-formula/src/Model/FormulaDataModel.ts index f57af28c30..9396def4bd 100644 --- a/packages/sheets-plugin-formula/src/Model/FormulaDataModel.ts +++ b/packages/sheets-plugin-formula/src/Model/FormulaDataModel.ts @@ -1,6 +1,6 @@ import { ArrayFormulaDataType, FormulaDataType } from '@univerjs/base-formula-engine'; import { ObjectMatrix } from '@univerjs/core'; -import { IFormulaConfig, RecalculationModeType } from '../Basic/Interfaces/IFormula'; +import { IFormulaConfig, RecalculationModeType } from '../Basics/Interfaces/IFormula'; export class FormulaDataModel { private _formulaData: FormulaDataType = {}; diff --git a/packages/sheets-plugin-formula/src/Model/RegisterAction.ts b/packages/sheets-plugin-formula/src/Model/RegisterAction.ts index f572b58d4d..877bb510bd 100644 --- a/packages/sheets-plugin-formula/src/Model/RegisterAction.ts +++ b/packages/sheets-plugin-formula/src/Model/RegisterAction.ts @@ -1,5 +1,5 @@ import { CommandManager } from '@univerjs/core'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; import { SetFormulaRangeDataAction } from './Action/SetFormulaRangeDataAction'; CommandManager.register(ACTION_NAMES.SET_FORMULA_RANGE_DATA_ACTION, SetFormulaRangeDataAction); diff --git a/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/HelpFunction.tsx b/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/HelpFunction.tsx index 1890ab575a..acd9ee86f2 100644 --- a/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/HelpFunction.tsx +++ b/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/HelpFunction.tsx @@ -1,5 +1,5 @@ import { Component, createRef } from '@univerjs/base-ui'; -import { FormulaParamType, FormulaType } from '../../../Basic'; +import { FormulaParamType, FormulaType } from '../../../Basics'; import styles from './index.module.less'; interface IProps { diff --git a/packages/sheets-plugin-formula/src/View/UI/IfGenerate/ifGenerate.tsx b/packages/sheets-plugin-formula/src/View/UI/IfGenerate/ifGenerate.tsx index 3c7065a4a2..92675a4271 100644 --- a/packages/sheets-plugin-formula/src/View/UI/IfGenerate/ifGenerate.tsx +++ b/packages/sheets-plugin-formula/src/View/UI/IfGenerate/ifGenerate.tsx @@ -1,6 +1,6 @@ import { BaseButtonProps, BaseComponentSheet, BaseModalProps, BaseSelectProps, Component, FunctionComponent } from '@univerjs/base-ui'; import { Nullable, Observer, Workbook } from '@univerjs/core'; -import { IConfig } from '../../Basic/Interfaces/IFormula'; +import { IConfig } from '../../Basics/Interfaces/IFormula'; import styles from './index.module.less'; interface IProps { diff --git a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaContent.tsx b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaContent.tsx index a0b2b2aad1..efd0b1ee49 100644 --- a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaContent.tsx +++ b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaContent.tsx @@ -1,5 +1,5 @@ import { BaseComponentProps, Component, createRef, debounce, Input, Select } from '@univerjs/base-ui'; -import { FormulaType } from '../../../Basic'; +import { FormulaType } from '../../../Basics'; import { FunListILabel, Label } from '../../../Controller/SearchFormulaModalController'; import styles from './index.module.less'; diff --git a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaModal1.tsx b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaModal1.tsx index 4b4f4ddffe..07d8275e34 100644 --- a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaModal1.tsx +++ b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaModal1.tsx @@ -1,7 +1,7 @@ import { BaseButtonProps, BaseComponentSheet, BaseModalProps, BaseSelectProps, Component, createRef, FunctionComponent } from '@univerjs/base-ui'; import { Nullable, Observer, Workbook } from '@univerjs/core'; -import * as func from '../../Basic/Const/FunctionList'; // 全部公式数组 -import { IConfig } from '../../Basic/Interfaces/IFormula'; +import * as func from '../../Basics/Const/FunctionList'; // 全部公式数组 +import { IConfig } from '../../Basics/Interfaces/IFormula'; import styles from './index.module.less'; interface IProps { diff --git a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchItem.tsx b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchItem.tsx index 58909980fc..f3e2e0e7b1 100644 --- a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchItem.tsx +++ b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchItem.tsx @@ -1,5 +1,5 @@ import { BaseComponentProps, CellRange, Component } from '@univerjs/base-ui'; -import { FormulaParamType } from '../../../Basic'; +import { FormulaParamType } from '../../../Basics'; import { FunParams } from '../../../Controller/SearchFormulaModalController'; import styles from './index.module.less'; diff --git a/packages/sheets-plugin-formula/src/index.ts b/packages/sheets-plugin-formula/src/index.ts index 49eafa08d3..b5a1327ed2 100644 --- a/packages/sheets-plugin-formula/src/index.ts +++ b/packages/sheets-plugin-formula/src/index.ts @@ -2,4 +2,4 @@ import './Model/RegisterAction'; export * from './FormulaPlugin'; -export * from './Basic' +export * from './Basics' diff --git a/packages/sheets-plugin-freeze/src/Action/RegisterAction.ts b/packages/sheets-plugin-freeze/src/Action/RegisterAction.ts index c4cc3dd29d..caad5b4420 100644 --- a/packages/sheets-plugin-freeze/src/Action/RegisterAction.ts +++ b/packages/sheets-plugin-freeze/src/Action/RegisterAction.ts @@ -1,5 +1,5 @@ import { CommandManager } from '@univerjs/core'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; import { SetFrozenColumnsAction } from './SetFrozenColumnsAction'; import { SetFrozenRowsAction } from './SetFrozenRowsAction'; diff --git a/packages/sheets-plugin-freeze/src/Action/SetFrozenCancelAction.ts b/packages/sheets-plugin-freeze/src/Action/SetFrozenCancelAction.ts index bc1bf1e473..452b526f34 100644 --- a/packages/sheets-plugin-freeze/src/Action/SetFrozenCancelAction.ts +++ b/packages/sheets-plugin-freeze/src/Action/SetFrozenCancelAction.ts @@ -2,7 +2,7 @@ import { SheetActionBase, ISheetActionData, Workbook, ActionObservers, ActionTyp import { SetFrozenCancel } from '../Apply/SetFrozenCancel'; import { SetFrozenColumns } from '../Apply/SetFrozenColumns'; import { SetFrozenRows } from '../Apply/SetFrozenRows'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; export class SetFrozenCancelAction extends SheetActionBase { _numbers: number[] = []; diff --git a/packages/sheets-plugin-freeze/src/Action/SetFrozenColumnsAction.ts b/packages/sheets-plugin-freeze/src/Action/SetFrozenColumnsAction.ts index f806926bcd..ff457db6c5 100644 --- a/packages/sheets-plugin-freeze/src/Action/SetFrozenColumnsAction.ts +++ b/packages/sheets-plugin-freeze/src/Action/SetFrozenColumnsAction.ts @@ -1,6 +1,6 @@ import { ISheetActionData, SheetActionBase, Workbook, ActionObservers, ActionType } from '@univerjs/core'; import { SetFrozenColumns } from '../Apply/SetFrozenColumns'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; export interface ISetFrozenColumnsActionData extends ISheetActionData { numColumns: number; diff --git a/packages/sheets-plugin-freeze/src/Action/SetFrozenRowsAction.ts b/packages/sheets-plugin-freeze/src/Action/SetFrozenRowsAction.ts index 9b5a42e6ff..bfb2b250dc 100644 --- a/packages/sheets-plugin-freeze/src/Action/SetFrozenRowsAction.ts +++ b/packages/sheets-plugin-freeze/src/Action/SetFrozenRowsAction.ts @@ -1,6 +1,6 @@ import { ISheetActionData, SheetActionBase, Workbook, ActionObservers, ActionType } from '@univerjs/core'; import { SetFrozenRows } from '../Apply/SetFrozenRows'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; export interface ISetFrozenRowsActionData extends ISheetActionData { numRows: number; diff --git a/packages/sheets-plugin-freeze/src/Basic/Const/PLUGIN_NAME.ts b/packages/sheets-plugin-freeze/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/sheets-plugin-freeze/src/Basic/Const/PLUGIN_NAME.ts rename to packages/sheets-plugin-freeze/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/sheets-plugin-freeze/src/Basic/Enum/ACTION_NAMES.ts b/packages/sheets-plugin-freeze/src/Basics/Enum/ACTION_NAMES.ts similarity index 100% rename from packages/sheets-plugin-freeze/src/Basic/Enum/ACTION_NAMES.ts rename to packages/sheets-plugin-freeze/src/Basics/Enum/ACTION_NAMES.ts diff --git a/packages/sheets-plugin-freeze/src/Controller/Freeze.ts b/packages/sheets-plugin-freeze/src/Controller/Freeze.ts index 1d045f79a5..89a61b69f4 100644 --- a/packages/sheets-plugin-freeze/src/Controller/Freeze.ts +++ b/packages/sheets-plugin-freeze/src/Controller/Freeze.ts @@ -1,5 +1,5 @@ import { CommandManager, Worksheet, Command, SheetContext } from '@univerjs/core'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; export class Freeze { private _commandManager: CommandManager; diff --git a/packages/sheets-plugin-freeze/src/FreezePlugin.tsx b/packages/sheets-plugin-freeze/src/FreezePlugin.tsx index b8077ba411..782e608665 100644 --- a/packages/sheets-plugin-freeze/src/FreezePlugin.tsx +++ b/packages/sheets-plugin-freeze/src/FreezePlugin.tsx @@ -1,7 +1,7 @@ import { IToolbarItemProps, ISlotElement } from '@univerjs/base-ui'; import { SheetContext, IOCContainer, UniverSheet, Plugin, PLUGIN_NAMES } from '@univerjs/core'; import { SheetPlugin } from '@univerjs/base-sheets'; -import { FROZEN_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { FROZEN_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; import { IConfig } from './IData'; import { en, zh } from './Model/Locale'; import { FreezeButton } from './View/UI/FreezeButton'; diff --git a/packages/sheets-plugin-group/src/Action/RegisterAction.ts b/packages/sheets-plugin-group/src/Action/RegisterAction.ts index f12d0eddb4..daab9c2e8a 100644 --- a/packages/sheets-plugin-group/src/Action/RegisterAction.ts +++ b/packages/sheets-plugin-group/src/Action/RegisterAction.ts @@ -1,5 +1,5 @@ import { CommandManager } from '@univerjs/core'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; import { SetCollapseAllColumnGroupsAction } from './SetCollapseAllColumnGroupsAction'; import { SetCollapseAllRowGroupsAction } from './SetCollapseAllRowGroupsAction'; diff --git a/packages/sheets-plugin-group/src/Basic/Const/PLUGIN_NAME.ts b/packages/sheets-plugin-group/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/sheets-plugin-group/src/Basic/Const/PLUGIN_NAME.ts rename to packages/sheets-plugin-group/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/sheets-plugin-group/src/Basic/Const/index.ts b/packages/sheets-plugin-group/src/Basics/Const/index.ts similarity index 100% rename from packages/sheets-plugin-group/src/Basic/Const/index.ts rename to packages/sheets-plugin-group/src/Basics/Const/index.ts diff --git a/packages/sheets-plugin-group/src/Basic/Enum/ACTION_NAMES.ts b/packages/sheets-plugin-group/src/Basics/Enum/ACTION_NAMES.ts similarity index 100% rename from packages/sheets-plugin-group/src/Basic/Enum/ACTION_NAMES.ts rename to packages/sheets-plugin-group/src/Basics/Enum/ACTION_NAMES.ts diff --git a/packages/sheets-plugin-group/src/Basic/Enum/index.ts b/packages/sheets-plugin-group/src/Basics/Enum/index.ts similarity index 100% rename from packages/sheets-plugin-group/src/Basic/Enum/index.ts rename to packages/sheets-plugin-group/src/Basics/Enum/index.ts diff --git a/packages/sheets-plugin-group/src/Basic/Shared/index.ts b/packages/sheets-plugin-group/src/Basics/Shared/index.ts similarity index 100% rename from packages/sheets-plugin-group/src/Basic/Shared/index.ts rename to packages/sheets-plugin-group/src/Basics/Shared/index.ts diff --git a/packages/sheets-plugin-group/src/Basic/index.ts b/packages/sheets-plugin-group/src/Basics/index.ts similarity index 100% rename from packages/sheets-plugin-group/src/Basic/index.ts rename to packages/sheets-plugin-group/src/Basics/index.ts diff --git a/packages/sheets-plugin-group/src/GroupPlugin.tsx b/packages/sheets-plugin-group/src/GroupPlugin.tsx index 2aaeb63981..cae4361fad 100644 --- a/packages/sheets-plugin-group/src/GroupPlugin.tsx +++ b/packages/sheets-plugin-group/src/GroupPlugin.tsx @@ -5,7 +5,7 @@ import { zh, en } from './Locale'; import { IToolbarItemProps, ISlotElement } from '@univerjs/base-ui'; import { IOCContainer } from '@univerjs/core'; import { SheetPlugin } from '@univerjs/base-sheets'; -import { GROUP_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { GROUP_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; export interface IGroupPluginConfig {} diff --git a/packages/sheets-plugin-image/src/Basic/Observer.ts b/packages/sheets-plugin-image/src/Basics/Observer.ts similarity index 100% rename from packages/sheets-plugin-image/src/Basic/Observer.ts rename to packages/sheets-plugin-image/src/Basics/Observer.ts diff --git a/packages/sheets-plugin-image/src/OverGridImagePlugin.tsx b/packages/sheets-plugin-image/src/OverGridImagePlugin.tsx index 2ae3822d8d..2716f8d47d 100644 --- a/packages/sheets-plugin-image/src/OverGridImagePlugin.tsx +++ b/packages/sheets-plugin-image/src/OverGridImagePlugin.tsx @@ -3,7 +3,7 @@ import { Command, Plugin, PLUGIN_NAMES, Nullable, Worksheet, IOCContainer, Unive import { SheetPlugin } from '@univerjs/base-sheets'; import { IPictureProps } from '@univerjs/base-render'; import { ACTION_NAMES } from './Const'; -import { ImagePluginObserve, install, uninstall } from './Basic/Observer'; +import { ImagePluginObserve, install, uninstall } from './Basics/Observer'; import { OVER_GRID_IMAGE_PLUGIN_NAME } from './Const/PLUGIN_NAME'; import { OverImageRender } from './View/OverImageRender'; import { BorderType } from './Enum/BorderType'; diff --git a/packages/sheets-plugin-import-xlsx/src/Basic/Const/PLUGIN_NAME.ts b/packages/sheets-plugin-import-xlsx/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/sheets-plugin-import-xlsx/src/Basic/Const/PLUGIN_NAME.ts rename to packages/sheets-plugin-import-xlsx/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/sheets-plugin-import-xlsx/src/Basic/Const/index.ts b/packages/sheets-plugin-import-xlsx/src/Basics/Const/index.ts similarity index 100% rename from packages/sheets-plugin-import-xlsx/src/Basic/Const/index.ts rename to packages/sheets-plugin-import-xlsx/src/Basics/Const/index.ts diff --git a/packages/sheets-plugin-import-xlsx/src/Basic/Enum/index.ts b/packages/sheets-plugin-import-xlsx/src/Basics/Enum/index.ts similarity index 100% rename from packages/sheets-plugin-import-xlsx/src/Basic/Enum/index.ts rename to packages/sheets-plugin-import-xlsx/src/Basics/Enum/index.ts diff --git a/packages/sheets-plugin-import-xlsx/src/Basic/Register/DragAndDropExtension.ts b/packages/sheets-plugin-import-xlsx/src/Basics/Register/DragAndDropExtension.ts similarity index 100% rename from packages/sheets-plugin-import-xlsx/src/Basic/Register/DragAndDropExtension.ts rename to packages/sheets-plugin-import-xlsx/src/Basics/Register/DragAndDropExtension.ts diff --git a/packages/sheets-plugin-import-xlsx/src/Basic/Shared/index.ts b/packages/sheets-plugin-import-xlsx/src/Basics/Shared/index.ts similarity index 100% rename from packages/sheets-plugin-import-xlsx/src/Basic/Shared/index.ts rename to packages/sheets-plugin-import-xlsx/src/Basics/Shared/index.ts diff --git a/packages/sheets-plugin-import-xlsx/src/Basic/index.ts b/packages/sheets-plugin-import-xlsx/src/Basics/index.ts similarity index 100% rename from packages/sheets-plugin-import-xlsx/src/Basic/index.ts rename to packages/sheets-plugin-import-xlsx/src/Basics/index.ts diff --git a/packages/sheets-plugin-import-xlsx/src/Controller/ImportXlsxController.ts b/packages/sheets-plugin-import-xlsx/src/Controller/ImportXlsxController.ts index 1e6670a728..f2bbb1fe15 100644 --- a/packages/sheets-plugin-import-xlsx/src/Controller/ImportXlsxController.ts +++ b/packages/sheets-plugin-import-xlsx/src/Controller/ImportXlsxController.ts @@ -3,7 +3,7 @@ import { BaseComponentRender } from '@univerjs/base-ui'; import { IToolbarItemProps, SelectTypes, SheetPlugin } from '@univerjs/base-sheets'; import * as LuckyExcel from 'luckyexcel'; -import { IMPORT_XLSX_PLUGIN_NAME } from '../Basic/Const'; +import { IMPORT_XLSX_PLUGIN_NAME } from '../Basics/Const'; import { ImportXlsxPlugin } from '../ImportXlsxPlugin'; export class ImportXlsxController { diff --git a/packages/sheets-plugin-import-xlsx/src/ImportXlsxPlugin.tsx b/packages/sheets-plugin-import-xlsx/src/ImportXlsxPlugin.tsx index df9969cec1..91844bd629 100644 --- a/packages/sheets-plugin-import-xlsx/src/ImportXlsxPlugin.tsx +++ b/packages/sheets-plugin-import-xlsx/src/ImportXlsxPlugin.tsx @@ -1,9 +1,9 @@ import { Plugin, SheetContext, UniverSheet } from '@univerjs/core'; import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets'; import { zh, en } from './Locale'; -import { IMPORT_XLSX_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { IMPORT_XLSX_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; import { ImportXlsxController } from './Controller/ImportXlsxController'; -import { DragAndDropExtensionFactory } from './Basic/Register/DragAndDropExtension'; +import { DragAndDropExtensionFactory } from './Basics/Register/DragAndDropExtension'; export interface IImportXlsxPluginConfig {} diff --git a/packages/sheets-plugin-numfmt/src/Basic/Const/CONFIG.ts b/packages/sheets-plugin-numfmt/src/Basics/Const/CONFIG.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Const/CONFIG.ts rename to packages/sheets-plugin-numfmt/src/Basics/Const/CONFIG.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Const/DEFAULT_DATA.ts b/packages/sheets-plugin-numfmt/src/Basics/Const/DEFAULT_DATA.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Const/DEFAULT_DATA.ts rename to packages/sheets-plugin-numfmt/src/Basics/Const/DEFAULT_DATA.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Const/FORMATDETAIL.ts b/packages/sheets-plugin-numfmt/src/Basics/Const/FORMATDETAIL.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Const/FORMATDETAIL.ts rename to packages/sheets-plugin-numfmt/src/Basics/Const/FORMATDETAIL.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Const/PLUGIN_NAME.ts b/packages/sheets-plugin-numfmt/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Const/PLUGIN_NAME.ts rename to packages/sheets-plugin-numfmt/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Const/index.ts b/packages/sheets-plugin-numfmt/src/Basics/Const/index.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Const/index.ts rename to packages/sheets-plugin-numfmt/src/Basics/Const/index.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Enum/ACTION_NAMES.ts b/packages/sheets-plugin-numfmt/src/Basics/Enum/ACTION_NAMES.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Enum/ACTION_NAMES.ts rename to packages/sheets-plugin-numfmt/src/Basics/Enum/ACTION_NAMES.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Enum/index.ts b/packages/sheets-plugin-numfmt/src/Basics/Enum/index.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Enum/index.ts rename to packages/sheets-plugin-numfmt/src/Basics/Enum/index.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Observer.ts b/packages/sheets-plugin-numfmt/src/Basics/Observer.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Observer.ts rename to packages/sheets-plugin-numfmt/src/Basics/Observer.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Register/NumfmtActionExtension.ts b/packages/sheets-plugin-numfmt/src/Basics/Register/NumfmtActionExtension.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Register/NumfmtActionExtension.ts rename to packages/sheets-plugin-numfmt/src/Basics/Register/NumfmtActionExtension.ts diff --git a/packages/sheets-plugin-numfmt/src/Basic/Register/index.ts b/packages/sheets-plugin-numfmt/src/Basics/Register/index.ts similarity index 100% rename from packages/sheets-plugin-numfmt/src/Basic/Register/index.ts rename to packages/sheets-plugin-numfmt/src/Basics/Register/index.ts diff --git a/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts b/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts index c26c44fe0f..265cfcb9fd 100644 --- a/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts +++ b/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts @@ -12,8 +12,8 @@ import { import { BaseComponentRender } from '@univerjs/base-ui'; import { IToolbarItemProps, SheetPlugin } from '@univerjs/base-sheets'; import { numfmt } from '@univerjs/base-numfmt-engine'; -import { ACTION_NAMES } from '../Basic/Enum'; -import { DEFAULT_DATA, NUMFMT_PLUGIN_NAME, NumftmConfig } from '../Basic/Const'; +import { ACTION_NAMES } from '../Basics/Enum'; +import { DEFAULT_DATA, NUMFMT_PLUGIN_NAME, NumftmConfig } from '../Basics/Const'; import { NumfmtModel } from '../Model/NumfmtModel'; import { NumfmtPlugin } from '../NumfmtPlugin'; diff --git a/packages/sheets-plugin-numfmt/src/Controller/NumfmtModalController.ts b/packages/sheets-plugin-numfmt/src/Controller/NumfmtModalController.ts index 4a3ce821da..1d0f64d7a1 100644 --- a/packages/sheets-plugin-numfmt/src/Controller/NumfmtModalController.ts +++ b/packages/sheets-plugin-numfmt/src/Controller/NumfmtModalController.ts @@ -1,7 +1,7 @@ import { ComponentChildren } from '@univerjs/base-ui'; import { SheetPlugin } from '@univerjs/base-sheets'; import { PLUGIN_NAMES } from '@univerjs/core'; -import { NUMBERFORMAT, NUMFMT_PLUGIN_NAME, CURRENCYDETAIL, DATEFMTLISG } from '../Basic/Const'; +import { NUMBERFORMAT, NUMFMT_PLUGIN_NAME, CURRENCYDETAIL, DATEFMTLISG } from '../Basics/Const'; import { NumfmtPlugin } from '../NumfmtPlugin'; import { FormatContent } from '../View/UI/FormatContent'; import { NumfmtModal } from '../View/UI/NumfmtModal'; diff --git a/packages/sheets-plugin-numfmt/src/Model/Apply/SetNumfmtRangeData.ts b/packages/sheets-plugin-numfmt/src/Model/Apply/SetNumfmtRangeData.ts index f977215f0d..fb4a2b6ede 100644 --- a/packages/sheets-plugin-numfmt/src/Model/Apply/SetNumfmtRangeData.ts +++ b/packages/sheets-plugin-numfmt/src/Model/Apply/SetNumfmtRangeData.ts @@ -1,6 +1,6 @@ import { ObjectMatrix, ObjectMatrixPrimitiveType, Workbook } from '@univerjs/core'; import { NumfmtPlugin } from '../../NumfmtPlugin'; -import { NUMFMT_PLUGIN_NAME } from '../../Basic/Const'; +import { NUMFMT_PLUGIN_NAME } from '../../Basics/Const'; export function SetNumfmtRangeData(workbook: Workbook, sheetId: string, numfmtPrimitiveMatrix: ObjectMatrixPrimitiveType): ObjectMatrixPrimitiveType { const context = workbook.getContext(); diff --git a/packages/sheets-plugin-numfmt/src/Model/RegisterAction.ts b/packages/sheets-plugin-numfmt/src/Model/RegisterAction.ts index 808b4d8327..7798b7877e 100644 --- a/packages/sheets-plugin-numfmt/src/Model/RegisterAction.ts +++ b/packages/sheets-plugin-numfmt/src/Model/RegisterAction.ts @@ -1,5 +1,5 @@ import { CommandManager } from '@univerjs/core'; -import { ACTION_NAMES } from '../Basic/Enum'; +import { ACTION_NAMES } from '../Basics/Enum'; import { SetNumfmtRangeDataAction } from './Action/SetNumfmtRangeDataAction'; CommandManager.register(ACTION_NAMES.SET_NUMFMT_RANGE_DATA_ACTION, SetNumfmtRangeDataAction); diff --git a/packages/sheets-plugin-numfmt/src/NumfmtPlugin.ts b/packages/sheets-plugin-numfmt/src/NumfmtPlugin.ts index b33ad1469c..bb0be86018 100644 --- a/packages/sheets-plugin-numfmt/src/NumfmtPlugin.ts +++ b/packages/sheets-plugin-numfmt/src/NumfmtPlugin.ts @@ -1,10 +1,10 @@ import { SheetContext, IRangeData, ObjectMatrixPrimitiveType, Plugin } from '@univerjs/core'; -import { NumfmtPluginObserve, install } from './Basic/Observer'; -import { NUMFMT_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { NumfmtPluginObserve, install } from './Basics/Observer'; +import { NUMFMT_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; import { NumfmtController } from './Controller/NumfmtController'; import { NumfmtModalController } from './Controller/NumfmtModalController'; import { en, zh } from './Locale'; -import { NumfmtActionExtensionFactory } from './Basic/Register/NumfmtActionExtension'; +import { NumfmtActionExtensionFactory } from './Basics/Register/NumfmtActionExtension'; export interface INumfmtPluginConfig {} diff --git a/packages/sheets-plugin-numfmt/src/View/UI/NumfmtModal.tsx b/packages/sheets-plugin-numfmt/src/View/UI/NumfmtModal.tsx index 1b38b07681..4e418660ae 100644 --- a/packages/sheets-plugin-numfmt/src/View/UI/NumfmtModal.tsx +++ b/packages/sheets-plugin-numfmt/src/View/UI/NumfmtModal.tsx @@ -1,7 +1,7 @@ import { BaseComponentProps, BaseComponentRender, BaseComponentSheet, Component } from '@univerjs/base-ui'; import { SheetPlugin } from '@univerjs/base-sheets'; import { PLUGIN_NAMES } from '@univerjs/core'; -import { NUMFMT_PLUGIN_NAME } from '../../Basic/Const'; +import { NUMFMT_PLUGIN_NAME } from '../../Basics/Const'; import { ModalDataProps } from '../../Controller/NumfmtModalController'; import { NumfmtPlugin } from '../../NumfmtPlugin'; diff --git a/packages/sheets-plugin-protection/src/Action/AddAllowedAction.ts b/packages/sheets-plugin-protection/src/Action/AddAllowedAction.ts index 4045ff3609..e77a230f42 100644 --- a/packages/sheets-plugin-protection/src/Action/AddAllowedAction.ts +++ b/packages/sheets-plugin-protection/src/Action/AddAllowedAction.ts @@ -1,7 +1,7 @@ import { SheetActionBase, ActionObservers, ISheetActionData, Workbook } from '@univerjs/core'; import { Allowed } from '../Controller'; import { AddAllowed, RemoveAllowed } from '../Apply'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; export interface IAddAllowedActionData extends ISheetActionData { allowed: Allowed; diff --git a/packages/sheets-plugin-protection/src/Action/AddUnlockAction.ts b/packages/sheets-plugin-protection/src/Action/AddUnlockAction.ts index 05f3ef5587..df26217517 100644 --- a/packages/sheets-plugin-protection/src/Action/AddUnlockAction.ts +++ b/packages/sheets-plugin-protection/src/Action/AddUnlockAction.ts @@ -1,6 +1,6 @@ import { SheetActionBase, ActionObservers, ISheetActionData, Range, Workbook } from '@univerjs/core'; import { AddUnlock, RemoveUnlock } from '../Apply'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; export interface IAddUnlockActionData extends ISheetActionData { unlock: Range; diff --git a/packages/sheets-plugin-protection/src/Action/RegisterAction.ts b/packages/sheets-plugin-protection/src/Action/RegisterAction.ts index 2fbe23a128..ebf5fedbcd 100644 --- a/packages/sheets-plugin-protection/src/Action/RegisterAction.ts +++ b/packages/sheets-plugin-protection/src/Action/RegisterAction.ts @@ -1,5 +1,5 @@ import { CommandManager } from '@univerjs/core'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; import { AddAllowedAction } from './AddAllowedAction'; import { AddUnlockAction } from './AddUnlockAction'; import { SetProtectionAction } from './SetProtectionAction'; diff --git a/packages/sheets-plugin-protection/src/Action/SetProtectionAction.ts b/packages/sheets-plugin-protection/src/Action/SetProtectionAction.ts index e93f56e7f9..19cc718459 100644 --- a/packages/sheets-plugin-protection/src/Action/SetProtectionAction.ts +++ b/packages/sheets-plugin-protection/src/Action/SetProtectionAction.ts @@ -1,6 +1,6 @@ import { SheetActionBase, ActionObservers, ISheetActionData, Workbook } from '@univerjs/core'; import { SetProtection } from '../Apply'; -import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES'; +import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES'; export interface ISetProtectionActionData extends ISheetActionData { enable: boolean; diff --git a/packages/sheets-plugin-protection/src/Basic/Cache.ts b/packages/sheets-plugin-protection/src/Basics/Cache.ts similarity index 100% rename from packages/sheets-plugin-protection/src/Basic/Cache.ts rename to packages/sheets-plugin-protection/src/Basics/Cache.ts diff --git a/packages/sheets-plugin-protection/src/Basic/Const/PLUGIN_NAME.ts b/packages/sheets-plugin-protection/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/sheets-plugin-protection/src/Basic/Const/PLUGIN_NAME.ts rename to packages/sheets-plugin-protection/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/sheets-plugin-protection/src/Basic/Const/index.ts b/packages/sheets-plugin-protection/src/Basics/Const/index.ts similarity index 100% rename from packages/sheets-plugin-protection/src/Basic/Const/index.ts rename to packages/sheets-plugin-protection/src/Basics/Const/index.ts diff --git a/packages/sheets-plugin-protection/src/Basic/Enum/ACTION_NAMES.ts b/packages/sheets-plugin-protection/src/Basics/Enum/ACTION_NAMES.ts similarity index 100% rename from packages/sheets-plugin-protection/src/Basic/Enum/ACTION_NAMES.ts rename to packages/sheets-plugin-protection/src/Basics/Enum/ACTION_NAMES.ts diff --git a/packages/sheets-plugin-protection/src/Basic/Enum/index.ts b/packages/sheets-plugin-protection/src/Basics/Enum/index.ts similarity index 100% rename from packages/sheets-plugin-protection/src/Basic/Enum/index.ts rename to packages/sheets-plugin-protection/src/Basics/Enum/index.ts diff --git a/packages/sheets-plugin-protection/src/Basic/Shared/index.ts b/packages/sheets-plugin-protection/src/Basics/Shared/index.ts similarity index 100% rename from packages/sheets-plugin-protection/src/Basic/Shared/index.ts rename to packages/sheets-plugin-protection/src/Basics/Shared/index.ts diff --git a/packages/sheets-plugin-protection/src/Basic/State.ts b/packages/sheets-plugin-protection/src/Basics/State.ts similarity index 100% rename from packages/sheets-plugin-protection/src/Basic/State.ts rename to packages/sheets-plugin-protection/src/Basics/State.ts diff --git a/packages/sheets-plugin-protection/src/Basic/index.ts b/packages/sheets-plugin-protection/src/Basics/index.ts similarity index 100% rename from packages/sheets-plugin-protection/src/Basic/index.ts rename to packages/sheets-plugin-protection/src/Basics/index.ts diff --git a/packages/sheets-plugin-protection/src/ProtectionPlugin.tsx b/packages/sheets-plugin-protection/src/ProtectionPlugin.tsx index 986ac5c713..0ab2264841 100644 --- a/packages/sheets-plugin-protection/src/ProtectionPlugin.tsx +++ b/packages/sheets-plugin-protection/src/ProtectionPlugin.tsx @@ -1,7 +1,7 @@ import { ISlotElement, ISlotProps, IToolbarItemProps } from '@univerjs/base-ui'; import { SheetContext, IOCContainer, UniverSheet, Plugin, PLUGIN_NAMES } from '@univerjs/core'; import { SheetPlugin } from '@univerjs/base-sheets'; -import { PROTECTION_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { PROTECTION_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; import { IConfig } from './IData/IProtection'; import { en, zh } from './Locale'; import { ProtectionButton } from './UI/ProtectionButton'; diff --git a/packages/sheets-plugin-protection/src/UI/ProtectionButton.tsx b/packages/sheets-plugin-protection/src/UI/ProtectionButton.tsx index 55f5f64ac6..2f1878697f 100644 --- a/packages/sheets-plugin-protection/src/UI/ProtectionButton.tsx +++ b/packages/sheets-plugin-protection/src/UI/ProtectionButton.tsx @@ -2,7 +2,7 @@ import { BaseComponentSheet, BaseIconProps, BaseSingleButtonProps, Component, Fu import { PLUGIN_NAMES, Nullable, Observer, Workbook } from '@univerjs/core'; import { SheetPlugin } from '@univerjs/base-sheets'; -import { PROTECTION_PLUGIN_NAME } from '../Basic/Const'; +import { PROTECTION_PLUGIN_NAME } from '../Basics/Const'; import { IProps } from '../IData/IProtection'; // Types for state diff --git a/packages/sheets-plugin-protection/src/UI/ProtectionSide/ProtectionSide.tsx b/packages/sheets-plugin-protection/src/UI/ProtectionSide/ProtectionSide.tsx index d74619975c..1719574037 100644 --- a/packages/sheets-plugin-protection/src/UI/ProtectionSide/ProtectionSide.tsx +++ b/packages/sheets-plugin-protection/src/UI/ProtectionSide/ProtectionSide.tsx @@ -1,6 +1,6 @@ import { BaseComponentSheet, BaseSiderModalProps, Component, createRef, FunctionComponent } from '@univerjs/base-ui'; import { SheetContext, IRangeData, Nullable, Observer, Workbook } from '@univerjs/core'; -import { PROTECTION_PLUGIN_NAME } from '../../Basic/Const'; +import { PROTECTION_PLUGIN_NAME } from '../../Basics/Const'; import { Protection } from '../../Controller/Protection'; import styles from './index.module.less'; diff --git a/packages/ui-plugin-docs/src/Basic/Const/PLUGIN_NAME.ts b/packages/ui-plugin-docs/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/ui-plugin-docs/src/Basic/Const/PLUGIN_NAME.ts rename to packages/ui-plugin-docs/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/ui-plugin-docs/src/Basic/Const/index.ts b/packages/ui-plugin-docs/src/Basics/Const/index.ts similarity index 100% rename from packages/ui-plugin-docs/src/Basic/Const/index.ts rename to packages/ui-plugin-docs/src/Basics/Const/index.ts diff --git a/packages/ui-plugin-docs/src/Basic/Enum/index.ts b/packages/ui-plugin-docs/src/Basics/Enum/index.ts similarity index 100% rename from packages/ui-plugin-docs/src/Basic/Enum/index.ts rename to packages/ui-plugin-docs/src/Basics/Enum/index.ts diff --git a/packages/ui-plugin-docs/src/Basic/Shared/index.ts b/packages/ui-plugin-docs/src/Basics/Shared/index.ts similarity index 100% rename from packages/ui-plugin-docs/src/Basic/Shared/index.ts rename to packages/ui-plugin-docs/src/Basics/Shared/index.ts diff --git a/packages/ui-plugin-docs/src/Basic/index.ts b/packages/ui-plugin-docs/src/Basics/index.ts similarity index 100% rename from packages/ui-plugin-docs/src/Basic/index.ts rename to packages/ui-plugin-docs/src/Basics/index.ts diff --git a/packages/ui-plugin-docs/src/DocUIPlugin.ts b/packages/ui-plugin-docs/src/DocUIPlugin.ts index 6f661989ae..cc20172321 100644 --- a/packages/ui-plugin-docs/src/DocUIPlugin.ts +++ b/packages/ui-plugin-docs/src/DocUIPlugin.ts @@ -1,6 +1,6 @@ import { Plugin, Context, UniverDoc } from '@univerjs/core'; import { zh, en } from './Locale'; -import { DOC_UI_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { DOC_UI_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; import { UIController } from './Controller/UIController'; export interface IDocUIPluginConfig {} diff --git a/packages/ui-plugin-slides/src/Basic/Const/PLUGIN_NAME.ts b/packages/ui-plugin-slides/src/Basics/Const/PLUGIN_NAME.ts similarity index 100% rename from packages/ui-plugin-slides/src/Basic/Const/PLUGIN_NAME.ts rename to packages/ui-plugin-slides/src/Basics/Const/PLUGIN_NAME.ts diff --git a/packages/ui-plugin-slides/src/Basic/Const/index.ts b/packages/ui-plugin-slides/src/Basics/Const/index.ts similarity index 100% rename from packages/ui-plugin-slides/src/Basic/Const/index.ts rename to packages/ui-plugin-slides/src/Basics/Const/index.ts diff --git a/packages/ui-plugin-slides/src/Basic/Enum/index.ts b/packages/ui-plugin-slides/src/Basics/Enum/index.ts similarity index 100% rename from packages/ui-plugin-slides/src/Basic/Enum/index.ts rename to packages/ui-plugin-slides/src/Basics/Enum/index.ts diff --git a/packages/ui-plugin-slides/src/Basic/Shared/index.ts b/packages/ui-plugin-slides/src/Basics/Shared/index.ts similarity index 100% rename from packages/ui-plugin-slides/src/Basic/Shared/index.ts rename to packages/ui-plugin-slides/src/Basics/Shared/index.ts diff --git a/packages/ui-plugin-slides/src/Basic/index.ts b/packages/ui-plugin-slides/src/Basics/index.ts similarity index 100% rename from packages/ui-plugin-slides/src/Basic/index.ts rename to packages/ui-plugin-slides/src/Basics/index.ts diff --git a/packages/ui-plugin-slides/src/SlideUIPlugin.ts b/packages/ui-plugin-slides/src/SlideUIPlugin.ts index 266823599c..1031ec6f4b 100644 --- a/packages/ui-plugin-slides/src/SlideUIPlugin.ts +++ b/packages/ui-plugin-slides/src/SlideUIPlugin.ts @@ -1,6 +1,6 @@ import { Plugin, Context, UniverSlide } from '@univerjs/core'; import { zh, en } from './Locale'; -import { SLIDE_UI_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME'; +import { SLIDE_UI_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME'; import { UIController } from './Controller/UIController'; export interface ISlideUIPluginConfig {}