Skip to content

Commit

Permalink
fix: Consider JS optimizations suggested by Lighthouse (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek authored Jun 5, 2024
1 parent ab792cb commit 8f8e1ac
Show file tree
Hide file tree
Showing 15 changed files with 752 additions and 111 deletions.
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineNuxtConfig({
'@pinia/nuxt',
'@nuxtjs/plausible',
'nuxt-monaco-editor',
'nuxt-booster',
],
imports: {
dirs: ['./stores'],
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"lint:js": "eslint --ext .ts,.js,.vue src",
"lint:style": "stylelint \"./src/**/*.vue\" \"src/**/*.css\"",
"reinstall": "rm -rf node_modules/ && yarn cache clean && yarn install",
"reset": "yarn reinstall && yarn dev",
"e2e:run": "cypress run",
"e2e:open": "cypress open"
},
Expand All @@ -46,6 +47,7 @@
"floating-vue": "^5.2.2",
"luxon": "^3.4.4",
"memory-cache": "^0.2.0",
"nuxt-booster": "^3.0.15",
"pinia": "^2.1.7",
"swiper": "^11.0.7",
"vue": "^3.4.21",
Expand All @@ -56,6 +58,7 @@
"devDependencies": {
"@csstools/postcss-global-data": "^2.1.1",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/partytown": "^1.5.0",
"@nuxtjs/plausible": "^0.2.4",
"@pinia/nuxt": "^0.5.1",
"@vitejs/plugin-vue": "^5.0.4",
Expand Down
10 changes: 0 additions & 10 deletions src/assets/icons/discord-logo.svg

This file was deleted.

9 changes: 6 additions & 3 deletions src/assets/icons/forum-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions src/assets/icons/instagram-logo.svg

This file was deleted.

12 changes: 3 additions & 9 deletions src/assets/icons/linkedin-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 6 additions & 9 deletions src/assets/icons/medium-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 3 additions & 9 deletions src/assets/icons/reddit-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 7 additions & 9 deletions src/assets/icons/telegram-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/assets/icons/x-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 27 additions & 9 deletions src/assets/icons/youtube-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/TheFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<div class="footer__body">
<div class="footer__column">
<img
width="134"
class="footer__logo-aescan"
alt="æScan logo"
src="@/assets/logo.svg">

<header class="footer__header">
<app-tooltip>
<div class="footer__powered-by">
Expand Down
1 change: 1 addition & 0 deletions src/components/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
to="/"
@click="closeNavigation">
<img
width="134"
alt="æScan logo"
src="@/assets/logo.svg">
</app-link>
Expand Down
1 change: 0 additions & 1 deletion src/plugins/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async function lazyLoadSentryIntegrations() {
}));
}


export default defineNuxtPlugin(({vueApp}) => {
if (process.server) {
return
Expand Down
Loading

0 comments on commit 8f8e1ac

Please sign in to comment.