pimcore / studio-ui-bundle
Pimcore Studio Ui Bundle
1.x-dev
2024-09-19 14:54 UTC
Requires
- php: ~8.2.0 || ~8.3.0
- pimcore/pimcore: ^11.x-dev
- pimcore/studio-backend-bundle: 1.x-dev
Requires (Dev)
- codeception/codeception: ^5.0.10
- codeception/module-asserts: ^2
- codeception/module-symfony: ^3.1.1
- codeception/phpunit-wrapper: ^9
- fakerphp/faker: ^1.23
- nyholm/psr7: ^1
- phpstan/phpstan: ^1.10.5
- phpstan/phpstan-symfony: ^1.2.20
- phpunit/phpunit: 10.2.7
- symfony/phpunit-bridge: ^6
- 1.x-dev
- dev-nightly
- dev-544-improve-split-layout-resizer
- dev-data-object-widgets
- dev-readme-update
- dev-536-shared-component-tags
- dev-improve_file_upload
- dev-539-switch-shared-component
- dev-compact-component
- dev-refactor-to-accordion-shared-component
- dev-504-segmented-control
- dev-scheduler-improvements
- dev-fix-tests
- dev-71-context-menu
- dev-spacing-components
- dev-257-asset-upload-dnd
- dev-typography-components
- dev-436-example-widget
- dev-split-layout-resizing
- dev-api-cache-tagging
- dev-cell-types
- dev-improve-asset-draft
- dev-accordion-shared-component
- dev-dropdown
- dev-modified-cells
- dev-mercure-client-url
- dev-cleanup-asset-tabs
- dev-509-decouple-asset-api-from-custom-settings-api
- dev-split-layout
- dev-remove-workflow-css
- dev-unify-add-buttons
- dev-properties-improvements
- dev-properties-view
- dev-content-container
- dev-500-refactor-buttons-in-tabs
- dev-improve-cell-types
- dev-421-editable-properties-key
- dev-463-headline-shared-component
- dev-metadata-types
- dev-notes-improvements
- dev-latest-api-update
- dev-loading-indicators
- dev-video-sidebar
- dev-storybook
- dev-grid-tools
- dev-331-followup-property-needs-to-be-read-only
- dev-414-open-icon-for-assets
- dev-358-versions-clear-all-adjustments
- dev-grid-tags
- dev-api-update
- dev-display-user
- dev-dependabot/github_actions/cla-assistant/github-action-2.4.0
- dev-dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.8.0
- dev-dependabot/npm_and_yarn/multi-658d7c804e
- dev-198-improve-thumbnails-in-folder-preview
- dev-dependabot/npm_and_yarn/i18next-23.10.1
- dev-dependabot/npm_and_yarn/eslint-8.57.0
- dev-dependabot/npm_and_yarn/eslint-plugin-react-7.34.1
- dev-97-error-messages-and-quick-snackbar
- dev-inspire-demo
This package is auto-updated.
Last update: 2024-09-22 07:10:42 UTC
README
Studio UI Bundle为Pimcore提供了后端UI。它基于React框架。
如何安装
如何打开
- 通过经典后端UI登录
- 在
{your-domain}/pimcore-studio
下访问它
在不同的URL下运行UI
要更改URL,您可以添加以下配置
´´´yaml pimcore_studio_ui: url_path: '/my-backend' ´´´
现在可以通过 {your-domain}/my-backend
访问Studio。
开发
如何安装
- 导航到插件目录。
- 切换到资源目录
cd ./assets
- 安装依赖项
npm install
如何构建
通过运行以下命令创建新的构建
npm run build
如何运行开发服务器(HMR/实时刷新)
Pimcore配置
在Pimcore配置文件(./config/config.yml
)中启用本地域名以CSP(内容安全策略)的形式
pimcore_admin:
admin_csp_header:
enabled: true
additional_urls:
connect-src:
- 'ws://localhost:3030'
- 'ws://localhost:3031'
- 'http://localhost:3030'
- 'http://localhost:3031'
script-src:
- 'http://localhost:3030'
- 'http://localhost:3031'
font-src:
- 'http://localhost:3030'
- 'http://localhost:3031'
style-src:
- 'http://localhost:3030'
- 'http://localhost:3031'
如何运行和访问开发服务器
使用以下命令运行开发服务器
npm run dev-server
现在您的开发服务器应该正在运行。您可以通过正常的项目域名访问它
{your-domain}/admin/studio
Storybook
Pimcore studio使用Storybook用于react组件的文档。
命令
npm run storybook // run storybook with live reloading
npm run build-storybook // for building storybook for a static hosting
Docker环境
要在本地环境中使用storybook,请确保您已打开端口6006
node:
ports:
- "6006:6006"
...
Nginx配置
您应该注意以下配置
server {
location ^~ /storybook/ {
proxy_pass http://node:6006/;
}
location ^~ /__webpack_hmr {
proxy_pass http://node:6006/__webpack_hmr;
}
}
现在确保通过 npm run storybook
运行storybook。最后,您可以通过 {your-domain/storybook}
访问它