mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 21:03:29 +03:00
dfcff209c2
closes https://github.com/TryGhost/Product/issues/3915 - when adding a recommendation, we now ping the pull path first to check whether it's a Ghost site. This is the most common case and also helps to cover Ghost sites that are hosted on a subdirectory. - if needed, we ping the origin path to perform the same check. This helps to cover the case where the recommended URL is a subpage or post of a Ghost site - we now have 4 networks calls in the worst case when adding a recommendation: uniqueness validation, two checks to determine whether it's a Ghost site, read metadata from oembed. Each of these have a timeout of 5 seconds, so there's a max. waiting time of 20 sec in the worst case |
||
---|---|---|
.. | ||
.storybook | ||
src | ||
test | ||
.eslintrc.cjs | ||
.yarnrc | ||
index.html | ||
package.json | ||
playwright.config.ts | ||
postcss.config.cjs | ||
README.md | ||
tailwind.config.cjs | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts |
Admin X Settings
Experimental re-write of Ghost Admin Settings in React
Development
Pre-requisites
- Run
yarn
in Ghost monorepo root - Run
yarn
in this directory
Running the development version
Run yarn dev
to start the development server to test/develop the settings standalone. This will generate a demo site from the index.html
file which renders the app and makes it available on http://localhost:5173
Running inside Admin
Run yarn dev
from the top-level repo with --adminX
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Test
yarn lint
run just eslintyarn test
run lint and tests