├── vue ├── types │ └── index.d.ts ├── dev-types │ ├── shims-vue.d.ts │ └── shims-tsx.d.ts ├── .eslintrc.js ├── tsconfig.json ├── uplot-vue-example.html ├── yarn.lock ├── package.json ├── uplot-vue3-example.tsx ├── uplot-vue.js └── uplot-vue-example.tsx ├── svelte ├── index.js ├── uplot-svelte-example.html ├── uplot-svelte-example.js ├── .eslintrc.cjs ├── tsconfig.json ├── types │ └── index.d.ts ├── package.json ├── svelte-example.svelte ├── uplot-svelte.svelte └── yarn.lock ├── react ├── .eslintrc.js ├── tsconfig.json ├── uplot-react-example.html ├── types │ └── index.d.ts ├── uplot-react-simple.js ├── package.json ├── uplot-react.tsx ├── uplot-react-example.tsx └── yarn.lock ├── .prettierrc ├── .gitignore ├── .eslintrc.js ├── tsconfig.json ├── common ├── package.json └── index.ts ├── LICENSE ├── package.json ├── webpack.config.js └── README.md /vue/types/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'uplot-vue'; 2 | -------------------------------------------------------------------------------- /svelte/index.js: -------------------------------------------------------------------------------- 1 | import UplotSvelte from './uplot-svelte.svelte'; 2 | export default UplotSvelte; 3 | -------------------------------------------------------------------------------- /vue/dev-types/shims-vue.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | import Vue from 'vue' 3 | export default Vue 4 | } 5 | -------------------------------------------------------------------------------- /svelte/uplot-svelte-example.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /react/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | settings: { 3 | react: {version: "detect"} 4 | }, 5 | extends: [ 6 | 'plugin:react/recommended' 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /svelte/uplot-svelte-example.js: -------------------------------------------------------------------------------- 1 | import App from './svelte-example.svelte'; 2 | 3 | const app = new App({ 4 | target: document.getElementById('root'), 5 | }); 6 | 7 | export default app; 8 | -------------------------------------------------------------------------------- /vue/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: [ 3 | 'plugin:vue/recommended' 4 | ], 5 | rules: { 6 | 'vue/component-definition-name-casing': 'off' 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /react/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "jsx": "react", 5 | 6 | "esModuleInterop": true 7 | }, 8 | "exclude": ["./vue/**"] 9 | } 10 | -------------------------------------------------------------------------------- /react/uplot-react-example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |Log:
80 | 81 | {#if flag} 82 |