Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
31 changes: 25 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@

## Introduction

In this project, create a react app to support online editor to view and edit a file using intelisense

for example: we can use npm `react-ace` - https://www.npmjs.com/package/react-ace
# react-online-editor

In this project, create a react app to support online editor to view and edit a file using intellisense

for example: we can use npm `react-ace` - https://www.npmjs.com/package/react-ace

## Setup 🛠

- To install dependencies, use

```sh
yarn
```

- To run react server, use

```sh
yarn start
```

- To build, use

```sh
yarn build
```
24 changes: 24 additions & 0 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"files": {
"main.css": "/static/css/main.d0a9e55e.chunk.css",
"main.js": "/static/js/main.2af20b4a.chunk.js",
"main.js.map": "/static/js/main.2af20b4a.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.097ce451.js",
"runtime-main.js.map": "/static/js/runtime-main.097ce451.js.map",
"static/css/2.8a8a300c.chunk.css": "/static/css/2.8a8a300c.chunk.css",
"static/js/2.1a4d3499.chunk.js": "/static/js/2.1a4d3499.chunk.js",
"static/js/2.1a4d3499.chunk.js.map": "/static/js/2.1a4d3499.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.ea82dc23791e9ecfe897cd51df1da56b.js": "/precache-manifest.ea82dc23791e9ecfe897cd51df1da56b.js",
"service-worker.js": "/service-worker.js",
"static/css/2.8a8a300c.chunk.css.map": "/static/css/2.8a8a300c.chunk.css.map",
"static/css/main.d0a9e55e.chunk.css.map": "/static/css/main.d0a9e55e.chunk.css.map"
},
"entrypoints": [
"static/js/runtime-main.097ce451.js",
"static/css/2.8a8a300c.chunk.css",
"static/js/2.1a4d3499.chunk.js",
"static/css/main.d0a9e55e.chunk.css",
"static/js/main.2af20b4a.chunk.js"
]
}
File renamed without changes.
1 change: 1 addition & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="logo192.png"/><link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/11.0.0/css/fabric.min.css"/><link rel="manifest" href="/manifest.json"/><title>React App</title><link href="/static/css/2.8a8a300c.chunk.css" rel="stylesheet"><link href="/static/css/main.d0a9e55e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(f){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],i=0,l=[];i<n.length;i++)t=n[i],Object.prototype.hasOwnProperty.call(p,t)&&p[t]&&l.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(f[r]=o[r]);for(s&&s(e);l.length;)l.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var t={},p={1:0},c=[];function i(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=f,i.c=t,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(r,e){if(1&e&&(r=i(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)i.d(t,n,function(e){return r[e]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/";var r=this["webpackJsonponline-editor"]=this["webpackJsonponline-editor"]||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="/static/js/2.1a4d3499.chunk.js"></script><script src="/static/js/main.2af20b4a.chunk.js"></script></body></html>
File renamed without changes
File renamed without changes
50 changes: 25 additions & 25 deletions online-editor/public/manifest.json → build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
26 changes: 26 additions & 0 deletions build/precache-manifest.ea82dc23791e9ecfe897cd51df1da56b.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "3821f50caf7631bef79612d7d17eeac5",
"url": "/index.html"
},
{
"revision": "58ecfd814e3b8028895d",
"url": "/static/css/2.8a8a300c.chunk.css"
},
{
"revision": "46f8cd52c831966eacfa",
"url": "/static/css/main.d0a9e55e.chunk.css"
},
{
"revision": "58ecfd814e3b8028895d",
"url": "/static/js/2.1a4d3499.chunk.js"
},
{
"revision": "46f8cd52c831966eacfa",
"url": "/static/js/main.2af20b4a.chunk.js"
},
{
"revision": "98c0dadde4ddefef1f47",
"url": "/static/js/runtime-main.097ce451.js"
}
]);
4 changes: 2 additions & 2 deletions online-editor/public/robots.txt → build/robots.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
# https://www.robotstxt.org/robotstxt.html
User-agent: *
39 changes: 39 additions & 0 deletions build/service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/

importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.ea82dc23791e9ecfe897cd51df1da56b.js"
);

self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});

workbox.core.clientsClaim();

/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});

workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {

blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
});
Loading