Skip to content

Commit

Permalink
Delete old code (#2660)
Browse files Browse the repository at this point in the history
* Delete old code

* fix build

* improve

* improve

* readme

* Copy old demo

* add old doc
  • Loading branch information
JiuqingSong authored Jun 5, 2024
1 parent b4fc6d6 commit f722a40
Show file tree
Hide file tree
Showing 943 changed files with 41,750 additions and 95,688 deletions.
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,7 @@ module.exports = {
},
overrides: [
{
files: [
'roosterjs-editor-*/**/*.ts',
'roosterjs-react/**/*.ts',
'roosterjs-react/**/*.tsx',
'roosterjs-color-utils/**/*.ts',
'roosterjs/**/*.ts',
],
files: ['roosterjs-color-utils/**/*.ts'],
rules: {
'import/no-default-export': 'off',
},
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ dist/
# Mac files
.DS_Store

# Temp files
packages/roosterjs-editor-types/lib/compatibleEnum/
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,22 @@ There are also some extension packages to provide additional functionalities.
1. [roosterjs-color-utils](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_color_utils.html):
Provide color transformation utility to make editor work under dark mode.

2. [roosterjs-react](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_react.html):
Provide a React wrapper of roosterjs so it can be easily used with React.

To be compatible with old (8.\*) versions, you can use `EditorAdapter` class from the following package which can act as a 8.\* Editor:

1. [roosterjs-editor-adapter](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_adapter.html):
Provide a adapter class `EditorAdapter` to work with Editor (9.\*) and legacy plugins (via [EditorAdapterOptions.legacyPlugins](https://microsoft.github.io/roosterjs/docs/interfaces/roosterjs_editor_adapter.editoradapteroptions.html#legacyplugins))

And the following packages are for old (8.\*) compatibility:
All old packages (8.\*) are moved to branch [roosterjsv8](https://github.com/microsoft/roosterjs/tree/roosterjsv8), including

1. roosterjs-editor-core
2. roosterjs-editor-api
3. roosterjs-editor-dom
4. roosterjs-editor-plugins
5. roosterjs-editor-types
6. roosterjs-editor-types-compatible
7. roosterjs-react

1. [roosterjs-editor-core](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_core.html):
2. [roosterjs-editor-api](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_api.html):
3. [roosterjs-editor-dom](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_dom.html):
4. [roosterjs-editor-plugins](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_plugins.html):
5. [roosterjs-editor-types](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_types.html):
6. [roosterjs-editor-types-compatible](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_types_compatible.html):
We will not update these branches any more unless there are new security bugs.

### APIs

Expand Down
9,692 changes: 9,692 additions & 0 deletions assets/legacy-demo/demo.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/legacy-demo/demo.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! @license DOMPurify 2.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.0/LICENSE */
1 change: 1 addition & 0 deletions assets/legacy-demo/demo.js.map

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions assets/legacy-demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>RoosterJs Demo Site</title>
<style>
#mainPane {
position: absolute;
left: 10px;
right: 10px;
top: 10px;
bottom: 10px;
}
</style>
<meta
http-equiv="Content-Security-Policy"
content="require-trusted-types-for 'script'; trusted-types dompurify;"
/>
</head>
<body>
<div id="mainPane"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.14.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fluentui-react/8.60.1/fluentui-react.min.js"></script>
<script src="rooster-legacy-min.js"></script>
<script src="rooster-min.js"></script>
<script src="rooster-adapter-min.js"></script>
<script src="rooster-react-min.js"></script>
<script src="demo.js"></script>
</body>
</html>
Loading

0 comments on commit f722a40

Please sign in to comment.