aboutsummaryrefslogtreecommitdiff
path: root/tools/gui/resources/web/index.html
blob: 0b25c0e7c83a480b8e0c2caba042fce2f345d291 (plain) (blame)
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
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="author" content="tim-zh">
  <title>CBT</title>
  <link rel="stylesheet" href="styles.css">
  <link rel="stylesheet" href="highlight/hljs-cbt-theme.css">
</head>
<body>
<div id="notifications"></div>
<div id="popup">
  <div class="stroke" onclick="Popup.hide()">×</div>
  <table id="popup-table"></table>
</div>
<div class="container">

  <h1>CBT bootstrap</h1>

  <button class="small-btn" onclick="setFlowCreate()" id="flow-create-btn">create from scratch</button>
  or
  <button class="small-btn" onclick="setFlowCopy()" id="flow-copy-btn">copy an example</button>
  <hr>

  <div id="cwd" class="entry"><span>project location:</span> </div>

  <div id="flow-create">
    <div class="entry"><input type="text" id="name" placeholder="project name"></div>
    <div class="entry"><input type="text" id="package" placeholder="default package"></div>
    <hr>

    <div class="entry"><input type="text" id="query" placeholder="add maven dependency"></div>
    <button class="small-btn" onclick="Dependencies.search()" id="search-btn">search</button>
    <div id="dependencies"></div>
    <hr>

    <input type="checkbox" id="readme-flag"><label for="readme-flag">readme.md</label>
    <input type="checkbox" id="dotty-flag"><label for="dotty-flag">dotty</label>
    <input type="checkbox" id="uberJar-flag"><label for="uberJar-flag">uber jar</label>
    <input type="checkbox" id="wartremover-flag"><label for="wartremover-flag">wartremover</label>
    <hr>

    <button id="create-project-btn" onclick="createProject()">create project</button>
  </div>

  <div id="flow-copy">
    <span class="entry">
      <span id="examples-title">select an example:</span>
      <span class="removable" id="selected-example" onclick="Examples.unselectExample()"></span>
    </span>
    <hr>
    <div id="examples"></div>
    <div id="example-browser">
      <div id="file-browser"></div>
      <div id="code-browser"></div>
    </div>
    <hr>
    <button id="copy-project-btn" onclick="copyProject()">copy example</button>
  </div>

</div>
<script src="jquery-3.1.1.min.js"></script>
<script src="highlight/highlight.pack.js"></script>
<script src="definitions.js"></script>
<script src="main.js"></script>
</body>
</html>