Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Apr 11, 2019
1 parent 3ab40fe commit 8abd8b9
Show file tree
Hide file tree
Showing 30 changed files with 2,230 additions and 44 deletions.
12 changes: 12 additions & 0 deletions include/api.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-ifndef(API_HRL).
-define(API_HRL, true).

-define(API(Mod), module=Mod, type=[], obj=[], ver=1, id=[]).

-record(create_user, {?API(create), folder_id=[], title=[], logins=[]}).
-record(create_folder, {?API(create), company_id=[], obj_type=[], folder_id=[], title=[], description=[]}).
-record(create_company, {?API(create), phone=[], site=[], description=[], name=[]}).
-record(create_node, {?API(create), scope_id=[], obj_type=[], obj_id=[], title=[],
description=[], version=[] }).

-endif.
File renamed without changes.
3 changes: 2 additions & 1 deletion include/card.hrl → include/bank/card.hrl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-ifndef(CARD_HRL).
-define(CARD_HRL, "card_hrl").
-include_lib("kvx/include/kvx.hrl").

% could be used both for bank and client connector software

-record(card, {id,next,prev,
balance,
Expand Down
1 change: 0 additions & 1 deletion include/client.hrl → include/bank/client.hrl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-ifndef(CLIENT_HRL).
-define(CLIENT_HRL, "client_hrl").
-include_lib("kvx/include/kvx.hrl").

-record(client, {id,next,prev,
bank,
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions include/creation.hrl

This file was deleted.

15 changes: 15 additions & 0 deletions include/ent.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-ifndef(ENT_HRL).
-define(ENT_HRL, "ENT").

-include("bank/client.hrl").
-include("bank/account.hrl").
-include("bank/card.hrl").
-include("bank/transaction.hrl").
-include("api.hrl").
-include("fs/acl.hrl").
-include("fs/scope.hrl").
-include("fs/node.hrl").
-include("fs/fs.hrl").

-endif.

8 changes: 8 additions & 0 deletions include/fs/acl.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-ifndef(ACL_HRL).
-define(ACL_HRL, true).

-record(privs, { create = 0, view = 0, modify = 0, delete = 0 }).
-record(access, { owner = <<>>, priv = #privs{} }).
-record(acl, { node = <<>>, list = [] }).

-endif.
9 changes: 9 additions & 0 deletions include/fs/fs.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-ifndef(FS_HRL).
-define(FS_HRL, true).

-include_lib("kvs/include/kvs.hrl").

-record(folder, { ?CONTAINER, description=[], link=[] }).
-record(i, { ?ITERATOR(folder), type=[], ref=[] }).

-endif.
14 changes: 14 additions & 0 deletions include/fs/node.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-ifndef(NODE_HRL).
-define(NODE_HRL, true).

-include_lib("kvs/include/kvs.hrl").

-record(node, { ?ITERATOR(conv),
type=[],
condition=[],
name=[],
description=[],
scope_id=[],
extra=[] }).

-endif.
17 changes: 17 additions & 0 deletions include/fs/scope.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-ifndef(SCOPE_HRL).
-define(SCOPE_HRL, true).

-include_lib("kvs/include/kvs.hrl").

-record(scope, { ?CONTAINER,
title = [],
description = [],
owner_id = [],
folder_id = [],
status = [],
params = [],
nodes = [],
type = [],
company_id = [] }).

-endif.
12 changes: 0 additions & 12 deletions include/program.hrl

This file was deleted.

62 changes: 62 additions & 0 deletions priv/static/act.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<html>

<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="Maxim Sokhatsky" />
<title>ACT</title>
<link rel="stylesheet" href="css/blank.css?v=1" />
<link rel="stylesheet" href="css/forms.css?v=1" />
</head>

<body>

<nav>
<a href='index.html'>BANK</a>
<a href='login.htm'>LOGIN</a>
<a href='actors.htm'>ACTORS</a>
<a href='act.htm' style="background:#ededed;"><span id=n>1</span></a>
</nav>

<aside>
<article>
<section>
<h2>ACT <span id=num>1</span></h2>
<p id=desc>The business process trace.</p>
<br>
<div id="ctrl"> </div>
<div id="frms"></div>
<br>
</section>
<div class="table" width=75%>
<div id="tableHead" class="trGroup">
</div>
</div>
<br>
<section>
<small>Made with <span class="heart"></span> to BPE</small>
</section>
</article>
</aside>

<main>
</main>

<script src='https://ws.n2o.space/priv/utf8.js?v=1'></script>
<script src='https://ws.n2o.space/priv/bert.js?v=1'></script>
<script src='https://ws.n2o.space/priv/heart.js?v=1'></script>
<script src='https://ws.n2o.space/priv/ieee754.js?v=1'></script>
<script src='https://ws.n2o.space/priv/n2o.js?v=5'></script>
<script>host = location.hostname === 'bpe.n2o.space' ? 'ns.synrc.com' : location.hostname;
port = 8041;</script>
<script src='https://ws.n2o.space/priv/ftp.js?v=1'></script>
<script src='https://ws.n2o.space/priv/nitro.js?v=1'></script>
<script src='json-bert.js'></script>
<script>protos = [$bert]; N2O_start();</script>

</body>
</html>


59 changes: 59 additions & 0 deletions priv/static/actors.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<html>

<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="Maxim Sokhatsky" />
<title>ACTORS</title>
<link rel="stylesheet" href="css/blank.css?v=1" />
<link rel="stylesheet" href="css/forms.css?v=1" />
</head>

<body>

<nav>
<a href='index.html'>BANK</a>
<a href='login.htm'>LOGIN</a>
<a href='actors.htm' style="background:#ededed;">ACTORS</a>
</nav>

<aside>
<article>
<section>
<h2>ACTORS</h2>
<p>Managing persistent BPE/BPMN processes.</p>
<br>
<div id="ctrl"> </div>
<div id="frms"></div>
<br>
</section>
<div class="table">
<div id="tableHead" class="trGroup">
</div>
</div>
<br>
<section>
<small>Made with <span class="heart"></span> to BPE</small>
</section>
</article>
</aside>

<script src='https://ws.n2o.space/priv/utf8.js?v=1'></script>
<script src='https://ws.n2o.space/priv/bert.js?v=1'></script>
<script src='https://ws.n2o.space/priv/heart.js?v=1'></script>
<script src='https://ws.n2o.space/priv/ieee754.js?v=1'></script>
<script src='https://ws.n2o.space/priv/n2o.js?v=5'></script>
<script>host = location.hostname === 'bpe.n2o.space' ? 'ns.synrc.com' : location.hostname;
port = 8041;</script>
<script src='https://ws.n2o.space/priv/ftp.js?v=1'></script>
<script src='https://ws.n2o.space/priv/nitro.js?v=1'></script>
<script src='json-bert.js'></script>
<!--script>$io.do = function(r) { console.log(JSON.stringify(decode(r))); };</script-->
<script>protos = [$bert]; N2O_start();</script>

</body>
</html>


Loading

0 comments on commit 8abd8b9

Please sign in to comment.