refactor: project directory structure

This commit is contained in:
0xJacky 2023-11-26 18:59:12 +08:00
parent c1193a5b8c
commit e5a5889931
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
367 changed files with 710 additions and 756 deletions

View file

@ -0,0 +1,34 @@
<script setup lang="ts">
import {VAceEditor} from 'vue3-ace-editor'
import 'ace-builds/src-noconflict/mode-nginx'
import 'ace-builds/src-noconflict/theme-monokai'
import {computed} from 'vue'
const props = defineProps(['content', 'defaultHeight'])
const emit = defineEmits(['update:content'])
const value = computed({
get() {
return props.content ?? ''
},
set(value) {
emit('update:content', value)
}
})
</script>
<template>
<v-ace-editor
v-model:value="value"
lang="nginx"
theme="monokai"
:style="{
minHeight: defaultHeight || '100vh',
borderRadius: '5px'
}"/>
</template>
<style scoped>
</style>