Skip to content

Commit

Permalink
polishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Jul 23, 2023
1 parent 2bd43d2 commit a4398c8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Features:
* [🚄 Stress Test](https://nocode-js.github.io/sequential-workflow-designer/examples/stress-test.html)
* [🚪 Editing Restrictions](https://nocode-js.github.io/sequential-workflow-designer/examples/editing-restrictions.html)
* [📜 Scrollable Page](https://nocode-js.github.io/sequential-workflow-designer/examples/scrollable-page.html)
* [React Demo](https://nocode-js.github.io/sequential-workflow-designer/react-app/)
* [Angular Demo](https://nocode-js.github.io/sequential-workflow-designer/angular-app/)

Pro:

Expand Down
8 changes: 5 additions & 3 deletions demos/angular-app/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';

platformBrowserDynamic()
.bootstrapModule(AppModule)
.catch(err => console.error(err));
window.addEventListener('load', () => {
platformBrowserDynamic()
.bootstrapModule(AppModule)
.catch(err => console.error(err));
}, false);
2 changes: 1 addition & 1 deletion demos/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sequential-workflow-designer-react-app-demo",
"version": "0.0.0",
"private": true,
"homepage": "/sequential-workflow-designer/react-app/",
"homepage": "./",
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
3 changes: 3 additions & 0 deletions demos/react-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export function App() {
<button onClick={() => changePath('nativeEditors')} className={path === 'nativeEditors' ? 'selected' : ''}>
Native editors
</button>
<a href="https://github.com/nocode-js/sequential-workflow-designer/tree/main/react" className="github">
GitHub
</a>
</nav>
{path === 'playground' && <Playground />}
{path === 'nativeEditors' && <NativeEditors />}
Expand Down
12 changes: 12 additions & 0 deletions demos/react-app/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ nav button.selected {
nav button:hover {
opacity: 0.8;
}
nav .github {
margin: 0 5px;
color: #fff;
}
nav .github:hover {
text-decoration: none;
}
@media only screen and (max-width: 700px) {
nav h1 {
display: none;
}
}

.sqd-designer-react {
width: 100vw;
Expand Down

0 comments on commit a4398c8

Please sign in to comment.