Skip to content

Commit 79deaa6

Browse files
AE-95-reactdemo: put all react demos in local/reactdemo
1 parent e035ed1 commit 79deaa6

47 files changed

Lines changed: 619 additions & 244 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.esbuild/build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ const sharedDefine = {
4444
};
4545

4646
await buildReactAutoInit();
47-
await buildMoodleDesignSystem();
47+
// await buildMoodleDesignSystem();
4848
await buildPluginComponents(isDev, sharedDefine, isWatch);

public/lib/react_autoinit/build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/lib/react_autoinit/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ const resolveComponent = async (componentName: string): Promise<any> => {
156156
} else if (namespace.startsWith("block_")) {
157157
// @block_html/settings to ../../../blocks/html/react/build/settings.js.
158158
const blockName = namespace.replace("block_", "");
159-
relativePath = `../../../blocks/${blockName}/react/build/${componentPath}.js`;
159+
relativePath = `../../../blocks/${blockName}/js/react/build/${componentPath}.js`;
160160
} else if (namespace.startsWith("local_")) {
161-
// @local_multiplereact/foo to ../../../local/multiplereact/react/build/foo.js.
161+
// @local_reactdemo/foo to ../../../local/reactdemo/react/build/foo.js.
162162
const localName = namespace.replace("local_", "");
163-
relativePath = `../../../local/${localName}/react/build/${componentPath}.js`;
163+
relativePath = `../../../local/${localName}/js/react/build/${componentPath}.js`;
164164
} else {
165165
// Generic: @calendar/event to ../../../calendar/react/build/event.js.
166166
relativePath = `../../../${namespace}/react/build/${componentPath}.js`;

public/local/multiplereact/js/react/build/local_multiplereact_button.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/local/multiplereact/js/react/build/local_multiplereact_button.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/local/multiplereact/js/react/build/local_multiplereact_counter.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/local/multiplereact/js/react/build/local_multiplereact_message.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/local/multiplereact/js/react/build/local_multiplereact_test.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/local/multiplereact/js/react/build/local_multiplereact_test.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/local/multiplereact/js/react/src/local_multiplereact_test.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)