DavidGolodetsky / GeekScore

A PWA for board games fans. It allows you to store your games, create teams, and collect statistics. It's built with MEVN stack, using Vue.js 2 and Vuetify.
https://geekscore.herokuapp.com
MIT License
8 stars 33 forks source link

Migrate RoundsAddDialog.vue to composition API and typescript #208

Closed RC-Lee closed 2 years ago

RC-Lee commented 2 years ago

Related Issues

Closes #132

Short Description and Why It's Useful Migrate RoundsAddDialog.vue to composition API and typescript

Screenshots of Visual Changes before/after (if There Are Any)

RC-Lee commented 2 years ago

Hi, @DavidGolodetsky I noticed that you labelled it as invalid. If possible, I'd like to improve the code to make it valid. I'd gladly make changes once I know what's wrong.

DavidGolodetsky commented 2 years ago

@rclee91 hey, sorry but I was checking the project and there was too many errors realed to this issue, so I decided to revert PR and reopen the issue. Sure, you can try again if you like, you can check your changes in git history. A general notice - try to use object dot notation whenever it's possible, and test your changes locally :)

RC-Lee commented 2 years ago

@DavidGolodetsky I had originally been using dot notations for team, but I kept getting errors warning that properties don't exist. I wonder if you could suggest any way around that?

DavidGolodetsky commented 2 years ago

I huess you're talking about ts warnings. For that you need to add type to teams Team[] | null. You would need to import Team type from types. If this won't work, just type it as any. But if you're not familiar with ts, don't torture yourself:) Just remove lang="ts" attribute from the script tag and leave a comment that ts support need to be sdded