-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'TryGhost:main' into main
- Loading branch information
Showing
921 changed files
with
8,255 additions
and
37,935 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
module.exports = { | ||
extends: [ | ||
'plugin:ghost/ts', | ||
'plugin:react/recommended', | ||
'plugin:react-hooks/recommended' | ||
], | ||
plugins: [ | ||
'ghost', | ||
'react-refresh', | ||
'tailwindcss' | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
} | ||
}, | ||
rules: { | ||
// suppress errors for missing 'import React' in JSX files, as we don't need it | ||
'react/react-in-jsx-scope': 'off', | ||
// ignore prop-types for now | ||
'react/prop-types': 'off', | ||
|
||
'react/jsx-sort-props': ['error', { | ||
reservedFirst: true, | ||
callbacksLast: true, | ||
shorthandLast: true, | ||
locale: 'en' | ||
}], | ||
'react/button-has-type': 'error', | ||
'react/no-array-index-key': 'error', | ||
'react/jsx-key': 'off', | ||
|
||
'tailwindcss/classnames-order': ['error', {config: 'tailwind.config.cjs'}], | ||
'tailwindcss/enforces-negative-arbitrary-values': ['warn', {config: 'tailwind.config.cjs'}], | ||
'tailwindcss/enforces-shorthand': ['warn', {config: 'tailwind.config.cjs'}], | ||
'tailwindcss/migration-from-tailwind-2': ['warn', {config: 'tailwind.config.cjs'}], | ||
'tailwindcss/no-arbitrary-value': 'off', | ||
'tailwindcss/no-custom-classname': 'off', | ||
'tailwindcss/no-contradicting-classname': ['error', {config: 'tailwind.config.cjs'}] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
es | ||
types |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Admin X Design | ||
|
||
Components, design guidelines and documentation for building apps in Ghost Admin | ||
|
||
|
||
## Usage | ||
|
||
|
||
## Develop | ||
|
||
This is a monorepo package. | ||
|
||
Follow the instructions for the top-level repo. | ||
1. `git clone` this repo & `cd` into it as usual | ||
2. Run `yarn` to install top-level dependencies. | ||
|
||
|
||
|
||
## Test | ||
|
||
- `yarn lint` run just eslint | ||
- `yarn test` run lint and tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"name": "@tryghost/admin-x-design-system", | ||
"type": "module", | ||
"version": "0.0.0", | ||
"repository": "https://github.com/TryGhost/Ghost/tree/main/packages/admin-x-design-system", | ||
"author": "Ghost Foundation", | ||
"private": true, | ||
"main": "es/index.js", | ||
"types": "types/index.d.ts", | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "vite build && tsc -p tsconfig.declaration.json", | ||
"prepare": "yarn build", | ||
"test": "yarn test:types", | ||
"test:types": "tsc --noEmit", | ||
"lint:code": "eslint --ext .js,.ts,.cjs,.tsx src/ --cache", | ||
"lint": "yarn lint:code && yarn lint:test", | ||
"lint:test": "eslint -c test/.eslintrc.cjs --ext .js,.ts,.cjs,.tsx test/ --cache", | ||
"storybook": "storybook dev -p 6006", | ||
"build-storybook": "storybook build" | ||
}, | ||
"files": [ | ||
"es", | ||
"types", | ||
"tailwind.cjs", | ||
"tailwind.config.cjs" | ||
], | ||
"devDependencies": { | ||
"@codemirror/lang-html": "^6.4.5", | ||
"@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.2", | ||
"@vitejs/plugin-react": "4.1.1", | ||
"c8": "8.0.1", | ||
"eslint-plugin-react-hooks": "4.6.0", | ||
"eslint-plugin-react-refresh": "0.4.3", | ||
"eslint-plugin-tailwindcss": "3.13.0", | ||
"mocha": "10.2.0", | ||
"rollup-plugin-node-builtins": "2.1.2", | ||
"sinon": "17.0.0", | ||
"ts-node": "10.9.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"storybook": "7.4.0", | ||
"typescript": "5.2.2", | ||
"vite": "4.5.0", | ||
"vite-plugin-svgr": "3.3.0" | ||
}, | ||
"dependencies": { | ||
"@dnd-kit/core": "6.0.8", | ||
"@dnd-kit/sortable": "7.0.2", | ||
"@ebay/nice-modal-react": "1.2.13", | ||
"@sentry/react": "7.78.0", | ||
"@tailwindcss/forms": "0.5.6", | ||
"@tailwindcss/line-clamp": "0.4.4", | ||
"@uiw/react-codemirror": "^4.21.9", | ||
"autoprefixer": "10.4.16", | ||
"clsx": "2.0.0", | ||
"postcss": "8.4.31", | ||
"postcss-import": "15.1.0", | ||
"react-colorful": "^5.1.2", | ||
"react-hot-toast": "2.4.1", | ||
"react-select": "5.8.0", | ||
"tailwindcss": "3.3.5" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
} | ||
} |
Oops, something went wrong.