chore(storybook) load WalletConnect SDK in storybook by QRC for now

Updates: #14696
This commit is contained in:
Stefan 2024-05-10 16:26:50 +02:00 committed by Stefan Dunca
parent 4575631a6e
commit fc582776c0
2 changed files with 27 additions and 0 deletions

View File

@ -64,6 +64,9 @@ add_executable(
${CORE_JS_FILES}
${STORYBOOK_QML_FILES}
README.md
# Require for loading WalletConnect SDK;
# TODO #14696: remove this dependency
storybook-resources.qrc
)
target_compile_definitions(${PROJECT_NAME} PRIVATE

View File

@ -0,0 +1,24 @@
<!--
Keep in sync with the main app resources.qrc for files that require explicit qrc loading
Do not use it for QML files as they are loaded from disk in storybook
TODO #14696: remove this workaround by moving SDK files to StatusQ and ensure they are safely loaded
-->
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource>
<!-- WalletConnect SDK -->
<file alias="app/AppLayouts/Wallet/services/dapps/sdk/generated/bundle.js">../ui/app/AppLayouts/Wallet/services/dapps/sdk/generated/bundle.js</file>
<file alias="app/AppLayouts/Wallet/services/dapps/sdk/generated/bundle.js.LICENSE.txt">../ui/app/AppLayouts/Wallet/services/dapps/sdk/generated/bundle.js.LICENSE.txt</file>
<file alias="app/AppLayouts/Wallet/services/dapps/sdk/package-lock.json">../ui/app/AppLayouts/Wallet/services/dapps/sdk/package-lock.json</file>
<file alias="app/AppLayouts/Wallet/services/dapps/sdk/package.json">../ui/app/AppLayouts/Wallet/services/dapps/sdk/package.json</file>
<file alias="app/AppLayouts/Wallet/services/dapps/sdk/src/index.html">../ui/app/AppLayouts/Wallet/services/dapps/sdk/src/index.html</file>
<file alias="app/AppLayouts/Wallet/services/dapps/sdk/src/index.js">../ui/app/AppLayouts/Wallet/services/dapps/sdk/src/index.js</file>
<file alias="app/AppLayouts/Wallet/services/dapps/sdk/webpack.config.js">../ui/app/AppLayouts/Wallet/services/dapps/sdk/webpack.config.js</file>
<!-- QWebChannel -->
<file alias="StatusQ/Components/private/qwebchannel/qwebchannel.js">../ui/StatusQ/src/StatusQ/Components/private/qwebchannel/qwebchannel.js</file>
<file alias="StatusQ/Components/private/qwebchannel/helpers.js">../ui/StatusQ/src/StatusQ/Components/private/qwebchannel/helpers.js</file>
</qresource>
</RCC>