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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
1 additions and
17 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/TuiEditor/TuiEditorScriptContributor.cs
-
npm/packs/tui-editor/abp.resourcemapping.js
-
npm/packs/tui-editor/package.json
|
|
|
@ -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"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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/" |
|
|
|
} |
|
|
|
} |
|
|
|
@ -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" |
|
|
|
} |
|
|
|
|