feat(nc-gui): add web types for directives

This commit is contained in:
braks
2022-09-14 14:16:37 +02:00
parent 90430cf17e
commit a9b53a4a48
3 changed files with 21 additions and 1 deletions

View File

@@ -136,7 +136,6 @@ watch(passwordProtected, (value) => {
>
<div class="share-link-box nc-share-link-box bg-primary-50">
<div class="flex-1 h-min text-xs">{{ sharedViewUrl }}</div>
<!-- <v-spacer /> -->
<a v-e="['c:view:share:open-url']" :href="sharedViewUrl" target="_blank">
<MdiOpenInNewIcon class="text-sm text-gray-500 mt-2" />
</a>

View File

@@ -1,5 +1,6 @@
{
"private": true,
"web-types": "web-types.json",
"scripts": {
"build": "nuxi build",
"dev": "nuxi dev",

View File

@@ -0,0 +1,20 @@
{
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/v2-preview/web-types.json",
"name": "nc-gui",
"framework": "vue",
"version": "1.0.0",
"contributions": {
"html": {
"vue-directives": [
{
"name": "e",
"description": "Telemetry directive"
},
{
"name": "t",
"description": "I18n directive"
}
]
}
}
}