Skip to content

Commit

Permalink
feat(configuration-panel): add configuration panel
Browse files Browse the repository at this point in the history
  • Loading branch information
huxiamei authored and BroKun committed Dec 17, 2024
1 parent 6fba2f7 commit b88eda1
Show file tree
Hide file tree
Showing 18 changed files with 414 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
"dependencies": {
"@ant-design/icons": "^5.1.0",
"@difizen/mana-app": "^0.1.31",
"@difizen/mana-configuration-panel": "0.0.1",
"@difizen/mana-l10n": "^0.1.31",
"@difizen/mana-react": "^0.1.31",
"@difizen/umi-plugin-mana": "^0.1.31",
"@difizen/mana-l10n": "^0.1.31",
"antd": "^5.8.6",
"moment": "^2.30.1",
"octokit": "^3",
"react-copy-to-clipboard": "^5.1.0"
}
Expand Down
6 changes: 5 additions & 1 deletion apps/docs/src/application-react/setting-editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { createViewPreference, ManaModule } from '@difizen/mana-app';

import { WorkbenchLayoutArea } from '../workbench/layout/workbench-layout.js';

import { SettingEditorModule, SettingEditorView } from './configuration/index.js';
import {
SettingEditorModule,
SettingEditorView,
} from '@difizen/mana-configuration-panel';

import { DefaultConfigurationContribution } from './default-configuration-contribution.js';

export const ConfigurtionMenuModule = ManaModule.create()
Expand Down
3 changes: 3 additions & 0 deletions packages/mana-configuration-panel/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: require.resolve('../../.eslintrc.js'),
};
26 changes: 26 additions & 0 deletions packages/mana-configuration-panel/.fatherrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export default {
platform: 'browser',
esm: {
output: 'es',
},
cjs: {
output: 'lib',
},
extraBabelPlugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-transform-flow-strip-types'],
['@babel/plugin-transform-class-properties', { loose: true }],
['@babel/plugin-transform-private-methods', { loose: true }],
['@babel/plugin-transform-private-property-in-object', { loose: true }],
'babel-plugin-parameter-decorator',
],
extraBabelPresets: [
[
'@babel/preset-react',
{
runtime: 'automatic',
},
],
['@babel/preset-typescript', { onlyRemoveTypeImports: true }],
],
};
278 changes: 278 additions & 0 deletions packages/mana-configuration-panel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
# @difizen/mana-configuration-panel

## 0.0.1

### Patch Changes

- Updated dependencies [[`0365365`](https://github.com/difizen/mana/commit/03653659a7400430493903e33f44dc2f048576df)]:
- @difizen/mana-observable@0.1.31
- @difizen/mana-syringe@0.1.31
- @difizen/mana-common@0.1.31
- @difizen/mana-react@0.1.31
- @difizen/mana-core@0.1.31
- @difizen/mana-app@0.1.31

## 0.1.30

### Patch Changes

- [#76](https://github.com/difizen/mana/pull/76) [`14ea61a`](https://github.com/difizen/mana/commit/14ea61ac7ecc717b3091687b9ea4ac0aaf1e6ecf) Thanks [@BroKun](https://github.com/BroKun)! - Use a consistent version.

- [#78](https://github.com/difizen/mana/pull/78) [`92f3efc`](https://github.com/difizen/mana/commit/92f3efcc9852ff7230d9e029e25fdacd9d529d55) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - fix text color for some components

- Updated dependencies [[`14ea61a`](https://github.com/difizen/mana/commit/14ea61ac7ecc717b3091687b9ea4ac0aaf1e6ecf), [`92f3efc`](https://github.com/difizen/mana/commit/92f3efcc9852ff7230d9e029e25fdacd9d529d55)]:
- @difizen/mana-observable@0.1.30
- @difizen/mana-syringe@0.1.30
- @difizen/mana-common@0.1.30
- @difizen/mana-react@0.1.30
- @difizen/mana-core@0.1.30
- @difizen/mana-app@0.1.30

## 0.1.28

### Patch Changes

- Updated dependencies [[`24b70a0`](https://github.com/difizen/mana/commit/24b70a036be7f4d85548db720ea5859b5a3e5b41)]:
- @difizen/mana-observable@0.1.28
- @difizen/mana-syringe@0.1.28
- @difizen/mana-common@0.1.28
- @difizen/mana-react@0.1.28
- @difizen/mana-core@0.1.28
- @difizen/mana-app@0.1.28

## 0.1.27

### Patch Changes

- [#62](https://github.com/difizen/mana/pull/62) [`812915f`](https://github.com/difizen/mana/commit/812915f4681c44982cefa5800d6f11ec27a81a20) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - fix(umi-plugin): update mana runtime plugin dir name

- Updated dependencies [[`812915f`](https://github.com/difizen/mana/commit/812915f4681c44982cefa5800d6f11ec27a81a20)]:
- @difizen/mana-app@0.1.27
- @difizen/mana-common@0.1.27
- @difizen/mana-core@0.1.27
- @difizen/mana-observable@0.1.27
- @difizen/mana-react@0.1.27
- @difizen/mana-syringe@0.1.27

## 0.1.26

### Patch Changes

- [#60](https://github.com/difizen/mana/pull/60) [`a23732f`](https://github.com/difizen/mana/commit/a23732f365a76f719ac59f2c87de3920f70b1dd7) Thanks [@zhanba](https://github.com/zhanba)! - fix: support query parse in uri

- Updated dependencies [[`a23732f`](https://github.com/difizen/mana/commit/a23732f365a76f719ac59f2c87de3920f70b1dd7)]:
- @difizen/mana-common@0.1.26
- @difizen/mana-app@0.1.26
- @difizen/mana-core@0.1.26
- @difizen/mana-observable@0.1.26
- @difizen/mana-react@0.1.26
- @difizen/mana-syringe@0.1.26

## 0.1.25

### Patch Changes

- [#58](https://github.com/difizen/mana/pull/58) [`df976cb`](https://github.com/difizen/mana/commit/df976cba6bcf49b979dc001ffe68b4e0953522ff) Thanks [@BroKun](https://github.com/BroKun)! - Theme support empty prefix

- Updated dependencies [[`df976cb`](https://github.com/difizen/mana/commit/df976cba6bcf49b979dc001ffe68b4e0953522ff)]:
- @difizen/mana-observable@0.1.25
- @difizen/mana-syringe@0.1.25
- @difizen/mana-common@0.1.25
- @difizen/mana-react@0.1.25
- @difizen/mana-core@0.1.25
- @difizen/mana-app@0.1.25

## 0.1.24

### Patch Changes

- [#56](https://github.com/difizen/mana/pull/56) [`02f92a6`](https://github.com/difizen/mana/commit/02f92a6da23fc653e52c0192c3547ed956a44a22) Thanks [@BroKun](https://github.com/BroKun)! - Support custom css variable prefix

- Updated dependencies [[`02f92a6`](https://github.com/difizen/mana/commit/02f92a6da23fc653e52c0192c3547ed956a44a22)]:
- @difizen/mana-observable@0.1.24
- @difizen/mana-syringe@0.1.24
- @difizen/mana-common@0.1.24
- @difizen/mana-react@0.1.24
- @difizen/mana-core@0.1.24
- @difizen/mana-app@0.1.24

## 0.1.23

### Patch Changes

- [#53](https://github.com/difizen/mana/pull/53) [`c76098a`](https://github.com/difizen/mana/commit/c76098abd7eeae0ea7885d00402a47e15197e2a0) Thanks [@BroKun](https://github.com/BroKun)! - Fix slot view initialization in some cases.

- [#53](https://github.com/difizen/mana/pull/53) [`c24e597`](https://github.com/difizen/mana/commit/c24e5974abd064d3af1d27f321745daa48183a74) Thanks [@BroKun](https://github.com/BroKun)! - Export color protocol.

- [#53](https://github.com/difizen/mana/pull/53) [`8174a13`](https://github.com/difizen/mana/commit/8174a1355b9aca974d7ba68fc6087aef923b757c) Thanks [@BroKun](https://github.com/BroKun)! - Always serialize when storing.

- [#53](https://github.com/difizen/mana/pull/53) [`06bdadd`](https://github.com/difizen/mana/commit/06bdadd00e143151c0b25f63354dab3579d5ee1f) Thanks [@BroKun](https://github.com/BroKun)! - Use modal service api without full modal item

- Updated dependencies [[`c76098a`](https://github.com/difizen/mana/commit/c76098abd7eeae0ea7885d00402a47e15197e2a0), [`c24e597`](https://github.com/difizen/mana/commit/c24e5974abd064d3af1d27f321745daa48183a74), [`8174a13`](https://github.com/difizen/mana/commit/8174a1355b9aca974d7ba68fc6087aef923b757c), [`06bdadd`](https://github.com/difizen/mana/commit/06bdadd00e143151c0b25f63354dab3579d5ee1f)]:
- @difizen/mana-observable@0.1.23
- @difizen/mana-syringe@0.1.23
- @difizen/mana-common@0.1.23
- @difizen/mana-react@0.1.23
- @difizen/mana-core@0.1.23
- @difizen/mana-app@0.1.23

## 0.1.22

### Patch Changes

- ec0b517: Fix core module compatibility
- Updated dependencies [ec0b517]
- @difizen/mana-observable@0.1.22
- @difizen/mana-syringe@0.1.22
- @difizen/mana-common@0.1.22
- @difizen/mana-react@0.1.22
- @difizen/mana-core@0.1.22
- @difizen/mana-app@0.1.22

## 0.1.21

### Patch Changes

- 007af7f: Dark mode support for menu.
- 32133c3: Add notification feature.
- Updated dependencies [007af7f]
- Updated dependencies [32133c3]
- @difizen/mana-observable@0.1.21
- @difizen/mana-syringe@0.1.21
- @difizen/mana-common@0.1.21
- @difizen/mana-react@0.1.21
- @difizen/mana-core@0.1.21
- @difizen/mana-app@0.1.21

## 0.1.20

### Patch Changes

- 690a2aa: Added umi plug-in, now you can use mana in umi project more easily.
- Updated dependencies [690a2aa]
- @difizen/mana-observable@0.1.20
- @difizen/mana-syringe@0.1.20
- @difizen/mana-common@0.1.20
- @difizen/mana-react@0.1.20
- @difizen/mana-core@0.1.20
- @difizen/mana-app@0.1.20

## 0.1.19

### Patch Changes

- 43f310a: Remove global style css
- Updated dependencies [43f310a]
- @difizen/mana-observable@0.1.19
- @difizen/mana-syringe@0.1.19
- @difizen/mana-common@0.1.19
- @difizen/mana-react@0.1.19
- @difizen/mana-core@0.1.19
- @difizen/mana-app@0.1.19

## 0.1.18

### Patch Changes

- 02ef50f: basic styles no longer affect global styles.
- Updated dependencies [02ef50f]
- @difizen/mana-observable@0.1.18
- @difizen/mana-syringe@0.1.18
- @difizen/mana-common@0.1.18
- @difizen/mana-react@0.1.18
- @difizen/mana-core@0.1.18
- @difizen/mana-app@0.1.18

## 0.1.17

### Patch Changes

- 1acf757: feat: add onInitialized hooks for ApplicationComponent
- Updated dependencies [1acf757]
- @difizen/mana-core@0.1.17
- @difizen/mana-app@0.1.17
- @difizen/mana-common@0.1.17
- @difizen/mana-observable@0.1.17
- @difizen/mana-react@0.1.17
- @difizen/mana-syringe@0.1.17

## 0.1.16

### Patch Changes

- 84f7cd8: No longer import font-awesome styles through less file.
- Updated dependencies [84f7cd8]
- @difizen/mana-observable@0.1.16
- @difizen/mana-syringe@0.1.16
- @difizen/mana-common@0.1.16
- @difizen/mana-react@0.1.16
- @difizen/mana-core@0.1.16
- @difizen/mana-app@0.1.16

## 0.1.15

### Patch Changes

- 95eb30c: chore: add father config
- Updated dependencies [95eb30c]
- @difizen/mana-app@0.1.15
- @difizen/mana-common@0.1.15
- @difizen/mana-core@0.1.15
- @difizen/mana-observable@0.1.15
- @difizen/mana-react@0.1.15
- @difizen/mana-syringe@0.1.15

## 0.1.14

### Patch Changes

- 1b880fe: fix: attributes in ContributionOptionConfig
- Updated dependencies [1b880fe]
- @difizen/mana-syringe@0.1.14
- @difizen/mana-app@0.1.14
- @difizen/mana-common@0.1.14
- @difizen/mana-core@0.1.14
- @difizen/mana-observable@0.1.14
- @difizen/mana-react@0.1.14

## 0.1.13

### Patch Changes

- 76745bd: feat: add ContributionOptionConfig
- Updated dependencies [76745bd]
- @difizen/mana-syringe@0.1.13
- @difizen/mana-app@0.1.13
- @difizen/mana-common@0.1.13
- @difizen/mana-core@0.1.13
- @difizen/mana-observable@0.1.13
- @difizen/mana-react@0.1.13

## 0.1.12

### Patch Changes

- 8eee617: chore: update the peerDependencies about react
- Updated dependencies [8eee617]
- @difizen/mana-observable@0.1.12
- @difizen/mana-react@0.1.12
- @difizen/mana-app@0.1.12
- @difizen/mana-common@0.1.12
- @difizen/mana-core@0.1.12
- @difizen/mana-syringe@0.1.12

## 0.1.11

### Patch Changes

- 6fb1d96: mana-observable: Allows defining properties that should not be observed.
- 67e2969: Add mana-ui package
- Updated dependencies [6fb1d96]
- Updated dependencies [67e2969]
- Updated dependencies [c1cf9c7]
- @difizen/mana-observable@0.1.11
- @difizen/mana-syringe@0.1.11
- @difizen/mana-common@0.1.11
- @difizen/mana-react@0.1.11
- @difizen/mana-core@0.1.11
- @difizen/mana-app@0.1.11
1 change: 1 addition & 0 deletions packages/mana-configuration-panel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# mana-configuration-panel
3 changes: 3 additions & 0 deletions packages/mana-configuration-panel/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const configs = require('../../jest.config');

module.exports = configs;
Loading

0 comments on commit b88eda1

Please sign in to comment.