refactor: 将 /core 重命名为 /shared

This commit is contained in:
2026-04-15 10:22:59 +08:00
parent 6d991326a5
commit a2f09fe49b
21 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import type { JsonValue } from '../core'; import type { JsonValue } from '../shared';
export interface ComponentDataByStatic { export interface ComponentDataByStatic {
type: 'static'; type: 'static';
+1 -1
View File
@@ -4,7 +4,7 @@ import type {
CSSProperties, CSSProperties,
Entity, Entity,
JsonValue, JsonValue,
} from '../core'; } from '../shared';
import type { Interaction } from '../interaction'; import type { Interaction } from '../interaction';
import type { ComponentData } from './component-data'; import type { ComponentData } from './component-data';
import type { ComponentLayout } from './component-layout'; import type { ComponentLayout } from './component-layout';
@@ -1,4 +1,4 @@
import type { Entity } from '../core'; import type { Entity } from '../shared';
// TODO: 数据库数据源, 暂不实现 // TODO: 数据库数据源, 暂不实现
export interface DataSourceByDatabase extends Entity { export interface DataSourceByDatabase extends Entity {
@@ -1,4 +1,4 @@
import type { DynamicExpression, Entity } from '../core'; import type { DynamicExpression, Entity } from '../shared';
/** /**
* RESTful 协议数据源 * RESTful 协议数据源
+1 -1
View File
@@ -1,4 +1,4 @@
import type { DynamicExpression, Entity } from '../core'; import type { DynamicExpression, Entity } from '../shared';
/** /**
* 数据过滤器 * 数据过滤器
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Entity, Condition, DynamicExpression, JsonValue } from '../core'; import type { Entity, Condition, DynamicExpression, JsonValue } from '../shared';
/** /**
* 执行动作的目标实体 * 执行动作的目标实体
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Entity } from '../core'; import type { Entity } from '../shared';
import type { Action } from './action'; import type { Action } from './action';
/** /**
+1 -1
View File
@@ -1,4 +1,4 @@
import type { DynamicExpression, RestRequest } from '../core'; import type { DynamicExpression, RestRequest } from '../shared';
/** /**
* 数据变更核心配置引擎 * 数据变更核心配置引擎
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Entity, RestRequest } from '../core'; import type { Entity, RestRequest } from '../shared';
import type { Interaction } from '../interaction'; import type { Interaction } from '../interaction';
import type { MutationConfig } from './mutation-config'; import type { MutationConfig } from './mutation-config';
+1 -1
View File
@@ -1,5 +1,5 @@
import type { Component } from '../component'; import type { Component } from '../component';
import type { CSSProperties, Entity } from '../core'; import type { CSSProperties, Entity } from '../shared';
import type { Interaction } from '../interaction'; import type { Interaction } from '../interaction';
import type { PageLayout } from './page-layout'; import type { PageLayout } from './page-layout';
+1 -1
View File
@@ -1,4 +1,4 @@
import type { DynamicExpression, JsonValue, RestRequest } from '../core'; import type { DynamicExpression, JsonValue, RestRequest } from '../shared';
/** /**
* 数据查询核心配置 * 数据查询核心配置
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Entity, Condition } from '../core'; import type { Entity, Condition } from '../shared';
import type { Interaction } from '../interaction'; import type { Interaction } from '../interaction';
import type { QueryConfig } from './query-config'; import type { QueryConfig } from './query-config';
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Entity } from '../core'; import type { Entity } from '../shared';
import type { Interaction } from '../interaction'; import type { Interaction } from '../interaction';
/** /**
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Entity, JsonValue } from '../core'; import type { Entity, JsonValue } from '../shared';
import type { Interaction } from '../interaction'; import type { Interaction } from '../interaction';
/** /**