Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.13.0 (2025-12-19)

- feat(vite-plugin-blocklet): support show poweredby in html loading

## 0.12.5 (2025-12-15)

- chore: update deps to the latest version
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-blocklet",
"private": true,
"version": "0.12.5",
"version": "0.13.0",
"description": "",
"keywords": [],
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-blocklet",
"version": "0.12.5",
"version": "0.13.0",
"exports": "./index.js",
"type": "module",
"repository": "git@github.com:blocklet/create-blocklet.git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"typescript": "^5.7.2",
"vite": "^7.0.0",
"vite-node": "^3.2.4",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-require": "^1.2.14",
"vite-plugin-svgr": "^4.3.0",
"vite-tsconfig-paths": "^5.1.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-svgr": "^4.3.0",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/did-wallet-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"simple-git-hooks": "^2.11.1",
"vite": "^7.0.0",
"vite-node": "^3.2.4",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-require": "^1.2.14",
"vite-plugin-svgr": "^4.3.0",
"zx": "^8.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"tsx": "^4.19.3",
"typescript": "^5.7.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-svgr": "^4.3.0",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/react-dapp-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"tsx": "^4.19.3",
"typescript": "^5.7.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-svgr": "^4.3.0",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/react-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-svgr": "^4.3.0",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/react-gun-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-svgr": "^4.3.0",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/react-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"rimraf": "^5.0.10",
"simple-git-hooks": "^2.11.1",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-svgr": "^4.3.0",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/solidjs-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-solid": "^2.11.7",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/solidjs-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"simple-git-hooks": "^2.11.1",
"solid-js": "^1.9.4",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-solid": "^2.11.7",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/svelte-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"svelte": "^4.2.19",
"tsx": "^4.19.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"zx": "^8.3.2"
},
"lint-staged": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/svelte-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"simple-git-hooks": "^2.11.1",
"svelte": "^4.2.19",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"zx": "^8.3.2"
},
"lint-staged": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"tsx": "^4.19.3",
"typescript": "^5.7.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vite-plugin-svgr": "^4.3.0",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/vue-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vue": "^3.5.13",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/vue-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"rimraf": "^5.0.10",
"simple-git-hooks": "^2.11.1",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vue": "^3.5.13",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/vue-ts-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"taze": "^0.16.9",
"typescript": "^5.7.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vue-tsc": "^2.2.2",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/vue2-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.3",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vue": "^2.7.16",
"zx": "^8.3.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/vue2-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"rimraf": "^5.0.10",
"simple-git-hooks": "^2.11.1",
"vite": "^7.0.0",
"vite-plugin-blocklet": "^0.12.5",
"vite-plugin-blocklet": "^0.13.0",
"vue": "^2.7.16",
"zx": "^8.3.2"
},
Expand Down
29 changes: 18 additions & 11 deletions plugins/vite-plugin-blocklet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,26 @@ import setupClient from './libs/client.js';
* @property {boolean} [disableLoading=false] - Disable loading plugin.
* @property {boolean} [disableDebug=false] - Disable debug plugin.
* @property {boolean} [disableEmbed=false] - Disable embed plugin.
*
* @property {import('vite-plugin-node-polyfills').PolyfillOptions} [nodePolyfillsOptions]
*
* @property {string} [loadingElementId]
* @property {string} [loadingColor]
* @property {string} [loadingImage]
* @property {'all'|'mobile'|'desktop'} [debugPlatform='mobile']
* @property {string} [debugScript]
* @property {number} [positionX]
* @property {number} [positionY]
* @param {object} [embeds={}] - The embeds to be built.
* @param {array} [embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect-react/lib/Session']] - The external modules to be used in the embeds.
* @param {array} [embedPlugins=[]] - The plugins to be used in the embeds.
* @param {number} [embedBuildConcurrency=0] - The plugins to be used in the embeds.
* @property {string} [loadingElementId='app'] - The ID of the loading element.
* @property {string} [loadingColor='#8abaf0'] - The color of the loading animation.
* @property {string} [loadingImage='/.well-known/service/blocklet/logo?imageFilter=convert&f=png&w=80'] - The URL of the loading image.
* @property {boolean} [loadingShowDots=true] - Whether to show the loading dots animation.
* @property {boolean} [loadingShowPoweredBy=true] - Whether to show the "Powered by" text.
* @property {string} [loadingPoweredByText='Powered by ArcBlock'] - The text to display for "Powered by".
*
* @property {'all'|'mobile'|'desktop'} [debugPlatform='mobile'] - The platforms to enable debug mode for.
* @property {string} [debugScript] - The initialization code for the debug script.
* @property {number} [positionX=0] - The initialization positionX for entry button.
* @property {number} [positionY=0] - The initialization positionY for entry button.
*
* @property {object} [embeds={}] - The embeds to be built.
* @property {array} [embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect-react/lib/Session']] - The external modules to be used in the embeds.
* @property {array} [embedPlugins=[]] - The plugins to be used in the embeds.
* @property {number} [embedBuildConcurrency=0] - The plugins to be used in the embeds.
*
* @property {'middleware'|'client'|'server'|'wsUpgrade'} [hmrMode='middleware'] - 当未传入任何 option 参数时,会自动变为 middleware 模式
*/

Expand Down
Loading
Loading