diff --git a/nuxt.config.js b/nuxt.config.js index b621a54cde..0d9ccc9d97 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -208,6 +208,12 @@ export default { autoprefixer: {}, }, }, + // Enables use of IDE debuggers + extend(config, ctx) { + if (ctx.isDev) { + config.devtool = ctx.isClient ? 'source-map' : 'inline-source-map' + } + }, }, storybook: { port: 6006, // standard port for Storybook diff --git a/package.json b/package.json index acc9809f8e..63a070faf6 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "author": "sebworks", "private": true, "scripts": { - "dev": "pnpm i18n:create-locales-list && pnpm i18n:update-locales && cross-env ENABLE_AUDIO=true nuxt", + "dev": "pnpm i18n:create-locales-list && pnpm i18n:update-locales && cross-env nuxt", "build": "pnpm i18n:get-translations && nuxt build", "generate": "nuxt generate", "start": "nuxt start", @@ -22,7 +22,7 @@ "test:watch": "jest --collectCoverage=false --watch", "test:unit": "jest --collectCoverage=false", "test:e2e": "playwright test", - "run-server": "cross-env ENABLE_AUDIO=true nuxt build && pnpm start", + "run-server": "cross-env nuxt build && pnpm start", "e2e:ci": "start-server-and-test run-server http://localhost:8443 test:e2e", "generate-e2e-tests": "playwright codegen localhost:8443/", "types": "tsc --noEmit", @@ -48,6 +48,7 @@ "@nuxtjs/sitemap": "^2.4.0", "@nuxtjs/svg": "^0.3.0", "@popperjs/core": "^2.11.2", + "@tailwindcss/line-clamp": "^0.3.1", "axios": "^0.21.2", "axios-mock-adapter": "^1.20.0", "babel-core": "^7.0.0-bridge.0", @@ -72,6 +73,7 @@ "node-html-parser": "^5.1.0", "nuxt": "^2.15.4", "reakit-utils": "^0.15.2", + "seeded-rand": "^2.0.1", "uuid": "^8.3.2", "vue-i18n": "^8.26.5" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9c2b12b016..e428053b7a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,6 +18,7 @@ specifiers: '@nuxtjs/svg': ^0.3.0 '@playwright/test': ^1.16.2 '@popperjs/core': ^2.11.2 + '@tailwindcss/line-clamp': ^0.3.1 '@testing-library/jest-dom': ^5.16.1 '@testing-library/user-event': ^13.2.1 '@testing-library/vue': ^5.8.2 @@ -65,6 +66,7 @@ specifiers: reakit-utils: ^0.15.2 sass: ^1.34.0 sass-loader: ^10.1.1 + seeded-rand: ^2.0.1 start-server-and-test: ^1.14.0 tailwindcss: ^3.0.7 tailwindcss-rtl: ^0.8.0 @@ -86,6 +88,7 @@ dependencies: '@nuxtjs/sitemap': 2.4.0 '@nuxtjs/svg': 0.3.0 '@popperjs/core': 2.11.2 + '@tailwindcss/line-clamp': 0.3.1_tailwindcss@3.0.9 axios: 0.21.4 axios-mock-adapter: 1.20.0_axios@0.21.4 babel-core: 7.0.0-bridge.0 @@ -110,6 +113,7 @@ dependencies: node-html-parser: 5.1.0 nuxt: 2.15.8_typescript@4.5.4 reakit-utils: 0.15.2 + seeded-rand: 2.0.1 uuid: 8.3.2 vue-i18n: 8.26.7 @@ -5323,6 +5327,14 @@ packages: - webpack-command dev: true + /@tailwindcss/line-clamp/0.3.1_tailwindcss@3.0.9: + resolution: {integrity: sha512-pNr0T8LAc3TUx/gxCfQZRe9NB2dPEo/cedPHzUGIPxqDMhgjwNm6jYxww4W5l0zAsAddxr+XfZcqttGiFDgrGg==} + peerDependencies: + tailwindcss: '>=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1' + dependencies: + tailwindcss: 3.0.9_67faf65efc23bbcb8667813493b8c465 + dev: false + /@testing-library/dom/7.31.2: resolution: {integrity: sha512-3UqjCpey6HiTZT92vODYLPxTBWlM8ZOOjr3LX5F37/VRipW2M1kX6I/Cm4VXzteZqfGfagg8yXywpcOgQBlNsQ==} engines: {node: '>=10'} @@ -15901,6 +15913,10 @@ packages: resolution: {integrity: sha512-M9gnWtn3J0W+UhJOHmBxBTwv8mZCan5i1Himp60t6vvZcor0wr+IM0URKmIglsWJ7bRujNAVVN77fp+uZaWoKg==} dev: false + /seeded-rand/2.0.1: + resolution: {integrity: sha512-OoNSbS3HH7tFIcE3zsn9BkyfjV6Of4L8b0HZU69WiqOQsMTXBTe83MNnIxmgTx9ABmOoTBhPwst+SN96twgDvA==} + dev: false + /select/1.1.2: resolution: {integrity: sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=} dev: false diff --git a/src/components/ImageGrid/ImageCell.vue b/src/components/ImageGrid/ImageCell.vue index d717a25849..3c79aa36a5 100644 --- a/src/components/ImageGrid/ImageCell.vue +++ b/src/components/ImageGrid/ImageCell.vue @@ -115,7 +115,7 @@ export default { if (!event.metaKey && !event.ctrlKey) { event.preventDefault() const detailRoute = this.localeRoute({ - name: 'photo-detail-page', + name: 'PhotoDetailPage', params: { id: image.id, location: window.scrollY }, }) this.$router.push(detailRoute) diff --git a/src/components/ImageGrid/ImageGrid.vue b/src/components/ImageGrid/ImageGrid.vue index df1a8d2714..d5b369d2af 100644 --- a/src/components/ImageGrid/ImageGrid.vue +++ b/src/components/ImageGrid/ImageGrid.vue @@ -1,9 +1,12 @@