Skip to content

Commit

Permalink
feat(font): use nuxt font instead of google plugin (#970)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

- **New Features**
- Introduced a new font management system, replacing the previous Google
Fonts integration.
	- Updated the application to utilize the "Quicksand" font.

- **Bug Fixes**
	- Removed scoped styles that may have affected page content display.

- **Documentation**
- Updated test cases to reflect changes in component structure and
functionality.

- **Chores**
- Updated package dependencies, including the removal of outdated font
management packages.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
antoinezanardi authored Oct 13, 2024
1 parent a6458dd commit 31ab282
Show file tree
Hide file tree
Showing 120 changed files with 768 additions and 320 deletions.
8 changes: 1 addition & 7 deletions app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,4 @@ useHead({
void rolesStore.fetchAndSetRoles();
setHowlerAudioSettingsFromAudioStoreState();
</script>

<style lang="scss" scoped>
.page-content {
padding: 10px;
}
</style>
</script>
8 changes: 0 additions & 8 deletions app/assets/css/google-fonts.css

This file was deleted.

Binary file removed app/assets/fonts/Quicksand-300_700-1.woff2
Binary file not shown.
29 changes: 18 additions & 11 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const modules = [
"@primevue/nuxt-module",
"@nuxtjs/i18n",
"@nuxt/image",
"@nuxtjs/google-fonts",
"@nuxt/fonts",
"@aksharahegde/nuxt-glow",
process.env.NODE_ENV !== "test" && "@pinia/nuxt",
"./modules/register-components/register-components.module.ts",
Expand Down Expand Up @@ -69,7 +69,6 @@ export default defineNuxtConfig({
css: [
"@fortawesome/fontawesome-svg-core/styles.css",
"./assets/scss/custom.scss",
"./assets/css/google-fonts.css",
"animate.css/animate.min.css",
],
devtools: { enabled: true },
Expand All @@ -87,17 +86,25 @@ export default defineNuxtConfig({
"Quicksand:700",
],
},
future: { compatibilityVersion: 4 },
googleFonts: {
display: "swap",
families: { Quicksand: { wght: "300..700" } },
outputDir: "assets/fonts",
stylePath: "../css/google-fonts.css",
fontsDir: "./",
fonts: {
global: true,
provider: "google",
preload: true,
text: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789.,;:!?'\"™",
overwriting: false,
families: [
{
name: "Quicksand",
provider: "google",
weights: [
"300",
"400",
"500",
"600",
"700",
],
},
],
},
future: { compatibilityVersion: 4 },
i18n: {
vueI18n: "./modules/i18n/i18n.config.ts",
defaultLocale: process.env.NUXT_PUBLIC_DEFAULT_LOCALE,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
"@eslint/eslintrc": "^3.1.0",
"@faker-js/faker": "^9.0.3",
"@nuxt/devtools": "^1.6.0",
"@nuxt/fonts": "^0.10.0",
"@nuxt/image": "^1.8.1",
"@nuxt/kit": "^3.13.2",
"@nuxt/test-utils": "^3.14.3",
"@nuxtjs/google-fonts": "^3.2.0",
"@nuxtjs/i18n": "^8.5.5",
"@nuxtjs/robots": "^4.1.7",
"@nuxtjs/seo": "^2.0.0-rc.23",
Expand Down
681 changes: 569 additions & 112 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Binary file modified tests/acceptance/screenshots/darwin/About Page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/acceptance/screenshots/darwin/Cupid charms Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/acceptance/screenshots/darwin/Fox sniffs Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/acceptance/screenshots/darwin/Game Phase Event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/acceptance/screenshots/darwin/Game Starts Event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/acceptance/screenshots/darwin/Game canceled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/acceptance/screenshots/darwin/Game feedback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/acceptance/screenshots/darwin/Game not found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/acceptance/screenshots/darwin/Game won by Angel.png
Binary file modified tests/acceptance/screenshots/darwin/Game won by Lovers.png
Binary file modified tests/acceptance/screenshots/darwin/Game won by Pied Piper.png
Binary file modified tests/acceptance/screenshots/darwin/Game won by Villagers.png
Binary file modified tests/acceptance/screenshots/darwin/Game won by Werewolves.png
Binary file modified tests/acceptance/screenshots/darwin/Game won by White Werewolf.png
Binary file modified tests/acceptance/screenshots/darwin/Game won by nobody.png
Binary file modified tests/acceptance/screenshots/darwin/Home Page.png
Binary file modified tests/acceptance/screenshots/darwin/Hunter shoots Playground.png
Binary file modified tests/acceptance/screenshots/darwin/Page not found.png
Binary file modified tests/acceptance/screenshots/darwin/Seer looks Playground.png
Binary file modified tests/acceptance/screenshots/darwin/Werewolves eat Playground.png
Binary file modified tests/acceptance/screenshots/linux/About Page.png
Binary file modified tests/acceptance/screenshots/linux/Cupid charms Playground.png
Binary file modified tests/acceptance/screenshots/linux/Fox sniffs Playground.png
Binary file modified tests/acceptance/screenshots/linux/Game Phase Event.png
Binary file modified tests/acceptance/screenshots/linux/Game Starts Event.png
Binary file modified tests/acceptance/screenshots/linux/Game canceled.png
Binary file modified tests/acceptance/screenshots/linux/Game feedback.png
Binary file modified tests/acceptance/screenshots/linux/Game not found.png
Binary file modified tests/acceptance/screenshots/linux/Game won by Angel.png
Binary file modified tests/acceptance/screenshots/linux/Game won by Lovers.png
Binary file modified tests/acceptance/screenshots/linux/Game won by Pied Piper.png
Binary file modified tests/acceptance/screenshots/linux/Game won by Villagers.png
Binary file modified tests/acceptance/screenshots/linux/Game won by Werewolves.png
Binary file modified tests/acceptance/screenshots/linux/Game won by nobody.png
Binary file modified tests/acceptance/screenshots/linux/Home Page.png
Binary file modified tests/acceptance/screenshots/linux/Hunter shoots Playground.png
Binary file modified tests/acceptance/screenshots/linux/Page not found.png
Binary file modified tests/acceptance/screenshots/linux/Seer looks Playground.png
Loading

0 comments on commit 31ab282

Please sign in to comment.