jsw-rich-text-editer 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.babelrc ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "presets": [
3
+ "@babel/preset-env",
4
+ "@babel/preset-react"
5
+ ]
6
+ }
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Getting Started with Create React App
2
+
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run:
8
+
9
+ ### `npm start`
10
+
11
+ Runs the app in the development mode.\
12
+ Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
13
+
14
+ The page will reload when you make changes.\
15
+ You may also see any lint errors in the console.
16
+
17
+ ### `npm test`
18
+
19
+ Launches the test runner in the interactive watch mode.\
20
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
+
22
+ ### `npm run build`
23
+
24
+ Builds the app for production to the `build` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
+
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
29
+
30
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
+
32
+ ### `npm run eject`
33
+
34
+ **Note: this is a one-way operation. Once you `eject`, you can't go back!**
35
+
36
+ If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
+
38
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
39
+
40
+ You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
41
+
42
+ ## Learn More
43
+
44
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
+
46
+ To learn React, check out the [React documentation](https://reactjs.org/).
47
+
48
+ ### Code Splitting
49
+
50
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51
+
52
+ ### Analyzing the Bundle Size
53
+
54
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55
+
56
+ ### Making a Progressive Web App
57
+
58
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59
+
60
+ ### Advanced Configuration
61
+
62
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63
+
64
+ ### Deployment
65
+
66
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67
+
68
+ ### `npm run build` fails to minify
69
+
70
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
package/dist/App.css ADDED
@@ -0,0 +1,89 @@
1
+ .App {
2
+ text-align: center;
3
+ }
4
+
5
+ .App-logo {
6
+ height: 40vmin;
7
+ pointer-events: none;
8
+ }
9
+
10
+ @media (prefers-reduced-motion: no-preference) {
11
+ .App-logo {
12
+ animation: App-logo-spin infinite 20s linear;
13
+ }
14
+ }
15
+
16
+ .App-header {
17
+ background-color: #282c34;
18
+ min-height: 100vh;
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ justify-content: center;
23
+ font-size: calc(10px + 2vmin);
24
+ color: white;
25
+ }
26
+
27
+ .App-link {
28
+ color: #61dafb;
29
+ }
30
+
31
+ @keyframes App-logo-spin {
32
+ from {
33
+ transform: rotate(0deg);
34
+ }
35
+
36
+ to {
37
+ transform: rotate(360deg);
38
+ }
39
+ }
40
+
41
+ .editor-wrapper {
42
+ border: 1px solid #d9d9d9;
43
+ border-radius: 6px;
44
+ background: #fff;
45
+ }
46
+
47
+ .toolbar {
48
+ display: flex;
49
+ flex-wrap: wrap;
50
+ gap: 6px;
51
+ padding: 8px;
52
+ border-bottom: 1px solid #f0f0f0;
53
+ background: #fafafa;
54
+ }
55
+
56
+ .toolbar button {
57
+ border: 1px solid #d9d9d9;
58
+ background: #fff;
59
+ padding: 4px 8px;
60
+ border-radius: 4px;
61
+ cursor: pointer;
62
+ }
63
+
64
+ .toolbar button:hover {
65
+ background: #e6f4ff;
66
+ border-color: #1677ff;
67
+ }
68
+
69
+ .editor {
70
+ min-height: 220px;
71
+ padding: 12px;
72
+ outline: none;
73
+ }
74
+
75
+ .image-resize {
76
+ resize: both;
77
+ overflow: auto;
78
+ max-width: 100%;
79
+ }
80
+
81
+ .emoji-popup {
82
+ position: absolute;
83
+ background: #fff;
84
+ border: 1px solid #d9d9d9;
85
+ padding: 6px;
86
+ display: grid;
87
+ grid-template-columns: repeat(6, 1fr);
88
+ gap: 6px;
89
+ }
package/dist/App.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _logo = _interopRequireDefault(require("./logo.svg"));
8
+ require("./App.css");
9
+ var _richTextEditer = _interopRequireDefault(require("./richTextEditer"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ function App() {
12
+ return /*#__PURE__*/React.createElement("div", {
13
+ className: "App"
14
+ }, /*#__PURE__*/React.createElement(_richTextEditer.default, {
15
+ value: "",
16
+ onChange: value => console.log(value)
17
+ }));
18
+ }
19
+ var _default = exports.default = App;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ var _react = require("@testing-library/react");
4
+ var _App = _interopRequireDefault(require("./App"));
5
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6
+ test('renders learn react link', () => {
7
+ (0, _react.render)(/*#__PURE__*/React.createElement(_App.default, null));
8
+ const linkElement = _react.screen.getByText(/learn react/i);
9
+ expect(linkElement).toBeInTheDocument();
10
+ });
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.emoji_list = void 0;
7
+ const emoji_list = exports.emoji_list = ["😀", "😁", "😂", "🤣", "😊", "😍", "😎", "👍", "🙏", "🎉", "🔥", "❤️"];
package/dist/index.css ADDED
@@ -0,0 +1,13 @@
1
+ body {
2
+ margin: 0;
3
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5
+ sans-serif;
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ }
9
+
10
+ code {
11
+ font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12
+ monospace;
13
+ }
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ var _react = _interopRequireDefault(require("react"));
4
+ var _client = _interopRequireDefault(require("react-dom/client"));
5
+ require("./index.css");
6
+ var _App = _interopRequireDefault(require("./App"));
7
+ var _reportWebVitals = _interopRequireDefault(require("./reportWebVitals"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const root = _client.default.createRoot(document.getElementById('root'));
10
+ root.render(/*#__PURE__*/_react.default.createElement(_react.default.StrictMode, null, /*#__PURE__*/_react.default.createElement(_App.default, null)));
11
+
12
+ // If you want to start measuring performance in your app, pass a function
13
+ // to log results (for example: reportWebVitals(console.log))
14
+ // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
15
+ (0, _reportWebVitals.default)();
package/dist/logo.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
8
+ const reportWebVitals = onPerfEntry => {
9
+ if (onPerfEntry && onPerfEntry instanceof Function) {
10
+ Promise.resolve().then(() => _interopRequireWildcard(require('web-vitals'))).then(_ref => {
11
+ let {
12
+ getCLS,
13
+ getFID,
14
+ getFCP,
15
+ getLCP,
16
+ getTTFB
17
+ } = _ref;
18
+ getCLS(onPerfEntry);
19
+ getFID(onPerfEntry);
20
+ getFCP(onPerfEntry);
21
+ getLCP(onPerfEntry);
22
+ getTTFB(onPerfEntry);
23
+ });
24
+ }
25
+ };
26
+ var _default = exports.default = reportWebVitals;
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = RichTextEditor;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _constant = require("./helpers/constant");
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
+ function RichTextEditor(_ref) {
11
+ let {
12
+ value,
13
+ onChange
14
+ } = _ref;
15
+ const editorRef = (0, _react.useRef)(null);
16
+ const fileRef = (0, _react.useRef)(null);
17
+ const [showHtml, set_show_html] = (0, _react.useState)(false);
18
+ const [showEmoji, set_show_emoji] = (0, _react.useState)(false);
19
+ const exec = function (cmd) {
20
+ let val = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
21
+ editorRef.current.focus();
22
+ document.execCommand(cmd, false, val);
23
+ onChange(editorRef.current.innerHTML);
24
+ };
25
+
26
+ /* ---------- IMAGE UPLOAD ---------- */
27
+ const upload_image = async file => {
28
+ // 🔴 Replace with your API
29
+ const form = new FormData();
30
+ form.append("file", file);
31
+ const res = await fetch("/upload", {
32
+ method: "POST",
33
+ body: form
34
+ });
35
+ const data = await res.json();
36
+ return data.url; // server image url
37
+ };
38
+ const handle_image = async file => {
39
+ const url = await upload_image(file);
40
+ exec("insertHTML", "<img src=\"".concat(url, "\" class=\"image-resize\" />"));
41
+ };
42
+
43
+ /* ---------- DRAG & DROP ---------- */
44
+ const handle_drop = e => {
45
+ e.preventDefault();
46
+ const file = e.dataTransfer.files[0];
47
+ if (file) handle_image(file);
48
+ };
49
+ return /*#__PURE__*/_react.default.createElement("div", {
50
+ className: "editor-wrapper"
51
+ }, /*#__PURE__*/_react.default.createElement("div", {
52
+ className: "toolbar"
53
+ }, /*#__PURE__*/_react.default.createElement("button", {
54
+ onClick: () => exec("bold")
55
+ }, /*#__PURE__*/_react.default.createElement("b", null, "B")), /*#__PURE__*/_react.default.createElement("button", {
56
+ onClick: () => exec("italic")
57
+ }, /*#__PURE__*/_react.default.createElement("i", null, "I")), /*#__PURE__*/_react.default.createElement("button", {
58
+ onClick: () => exec("underline")
59
+ }, /*#__PURE__*/_react.default.createElement("u", null, "U")), /*#__PURE__*/_react.default.createElement("button", {
60
+ onClick: () => exec("strikeThrough")
61
+ }, "S"), /*#__PURE__*/_react.default.createElement("button", {
62
+ onClick: () => exec("insertUnorderedList")
63
+ }, "\u2022"), /*#__PURE__*/_react.default.createElement("button", {
64
+ onClick: () => exec("insertOrderedList")
65
+ }, "1."), /*#__PURE__*/_react.default.createElement("button", {
66
+ onClick: () => exec("justifyLeft")
67
+ }, "\u2BC7"), /*#__PURE__*/_react.default.createElement("button", {
68
+ onClick: () => exec("justifyCenter")
69
+ }, "\u2261"), /*#__PURE__*/_react.default.createElement("button", {
70
+ onClick: () => exec("justifyRight")
71
+ }, "\u2BC8"), /*#__PURE__*/_react.default.createElement("button", {
72
+ onClick: () => fileRef.current.click()
73
+ }, "\uD83D\uDDBC"), /*#__PURE__*/_react.default.createElement("input", {
74
+ type: "file",
75
+ hidden: true,
76
+ ref: fileRef,
77
+ accept: "image/*",
78
+ onChange: e => handle_image(e.target.files[0])
79
+ }), /*#__PURE__*/_react.default.createElement("button", {
80
+ onClick: () => set_show_emoji(!showEmoji)
81
+ }, "\uD83D\uDE0A"), /*#__PURE__*/_react.default.createElement("button", {
82
+ onClick: () => set_show_html(!showHtml)
83
+ }, showHtml ? "Preview" : "HTML")), showEmoji && /*#__PURE__*/_react.default.createElement("div", {
84
+ className: "emoji-popup"
85
+ }, _constant.emoji_list.map(e => /*#__PURE__*/_react.default.createElement("span", {
86
+ key: e,
87
+ onClick: () => {
88
+ exec("insertText", e);
89
+ set_show_emoji(false);
90
+ }
91
+ }, e))), showHtml ? /*#__PURE__*/_react.default.createElement("textarea", {
92
+ value: value,
93
+ onChange: e => onChange(e.target.value),
94
+ style: {
95
+ width: "100%",
96
+ minHeight: 220
97
+ }
98
+ }) : /*#__PURE__*/_react.default.createElement("div", {
99
+ ref: editorRef,
100
+ className: "editor",
101
+ contentEditable: true,
102
+ dangerouslySetInnerHTML: {
103
+ __html: value
104
+ },
105
+ onInput: () => onChange(editorRef.current.innerHTML),
106
+ onDrop: handle_drop,
107
+ onDragOver: e => e.preventDefault()
108
+ }));
109
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("@testing-library/jest-dom");
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "jsw-rich-text-editer",
3
+ "version": "1.0.0",
4
+ "main": "dist/index.js",
5
+ "style": "dist/editor.css",
6
+ "dependencies": {
7
+ "@testing-library/dom": "^10.4.1",
8
+ "@testing-library/jest-dom": "^6.9.1",
9
+ "@testing-library/react": "^16.3.1",
10
+ "@testing-library/user-event": "^13.5.0",
11
+ "react": "^19.2.3",
12
+ "react-dom": "^19.2.3",
13
+ "react-scripts": "5.0.1",
14
+ "web-vitals": "^2.1.4"
15
+ },
16
+ "scripts": {
17
+ "build": "babel src --out-dir dist --copy-files",
18
+ "prepublishOnly": "yarn build",
19
+ "start": "react-scripts start"
20
+ },
21
+ "peerDependencies": {
22
+ "react": ">=16.8",
23
+ "react-dom": ">=16.8"
24
+ },
25
+ "keywords": [
26
+ "react",
27
+ "rich-text-editor",
28
+ "email-editor",
29
+ "wysiwyg"
30
+ ],
31
+ "eslintConfig": {
32
+ "extends": [
33
+ "react-app",
34
+ "react-app/jest"
35
+ ]
36
+ },
37
+ "browserslist": {
38
+ "production": [
39
+ ">0.2%",
40
+ "not dead",
41
+ "not op_mini all"
42
+ ],
43
+ "development": [
44
+ "last 1 chrome version",
45
+ "last 1 firefox version",
46
+ "last 1 safari version"
47
+ ]
48
+ },
49
+ "author": "Jagatheeswaran <itsmejaga2001@gmail.com>",
50
+ "license": "MIT",
51
+ "devDependencies": {
52
+ "@babel/cli": "^7.28.3",
53
+ "@babel/core": "^7.28.5",
54
+ "@babel/preset-env": "^7.28.5",
55
+ "@babel/preset-react": "^7.28.5"
56
+ }
57
+ }
Binary file
@@ -0,0 +1,43 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <meta name="theme-color" content="#000000" />
8
+ <meta
9
+ name="description"
10
+ content="Web site created using create-react-app"
11
+ />
12
+ <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
+ <!--
14
+ manifest.json provides metadata used when your web app is installed on a
15
+ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16
+ -->
17
+ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18
+ <!--
19
+ Notice the use of %PUBLIC_URL% in the tags above.
20
+ It will be replaced with the URL of the `public` folder during the build.
21
+ Only files inside the `public` folder can be referenced from the HTML.
22
+
23
+ Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24
+ work correctly both with client-side routing and a non-root public URL.
25
+ Learn how to configure a non-root public URL by running `npm run build`.
26
+ -->
27
+ <title>React App</title>
28
+ </head>
29
+ <body>
30
+ <noscript>You need to enable JavaScript to run this app.</noscript>
31
+ <div id="root"></div>
32
+ <!--
33
+ This HTML file is a template.
34
+ If you open it directly in the browser, you will see an empty page.
35
+
36
+ You can add webfonts, meta tags, or analytics to this file.
37
+ The build step will place the bundled scripts into the <body> tag.
38
+
39
+ To begin the development, run `npm start` or `yarn start`.
40
+ To create a production bundle, use `npm run build` or `yarn build`.
41
+ -->
42
+ </body>
43
+ </html>
Binary file
Binary file
@@ -0,0 +1,25 @@
1
+ {
2
+ "short_name": "React App",
3
+ "name": "Create React App Sample",
4
+ "icons": [
5
+ {
6
+ "src": "favicon.ico",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon"
9
+ },
10
+ {
11
+ "src": "logo192.png",
12
+ "type": "image/png",
13
+ "sizes": "192x192"
14
+ },
15
+ {
16
+ "src": "logo512.png",
17
+ "type": "image/png",
18
+ "sizes": "512x512"
19
+ }
20
+ ],
21
+ "start_url": ".",
22
+ "display": "standalone",
23
+ "theme_color": "#000000",
24
+ "background_color": "#ffffff"
25
+ }
@@ -0,0 +1,3 @@
1
+ # https://www.robotstxt.org/robotstxt.html
2
+ User-agent: *
3
+ Disallow: