Skip to content

Commit 7944a79

Browse files
committed
Adding back plain html examples
1 parent 4d3ef57 commit 7944a79

18 files changed

+120
-128
lines changed

build.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@ const fs = require("fs");
44
const path = require("path");
55

66
const config = {
7-
entryPoints: ['./src/ts/index.ts', 'src/ts/examples/main.tsx'],
8-
outdir: './dist',
9-
//outfile: './dist/index.js',
7+
entryPoints: ['./src/ts/index.ts'],
8+
outfile: './dist/index.js',
109
bundle: true,
1110
format: 'esm',
1211
target: 'esnext',
1312
sourcemap: true,
1413
loader: {
1514
".ts": "ts",
16-
".tsx": "tsx",
1715
".css": "css",
1816
".gif": "dataurl",
19-
'.svg': 'dataurl',
2017
},
2118
plugins: [{
2219
name: 'rebuild-notify',

index.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<title>Examples</title>
5-
<base href="dist/" />
6-
</head>
7-
<body>
8-
<div id="root"></div>
9-
<script type="module" src="./examples/main.js"></script>
10-
</body>
11-
</html>
3+
<head>
4+
<title>Examples</title>
5+
</head>
6+
<body>
7+
<h1>Examples</h1>
8+
<ul>
9+
<li><a href="ts-examples/helloWorld.html">Hello World</a> - A simple example that loads mxgraph with 2 cells and a connection between them.</li>
10+
<li><a href="ts-examples/schemaDesigner.html">Schema Designer</a> - Creates a schemaDesigner with a test schema</li>
11+
</ul>
12+
</body>
13+
</html>

ts-examples/resources/addTable.svg

Lines changed: 3 additions & 0 deletions
Loading

ts-examples/resources/arrange.svg

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

ts-examples/resources/delete.svg

Lines changed: 3 additions & 0 deletions
Loading

ts-examples/resources/export.svg

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading

ts-examples/resources/redo.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)