forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
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
720 changed files
with
17,625 additions
and
8,176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
layout node | ||
use flake . |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
version: '3.8' | ||
|
||
name: ghost | ||
|
||
services: | ||
mysql: | ||
image: mysql:8.0.35 | ||
|
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 |
---|---|---|
|
@@ -66,6 +66,9 @@ typings/ | |
# dotenv environment variables file | ||
.env | ||
|
||
# direnv | ||
.direnv | ||
|
||
# IDE | ||
.idea/* | ||
*.iml | ||
|
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 @@ | ||
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,56 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'plugin:ghost/ts', | ||
'plugin:react/recommended', | ||
'plugin:react-hooks/recommended' | ||
], | ||
plugins: [ | ||
'ghost', | ||
'react-refresh', | ||
'tailwindcss' | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
} | ||
}, | ||
rules: { | ||
// sort multiple import lines into alphabetical groups | ||
'ghost/sort-imports-es6-autofix/sort-imports-es6': ['error', { | ||
memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'] | ||
}], | ||
|
||
// TODO: re-enable this (maybe fixed fast refresh?) | ||
'react-refresh/only-export-components': 'off', | ||
|
||
// 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', | ||
|
||
// TODO: re-enable these if deemed useful | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
|
||
// custom react rules | ||
'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,3 @@ | ||
dist | ||
playwright-report | ||
test-results |
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,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>AdminX Standalone</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/standalone.tsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.