初始化
This commit is contained in:
19
easyflow-ui-usercenter/packages/preferences/package.json
Normal file
19
easyflow-ui-usercenter/packages/preferences/package.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "@easyflow/preferences",
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"**/*.css"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.ts",
|
||||
"default": "./src/index.ts"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@easyflow-core/preferences": "workspace:*",
|
||||
"@easyflow-core/typings": "workspace:*"
|
||||
}
|
||||
}
|
||||
17
easyflow-ui-usercenter/packages/preferences/src/index.ts
Normal file
17
easyflow-ui-usercenter/packages/preferences/src/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { Preferences } from '@easyflow-core/preferences';
|
||||
import type { DeepPartial } from '@easyflow-core/typings';
|
||||
|
||||
/**
|
||||
* 如果你想所有的app都使用相同的默认偏好设置,你可以在这里定义
|
||||
* 而不是去修改 @easyflow-core/preferences 中的默认偏好设置
|
||||
* @param preferences
|
||||
* @returns
|
||||
*/
|
||||
|
||||
function defineOverridesPreferences(preferences: DeepPartial<Preferences>) {
|
||||
return preferences;
|
||||
}
|
||||
|
||||
export { defineOverridesPreferences };
|
||||
|
||||
export * from '@easyflow-core/preferences';
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "@easyflow/tsconfig/web.json",
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Reference in New Issue
Block a user