Browse Source

Merge pull request #3630 from nocodb/feat/web-types

feat(nc-gui): add web types for directives
pull/3638/head
navi 2 years ago committed by GitHub
parent
commit
92bd529e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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="share-link-box nc-share-link-box bg-primary-50">
<div class="flex-1 h-min text-xs">{{ sharedViewUrl }}</div> <div class="flex-1 h-min text-xs">{{ sharedViewUrl }}</div>
<!-- <v-spacer /> -->
<a v-e="['c:view:share:open-url']" :href="sharedViewUrl" target="_blank"> <a v-e="['c:view:share:open-url']" :href="sharedViewUrl" target="_blank">
<MdiOpenInNewIcon class="text-sm text-gray-500 mt-2" /> <MdiOpenInNewIcon class="text-sm text-gray-500 mt-2" />
</a> </a>

1
packages/nc-gui/package.json

@ -1,5 +1,6 @@
{ {
"private": true, "private": true,
"web-types": "web-types.json",
"scripts": { "scripts": {
"build": "nuxi build", "build": "nuxi build",
"dev": "nuxi dev", "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