Browse Source

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

pull/3630/head
braks 2 years ago
parent
commit
a9b53a4a48
  1. 1
      packages/nc-gui/components/smartsheet-toolbar/ShareView.vue
  2. 1
      packages/nc-gui/package.json
  3. 20
      packages/nc-gui/web-types.json

1
packages/nc-gui/components/smartsheet-toolbar/ShareView.vue

@ -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>

1
packages/nc-gui/package.json

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

20
packages/nc-gui/web-types.json

@ -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"
}
]
}
}
}
Loading…
Cancel
Save