-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(demo): introduce a Home page for all demos (#60)
It introduces the projects and list all available demos. For now, we have a single demo but this prepares the others that are coming soon.
- Loading branch information
Showing
11 changed files
with
150 additions
and
25 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
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,24 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/logo.svg" /> | ||
<link rel="icon" type="image/svg+xml" href="/assets/logo.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>bpmn-visualization demo template</title> | ||
<script type="module" src="src/index.ts"></script> | ||
</head> | ||
<body> | ||
<header> | ||
<img src="/logo.svg" id="logo" alt="The Process Analytics project logo" class="logo"> | ||
<h1>PathResolver demo</h1> | ||
</header> | ||
<section class="presentation"> | ||
<div class="description">Select or deselect BPMN flow nodes, then compute the missing flows in the path.</div> | ||
<div class="controls"> | ||
<button id="btn-compute-path">Compute path</button> | ||
<button id="bt-clear">Clear</button> | ||
</div> | ||
</section> | ||
<div id="bpmn-container"></div> | ||
</body> | ||
<title>bv-experimental-add-ons</title> | ||
<link rel="stylesheet" href="/src/index.css" type="text/css"> | ||
</head> | ||
<body> | ||
<header> | ||
<img src="/assets/logo.svg" id="logo" alt="The Process Analytics project logo" class="logo"> | ||
<h1>bv-experimental-add-ons</h1> | ||
</header> | ||
<section class="presentation"> | ||
Welcome to <code>bv-experimental-add-ons</code>. | ||
<p> | ||
<code>bv-experimental-add-ons</code> provides new experimental features for <a href="https://github.com/process-analytics/bpmn-visualization-js" target="_blank">bpmn-visualization</a>. | ||
<p> | ||
|
||
<div> | ||
<div class="source-code"> | ||
<span>Source code:</span> | ||
<a href="https://github.com/process-analytics/bv-experimental-add-ons" target="_blank" class="gh-logo" title="Go to the bv-experimental-add-ons GitHub repository"><img src="/assets/github-logo.svg" id="gh-logo" alt="The GitHub logo"></a> | ||
</div> | ||
<code>bpmn-visualization</code> examples: <a href="https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/master/examples/index.html" target="_blank"><i>⏩ live environment</i></a> | ||
</div> | ||
|
||
</section> | ||
<section class="demos"> | ||
<h1>Available demos</h1> | ||
<ul> | ||
<li><a href="./pages/path-resolver.html">PathResolver</a>: Infer path after selecting some flow nodes.</li> | ||
</ul> | ||
</section> | ||
</body> | ||
</html> |
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,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/assets/logo.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>bv-addons PathResolver demo</title> | ||
<script type="module" src="/src/path-resolver.ts"></script> | ||
</head> | ||
<body> | ||
<header> | ||
<a href="../"><img src="/assets/logo.svg" id="logo" alt="The Process Analytics project logo" class="logo" title="Back to home"></a> | ||
<h1>PathResolver demo</h1> | ||
</header> | ||
<section class="presentation"> | ||
<div class="description">Select or deselect BPMN flow nodes, then compute the missing flows in the path.</div> | ||
<div class="controls"> | ||
<button id="btn-compute-path">Compute path</button> | ||
<button id="bt-clear">Clear</button> | ||
</div> | ||
</section> | ||
<div id="bpmn-container"></div> | ||
</body> | ||
</html> |
File renamed without changes
File renamed without changes
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,48 @@ | ||
/*TODO duplicated with path-resolver.css*/ | ||
:root { | ||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | ||
font-weight: 400; | ||
line-height: 1.5; | ||
} | ||
|
||
body { | ||
/*TODO duplicated with path-resolver.css*/ | ||
/*margin: 0;*/ | ||
min-width: 320px; | ||
min-height: 100vh; | ||
color: #2c3e50; | ||
/*display: flex;*/ | ||
/*place-items: center;*/ | ||
/*flex-direction: column;*/ | ||
/* Specific */ | ||
margin-left: 2rem; | ||
margin-top: .5rem; | ||
} | ||
|
||
/*TODO duplicated with path-resolver.css*/ | ||
header { | ||
display: flex; | ||
align-items: center; | ||
/*justify-content: space-evenly;*/ | ||
} | ||
|
||
/*TODO duplicated with path-resolver.css*/ | ||
.logo { | ||
height: 3rem; | ||
width: 3rem; | ||
margin-right: .5rem; | ||
} | ||
|
||
.source-code { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.gh-logo { | ||
display: flex; | ||
text-decoration: none; | ||
margin-left: .5rem; | ||
} | ||
.gh-logo img { | ||
width: 2rem; | ||
} |
File renamed without changes.
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,39 @@ | ||
/* | ||
Copyright 2023 Bonitasoft S.A. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
import { resolve } from 'node:path'; | ||
import { defineConfig } from 'vite'; | ||
|
||
export default defineConfig(() => { | ||
return { | ||
build: { | ||
rollupOptions: { | ||
input: { | ||
// TODO compute the list of HTML pages automatically | ||
index: resolve(__dirname, 'index.html'), | ||
'path-resolver': resolve(__dirname, 'pages/path-resolver.html'), | ||
}, | ||
output: { | ||
manualChunks: { | ||
// put mxgraph code in a dedicated file. | ||
mxgraph: ['mxgraph'], | ||
}, | ||
}, | ||
}, | ||
chunkSizeWarningLimit: 838, // mxgraph | ||
}, | ||
}; | ||
}); |