-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'strapi:master' into strapi/fix/issue-13453-documentatio…
…n-fix
- Loading branch information
Showing
747 changed files
with
36,136 additions
and
8,565 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
displayName: '.github', | ||
}; |
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,61 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"shippedProposals": true, | ||
"loose": true | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-shorthand-properties", | ||
"@babel/plugin-transform-block-scoping", | ||
[ | ||
"@babel/plugin-proposal-decorators", | ||
{ | ||
"legacy": true | ||
} | ||
], | ||
[ | ||
"@babel/plugin-proposal-class-properties", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
[ | ||
"@babel/plugin-proposal-private-methods", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
"@babel/plugin-proposal-export-default-from", | ||
"@babel/plugin-syntax-dynamic-import", | ||
[ | ||
"@babel/plugin-proposal-object-rest-spread", | ||
{ | ||
"loose": true, | ||
"useBuiltIns": true | ||
} | ||
], | ||
"@babel/plugin-transform-classes", | ||
"@babel/plugin-transform-arrow-functions", | ||
"@babel/plugin-transform-parameters", | ||
"@babel/plugin-transform-destructuring", | ||
"@babel/plugin-transform-spread", | ||
"@babel/plugin-transform-for-of", | ||
"babel-plugin-macros", | ||
"@babel/plugin-proposal-optional-chaining", | ||
"@babel/plugin-proposal-nullish-coalescing-operator", | ||
[ | ||
"babel-plugin-polyfill-corejs3", | ||
{ | ||
"method": "usage-global", | ||
"absoluteImports": "core-js", | ||
"version": "3.21.1" | ||
} | ||
] | ||
] | ||
} |
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,15 @@ | ||
module.exports = { | ||
stories: [ | ||
'../*.stories.mdx', | ||
'../../../packages/core/**/admin/src/**/*.stories.mdx', | ||
'../../../packages/core/**/admin/src/**/*.stories.@(js|jsx|ts|tsx)', | ||
'../../../packages/plugins/**/admin/src/**/*.stories.mdx', | ||
'../../../packages/plugins/**/admin/src/**/*.stories.@(js|jsx|ts|tsx)', | ||
], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
], | ||
framework: '@storybook/react', | ||
}; |
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,27 @@ | ||
import { ThemeProvider, lightTheme } from '@strapi/design-system'; | ||
import { IntlProvider } from 'react-intl'; | ||
import { MemoryRouter } from 'react-router-dom'; | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}; | ||
|
||
export const decorators = [ | ||
Story => ( | ||
<MemoryRouter> | ||
<ThemeProvider theme={lightTheme}> | ||
<IntlProvider messages={{}} textComponent="span" locale="en"> | ||
<main> | ||
<Story /> | ||
</main> | ||
</IntlProvider> | ||
</ThemeProvider> | ||
</MemoryRouter> | ||
), | ||
]; |
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,9 @@ | ||
import { Meta } from '@storybook/addon-docs'; | ||
|
||
<Meta title="Introduction" /> | ||
|
||
# Welcome to the documentation | ||
|
||
Use this app to develop local components in plugins. | ||
|
||
To do so just create a story in your plugins `./admin/src` folder |
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 @@ | ||
{ | ||
"name": "admin-development", | ||
"version": "4.3.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "^7.16.7", | ||
"@babel/plugin-proposal-class-properties": "7.16.7", | ||
"@babel/plugin-proposal-decorators": "7.16.7", | ||
"@babel/plugin-proposal-export-default-from": "7.16.7", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7", | ||
"@babel/plugin-proposal-object-rest-spread": "7.16.7", | ||
"@babel/plugin-proposal-optional-chaining": "7.16.7", | ||
"@babel/plugin-proposal-private-methods": "7.16.7", | ||
"@babel/plugin-syntax-dynamic-import": "7.8.3", | ||
"@babel/plugin-transform-arrow-functions": "7.16.7", | ||
"@babel/plugin-transform-block-scoping": "7.16.7", | ||
"@babel/plugin-transform-classes": "7.16.7", | ||
"@babel/plugin-transform-destructuring": "7.17.7", | ||
"@babel/plugin-transform-for-of": "7.16.7", | ||
"@babel/plugin-transform-parameters": "7.16.7", | ||
"@babel/plugin-transform-shorthand-properties": "7.16.7", | ||
"@babel/plugin-transform-spread": "7.16.7", | ||
"@babel/preset-env": "7.16.11", | ||
"@babel/preset-typescript": "7.16.7", | ||
"@storybook/addon-actions": "6.4.10", | ||
"@storybook/addon-essentials": "6.4.10", | ||
"@storybook/addon-interactions": "6.4.10", | ||
"@storybook/addon-links": "6.4.10", | ||
"@storybook/react": "^6.3.7", | ||
"@storybook/testing-library": "^0.0.9", | ||
"babel-loader": "^8.2.4", | ||
"babel-plugin-macros": "3.1.0", | ||
"babel-plugin-polyfill-corejs3": "0.5.2", | ||
"core-js": "3.21.1" | ||
}, | ||
"scripts": { | ||
"storybook": "start-storybook -p 6007", | ||
"build-storybook": "build-storybook" | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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,9 @@ | ||
const config = { | ||
locales: ['fr'], | ||
}; | ||
const bootstrap = () => {}; | ||
|
||
export default { | ||
config, | ||
bootstrap, | ||
}; |
This file was deleted.
Oops, something went wrong.
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default ({ env }) => ({ | ||
auth: { | ||
secret: env('ADMIN_JWT_SECRET', 'example-token'), | ||
}, | ||
apiToken: { | ||
salt: env('API_TOKEN_SALT', 'example-salt'), | ||
}, | ||
}); |
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,7 @@ | ||
export default { | ||
rest: { | ||
defaultLimit: 25, | ||
maxLimit: 100, | ||
withCount: true, | ||
}, | ||
}; |
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,11 @@ | ||
import path from 'path'; | ||
|
||
export default ({ env }) => ({ | ||
connection: { | ||
client: 'sqlite', | ||
connection: { | ||
filename: path.join(__dirname, '..', '..', env('DATABASE_FILENAME', '.tmp/data.db')), | ||
}, | ||
useNullAsDefault: true, | ||
}, | ||
}); |
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,12 @@ | ||
export default [ | ||
'strapi::errors', | ||
'strapi::security', | ||
'strapi::cors', | ||
'strapi::poweredBy', | ||
'strapi::logger', | ||
'strapi::query', | ||
'strapi::body', | ||
'strapi::session', | ||
'strapi::favicon', | ||
'strapi::public', | ||
]; |
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,7 @@ | ||
export default ({ env }) => ({ | ||
host: env('HOST', '0.0.0.0'), | ||
port: env.int('PORT', 1337), | ||
app: { | ||
keys: env.array('APP_KEYS'), | ||
}, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "kitchensink-ts", | ||
"private": true, | ||
"version": "4.3.0", | ||
"description": "A Strapi application", | ||
"scripts": { | ||
"develop": "strapi develop", | ||
"start": "strapi start", | ||
"build": "strapi build", | ||
"strapi": "strapi" | ||
}, | ||
"dependencies": { | ||
"@strapi/plugin-i18n": "4.1.12", | ||
"@strapi/plugin-users-permissions": "4.1.12", | ||
"@strapi/strapi": "4.2.2", | ||
"better-sqlite3": "7.4.6" | ||
}, | ||
"author": { | ||
"name": "A Strapi developer" | ||
}, | ||
"strapi": { | ||
"uuid": "getstarted" | ||
}, | ||
"engines": { | ||
"node": ">=14.19.1 <=16.x.x", | ||
"npm": ">=6.0.0" | ||
}, | ||
"license": "MIT" | ||
} |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extends": "@strapi/typescript-utils/tsconfigs/admin", | ||
"include": ["../plugins/**/admin/src/**/*", "./"], | ||
"exclude": ["node_modules/", "build/", "dist/", "**/*.test.ts"] | ||
} |
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,6 @@ | ||
export default (config, webpack) => { | ||
// Note: we provide webpack above so you should not `require` it | ||
// Perform customizations to webpack config | ||
// Important: return the modified config | ||
return config; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import '@strapi/strapi'; | ||
|
||
export default { | ||
/** | ||
* An asynchronous register function that runs before | ||
* your application is initialized. | ||
* | ||
* This gives you an opportunity to extend code. | ||
*/ | ||
register(/*{ strapi }*/) {}, | ||
|
||
/** | ||
* An asynchronous bootstrap function that runs before | ||
* your application gets started. | ||
* | ||
* This gives you an opportunity to set up your data model, | ||
* run jobs, or perform some special logic. | ||
*/ | ||
bootstrap(/*{ strapi }*/) {}, | ||
}; |
Oops, something went wrong.