Skip to content

Commit

Permalink
chore(configuration-panel): adjust directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
huxiamei authored and BroKun committed Dec 17, 2024
1 parent 76c37bb commit 6de6fcd
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apps/docs/src/application-react/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { langBundles, l10n, L10nLang } from '@difizen/mana-l10n';

import { AntdMenuModule } from './antd-menu/index.js';
import { CommandPalette } from './command-palette/index.js';
import { ConfigurtionMenuModule } from './setting-editor/index.js';
import { ContentModule } from './content/index.js';
import { FileModule } from './file/index.js';
import styles from './index.module.less';
import { LogoModule } from './logo/index.js';
import { ConfigurtionMenuModule } from './setting-editor/index.js';
import { ThemeSwitcherModule } from './theme-switcher/index.js';
import { UerModule } from './user/index.js';
import { WorkbenchModule } from './workbench/index.js';
Expand Down
5 changes: 2 additions & 3 deletions apps/docs/src/application-react/setting-editor/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { createViewPreference, ManaModule } from '@difizen/mana-app';

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

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

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

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

export const ConfigurtionMenuModule = ManaModule.create()
Expand Down
5 changes: 5 additions & 0 deletions packages/mana-configuration-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"moment": "^2.30.1",
"@ant-design/icons": "^5.5.2"
},
"devDependencies": {
"@types/react": ">=16.8.6",
"@types/react-dom": ">=16.8.6",
"rimraf": "latest"
},
"peerDependencies": {
"react": ">=16.8.6",
"antd": "^4.0.0 || ^5.0.0"
Expand Down
5 changes: 0 additions & 5 deletions packages/mana-configuration-panel/src/configuration/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RenderProps } from '@difizen/mana-core';
import type { RenderProps } from '@difizen/mana-app';
import { Checkbox, DatePicker, Input, InputNumber, Select, Switch } from 'antd';
import moment from 'moment';
import React from 'react';
Expand Down
7 changes: 1 addition & 6 deletions packages/mana-configuration-panel/src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import 'react';
import assert from 'assert';

import { ManaPreset } from './index';

// import { ConfigurtionMenuModule } from './index';

describe('mana-configuration-panel', () => {
it('import', () => {
assert(ManaPreset);
assert(true);
});
});
12 changes: 5 additions & 7 deletions packages/mana-configuration-panel/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { ManaModule } from '@difizen/mana-app';

import { SettingEditorModule } from './configuration';

export * from './configuration';

export const ManaPreset = ManaModule.create().dependOn(SettingEditorModule);
export * from './configuration-panel-view.js';
export * from './configuration-render-contribution.js';
export * from './default-node-render.js';
export * from './setting-editor-view.js';
export * from './module';
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { SplitPanel } from '@difizen/mana-react';
import React from 'react';

import { ConfigurationPanelView } from './index.js';
import { ConfigurationPanelView } from './configuration-panel-view';

export const SettingEditorComponent: React.FC = () => {
const viewInstance = useInject<SettingEditorView>(ViewInstance);
Expand Down

0 comments on commit 6de6fcd

Please sign in to comment.