Skip to content

Commit

Permalink
fix: boolean issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywu committed Oct 24, 2023
1 parent d2ba138 commit 7174d8f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Language support: `angular` | `react` | `react-ts` | `vanilla` | `vanilla-ts` |
```diff
import DefaultTheme from 'vitepress/theme';
+import { Sandbox } from 'vitepress-plugin-sandpack';
+import 'vitepress-plugin-sandpack/dist/style.css';

export default {
...DefaultTheme,
Expand All @@ -49,7 +50,6 @@ Language support: `angular` | `react` | `react-ts` | `vanilla` | `vanilla-ts` |
import { defineConfig } from 'vitepress';
import container from 'markdown-it-container';
import { renderSandbox } from 'vitepress-plugin-sandpack';
import 'vitepress-plugin-sandpack/dist/style.css';

// rule of 'html tag name' to 'component name'
// 'sanbox' -> 'Sandbox'
Expand Down
3 changes: 1 addition & 2 deletions docs/docs/custom-usage/custom-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ export default {
```js
import { defineConfig } from 'vitepress';
import container from 'markdown-it-container';
import { renderSandbox } from 'vitepress-plugin-sandpack';
import 'vitepress-plugin-sandpack/dist/style.css';
import { renderSandbox } from 'vitepress-plugin-sandpack';import 'vitepress-plugin-sandpack/dist/style.css';

// rule of 'html tag name' to 'component name'
// 'sanbox' -> 'Sandbox'
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/custom-usage/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const props = defineProps(sandboxProps);
import DefaultTheme from 'vitepress/theme';
import Sandbox from 'vitepress-plugin-sandpack';
+import MySandbox from 'you-dir/MySandbox.vue';
+import 'vitepress-plugin-sandpack/dist/style.css';

export default {
...DefaultTheme,
Expand All @@ -101,7 +102,6 @@ export default {
import { defineConfig } from 'vitepress';
import container from 'markdown-it-container';
import { renderSandbox } from 'vitepress-plugin-sandpack';
import 'vitepress-plugin-sandpack/dist/style.css';

// rule of 'html tag name' to 'component name'
// 'sanbox' -> 'Sandbox'
Expand Down
1 change: 0 additions & 1 deletion docs/docs/get-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default {
import { defineConfig } from 'vitepress';
import container from 'markdown-it-container';
import { renderSandbox } from 'vitepress-plugin-sandpack';
import 'vitepress-plugin-sandpack/dist/style.css';

// rule of 'html tag name' to 'component name'
// 'sanbox' -> 'Sandbox'
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
},
"devDependencies": {
"highlight.js": "^11.9.0",
"vitepress": "^1.0.0-rc.22"
"vitepress": "^1.0.0-rc.23"
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,25 @@
"sandpack-vue3": "^3.1.9"
},
"devDependencies": {
"@commitlint/cli": "^17.8.0",
"@commitlint/config-conventional": "^17.8.0",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@commitlint/cli": "^18.0.0",
"@commitlint/config-conventional": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vitejs/plugin-vue": "^4.4.0",
"@vue/eslint-config-typescript": "^12.0.0",
"babel-loader": "^9.1.3",
"bumpp": "^9.2.0",
"eslint": "^8.51.0",
"eslint": "^8.52.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"lint-staged": "^15.0.2",
"npm": "^10.2.1",
"typescript": "^5.2.2",
"vite-plugin-dts": "^3.6.0",
"vue-tsc": "^1.8.19"
"vue-tsc": "^1.8.20"
},
"peerDependencies": {
"vite": ">=4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sandbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const props = defineProps(sandboxProps);
const files = ref<SandpackFiles>({});
const getOpt = (propName: string) => props[propName] || props?.options?.[propName];
const getOpt = (propName: string) => props[propName] ?? props?.options?.[propName];
const editorVisible = computed(() => parsedBoolean(getOpt('hideEditor')) ? 'none' : 'flex');
Expand Down

0 comments on commit 7174d8f

Please sign in to comment.