Skip to content

Commit 15286dc

Browse files
committed
Fixed Demo code.
Fixed typing file is missing. Update dependencies.
1 parent 63d99a2 commit 15286dc

File tree

7 files changed

+46
-53
lines changed

7 files changed

+46
-53
lines changed

CHANGELOG.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7-
#### [1.1.4](https://github.com/logue/vue-codemirror6/compare/1.1.4...1.1.4)
7+
#### [1.1.6](https://github.com/logue/vue-codemirror6/compare/1.1.3...1.1.6)
88

9-
> 12 January 2023
10-
11-
- Update dependencies. [`febe5f1`](https://github.com/logue/vue-codemirror6/commit/febe5f1822d86a8e30d38fc6440b13209b41186d)
9+
- Fix for #11 [`c634b55`](https://github.com/logue/vue-codemirror6/commit/c634b555ffff93bb30da2f501ec366289fc86ec1)
10+
- Update dependencies. [`63d99a2`](https://github.com/logue/vue-codemirror6/commit/63d99a23a5df4771ca1c3edea8e8f97502622228)
1211
- release v1.1.2 [`903af1f`](https://github.com/logue/vue-codemirror6/commit/903af1fcf128ea7958ca9ae40fc97f062d8696d1)
1312

1413
#### [1.1.3](https://github.com/logue/vue-codemirror6/compare/1.1.2...1.1.3)

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "vue-codemirror6",
4-
"version": "1.1.5",
4+
"version": "1.1.6",
55
"license": "MIT",
66
"description": "CodeMirror6 Component for vue2 and vue3.",
77
"keywords": [
@@ -67,7 +67,7 @@
6767
"build:clean": "rimraf dist docs",
6868
"build:docs": "vite build --mode=docs",
6969
"build-only": "vite build",
70-
"build-declaration": "tsc -p tsconfig.app.json --composite false --declaration --declarationMap --declarationDir dist",
70+
"build-declaration": "tsc -p tsconfig.app.json --composite false",
7171
"lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . --write",
7272
"preview": "vite preview --mode=docs",
7373
"prepare": "husky install",
@@ -99,25 +99,25 @@
9999
"@vue/eslint-config-prettier": "^7.0.0",
100100
"@vue/tsconfig": "^0.1.3",
101101
"@vueuse/core": "^9.10.0",
102-
"eslint": "^8.31.0",
102+
"eslint": "^8.32.0",
103103
"eslint-config-google": "^0.14.0",
104104
"eslint-config-prettier": "^8.6.0",
105105
"eslint-import-resolver-alias": "^1.1.2",
106106
"eslint-import-resolver-typescript": "^3.5.3",
107-
"eslint-linter-browserify": "^8.31.0",
107+
"eslint-linter-browserify": "^8.32.0",
108108
"eslint-plugin-html": "^7.1.0",
109109
"eslint-plugin-import": "^2.27.4",
110110
"eslint-plugin-jsdoc": "^39.6.4",
111111
"eslint-plugin-prettier": "^4.2.1",
112112
"eslint-plugin-tsdoc": "^0.2.17",
113113
"eslint-plugin-vue": "^9.9.0",
114-
"eslint-plugin-vuejs-accessibility": "^2.0.0",
114+
"eslint-plugin-vuejs-accessibility": "^2.1.0",
115115
"eslint-plugin-yaml": "^0.5.0",
116116
"husky": "^8.0.3",
117117
"lint-staged": "^13.1.0",
118118
"npm-run-all": "^4.1.5",
119-
"prettier": "^2.8.2",
120-
"rimraf": "^4.0.4",
119+
"prettier": "^2.8.3",
120+
"rimraf": "^4.0.7",
121121
"rollup-plugin-visualizer": "^5.9.0",
122122
"typescript": "^4.9.4",
123123
"vite": "^4.0.4",

src-docs/App.vue

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
<script setup>
2-
import { useDark } from '@vueuse/core';
3-
42
import ToggleTheme from './components/ToggleTheme.vue';
53
import DemoPage from './DemoPage.vue';
6-
7-
const isDark = useDark();
84
</script>
95

106
<!-- eslint-disable vuejs-accessibility/anchor-has-content -->
117
<template>
128
<nav class="navbar navbar-expand-md bg-dark" data-bs-theme="dark">
139
<div class="container-fluid d-flex justify-content-between">
14-
<a class="navbar-brand" href="#">Vue Markdown wasm</a>
10+
<a class="navbar-brand" href="#">Vue CodeMirror6</a>
1511
<button
1612
class="navbar-toggler"
1713
type="button"
@@ -26,10 +22,7 @@ const isDark = useDark();
2622
<div id="navbarCollapse" class="collapse navbar-collapse flex-grow-0">
2723
<ul class="navbar-nav">
2824
<li class="nav-item">
29-
<a
30-
class="nav-link"
31-
href="https://github.com/logue/vue-markdown-wasm"
32-
>
25+
<a class="nav-link" href="https://github.com/logue/vue-codemirror6">
3326
<i class="bi bi-github" />
3427
</a>
3528
</li>
@@ -42,9 +35,9 @@ const isDark = useDark();
4235
</nav>
4336
<header class="bg-body-tertiary">
4437
<div class="container py-3">
45-
<h1>Vue Markdown wasm Demo</h1>
38+
<h1>Vue CodeMirrror6 Demo</h1>
4639
<p class="lead">
47-
A rough demo of Vue Markdown wasm in action. You can switch between dark
40+
A rough demo of Vue CodeMirror6 in action. You can switch between dark
4841
modes from the
4942
<i class="bi bi-circle-half" />
5043
icon in the upper left.
@@ -53,7 +46,7 @@ const isDark = useDark();
5346
</header>
5447

5548
<main class="flex-glow-0 pt-4 bg-body">
56-
<demo-page :dark="isDark" />
49+
<demo-page />
5750
</main>
5851

5952
<footer class="footer mt-auto py-3 mb-0 bg-body-tertiary">

src-docs/DemoPage.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- eslint-disable import/no-duplicates -->
22
<script setup>
33
import CodeMirror from 'vue-codemirror6';
4-
4+
import { useDark } from '@vueuse/core';
55
import { html } from '@codemirror/lang-html';
66
77
import MarkdownDemo from './components/MarkdownDemo.vue';
@@ -13,9 +13,7 @@ import ReadonlyAndDisabledDemoSrc from './components/ReadonlyAndDisabledDemo.vue
1313
import LinterAndCrossBindingDemo from './components/LinterAndCrossBindingDemo.vue';
1414
import LinterAndCrossBindingDemoSrc from './components/LinterAndCrossBindingDemo.vue?raw';
1515
16-
defineProps({
17-
dark: { type: Boolean, default: false },
18-
});
16+
const dark = useDark();
1917
2018
const markdownDemoSrc = MarkdownDemoSrc.trim();
2119
const slotDemoSrc = SlotDemoSrc.trim();

src-docs/components/ToggleTheme.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ watch(
1717
</script>
1818

1919
<template>
20-
<a href="#" @click="toggleDark()">
20+
<a href="#" aria-label="Toggle Dark Mode" @click="toggleDark()">
2121
<i class="bi bi-circle-half" />
2222
</a>
2323
</template>

tsconfig.app.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"compilerOptions": {
77
"composite": true,
88
"baseUrl": ".",
9+
"esModuleInterop": true,
10+
"declaration": true,
11+
"declarationDir": "./dist",
912
"outDir": "./dist",
1013
"paths": {
1114
"@/*": ["./src/*"]

yarn.lock

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,10 +2082,10 @@ __metadata:
20822082
languageName: node
20832083
linkType: hard
20842084

2085-
"eslint-linter-browserify@npm:^8.31.0":
2086-
version: 8.31.0
2087-
resolution: "eslint-linter-browserify@npm:8.31.0"
2088-
checksum: 5759b75fa07fc459b322502030ee2d4585851d89442c17fcf62baafbf78e8cabdc9c0575cd2aa13dac20655b0c71020d52848d02c4021f6bbdb91474ba1a36fd
2085+
"eslint-linter-browserify@npm:^8.32.0":
2086+
version: 8.32.0
2087+
resolution: "eslint-linter-browserify@npm:8.32.0"
2088+
checksum: f922fadc345b5a30ad4f37c06433a8cccad2653363c712ec07a15802f8009c7c2a3d6c78ba4917e5d7d591a06f51b5c4f41d9a9a59f234755cf2078d6dfb84ed
20892089
languageName: node
20902090
linkType: hard
20912091

@@ -2194,16 +2194,16 @@ __metadata:
21942194
languageName: node
21952195
linkType: hard
21962196

2197-
"eslint-plugin-vuejs-accessibility@npm:^2.0.0":
2198-
version: 2.0.0
2199-
resolution: "eslint-plugin-vuejs-accessibility@npm:2.0.0"
2197+
"eslint-plugin-vuejs-accessibility@npm:^2.1.0":
2198+
version: 2.1.0
2199+
resolution: "eslint-plugin-vuejs-accessibility@npm:2.1.0"
22002200
dependencies:
22012201
aria-query: ">=5.0.0"
22022202
emoji-regex: ^10.0.0
22032203
vue-eslint-parser: ^9.0.1
22042204
peerDependencies:
22052205
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0
2206-
checksum: 0952ad72d98307ee7559399ba42acc2540266510c4387f019ea7bf266d23db6762e58382c20be84cce36d81856ad06da38d241547ec0e670ff9e494c4bb943c9
2206+
checksum: 03fab0f9ec70c297dd0c6148faec86138b025eb38cc9337adc01bc0036602f999b0be322a378822e282f8648c5f834fd2d01fc04f2b15d52f796cb0f9f4dd544
22072207
languageName: node
22082208
linkType: hard
22092209

@@ -2262,9 +2262,9 @@ __metadata:
22622262
languageName: node
22632263
linkType: hard
22642264

2265-
"eslint@npm:^8.31.0":
2266-
version: 8.31.0
2267-
resolution: "eslint@npm:8.31.0"
2265+
"eslint@npm:^8.32.0":
2266+
version: 8.32.0
2267+
resolution: "eslint@npm:8.32.0"
22682268
dependencies:
22692269
"@eslint/eslintrc": ^1.4.1
22702270
"@humanwhocodes/config-array": ^0.11.8
@@ -2307,7 +2307,7 @@ __metadata:
23072307
text-table: ^0.2.0
23082308
bin:
23092309
eslint: bin/eslint.js
2310-
checksum: 5e5688bb864edc6b12d165849994812eefa67fb3fc44bb26f53659b63edcd8bcc68389d27cc6cc9e5b79ee22f24b6f311fa3ed047bddcafdec7d84c1b5561e4f
2310+
checksum: 23c8fb3c57291eecd9c1448faf603226a8f885022a2cd96e303459bf72e39b7f54987c6fb948f0f9eecaf7085600e6eb0663482a35ea83da12e9f9141a22b91e
23112311
languageName: node
23122312
linkType: hard
23132313

@@ -4115,12 +4115,12 @@ __metadata:
41154115
languageName: node
41164116
linkType: hard
41174117

4118-
"prettier@npm:^2.8.2":
4119-
version: 2.8.2
4120-
resolution: "prettier@npm:2.8.2"
4118+
"prettier@npm:^2.8.3":
4119+
version: 2.8.3
4120+
resolution: "prettier@npm:2.8.3"
41214121
bin:
41224122
prettier: bin-prettier.js
4123-
checksum: 740c56c2128d587d656ea1dde9bc9c3503dfc94db4f3ac387259215eeb2e216680bdad9d18a0c9feecc6b42cfa188d6fa777df4c36c1d00cedd4199074fbfbd2
4123+
checksum: 92f2ceb522d454370e02082aa74ad27388672f7cee8975028b59517c069fe643bdc73e322675c8faf2ff173d7a626d1a6389f26b474000308e793aa25fff46e5
41244124
languageName: node
41254125
linkType: hard
41264126

@@ -4318,12 +4318,12 @@ __metadata:
43184318
languageName: node
43194319
linkType: hard
43204320

4321-
"rimraf@npm:^4.0.4":
4322-
version: 4.0.4
4323-
resolution: "rimraf@npm:4.0.4"
4321+
"rimraf@npm:^4.0.7":
4322+
version: 4.0.7
4323+
resolution: "rimraf@npm:4.0.7"
43244324
bin:
43254325
rimraf: dist/cjs/src/bin.js
4326-
checksum: a3296ea15c79fe3da0bae06a484dd8b8ec1e6d3044b02f05ce27575ef23c856e37eef6e71a668ce0e263da594a05ace1e88be6f42200f1fbbf433b57121bae32
4326+
checksum: 294ae526198eadac7b57e7b43782aaa0be5d5c2a606ee65c26d9cd2fdddc320d80cc43c3c1c0b9562e88aa265f67c4c00f70af2b4d065e76ce03d9d7a2a5c901
43274327
languageName: node
43284328
linkType: hard
43294329

@@ -5181,26 +5181,26 @@ __metadata:
51815181
"@vue/tsconfig": ^0.1.3
51825182
"@vueuse/core": ^9.10.0
51835183
codemirror: ^6.0.1
5184-
eslint: ^8.31.0
5184+
eslint: ^8.32.0
51855185
eslint-config-google: ^0.14.0
51865186
eslint-config-prettier: ^8.6.0
51875187
eslint-import-resolver-alias: ^1.1.2
51885188
eslint-import-resolver-typescript: ^3.5.3
5189-
eslint-linter-browserify: ^8.31.0
5189+
eslint-linter-browserify: ^8.32.0
51905190
eslint-plugin-html: ^7.1.0
51915191
eslint-plugin-import: ^2.27.4
51925192
eslint-plugin-jsdoc: ^39.6.4
51935193
eslint-plugin-prettier: ^4.2.1
51945194
eslint-plugin-tsdoc: ^0.2.17
51955195
eslint-plugin-vue: ^9.9.0
5196-
eslint-plugin-vuejs-accessibility: ^2.0.0
5196+
eslint-plugin-vuejs-accessibility: ^2.1.0
51975197
eslint-plugin-yaml: ^0.5.0
51985198
husky: ^8.0.3
51995199
lint-staged: ^13.1.0
52005200
lodash: ^4.17.21
52015201
npm-run-all: ^4.1.5
5202-
prettier: ^2.8.2
5203-
rimraf: ^4.0.4
5202+
prettier: ^2.8.3
5203+
rimraf: ^4.0.7
52045204
rollup-plugin-visualizer: ^5.9.0
52055205
typescript: ^4.9.4
52065206
vite: ^4.0.4

0 commit comments

Comments
 (0)