fix: add vue/tsconfig, drop ts implementations for .vue files

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev 2024-02-27 14:31:32 +01:00
parent 4c010491c8
commit 2a3c1b7556
No known key found for this signature in database
GPG key ID: 6349D071889BD1D5
3 changed files with 7 additions and 10 deletions

View file

@ -39,7 +39,7 @@
</span> </span>
</template> </template>
<script lang="ts"> <script>
import Microphone from 'vue-material-design-icons/Microphone.vue' import Microphone from 'vue-material-design-icons/Microphone.vue'
import MicrophoneOff from 'vue-material-design-icons/MicrophoneOff.vue' import MicrophoneOff from 'vue-material-design-icons/MicrophoneOff.vue'
@ -103,13 +103,13 @@ export default {
return this.size / 8 return this.size / 8
}, },
iconPrimaryHeight(): number { iconPrimaryHeight() {
return this.audioPreviewAvailable return this.audioPreviewAvailable
? this.size - this.iconOffsetBottom - this.currentVolumeIndicatorHeight ? this.size - this.iconOffsetBottom - this.currentVolumeIndicatorHeight
: this.size : this.size
}, },
iconOverlayHeight(): number { iconOverlayHeight() {
return this.iconOffsetBottom / 2 + this.currentVolumeIndicatorHeight return this.iconOffsetBottom / 2 + this.currentVolumeIndicatorHeight
}, },

View file

@ -1,2 +1,4 @@
declare module '@nextcloud/vue/dist/*.js' declare module '@nextcloud/vue/dist/*.js'
declare module '@nextcloud/vue/dist/*.mjs'
declare module '@nextcloud/vue/dist/*.cjs'
declare module '@nextcloud/vue/dist/*.vue' declare module '@nextcloud/vue/dist/*.vue'

View file

@ -1,5 +1,6 @@
{ {
"include": ["./src/**/*.ts", "./src/**/*.vue"], "extends": "@vue/tsconfig/tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "vendor"], "exclude": ["node_modules", "vendor"],
"compilerOptions": { "compilerOptions": {
"outDir": "./js", "outDir": "./js",
@ -7,12 +8,6 @@
"checkJs": true, "checkJs": true,
"allowImportingTsExtensions": true, "allowImportingTsExtensions": true,
"lib": ["ESNext"], "lib": ["ESNext"],
"module": "ESNext",
"moduleResolution": "bundler",
"verbatimModuleSyntax": true,
"target": "ES2020",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
}, },
"vueCompilerOptions": { "vueCompilerOptions": {
"target": 2.7, "target": 2.7,