From a2f09fe49b49c84007aada5834ca13bd1b0ddfe4 Mon Sep 17 00:00:00 2001 From: skycurtain Date: Wed, 15 Apr 2026 10:22:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=20/core=20=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E4=B8=BA=20/shared?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/schema/component/component-data.ts | 2 +- src/schema/component/component.ts | 2 +- src/schema/data-source/data-source-by-database.ts | 2 +- src/schema/data-source/data-source-by-rest.ts | 2 +- src/schema/filter/filter.ts | 2 +- src/schema/interaction/action.ts | 2 +- src/schema/interaction/interaction.ts | 2 +- src/schema/mutation/mutation-config.ts | 2 +- src/schema/mutation/mutation.ts | 2 +- src/schema/page/page.ts | 2 +- src/schema/query/query-config.ts | 2 +- src/schema/query/query.ts | 2 +- src/schema/route/route.ts | 2 +- src/schema/{core => shared}/condition.ts | 0 src/schema/{core => shared}/css-properties.ts | 0 src/schema/{core => shared}/dynamic-expression.ts | 0 src/schema/{core => shared}/entity.ts | 0 src/schema/{core => shared}/index.ts | 0 src/schema/{core => shared}/json-value.ts | 0 src/schema/{core => shared}/rest-request.ts | 0 src/schema/variable/variable.ts | 2 +- 21 files changed, 14 insertions(+), 14 deletions(-) rename src/schema/{core => shared}/condition.ts (100%) rename src/schema/{core => shared}/css-properties.ts (100%) rename src/schema/{core => shared}/dynamic-expression.ts (100%) rename src/schema/{core => shared}/entity.ts (100%) rename src/schema/{core => shared}/index.ts (100%) rename src/schema/{core => shared}/json-value.ts (100%) rename src/schema/{core => shared}/rest-request.ts (100%) diff --git a/src/schema/component/component-data.ts b/src/schema/component/component-data.ts index 41e99f5..c9ab479 100644 --- a/src/schema/component/component-data.ts +++ b/src/schema/component/component-data.ts @@ -1,4 +1,4 @@ -import type { JsonValue } from '../core'; +import type { JsonValue } from '../shared'; export interface ComponentDataByStatic { type: 'static'; diff --git a/src/schema/component/component.ts b/src/schema/component/component.ts index 5e9abe8..29f708b 100644 --- a/src/schema/component/component.ts +++ b/src/schema/component/component.ts @@ -4,7 +4,7 @@ import type { CSSProperties, Entity, JsonValue, -} from '../core'; +} from '../shared'; import type { Interaction } from '../interaction'; import type { ComponentData } from './component-data'; import type { ComponentLayout } from './component-layout'; diff --git a/src/schema/data-source/data-source-by-database.ts b/src/schema/data-source/data-source-by-database.ts index 4a72eb5..6ce4995 100644 --- a/src/schema/data-source/data-source-by-database.ts +++ b/src/schema/data-source/data-source-by-database.ts @@ -1,4 +1,4 @@ -import type { Entity } from '../core'; +import type { Entity } from '../shared'; // TODO: 数据库数据源, 暂不实现 export interface DataSourceByDatabase extends Entity { diff --git a/src/schema/data-source/data-source-by-rest.ts b/src/schema/data-source/data-source-by-rest.ts index 4970909..b462323 100644 --- a/src/schema/data-source/data-source-by-rest.ts +++ b/src/schema/data-source/data-source-by-rest.ts @@ -1,4 +1,4 @@ -import type { DynamicExpression, Entity } from '../core'; +import type { DynamicExpression, Entity } from '../shared'; /** * RESTful 协议数据源 diff --git a/src/schema/filter/filter.ts b/src/schema/filter/filter.ts index ad53627..fdec273 100644 --- a/src/schema/filter/filter.ts +++ b/src/schema/filter/filter.ts @@ -1,4 +1,4 @@ -import type { DynamicExpression, Entity } from '../core'; +import type { DynamicExpression, Entity } from '../shared'; /** * 数据过滤器 diff --git a/src/schema/interaction/action.ts b/src/schema/interaction/action.ts index cace6c4..277d349 100644 --- a/src/schema/interaction/action.ts +++ b/src/schema/interaction/action.ts @@ -1,4 +1,4 @@ -import type { Entity, Condition, DynamicExpression, JsonValue } from '../core'; +import type { Entity, Condition, DynamicExpression, JsonValue } from '../shared'; /** * 执行动作的目标实体 diff --git a/src/schema/interaction/interaction.ts b/src/schema/interaction/interaction.ts index 7541da1..f5e0b01 100644 --- a/src/schema/interaction/interaction.ts +++ b/src/schema/interaction/interaction.ts @@ -1,4 +1,4 @@ -import type { Entity } from '../core'; +import type { Entity } from '../shared'; import type { Action } from './action'; /** diff --git a/src/schema/mutation/mutation-config.ts b/src/schema/mutation/mutation-config.ts index ff920b1..799535c 100644 --- a/src/schema/mutation/mutation-config.ts +++ b/src/schema/mutation/mutation-config.ts @@ -1,4 +1,4 @@ -import type { DynamicExpression, RestRequest } from '../core'; +import type { DynamicExpression, RestRequest } from '../shared'; /** * 数据变更核心配置引擎 diff --git a/src/schema/mutation/mutation.ts b/src/schema/mutation/mutation.ts index 35f3657..59a7b8a 100644 --- a/src/schema/mutation/mutation.ts +++ b/src/schema/mutation/mutation.ts @@ -1,4 +1,4 @@ -import type { Entity, RestRequest } from '../core'; +import type { Entity, RestRequest } from '../shared'; import type { Interaction } from '../interaction'; import type { MutationConfig } from './mutation-config'; diff --git a/src/schema/page/page.ts b/src/schema/page/page.ts index ecbe80e..9a6efa9 100644 --- a/src/schema/page/page.ts +++ b/src/schema/page/page.ts @@ -1,5 +1,5 @@ import type { Component } from '../component'; -import type { CSSProperties, Entity } from '../core'; +import type { CSSProperties, Entity } from '../shared'; import type { Interaction } from '../interaction'; import type { PageLayout } from './page-layout'; diff --git a/src/schema/query/query-config.ts b/src/schema/query/query-config.ts index b599a45..cf4bf99 100644 --- a/src/schema/query/query-config.ts +++ b/src/schema/query/query-config.ts @@ -1,4 +1,4 @@ -import type { DynamicExpression, JsonValue, RestRequest } from '../core'; +import type { DynamicExpression, JsonValue, RestRequest } from '../shared'; /** * 数据查询核心配置 diff --git a/src/schema/query/query.ts b/src/schema/query/query.ts index 7e14fa2..3a0a988 100644 --- a/src/schema/query/query.ts +++ b/src/schema/query/query.ts @@ -1,4 +1,4 @@ -import type { Entity, Condition } from '../core'; +import type { Entity, Condition } from '../shared'; import type { Interaction } from '../interaction'; import type { QueryConfig } from './query-config'; diff --git a/src/schema/route/route.ts b/src/schema/route/route.ts index 88bc1c3..4824784 100644 --- a/src/schema/route/route.ts +++ b/src/schema/route/route.ts @@ -1,4 +1,4 @@ -import type { Entity } from '../core'; +import type { Entity } from '../shared'; import type { Interaction } from '../interaction'; /** diff --git a/src/schema/core/condition.ts b/src/schema/shared/condition.ts similarity index 100% rename from src/schema/core/condition.ts rename to src/schema/shared/condition.ts diff --git a/src/schema/core/css-properties.ts b/src/schema/shared/css-properties.ts similarity index 100% rename from src/schema/core/css-properties.ts rename to src/schema/shared/css-properties.ts diff --git a/src/schema/core/dynamic-expression.ts b/src/schema/shared/dynamic-expression.ts similarity index 100% rename from src/schema/core/dynamic-expression.ts rename to src/schema/shared/dynamic-expression.ts diff --git a/src/schema/core/entity.ts b/src/schema/shared/entity.ts similarity index 100% rename from src/schema/core/entity.ts rename to src/schema/shared/entity.ts diff --git a/src/schema/core/index.ts b/src/schema/shared/index.ts similarity index 100% rename from src/schema/core/index.ts rename to src/schema/shared/index.ts diff --git a/src/schema/core/json-value.ts b/src/schema/shared/json-value.ts similarity index 100% rename from src/schema/core/json-value.ts rename to src/schema/shared/json-value.ts diff --git a/src/schema/core/rest-request.ts b/src/schema/shared/rest-request.ts similarity index 100% rename from src/schema/core/rest-request.ts rename to src/schema/shared/rest-request.ts diff --git a/src/schema/variable/variable.ts b/src/schema/variable/variable.ts index b034265..2d455ce 100644 --- a/src/schema/variable/variable.ts +++ b/src/schema/variable/variable.ts @@ -1,4 +1,4 @@ -import type { Entity, JsonValue } from '../core'; +import type { Entity, JsonValue } from '../shared'; import type { Interaction } from '../interaction'; /**