Skip to content

Commit

Permalink
DEV load SDK in storybook using a QRC file
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandunca committed May 10, 2024
1 parent b79db01 commit 6841757
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storybook/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ add_executable(
${CORE_JS_FILES}
${STORYBOOK_QML_FILES}
README.md
# Require for loading WalletConnect SDK
stubs/stub-resources.qrc
)

target_compile_definitions(${PROJECT_NAME} PRIVATE
Expand Down
18 changes: 18 additions & 0 deletions storybook/stubs/stub-resources.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- Keep in sync with the main resources.qrc for files that require explicit qrc loading -->

<!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>

0 comments on commit 6841757

Please sign in to comment.