feat: ui overhaul ()

This commit is contained in:
Daniel Lautzenheiser
2023-03-30 13:29:09 -04:00
committed by GitHub
parent 5c86462859
commit 66b81e9228
385 changed files with 20607 additions and 16493 deletions
.nvmrcBREAKING_CHANGES.md
packages
app
core
.eslintrc.js
dev-test
jest.config.jspackage.jsonpostcss.config.js
src
__mocks__
actions
backends
bootstrap.tsx
components
App.tsx
App
Collection
Editor
ErrorBoundary.tsxMainView.tsx
MediaLibrary
NotFoundPage.tsx
UI
collections
common
entry-editor
images
login
media-library
navbar
page
snackbar
constants.ts
constants
extensions.tsindex.tsinterface.ts
lib
locales/en
reducers
store
styles
types
widgets
boolean
code
colorstring
datetime
file
image
index.ts
list
map
markdown
mdx
number
object
relation
select
string
text
tailwind.config.js
test
tsconfig.dev.jsontsconfig.jsonwebpack.config.js
demo
docs
tailwind.base.config.jsyarn.lock

@ -2,6 +2,7 @@ const path = require('path');
const webpack = require('webpack');
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const isProduction = process.env.NODE_ENV === 'production';
const devServerPort = parseInt(process.env.STATIC_CMS_DEV_SERVER_PORT || `${8080}`);
@ -44,14 +45,11 @@ module.exports = {
},
{
test: /\.css$/,
include: ['ol', 'codemirror', '@toast-ui'].map(moduleNameToPath),
include: [...['ol', 'codemirror', '@toast-ui'].map(moduleNameToPath), path.resolve(__dirname, '..', 'core', 'src')],
use: [
{
loader: 'style-loader',
},
{
loader: 'css-loader',
},
!isProduction ? 'style-loader' : MiniCssExtractPlugin.loader,
'css-loader',
'postcss-loader',
],
},
{
@ -85,6 +83,7 @@ module.exports = {
},
plugins: [
!isProduction && new ReactRefreshWebpackPlugin(),
isProduction && new MiniCssExtractPlugin(),
new webpack.IgnorePlugin({ resourceRegExp: /^esprima$/ }),
new webpack.IgnorePlugin({ resourceRegExp: /moment\/locale\// }),
new webpack.ProvidePlugin({