This was originally contributed to https://github.com/marcone/teslausb by Kyle He (https://github.com/599316527), but was moved to a separate project.
- Installl Nodejs.
- Into
ui
folder, runnpm install
to install dependencies. - Set env variables:
- PROXT_TARGET=http://xxx.xxx.xxx.xxx PI's web page url which is used inside dev server to load resource from PI
- PORT=xxxx dev server's port
- Run
npm run serve
to start dev server.
PROXY_TARGET=http://192.168.1.100 PORT=3000 npm run serve
npm run build
<VeuiIcon name="icon-name" />
Find available icons here.
Import icon first then use.
import 'veui-theme-dls-icons/play';
IconData: https://github.com/Justineo/vue-awesome#registering-custom-icons
import {Icon} from 'veui';
Icon.register(iconData);