Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 3c4f0ff

Browse files
committed
chore: development
1 parent 70680d0 commit 3c4f0ff

File tree

4 files changed

+2424
-1329
lines changed

4 files changed

+2424
-1329
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@
22

33
Vue diff viewer plugin
44

5-
> ⚠️ This plugin supports only Vue3
5+
> ⚠️ This plugin supports only Vue3
6+
> Vue2 doesn't have a support plan yet.
67
78
## Table of Contents
89

910
- [Introduction](#introduction)
1011
- [Features](#features)
1112
- [Install plugin](#install-plugin)
1213
* [Options](#options)
13-
- [Usage modal](#usage-modal)
14+
- [Usage diff viewer](#usage-diff-viewer)
1415
* [props](#props)
15-
+ [props.options](#propsoptions)
16-
* [slot arguments](#slot-arguments)
17-
- [Handle global CSS](#handle-global-css)
18-
- [Example](#example)
16+
- [Custom theme](#custom-theme)
17+
- [Extend languages](#extend-languages)
1918

2019
## Introduction
2120

@@ -85,7 +84,7 @@ Insert the diff component with props.
8584
| prev | `string` | `''` | | Prev code |
8685
| current | `string` | `''` | | Current Code |
8786

88-
### Custom theme
87+
## Custom theme
8988

9089
`vue-diff` uses the following <a href="https://github.com/highlightjs/highlight.js/tree/master/src/styles">highlight.js themes</a> and can be customized.
9190

__tests__/utils.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ref } from 'Vue'
1+
import { ref } from 'vue'
22
import { MODIFIED_START_TAG, MODIFIED_CLOSE_TAG, getDiffType, getSplitLines, getUnifiedLines, renderLines, renderWords, setHighlightCode } from '../src/utils'
33

44
describe('Utils unit', () => {

dev/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default defineComponent({
5151
const mode = ref('split')
5252
const languages = ref(['javascript', 'html', 'css', 'yaml'])
5353
const language = ref('javascript')
54-
const themes = ref(['dark', 'light', 'vs2015'])
54+
const themes = ref(['dark', 'light', 'custom'])
5555
const theme = ref('dark')
5656
5757
const prev = ref('')

0 commit comments

Comments
 (0)