codemirror-editor-vue3-knowit-vite
Codemirror + Validation ( JSON / XML )
Work in progress...
This project is created to help us validate XML or JSON scheme inside of Codemirror plugin.
Feat
- Validate XML
- Validate JSON
- Export errors as a file
Installation
npm i codemirror-editor-vue3-knowit-vite
Set it as global component
import CodeEditor from "codemirror-editor-vue3-knowit-vite"
import "codemirror-editor-vue3-knowit-vite/dist/style.css"
const app = createApp(App);
app.use(CodeEditor)
app.mount('#app')
Example of invalid XML
<template>
<code-editor :type="type" :content="content"></code-editor>
</template>
<script>
export default {
data() {
return {
type: 'xml',
content: `<?xml version="1.0" encoding="UTF-8" ?>
<Partners>
<Partner>
<Nam>ldMsyR</Name>
<Address>Test Adresa</Address>
<BankAccount>000000000000963289</BankAccount>
<Comment>Test Komentar</Comment>
</Partner>
</Partners><Partners>
<Partner>
<Nam>ldMsyR</Name>
<Address>Test Adresa</Address>
<BankAccount>000000000000963289</BankAccount>
<Comment>Test Komentar</Comment>
</Partner>
</Partners><Partners>
<Partner>
<Nam>ldMsyR</Name>
<Address>Test Adresa</Address>
<BankAccount>000000000000963289</BankAccount>
<Comment>Test Komentar</Comment>
</Partner>
</Partners><Partners>
<Partner>
<Nam>ldMsyR</Name>
<Address>Test Adresa</Address>
<BankAccount>000000000000963289</BankAccount>
<Comment>Test Komentar</Comment>
</Partner>
</Partners><Partners>
<Partner>
<Nam>ldMsyR</Name>
<Address>Test Adresa</Address>
<BankAccount>000000000000963289</BankAccount>
<Comment>Test Komentar</Comment>
</Partner>
</Partners><Partners>
<Partner>
<Nam>ldMsyR</Name>
<Address>Test Adresa</Address>
<BankAccount>000000000000963289</BankAccount>
<Comment>Test Komentar</Comment>
</Partner>
</Partners><Partners>
<Partner>
<Nam>ldMsyR</Name>
<Address>Test Adresa</Address>
<BankAccount>000000000000963289</BankAccount>
<Comment>Test Komentar</Comment>
</Partner>
</Partners>`,
schemaUrl: ''
};
},
};
</script>
TODO:
- Translation XML (СРБ - ENG)
- Translation JSON (СРБ - ENG)
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Recommended IDE Setup
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.87 | ^3.2.47 | ||
| 0.0.86 | ^3.2.47 | ||
| 0.0.85 | ^3.2.47 | ||
| 0.0.84 | ^3.2.47 | ||
| 0.0.83 | ^3.2.47 | ||
| 0.0.82 | ^3.2.47 | ||
| 0.0.81 | ^3.2.47 | ||
| 0.0.80 | ^3.2.47 | ||
| 0.0.79 | ^3.2.47 | ||
| 0.0.78 | ^3.2.47 | ||
| 0.0.76 | ^3.2.47 | ||
| 0.0.75 | ^3.2.47 | ||
| 0.0.74 | ^3.2.47 | ||
| 0.0.73 | ^3.2.47 | ||
| 0.0.72 | ^3.2.47 | ||
| 0.0.71 | ^3.2.47 | ||
| 0.0.70 | ^3.2.47 | ||
| 0.0.69 | ^3.2.47 | ||
| 0.0.68 | ^3.2.47 | ||
| 0.0.67 | ^3.2.47 | ||
| 0.0.66 | ^3.2.47 | ||
| 0.0.65 | ^3.2.47 | ||
| 0.0.64 | ^3.2.47 | ||
| 0.0.63 | ^3.2.47 | ||
| 0.0.62 | ^3.2.47 | ||
| 0.0.61 | ^3.2.47 | ||
| 0.0.60 | ^3.2.47 | ||
| 0.0.59 | ^3.2.47 | ||
| 0.0.58 | ^3.2.47 | ||
| 0.0.57 | ^3.2.47 |
Showing the latest 30 of 85. See every release on npm