diff --git a/ui/TESTING.md b/ui/TESTING.md index 2157e2bb..47212c62 100644 --- a/ui/TESTING.md +++ b/ui/TESTING.md @@ -15,21 +15,21 @@ | No | Name | Status | | --- | ------------------------ | ------ | -| 10 | Data Generator | No | -| 11 | Markdown Editor | No | -| 12 | Markdown Table Generator | No | -| 13 | Table Of Content | No | -| 14 | List | No | -| 15 | Border Radius | No | +| 11 | Data Generator | No | +| 12 | Markdown Editor | No | +| 13 | Markdown Table Generator | No | +| 14 | Table Of Content | No | +| 15 | List | No | +| 16 | Border Radius | No | # Components -| No | Name | Status | -| --- | ------ | ------ | -| 1 | Footer | Yes | -| 2 | Menu | Yes | - | No | Name | Status | | --- | ---------------- | ------ | -| 3 | Hedaer | No | -| 4 | ListSearchResult | Yes | +| 1 | Footer | Yes | +| 2 | Menu | Yes | +| 3 | ListSearchResult | Yes | + +| No | Name | Status | +| --- | ------ | ------ | +| 4 | Hedaer | No | diff --git a/ui/src/pages/About/utils/constants.tsx b/ui/src/pages/About/utils/constants.tsx index ab39fc74..2ce640be 100644 --- a/ui/src/pages/About/utils/constants.tsx +++ b/ui/src/pages/About/utils/constants.tsx @@ -183,28 +183,28 @@ const FEATURE_DATA: Feature[] = [ library: [{ name: "values.js", url: LIBRARY_URLS["values.js"] }], }, { - key: "15", + key: "3", name: "Border Radius", description: "Choose your desired border radius", link: "/css/br", library: [{ name: "faker.js", url: LIBRARY_URLS["faker-js"] }], }, { - key: "3", + key: "4", name: "Base 64 Converter", description: "Convert text to base64", link: "/converter/base-64", library: [{ name: "Vanilla JS", url: "" }], }, { - key: "4", + key: "5", name: "Pixel converter", description: "Convert pixel to rem", link: "/converter/pixel", library: [{ name: "Vanilla JS", url: "" }], }, { - key: "5", + key: "6", name: "Json to typescript converter", description: "Convert Json to typescript", link: "/converter/jtt", @@ -216,7 +216,7 @@ const FEATURE_DATA: Feature[] = [ ], }, { - key: "6", + key: "7", name: "Data Generator", description: "Generate any type of data", link: "/generator/data", @@ -232,7 +232,7 @@ const FEATURE_DATA: Feature[] = [ ], }, { - key: "7", + key: "8", name: "Image generate from colors", description: "Generate image from color code", link: "/generator/igfc", @@ -252,7 +252,7 @@ const FEATURE_DATA: Feature[] = [ ], }, { - key: "14", + key: "9", name: "Avatar generator", description: "Generate avatar from text", link: "/generator/avatar", @@ -268,21 +268,21 @@ const FEATURE_DATA: Feature[] = [ ], }, { - key: "8", + key: "10", name: "Sorting", description: "Sort numbers or strings", link: "/generator/sorting", library: [{ name: "Vanilla JS", url: "" }], }, { - key: "9", + key: "11", name: "List", description: "List of things", link: "/list", library: [{ name: "Vanilla JS", url: "" }], }, { - key: "10", + key: "12", name: "Markdown Editor", description: "Write markdown and download", link: "/markdown/me", @@ -294,7 +294,7 @@ const FEATURE_DATA: Feature[] = [ ], }, { - key: "11", + key: "13", name: "Markdown table generator", description: "Generate a table from the markdown", link: "/markdown/md-table-generator", @@ -306,7 +306,7 @@ const FEATURE_DATA: Feature[] = [ ], }, { - key: "12", + key: "14", name: "Markdown table of content", description: "Generate table from markdown", link: "/markdown/toc", @@ -318,7 +318,7 @@ const FEATURE_DATA: Feature[] = [ ], }, { - key: "13", + key: "15", name: "Text Editor", description: "Generate rich text", link: "/text/te", @@ -329,6 +329,13 @@ const FEATURE_DATA: Feature[] = [ }, ], }, + { + key: "16", + name: "News", + description: "Tech news", + link: "/", + library: [{ name: "Vanilla JS", url: "" }], + }, ]; export { diff --git a/ui/src/pages/Text/TextEditor/index.tsx b/ui/src/pages/Text/TextEditor/index.tsx index 62970c8a..f57a40e6 100644 --- a/ui/src/pages/Text/TextEditor/index.tsx +++ b/ui/src/pages/Text/TextEditor/index.tsx @@ -108,7 +108,11 @@ const TextEditor: React.FC = () => { }); editor.on("keydown", function (e) { if (e.key === "Escape") { - editor.execCommand("mceFullScreen"); + if ( + editor.plugins.fullscreen.isFullscreen() + ) { + editor.execCommand("mceFullScreen"); + } } }); },