-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
17 changed files
with
205 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.DS_Store | ||
.idea | ||
.cache | ||
.vercel | ||
/.env | ||
lerna-debug* | ||
node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.idea | ||
cypress | ||
node_modules | ||
packages | ||
|
||
.env | ||
.eslintrc | ||
.huskyrc | ||
.lintstagedrc | ||
.npmrc | ||
.prettierrc | ||
.travis.yml | ||
CONTRIBUTING.md | ||
cypress.json | ||
lerna.json | ||
lerna-debug.log | ||
package.json | ||
Procfile | ||
README.md | ||
serve.json | ||
tsconfig.json | ||
yarn.lock | ||
yarn-error.log | ||
|
||
# dark magic to keep one file | ||
demo/admin/node_modules/* | ||
demo/admin/node_modules/@ringcentral/web-apps-sync-iframe/node_modules | ||
!demo/admin/node_modules | ||
!demo/admin/node_modules/@ringcentral | ||
!demo/admin/node_modules/@ringcentral/web-apps-sync-iframe | ||
!demo/admin/node_modules/@ringcentral/web-apps-sync-iframe/dist/ringcentral-web-apps-iframe.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
import React from 'react'; | ||
import moment from 'moment'; | ||
|
||
export default ({foo}) => ( | ||
export default ({mode}) => ( | ||
<div | ||
className="border border-info" | ||
style={{ | ||
borderRadius: '4px', | ||
padding: '2em', | ||
backgroundColor: 'red', | ||
color: 'white', | ||
padding: '1em', | ||
display: 'flex', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<h2>App 2 Widget: {foo}</h2> | ||
<p>{moment().format('MMMM Do YYYY, h:mm:ss a')}</p> | ||
<h4 className="font-weight-lighter" style={{margin: '0 10px 0 0'}}> | ||
Global App (Federated) | ||
</h4> | ||
<div> | ||
Mode: <code>{mode}</code>, {moment().format('MMMM Do YYYY, h:mm:ss a')} | ||
</div> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import React from 'react'; | ||
|
||
export default () => <div>This is a placeholder component for index page. Please choose an app in the top menu.</div>; | ||
export default () => <p>This is a placeholder component for index page. Please choose an app in the top menu.</p>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "ringcentral-web-apps", | ||
"scope": "kirill.konshin@gmail.com", | ||
"rewrites": [ | ||
{ | ||
"source": "/application/(.*)", | ||
"destination": "/demo/host/dist/index.html" | ||
}, | ||
{ | ||
"source": "/demo/iframe/build/(.*)", | ||
"destination": "/demo/iframe/build/index.html" | ||
}, | ||
{ | ||
"source": "/demo/react-menu-iframe/build/(.*)", | ||
"destination": "/demo/react-menu-iframe/build/index.html" | ||
} | ||
], | ||
"redirects": [ | ||
{ | ||
"source": "/demo/admin/", | ||
"destination": "/demo/admin/index.html" | ||
}, | ||
{ | ||
"source": "/", | ||
"destination": "/application/apps" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters