1
0
Fork 0
mirror of https://github.com/VueTorrent/VueTorrent.git synced 2025-03-14 12:10:18 +03:00

chore: Fix sass deprecation warning ()

This commit is contained in:
Rémi Marseault 2024-10-31 12:50:20 +01:00 committed by GitHub
parent c8dbc67ec3
commit df18fe45f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 30 deletions

View file

@ -12,18 +12,9 @@ const vueTorrentStore = useVueTorrentStore()
<v-row data-testid="card-wrapper" :class="`text-select text-${color}`">
<v-col data-testid="card-title" cols="7" class="text-subtitle-1">{{ title }}</v-col>
<v-col cols="5" class="">
<span data-testid="card-value" class="text-subtitle-1 roboto">{{ formatDataValue(value, vueTorrentStore.useBinarySize) }}</span>
<span data-testid="card-value" class="text-subtitle-1 font-weight-bold">{{ formatDataValue(value, vueTorrentStore.useBinarySize) }}</span>
<span data-testid="card-unit" class="font-weight-light text-caption ml-1 text-subtitle-1">{{ formatDataUnit(value, vueTorrentStore.useBinarySize) }}</span>
</v-col>
</v-row>
</v-sheet>
</template>
<style scoped lang="scss">
@import '@fontsource/roboto-mono';
.roboto {
font-family: 'Roboto Mono', sans-serif !important;
font-weight: 600;
}
</style>

View file

@ -19,7 +19,7 @@ const vueTorrentStore = useVueTorrentStore()
</v-col>
<v-col cols="8" class="d-flex flex-column align-center justify-center">
<div>
<span :class="`text-subtitle-1 roboto text-select text-${color}`">
<span :class="`text-subtitle-1 font-weight-bold text-select text-${color}`">
{{ formatSpeedValue(value, vueTorrentStore.useBitSpeed) }}
</span>
</div>
@ -32,12 +32,3 @@ const vueTorrentStore = useVueTorrentStore()
</v-row>
</v-sheet>
</template>
<style scoped lang="scss">
@import '@fontsource/roboto-mono';
.roboto {
font-family: 'Roboto Mono', sans-serif !important;
font-weight: 600;
}
</style>

View file

@ -7,17 +7,8 @@ defineProps<{ title: string; value: any; color: string }>()
<v-row class="text-select">
<v-col cols="7" :class="`text-subtitle-1 text-${color}`">{{ title }}</v-col>
<v-col cols="5" :class="`text-${color}`">
<span class="text-subtitle-1 roboto">{{ value }}</span>
<span class="text-subtitle-1 font-weight-bold">{{ value }}</span>
</v-col>
</v-row>
</v-sheet>
</template>
<style scoped lang="scss">
@import '@fontsource/roboto-mono';
.roboto {
font-family: 'Roboto Mono', sans-serif !important;
font-weight: 600;
}
</style>

View file

@ -27,6 +27,13 @@ export default defineConfig(({ mode }) => {
}
}
},
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler"
}
}
},
define: {
'import.meta.env.VITE_PACKAGE_VERSION': JSON.stringify(process.env.npm_package_version),
'process.env': {}