Browse Source

Merge pull request #9481 from abpframework/liangshiwei/toastui-editor

Remove unnecessary packages from abp.tui-editor
pull/9484/head
İsmail ÇAĞDAŞ 5 years ago
committed by GitHub
parent
commit
d7da075c5c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/TuiEditor/TuiEditorScriptContributor.cs
  2. 3
      npm/packs/tui-editor/abp.resourcemapping.js
  3. 3
      npm/packs/tui-editor/package.json

12
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/TuiEditor/TuiEditorScriptContributor.cs

@ -16,18 +16,6 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.TuiEditor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/to-mark/to-mark.min.js");
if (context.FileProvider.GetFileInfo("/libs/tui-code-snippet/tui-code-snippet.min.js").Exists)
{
context.Files.AddIfNotContains("/libs/tui-code-snippet/tui-code-snippet.min.js");
}
else
{
context.Files.AddIfNotContains("/libs/tui-code-snippet/tui-code-snippet.js");
}
context.Files.AddIfNotContains("/libs/squire-rte/squire.js");
context.Files.AddIfNotContains("/libs/tui-editor/toastui-editor.js");
}
}

3
npm/packs/tui-editor/abp.resourcemapping.js

@ -1,8 +1,5 @@
module.exports = {
mappings: {
"@node_modules/to-mark/dist/to-mark.min.js": "@libs/to-mark/",
"@node_modules/tui-code-snippet/dist/*.*": "@libs/tui-code-snippet/",
"@node_modules/squire-rte/build/squire.js": "@libs/squire-rte/",
"@node_modules/@toast-ui/editor/dist/*.*": "@libs/tui-editor/"
}
}

3
npm/packs/tui-editor/package.json

@ -9,8 +9,7 @@
"@abp/highlight.js": "~4.4.0-rc.1",
"@abp/jquery": "~4.4.0-rc.1",
"@abp/markdown-it": "~4.4.0-rc.1",
"@toast-ui/editor": "^2.5.1",
"tui-code-snippet": "^2.3.2"
"@toast-ui/editor": "^2.5.1"
},
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431"
}

Loading…
Cancel
Save