vzcode 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-12dbf516.js +121 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/src/client/Settings.tsx +1 -3
- package/src/client/Sidebar/{ConfirmationBox.jsx → ConfirmationBox.tsx} +1 -2
- package/src/client/bootstrap.ts +8 -0
- package/dist/assets/index-c31dfdc2.js +0 -121
package/dist/index.html
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
href="https://unpkg.com/bootstrap@5.3.0/dist/css/bootstrap.min.css"
|
|
29
29
|
rel="stylesheet"
|
|
30
30
|
/>
|
|
31
|
-
<script type="module" crossorigin src="/assets/index-
|
|
31
|
+
<script type="module" crossorigin src="/assets/index-12dbf516.js"></script>
|
|
32
32
|
<link rel="stylesheet" href="/assets/index-0053b846.css">
|
|
33
33
|
</head>
|
|
34
34
|
<body>
|
package/package.json
CHANGED
package/src/client/Settings.tsx
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
|
-
import Modal from '
|
|
3
|
-
import Form from 'react-bootstrap/Form';
|
|
4
|
-
import Button from 'react-bootstrap/Button';
|
|
2
|
+
import { Button, Modal, Form } from './bootstrap';
|
|
5
3
|
import Select from 'react-select';
|
|
6
4
|
import {
|
|
7
5
|
ThemeLabel,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Button from '
|
|
3
|
-
import Modal from 'react-bootstrap/Modal';
|
|
2
|
+
import { Button, Modal } from '../bootstrap';
|
|
4
3
|
|
|
5
4
|
// Inspired by https://react-bootstrap.netlify.app/docs/components/modal/#live-demo
|
|
6
5
|
export const ConfirmationBox = ({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// A central place where we import what we need from react-bootstrap.
|
|
2
|
+
// This strange looking way of importing makes it work with Vite's SSR build.
|
|
3
|
+
// Otherwise we get `Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import`
|
|
4
|
+
import Form from 'react-bootstrap/cjs/Form.js';
|
|
5
|
+
import Button from 'react-bootstrap/cjs/Button.js';
|
|
6
|
+
import Modal from 'react-bootstrap/cjs/Modal.js';
|
|
7
|
+
|
|
8
|
+
export { Form, Button, Modal };
|