Skip to content

Commit ead14cf

Browse files
authored
Fix hmr behavior (#1571)
* Fix hmr behavior * Automatic frontend build --------- Co-authored-by: vin0401 <[email protected]>
1 parent 6eb4dbc commit ead14cf

File tree

443 files changed

+59380
-2
lines changed

Some content is hidden

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

443 files changed

+59380
-2
lines changed

assets/js/src/sdk/api/asset/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/asset/asset-api-slice-enhanced'

assets/js/src/sdk/api/custom-metadata/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/asset/editor/shared-tab-manager/tabs/custom-metadata/metadata-api-slice-enhanced'

assets/js/src/sdk/api/data-object/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/data-object/data-object-api-slice-enhanced'

assets/js/src/sdk/api/dependencies/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/element/editor/shared-tab-manager/tabs/dependencies/dependencies-api-slice-enhanced'

assets/js/src/sdk/api/documents/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/document/sites-slice.gen'

assets/js/src/sdk/api/elements/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/element/element-api-slice-enhanced'

assets/js/src/sdk/api/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/app/api/pimcore/index'
1216
export * from '@Pimcore/app/api/pimcore/route'
1317
export * from '@Pimcore/app/api/pimcore/tags'

assets/js/src/sdk/api/metadata/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/asset/editor/shared-tab-manager/tabs/custom-metadata/metadata-api-slice-enhanced'

assets/js/src/sdk/api/perspectives/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/perspectives/perspectives-slice.gen'

assets/js/src/sdk/api/properties/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/element/editor/shared-tab-manager/tabs/properties/properties-api-slice-enhanced'

assets/js/src/sdk/api/role/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/user/roles/roles-api-slice-enhanced'

assets/js/src/sdk/api/schedule/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/element/editor/shared-tab-manager/tabs/schedule/schedule-api-slice-enhanced'

assets/js/src/sdk/api/settings/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/app/settings/settings-slice.gen'

assets/js/src/sdk/api/tags/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/element/editor/shared-tab-manager/tabs/tags/tags-api-slice-enhanced'

assets/js/src/sdk/api/thumbnails/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/asset/editor/types/asset-thumbnails-api-slice.gen'

assets/js/src/sdk/api/translations/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/app/translations/translations-api-slice.gen'

assets/js/src/sdk/api/user/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/user/user-api-slice-enhanced'

assets/js/src/sdk/api/version/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/element/editor/shared-tab-manager/tabs/versions/version-api-slice-enhanced'

assets/js/src/sdk/api/workflow/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice-enhanced'

assets/js/src/sdk/app/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/app/store'
1216
export * from '@Pimcore/app/config/app-config'
1317
export * from '@Pimcore/app/config/date-time'

assets/js/src/sdk/components/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/components/accordion/accordion'
1216
export * from '@Pimcore/components/button/button'
1317
export * from '@Pimcore/components/accordion-timeline/accordion-timeline'

assets/js/src/sdk/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import { type components, type PimcoreThemeConfig, type tokens } from '@Pimcore/
1313
export { type AbstractModule } from '@Pimcore/app/module-system/module-system'
1414
export { type IAbstractPlugin } from '@Pimcore/app/plugin-system/plugin-system'
1515

16+
if (module.hot !== undefined) {
17+
module.hot.accept()
18+
}
19+
1620
declare global {
1721
interface Window {
1822
Pimcore: typeof PimcoreApi

assets/js/src/sdk/modules/app/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/app/component-registry/component-registry'
1216

1317
export * from '@Pimcore/modules/app/error-boundary/error-boundary'

assets/js/src/sdk/modules/asset/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/asset/actions/clear-thumbnails/use-clear-thumbnails'
1216
export * from '@Pimcore/modules/asset/actions/download/use-download'
1317
export * from '@Pimcore/modules/asset/actions/upload-new-version/upload-new-version'

assets/js/src/sdk/modules/class-definitions/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/class-definition/class-definition-slice-enhanced'

assets/js/src/sdk/modules/data-object/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/data-object/actions/add-object/use-add-object'
1216
export * from '@Pimcore/modules/data-object/actions/delete-draft/use-delete-draft'
1317
export * from '@Pimcore/modules/data-object/actions/save/use-save'

assets/js/src/sdk/modules/element/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/element/actions/add-folder/use-add-folder'
1216
export * from '@Pimcore/modules/element/actions/copy-paste/use-copy-paste'
1317
export * from '@Pimcore/modules/element/actions/delete/use-delete'

assets/js/src/sdk/modules/icon-library/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/icon-library/services/icon-library'

assets/js/src/sdk/modules/user/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/user/hooks/use-global-user-context'
1216
export * from '@Pimcore/modules/user/hooks/use-user-draft'
1317
export * from '@Pimcore/modules/user/hooks/use-user-helper'

assets/js/src/sdk/modules/widget-manager/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/widget-manager/hooks/use-widget-manager'
1216
export * from '@Pimcore/modules/widget-manager/services/widget-registry'
1317
export type { WidgetManagerTabConfig } from '@Pimcore/modules/widget-manager/widget-manager-slice'

assets/js/src/sdk/modules/wysiwyg/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/modules/wysiwyg/interface/wysiwyg'
1216
export * from '@Pimcore/modules/wysiwyg/wysiwyg'

assets/js/src/sdk/utils/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @license Pimcore Open Core License (POCL)
99
*/
1010

11+
if (module.hot !== undefined) {
12+
module.hot.accept()
13+
}
14+
1115
export * from '@Pimcore/utils/compose'
1216
export * from '@Pimcore/utils/css'
1317
export * from '@Pimcore/utils/currency'

assets/rsbuild.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export default defineConfig({
3030
port: 3031,
3131
},
3232
dev: {
33-
assetPrefix: '/bundles/pimcorestudioui/build/' + buildId,
34-
writeToDisk: true,
33+
assetPrefix: (isDevServer ? 'http://localhost:3031' : '') + '/bundles/pimcorestudioui/build/' + buildId,
34+
writeToDisk: !isDevServer,
3535
},
3636
source: {
3737
entry: {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"entrypoints": {
3+
"main": {
4+
"js": [
5+
"/bundles/pimcorestudioui/build/4ba8bb46-e637-4168-922b-356408c1f451/static/js/681.b3de65c0.js",
6+
"/bundles/pimcorestudioui/build/4ba8bb46-e637-4168-922b-356408c1f451/static/js/main.3e9c18bb.js"
7+
],
8+
"css": []
9+
},
10+
"exposeRemote": {
11+
"js": [
12+
"/bundles/pimcorestudioui/build/4ba8bb46-e637-4168-922b-356408c1f451/exposeRemote.js"
13+
],
14+
"css": []
15+
}
16+
}
17+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!doctype html><html><head><title>Rsbuild App</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/bundles/pimcorestudioui/build/4ba8bb46-e637-4168-922b-356408c1f451/static/js/681.b3de65c0.js"></script><script defer src="/bundles/pimcorestudioui/build/4ba8bb46-e637-4168-922b-356408c1f451/static/js/main.3e9c18bb.js"></script></head><body><div id="root"></div></body></html>

0 commit comments

Comments
 (0)