mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
6e68c43f78
closes https://github.com/TryGhost/Product/issues/3818 - in Admin, when adding a recommendation, the URL is compared against all existing ones. If the URL is already recommended, the publisher is shown an error: "A recommendation with this URL already exists.". Protocol, www, query parameters and hash fragments are ignored during the URL comparison. - on the backend, there is another uniqueness validation for the recommendation URL. This check is redundant when adding a recommendation from Admin, but helps to keep data integrity when recommendations are added through other paths (e.g. via the API)
97 lines
3.1 KiB
JSON
97 lines
3.1 KiB
JSON
{
|
|
"name": "@tryghost/admin-x-settings",
|
|
"version": "0.0.19",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/TryGhost/Ghost/tree/main/packages/admin-x-settings"
|
|
},
|
|
"author": "Ghost Foundation",
|
|
"files": [
|
|
"LICENSE",
|
|
"README.md",
|
|
"dist/"
|
|
],
|
|
"main": "./dist/admin-x-settings.umd.cjs",
|
|
"module": "./dist/admin-x-settings.js",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/admin-x-settings.js",
|
|
"require": "./dist/admin-x-settings.umd.cjs"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently \"vite preview\" \"vite build --watch\"",
|
|
"dev:start": "vite",
|
|
"build": "tsc && vite build",
|
|
"lint": "yarn run lint:js",
|
|
"lint:js": "eslint --ext .js,.ts,.cjs,.tsx --cache src test",
|
|
"test:unit": "yarn build && vitest run",
|
|
"test:e2e": "NODE_OPTIONS='--experimental-specifier-resolution=node --no-warnings' VITE_TEST=true playwright test",
|
|
"test:slowmo": "TIMEOUT=100000 PLAYWRIGHT_SLOWMO=100 yarn test:e2e --headed",
|
|
"test:e2e:full": "ALL_BROWSERS=1 yarn test:e2e",
|
|
"preview": "vite preview",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build",
|
|
"preship": "yarn lint",
|
|
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version; fi",
|
|
"postship": "git push ${GHOST_UPSTREAM:-origin} --follow-tags && npm publish",
|
|
"prepublishOnly": "yarn build"
|
|
},
|
|
"dependencies": {
|
|
"@codemirror/lang-html": "^6.4.5",
|
|
"@dnd-kit/core": "6.0.8",
|
|
"@dnd-kit/sortable": "7.0.2",
|
|
"@ebay/nice-modal-react": "1.2.10",
|
|
"@tanstack/react-query": "4.35.3",
|
|
"@tryghost/color-utils": "0.1.24",
|
|
"@tryghost/limit-service": "^1.2.8",
|
|
"@tryghost/timezone-data": "0.3.0",
|
|
"@uiw/react-codemirror": "^4.21.9",
|
|
"clsx": "2.0.0",
|
|
"react": "18.2.0",
|
|
"react-colorful": "^5.1.2",
|
|
"react-dom": "18.2.0",
|
|
"validator": "7.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.38.0",
|
|
"@storybook/addon-essentials": "7.4.0",
|
|
"@storybook/addon-interactions": "7.4.0",
|
|
"@storybook/addon-links": "7.4.0",
|
|
"@storybook/addon-styling": "1.3.7",
|
|
"@storybook/blocks": "7.4.0",
|
|
"@storybook/react": "7.4.0",
|
|
"@storybook/react-vite": "7.4.0",
|
|
"@storybook/testing-library": "0.2.1",
|
|
"@tailwindcss/forms": "0.5.6",
|
|
"@tailwindcss/line-clamp": "0.4.4",
|
|
"@types/react": "18.2.21",
|
|
"@types/react-dom": "18.2.7",
|
|
"@types/validator": "13.11.1",
|
|
"@vitejs/plugin-react": "4.0.4",
|
|
"autoprefixer": "10.4.15",
|
|
"concurrently": "8.2.1",
|
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
"eslint-plugin-react-refresh": "0.4.3",
|
|
"eslint-plugin-tailwindcss": "3.13.0",
|
|
"postcss": "8.4.29",
|
|
"postcss-import": "15.1.0",
|
|
"prop-types": "15.8.1",
|
|
"react-hot-toast": "2.4.1",
|
|
"react-select": "5.7.4",
|
|
"rollup-plugin-node-builtins": "2.1.2",
|
|
"storybook": "7.4.0",
|
|
"stylelint": "15.10.3",
|
|
"tailwindcss": "3.3.3",
|
|
"vite": "4.4.9",
|
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
"vite-plugin-svgr": "3.2.0",
|
|
"vitest": "0.34.3"
|
|
}
|
|
}
|