Skip to content

Commit cbd906b

Browse files
committed
reorganizing samples
1 parent 0272adf commit cbd906b

File tree

6 files changed

+281
-128
lines changed

6 files changed

+281
-128
lines changed

GHUI/GHUI.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
<ItemGroup>
7474
<Compile Include="GHUIComponent.cs" />
7575
<Compile Include="GHUIInfo.cs" />
76-
<Compile Include="HtmlHandler.cs" />
7776
<Compile Include="Properties\AssemblyInfo.cs" />
7877
<Compile Include="Properties\Resources.Designer.cs">
7978
<AutoGen>True</AutoGen>
@@ -116,6 +115,8 @@
116115
<Resource Include="Resources\web-window.png">
117116
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
118117
</Resource>
118+
<Content Include="Web UI\InputBasic.html" />
119+
<Content Include="Web UI\InputVue.html" />
119120
<Content Include="Window.html">
120121
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
121122
</Content>
@@ -126,6 +127,7 @@
126127
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
127128
</EmbeddedResource>
128129
</ItemGroup>
130+
<ItemGroup />
129131
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
130132
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
131133
Other similar extension points exist, see Microsoft.Common.targets.
@@ -135,11 +137,9 @@
135137
</Target>
136138
-->
137139
<PropertyGroup>
138-
<PostBuildEvent>
139-
Copy "$(TargetPath)" "$(TargetDir)$(ProjectName).gha"
140-
copy "$(TargetDir)$(ProjectName).gha" "$(AppData)\Grasshopper\libraries"
141-
copy "$(TargetDir)" "$(AppData)\Grasshopper\libraries"
142-
</PostBuildEvent>
140+
<PostBuildEvent>Copy "$(TargetPath)" "$(TargetDir)$(ProjectName).gha"
141+
copy "$(TargetDir)$(ProjectName).gha" "$(AppData)\Grasshopper\libraries"
142+
</PostBuildEvent>
143143
</PropertyGroup>
144144
<PropertyGroup>
145145
<FallbackCulture>en-US</FallbackCulture>

GHUI/HtmlHandler.cs

Lines changed: 0 additions & 121 deletions
This file was deleted.

GHUI/Web UI/InputBasic.html

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
4+
<head>
5+
<meta charset="utf-8" />
6+
<title>HTML Bootstrap Grasshopper Interface</title>
7+
<meta name="author" content="Petr Mitev" />
8+
9+
<!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
10+
11+
<!-- BOOTSTRAP -->
12+
<link
13+
rel="stylesheet"
14+
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
15+
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
16+
crossorigin="anonymous"
17+
/>
18+
19+
<style>
20+
html,
21+
body {
22+
margin: 5px;
23+
padding: 0;
24+
}
25+
26+
ul {
27+
list-style-type: none;
28+
padding: 0;
29+
}
30+
31+
li {
32+
display: inline-block;
33+
margin: 0 10px;
34+
}
35+
36+
a {
37+
color: #42b983;
38+
}
39+
40+
.row {
41+
margin-bottom: 30px;
42+
}
43+
44+
#app {
45+
font-family: "Avenir", Helvetica, Arial, sans-serif;
46+
-webkit-font-smoothing: antialiased;
47+
-moz-osx-font-smoothing: grayscale;
48+
text-align: center;
49+
color: #2c3e50;
50+
}
51+
</style>
52+
</head>
53+
<body>
54+
<div id="app" class="container-fluid">
55+
<div class="row">
56+
<div class="span6" style="float: none; margin: 0 auto;">
57+
<h1>Bootstrap UI <span class="badge badge-secondary">WIP</span></h1>
58+
<div class="card" style="width: 18rem;">
59+
<img
60+
class="card-img-top"
61+
width="100px"
62+
src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Bootstrap_logo.svg/512px-Bootstrap_logo.svg.png"
63+
alt="Card image cap"
64+
/>
65+
<div class="card-body">
66+
<h5 class="card-title">Bootstrap</h5>
67+
<p class="card-text">
68+
Sample using a pre-built styling library to prototype a quick
69+
Grasshopoper User Interface.
70+
</p>
71+
<a
72+
href="https://getbootstrap.com/docs/4.0/getting-started/introduction/"
73+
class="btn btn-primary"
74+
>Documentation</a
75+
>
76+
</div>
77+
</div>
78+
</div>
79+
</div>
80+
81+
<!-- SLIDERS -->
82+
<div class="row">
83+
<div class="span6" style="float: none; margin: 0 auto;">
84+
<div>
85+
<input type="range" id="volume" name="volume" min="0" max="11" />
86+
<label for="volume">Volume</label>
87+
</div>
88+
89+
<div>
90+
<input type="range" id="cowbell" name="cowbell" min="0" max="100" />
91+
<label for="cowbell">Cowbell</label>
92+
</div>
93+
</div>
94+
</div>
95+
96+
<!-- CHECKBOXES -->
97+
<div class="row">
98+
<div class="span6" style="float: none; margin: 0 auto;">
99+
<div class="form-check form-check-inline">
100+
<input
101+
class="form-check-input"
102+
type="checkbox"
103+
id="inlineCheckbox1"
104+
value="option1"
105+
/>
106+
<label class="form-check-label" for="inlineCheckbox1">1</label>
107+
</div>
108+
<div class="form-check form-check-inline">
109+
<input
110+
class="form-check-input"
111+
type="checkbox"
112+
id="inlineCheckbox2"
113+
value="option2"
114+
/>
115+
<label class="form-check-label" for="inlineCheckbox2">2</label>
116+
</div>
117+
<div class="form-check form-check-inline">
118+
<input
119+
class="form-check-input"
120+
type="checkbox"
121+
id="inlineCheckbox3"
122+
value="option3"
123+
disabled
124+
/>
125+
<label class="form-check-label" for="inlineCheckbox3"
126+
>3 (disabled)</label
127+
>
128+
</div>
129+
</div>
130+
</div>
131+
132+
<!-- RADIO -->
133+
<div class="row">
134+
<div class="span6" style="float: none; margin: 0 auto;">
135+
<div class="form-check form-check-inline">
136+
<input
137+
class="form-check-input"
138+
type="radio"
139+
name="inlineRadioOptions"
140+
id="inlineRadio1"
141+
value="option1"
142+
/>
143+
<label class="form-check-label" for="inlineRadio1">1</label>
144+
</div>
145+
<div class="form-check form-check-inline">
146+
<input
147+
class="form-check-input"
148+
type="radio"
149+
name="inlineRadioOptions"
150+
id="inlineRadio2"
151+
value="option2"
152+
/>
153+
<label class="form-check-label" for="inlineRadio2">2</label>
154+
</div>
155+
<div class="form-check form-check-inline">
156+
<input
157+
class="form-check-input"
158+
type="radio"
159+
name="inlineRadioOptions"
160+
id="inlineRadio3"
161+
value="option3"
162+
disabled
163+
/>
164+
<label class="form-check-label" for="inlineRadio3"
165+
>3 (disabled)</label
166+
>
167+
</div>
168+
</div>
169+
</div>
170+
</div>
171+
<script></script>
172+
<script
173+
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
174+
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
175+
crossorigin="anonymous"
176+
></script>
177+
<script
178+
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
179+
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
180+
crossorigin="anonymous"
181+
></script>
182+
<script
183+
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
184+
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
185+
crossorigin="anonymous"
186+
></script>
187+
</body>
188+
</html>

0 commit comments

Comments
 (0)