Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13499 from strapi/features/ML-folder
Media Library: Enable asset organization through folders
- Loading branch information
Showing
268 changed files
with
20,866 additions
and
3,788 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,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,42 @@ | ||
{ | ||
"name": "admin-development", | ||
"version": "1.0.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" | ||
}, | ||
"dependencies": {}, | ||
"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 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
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
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
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
Oops, something went wrong.