Skip to content

Commit

Permalink
Added missing apple touch icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 7, 2025
1 parent f4cf25c commit 76dc636
Show file tree
Hide file tree
Showing 15 changed files with 391 additions and 375 deletions.
6 changes: 3 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import DrupalWindowSync from "@components/elements/drupal-window-sync"
import UserAnalytics from "@components/elements/user-analytics"
import Editori11y from "@components/tools/editorially"

const appleIcons: Icon[] = [60, 72, 76, 114, 120, 144, 152, 180].map(size => ({
url: "/favicon.ico",
const appleIcons: Icon[] = [57, 72, 76, 114, 120, 144, 152, 180].map(size => ({
url: `/apple-touch-icon-${size}x${size}.png`,
sizes: `${size}x${size}`,
}))

Expand All @@ -25,7 +25,7 @@ export const metadata = {
},
icons: {
icon: [{url: "/favicon.ico"}],
apple: appleIcons,
apple: [{url: "/apple-touch-icon.png"}, ...appleIcons],
},
}

Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,36 @@
"dependencies": {
"@formkit/auto-animate": "^0.8.2",
"@heroicons/react": "^2.2.0",
"@mui/base": "5.0.0-beta.66",
"@next/third-parties": "15.1.0",
"@mui/base": "5.0.0-beta.68",
"@next/third-parties": "15.1.4",
"@tailwindcss/container-queries": "^0.1.1",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/node": "^22.10.5",
"@types/react": "^19.0.3",
"@types/react-dom": "19.0.2",
"algoliasearch": "5.17.1",
"algoliasearch": "5.19.0",
"autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
"decanter": "^7.3.0",
"drupal-jsonapi-params": "^2.3.2",
"graphql": "^16.9.0",
"graphql": "^16.10.0",
"graphql-request": "^7.1.2",
"graphql-tag": "^2.12.6",
"html-entities": "^2.5.2",
"html-react-parser": "^5.2.0",
"next": "15.1.0",
"html-react-parser": "^5.2.2",
"next": "^15.2.0-canary.0",
"plaiceholder": "^3.0.0",
"postcss": "^8.4.49",
"qs": "^6.13.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-focus-lock": "^2.13.2",
"react-instantsearch": "^7.13.9",
"react-instantsearch-nextjs": "^0.3.20",
"react-slick": "^0.30.2",
"react-focus-lock": "^2.13.5",
"react-instantsearch": "^7.13.10",
"react-instantsearch-nextjs": "^0.3.21",
"react-slick": "^0.30.3",
"react-tiny-oembed": "^1.1.0",
"sharp": "^0.33.5",
"tailwind-merge": "^2.5.5",
"tailwindcss": "^3.4.16",
"tailwind-merge": "^2.6.0",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"usehooks-ts": "^3.1.0"
},
Expand All @@ -55,7 +55,7 @@
"@graphql-codegen/import-types-preset": "^3.0.0",
"@graphql-codegen/typescript-graphql-request": "^6.2.0",
"@graphql-codegen/typescript-operations": "^4.4.0",
"@next/bundle-analyzer": "15.1.0",
"@next/bundle-analyzer": "15.1.4",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
"@storybook/addon-links": "^8.4.7",
Expand All @@ -65,20 +65,20 @@
"@storybook/react": "^8.4.7",
"@storybook/testing-library": "^0.2.2",
"@types/react-slick": "^0.23.13",
"concurrently": "^9.1.0",
"concurrently": "^9.1.2",
"encoding": "^0.1.13",
"eslint": "9.16.0",
"eslint-config-next": "15.1.0",
"eslint": "9.17.0",
"eslint-config-next": "15.1.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-storybook": "^0.11.1",
"eslint-plugin-storybook": "^0.11.2",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"react-docgen": "^7.1.0",
"storybook": "^8.4.7",
"storybook-addon-module-mock": "^1.3.4",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript-eslint": "8.18.0"
"typescript-eslint": "8.19.1"
},
"packageManager": "yarn@4.5.3",
"resolutions": {
Expand Down
Binary file added public/apple-touch-icon-114x114.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 added public/apple-touch-icon-120x120.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 added public/apple-touch-icon-144x144.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 added public/apple-touch-icon-152x152.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 added public/apple-touch-icon-180x180.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 added public/apple-touch-icon-57x57.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 added public/apple-touch-icon-72x72.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 added public/apple-touch-icon-76x76.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 added public/apple-touch-icon-precomposed.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 added public/apple-touch-icon.png
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/nodes/pages/sup-book/book-page-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const BookPageImage = async ({node}: Props) => {
<Image
className="mb-16"
src={node.supBookImage?.mediaImage.url || "/default-book-image.jpg"}
alt={node.supBookImage?.mediaImage.alt || ""}
alt={node.supBookImage?.mediaImage.alt || `'${node.title}' Book Cover`}
height={node.supBookImage?.mediaImage.height || 600}
width={node.supBookImage?.mediaImage.width || 400}
sizes="400px"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const submitForm = async (formData: FormData) => {
const isIntl = formData.get("intl") !== "us"

if (isIntl) {
const title = bookTitle.replace(/[^a-zA-Z\d\s:]/, "").replace(/ /, "-")
const title = bookTitle.replaceAll(/[^a-zA-Z\d\s:]/g, "").replaceAll(/\s/g, "-")
redirect(`https://www.combinedacademic.co.uk/${formatIsbn}/${title}`)
}
redirect(`https://add-to-cart-2.supadu.com/add-to-cart?isbn=${formatIsbn}&client=indiepubs-stanford-university-press`)
Expand Down
Loading

0 comments on commit 76dc636

Please sign in to comment.