Skip to content

Commit 3db2449

Browse files
committed
tx-browser: Copy npm package.json and html files from studio. #344
1 parent 1ccd517 commit 3db2449

File tree

5 files changed

+98
-0
lines changed

5 files changed

+98
-0
lines changed

halogen-tx-browser/html/index.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@import "tailwindcss/dist/utilities.min.css";
2+
@import "tailwindcss/dist/preflight.min.css";
3+
@import "@fortawesome/fontawesome-free/css/all.min.css";
4+
5+
@import "./petrinet.css";
6+
@import "./diagram.css";
7+
@import "./typedefs.css";
8+
@import "./auths.css";
9+
@import "./kdmoncat-bricks.css";
10+
@import "../../halogen-grid-kit/src/GridKit/KeyHandler.css";
11+
@import "./studio.css";
12+
13+
svg {
14+
display: block;
15+
height: 100%;
16+
width: 100%;
17+
-moz-user-select: none;
18+
-ms-user-select: none;
19+
-webkit-user-select: none;
20+
user-select: none;
21+
}
22+
a {
23+
text-decoration: none;
24+
}
25+
.css-navbar .css-logo-statebox {
26+
display: inline-block;
27+
width: 32px;
28+
height: 37px;
29+
background-image: url(logo-statebox-white.svg);
30+
}
31+
.css-route-breadcrumbs li+li::before {
32+
margin-left: 0.5em;
33+
margin-right: 0.5em;
34+
color: #b5b5b5;
35+
content: "\02192";
36+
}

halogen-tx-browser/html/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<head>
4+
<meta charset="utf-8"/>
5+
<title>Statebox Transaction Browser</title>
6+
7+
<link rel="stylesheet" href="index.css">
8+
</head>
9+
<body>
10+
<script src="https://cdnjs.cloudflare.com/ajax/libs/fast-xml-parser/3.10.0/parser.js"></script>
11+
<script src="index.js"></script>
12+
</body>
13+
</html>

halogen-tx-browser/html/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
window.Stbx = require('@statebox/stbx-js')
2+
window.dagre = require("dagre")
3+
var Main = require("../output/index.js")
4+
Main.main()

halogen-tx-browser/html/studio.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
tr.css-tx-execution {
2+
background: orange;
3+
}
4+
tr.css-tx-current {
5+
background: pink;
6+
}

halogen-tx-browser/package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "stbx-tx-browser",
3+
"version": "1.0.0",
4+
"description": "Statebox Transaction Browser",
5+
"main": "index.js",
6+
"directories": {
7+
"test": "test"
8+
},
9+
"scripts": {
10+
"postinstall": "spago install",
11+
"start": "npm run build && concurrently --kill-others --handle-input npm:watch npm:serve",
12+
"build": "spago bundle-module --main Statebox.Browser.Main --to output/index.js --purs-args --censor-codes=ImplicitImport,ImplicitQualifiedImport,HidingImport",
13+
"watch": "spago bundle-module --main Statebox.Browser.Main --to output/index.js --watch --purs-args --censor-codes=ImplicitImport,ImplicitQualifiedImport,HidingImport",
14+
"test": "spago test",
15+
"docs": "spago docs",
16+
"repl": "spago repl",
17+
"serve": "parcel html/index.html",
18+
"bundle": "npm run build && rm -rf dist && parcel build html/index.html --public-url . --no-source-maps"
19+
},
20+
"keywords": [
21+
"statebox",
22+
"petrinet"
23+
],
24+
"author": "Erik Post <[email protected]>",
25+
"license": "Commercial",
26+
"devDependencies": {
27+
"concurrently": "^5.0.2",
28+
"parcel-bundler": "^1.12.4",
29+
"purescript": "^0.13.5",
30+
"purescript-psa": "^0.7.3",
31+
"spago": "^0.13"
32+
},
33+
"dependencies": {
34+
"@fortawesome/fontawesome-free": "^5.6.3",
35+
"@statebox/stbx-js": "0.0.31",
36+
"dagre": "^0.8.4",
37+
"tailwindcss": "^0.7.3"
38+
}
39+
}

0 commit comments

Comments
 (0)