-
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.
- Loading branch information
Showing
11 changed files
with
7,961 additions
and
363 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 |
---|---|---|
@@ -1,12 +1,23 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js"; | ||
|
||
import globals from 'globals'; | ||
import pluginJs from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js'; | ||
|
||
export default [ | ||
{languageOptions: { globals: globals.browser }}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
pluginReactConfig, | ||
]; | ||
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } }, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
...pluginReactConfig, | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
} | ||
} | ||
}, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off' | ||
} | ||
} | ||
]; |
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 +1,3 @@ | ||
## Jodit example decorators | ||
|
||
This example demonstrates how to use decorators to add custom functionality to the Jodit editor. |
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 +1,3 @@ | ||
## Jodit example hide-finders-edit-buttons | ||
|
||
This example demonstrates how to hide the finders and edit buttons in the Jodit editor. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
const path = require("path"); | ||
const path = require('path'); | ||
|
||
const isProduction = process.env.NODE_ENV == "production"; | ||
const isProduction = process.env.NODE_ENV == 'production'; | ||
|
||
const stylesHandler = "style-loader"; | ||
const stylesHandler = 'style-loader'; | ||
|
||
const config = { | ||
entry: "./src/index.tsx", | ||
entry: './src/index.tsx', | ||
output: { | ||
clean: true, | ||
publicPath: "/dist", | ||
filename: "paste-link.js", | ||
path: path.resolve(__dirname, "dist"), | ||
publicPath: '/dist', | ||
filename: 'paste-link.js', | ||
path: path.resolve(__dirname, 'dist') | ||
}, | ||
context: __dirname, | ||
devServer: { | ||
open: true, | ||
allowedHosts: "all", | ||
allowedHosts: 'all', | ||
static: { | ||
directory: path.resolve(__dirname, "./"), | ||
directory: path.resolve(__dirname, './') | ||
}, | ||
client: { | ||
progress: true, | ||
overlay: true, | ||
overlay: true | ||
}, | ||
hot: true, | ||
hot: true | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(ts|tsx)$/i, | ||
loader: "ts-loader", | ||
exclude: ["/node_modules/"], | ||
loader: 'ts-loader', | ||
exclude: ['/node_modules/'] | ||
}, | ||
{ | ||
test: /\.css$/i, | ||
use: [stylesHandler, "css-loader"], | ||
use: [stylesHandler, 'css-loader'] | ||
}, | ||
{ | ||
test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, | ||
type: "asset", | ||
}, | ||
], | ||
type: 'asset' | ||
} | ||
] | ||
}, | ||
resolve: { | ||
extensions: [".tsx", ".ts", ".jsx", ".js", "..."], | ||
}, | ||
extensions: ['.tsx', '.ts', '.jsx', '.js', '...'] | ||
} | ||
}; | ||
|
||
module.exports = () => { | ||
if (isProduction) { | ||
config.mode = "production"; | ||
config.mode = 'production'; | ||
} else { | ||
config.mode = "development"; | ||
config.mode = 'development'; | ||
} | ||
return config; | ||
}; |
Oops, something went wrong.