1.0.26 ⢠Published 3 months ago
@storecraft/dashboard v1.0.26
Storecraft Official Dashboard
The Official storecraft
Dashboard š,
- Leveraging
static rendering
/client side rendering
/swr
- Can be deployed into cost effective CDN
- Also available at
jsDelivr
CDN
Effectively, TWO Build Targets
1. A library
with
- Dashboard as
react
functional component - a
mount
function, that you can wrap for any framework of pure DOM.
- A website, with configurable backend endpoint.
Build is handled by Vite
npm i @storecraft/dashboard
Development
First, run the development server:
npm run dashboard:dev
# or
yarn dashboard:dev
# or
npm start
Open http://localhost:3000 with your browser to see the result.
Build / Export
Simply, run any of the following command
npm run dashboard:build
# or
yarn dashboard:build
Artifacts are in the dist
folder
dist
āāā lib
ā āāā index.js // ES module
ā āāā index.cjs // common js
ā āāā index.umd.cjs // UMD
āāā website
ā āāā index.html
ā āāā assets
Consuming via React
First,
npm i @storecraft/dashboard
Then,
import { Dashboard } from '@storecraft/dashboard'
export const Root = () => {
return (
<div className='w-screen h-screen'>
<Dashboard />
</div>
)
}
Consuming via jsDelivr
<script id='_storecraft_script_' type="module">
import { mountStorecraftDashboard } from 'https://cdn.jsdelivr.net/npm/@storecraft/dashboard@latest/dist/lib/index.min.js';
mountStorecraftDashboard(
document.getElementById('root'), false
);
</script>
Author: Tomer Shalev
1.0.26
3 months ago
1.0.25
3 months ago
1.0.19
4 months ago
1.0.18
4 months ago
1.0.17
4 months ago
1.0.16
5 months ago
1.0.22
4 months ago
1.0.21
4 months ago
1.0.20
4 months ago
1.0.23
4 months ago
1.0.15
6 months ago
1.0.14
6 months ago
1.0.13
7 months ago
1.0.12
8 months ago
1.0.11
8 months ago
1.0.10
9 months ago
1.0.9
9 months ago
1.0.8
10 months ago
1.0.7
10 months ago
1.0.6
10 months ago
1.0.5
11 months ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago