Skip to content

Commit

Permalink
Refactor MainLayout.vue to improve code readability and maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Jul 24, 2024
1 parent b22787e commit 6d87b25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ const appAllowWork = isNative
</script>

<style lang="scss">
@use "sass:math";
.filled {
display: none;
}
Expand All @@ -331,7 +333,7 @@ const appAllowWork = isNative
.tabs-main .q-tabs__content {
width: 100% !important;
> .q-tab {
width: (100% / 5);
width: math.div(100%, 5);
}
}
</style>
6 changes: 2 additions & 4 deletions src/pages/phim/_season.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1544,10 +1544,8 @@ async function getProgressChaps(
try {
const docs = await historyStore.getProgressChaps(currentSeason)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
docs.forEach((item: any) => {
const { cur, dur } = item.data()
progressChaps.set(item.id, {
docs.forEach(({ chap_id, cur, dur }) => {

Check failure on line 1547 in src/pages/phim/_season.vue

View workflow job for this annotation

GitHub Actions / Run eslint scanning

Identifier 'chap_id' is not in camel case
progressChaps.set(chap_id, {
cur,
dur,
})
Expand Down

0 comments on commit 6d87b25

Please sign in to comment.