-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-file.html
174 lines (170 loc) · 8.93 KB
/
create-file.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<html>
<head>
<link rel="icon" type="image/png" href="/favicon.png" />
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<title>AVACloud JavaScript Demo - Dangl IT</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700|Indie+Flower:400|">
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/4.0.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="site.min.css" />
</head>
<body>
<div>
<header>
<div class="navbar navbar-inverse navbar-fixed-top mat-toolbar ms-header ms-header-primary">
<div class="container">
<a class="navbar-brand" href="/">
<span class="gd-logo gd-logo-white">GD</span>
<h1 style="display:inline;font-weight:300;vertical-align:bottom;">
Dangl<strong style="vertical-align:bottom;font-weight:500;">IT</strong>
</h1>
</a>
</div>
</div>
</header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark subnav">
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">
AVACloud Demo
<div></div>
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="create-file.html">
Create new File
<div></div>
</a>
</li>
<li class="nav-item ">
<a class="nav-link" style="position:relative;" href="https://docs.dangl-it.com/Projects/AVACloud/latest">
Documentation
</a>
</li>
<li class="nav-item ">
<a class="nav-link" style="position:relative;" href="https://www.dangl-it.com/products/avacloud-gaeb-saas/">
Product Site
</a>
</li>
<li class="nav-item ">
<a class="nav-link" style="position:relative;" href="https://docs.dangl-it.com">
DanglDocu
</a>
</li>
</ul>
<div>
<div class="navbar-right">
<ul class="nav navbar-nav navbar-right">
<li>
<a class="nav-link" title="Contact" href="mailto:[email protected]">[email protected]</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</nav>
</div>
<div class="container body-content" style="flex: 1 0 auto;">
<h1>AVACloud JavaScript Demo</h1>
<p>
This is the demo page for the <a href="https://www.dangl-it.com/products/avacloud-gaeb-saas/">AVACloud</a>
JavaScript client.
You can find a detailed step-by-step tutorial <a href="https://www.dangl-it.com/articles/create-edit-and-convert-gaeb-files-in-the-browser-with-javascript-and-the-avacloud-api/">in the knowledge base of Dangl<b>IT</b>.</a>
</p>
<h2>Introduction</h2>
<p>
AVACloud is a web based SaaS (Software as a Service) offering that lets you work with invoicing, tendering
and project calculations (AVA in German).
It supports, among others, reading and writing of <a href="https://www.dangl-it.com/articles/what-is-gaeb/">GAEB files</a>. You can use AVACloud to integrate GAEB
features on any plattform.
</p>
<p>
The JavaScript client is released as package on npm: <a href="https://www.npmjs.com/package/@dangl/avacloud-client-javascript">@dangl/avacloud-client-javascript</a>.
<br>
<a href="https://www.dangl-it.com/articles/avacloud-clients/">Please check here for all other available
clients, such as .NET, Java, Node and PHP.</a>
</p>
<h3>Steps</h3>
<p>To be able to work with this demo, follow these steps:</p>
<ol>
<li>Enter your <i>ClientId</i> and <i>ClientSecret</i> values in the fields below, then click on <i>Fetch
Token</i>. If you don't have registered as developer yet, please consult <a href="docs.dangl-it.com/Projects/AVACloud/latest/howto/registration/developer_signup.html">the
official documentation.</a></li>
<li>
Perform the conversion and inspect the result.
</li>
</ol>
<p>If you have any questions, please contact Dangl<b>IT</b>. We're happy to help you!</p>
<h2>Live Demo</h2>
<h3>Access Token</h3>
<p>
Enter your <i>Client Id</i> and your <i>Client Secret</i> in the fields below, then fetch the token.
All requests to AVACloud must be authenticated.
</p>
<div class="form-group row">
<label class="col-md-2 control-label">Client Id</label>
<div class="col-md-10">
<input class="form-control" type="text" id="clientId">
</div>
</div>
<div class="form-group row">
<label class="col-md-2 control-label">Client Secret</label>
<div class="col-md-10">
<input class="form-control" id="clientSecret" type="password">
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="button" id="getTokenButton" class="btn btn-default">Get Token</button>
</div>
</div>
<div class="form-group row">
<label class="col-md-2 control-label">Access Token</label>
<div class="col-md-10">
<input class="form-control" disabled id="accessToken">
</div>
</div>
<p>
<b>Security Tip:</b>
AVACloud uses JWT tokens for authentication. <b>Do not give this generated token to anyone else</b>, as it might give them full access to AVACloud with your account for as long as the token is valid.
When you integrate AVACloud in your own product, do not expose the AVACloud tokens directly to the users. Instead, let your own server proxy the request to AVACloud.<br>
Please contact Dangl<b>IT</b> if you have any questions, we are happy to assist you in security related issues for web developers.
</p>
<h3>Conversion</h3>
<p>When you click the button below, this clients sends a bill of quantities with a single position named 'Concrete Wall' to AVACloud and prints the resulting GAEB file in your browser window.</p>
<div class="form-group mt-4">
<div class="col-md-offset-2 col-md-10">
<button type="button" id="createNewFileButton" class="btn btn-default">Create New File</button>
</div>
</div>
<h3>Result</h3>
<div id="resultContainer">
</div>
</div>
<footer class="gd-footer">
<div class="container">
<p>
<span class="gd-logo">GD</span>
<a href="https://www.dangl-it.com" target="_blank">© 2018: Dangl<b>IT</b> GmbH</a> –
<a href="https://www.dangl-it.com/products/avacloud-gaeb-saas/" target="_blank">
<strong>AVA</strong>Cloud
</a>
</p>
</div>
</footer>
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js">
</script>
<script>(window.jQuery || document.write("\u003Cscript src=\u0022\/lib\/jquery\/dist\/jquery.min.js\u0022\u003E\u003C\/script\u003E"));</script>
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/4.0.0/bootstrap.min.js">
</script>
<script>(window.jQuery && window.jQuery.fn && window.jQuery.fn.modal || document.write("\u003Cscript src=\u0022\/lib\/bootstrap\/dist\/js\/bootstrap.min.js\u0022\u003E\u003C\/script\u003E"));</script>
<!-- This the the bundle from the AVACloud client package -->
<script src="dist/avacloud.bundle.js"></script>
<script src="site.js"></script>
</body>
</html>