-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
244 lines (231 loc) · 7.93 KB
/
index.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Sugarizer</title>
<link href="css/xocolor.css" rel="stylesheet" type="text/css" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover"/>
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="https://unpkg.com/vue@3"></script>
<script src="lib/axios.min.js"></script>
<script src="lib/require.js"></script>
<script type="text/javascript" src="cordova.js"></script>
<!-- Sugarizer classes -->
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script>if (window.module) module = window.module;</script>
</head>
<body id="body">
<div id="app">
<h2>Hello Sugarizer</h2>
<h3>{{ message }}</h3>
<icon-button ref="settings1"
text="My settings"
id="30"
svgfile="icons/preferences-system.svg"
size="24"
color="256"
v-on:button-click="openModal('settingModal')"
v-bind:disabled=false
></icon-button>
<dialog-box
ref="settingModal"
search-field="true"
ok-button="false"
cancel-button="true"
v-on:search-input="userSearchMethod($event)"
v-on:on-cancel="userCancelMethod('settingModal')"
>
<div class="dialog-items">
<div v-bind:class="(filtersettings.find(v => ('About me').includes(v))) ? '' :'dialog-item-disable'">
<div class="dialog-icon">
<icon id="31" svgfile="icons/owner-icon.svg" color="256" size="75"
></icon></div>
<div class="dialog-item-text">About me</div>
</div>
<div v-bind:class="(filtersettings.find(v => ('About my computer').includes(v))) ? '' :'dialog-item-disable'">
<div class="dialog-icon" v-on:click="openModal('aboutmycomputerModal')">
<icon id="32" svgfile="icons/module-about_my_computer.svg" color="256" size="75" is-native="true"
></icon></div>
<div class="dialog-item-text">About my computer</div>
</div>
<div v-bind:class="(filtersettings.find(v => ('About my server').includes(v))) ? '' :'dialog-item-disable'">
<div class="dialog-icon">
<icon id="33" svgfile="icons/cloud-settings.svg" color="256" size="75" is-native="true"
></icon></div>
<div class="dialog-item-text">About my server</div>
</div>
<div v-bind:class="(filtersettings.find(v => ('My privacy').includes(v))) ? '' :'dialog-item-disable'">
<div class="dialog-icon">
<icon id="34" svgfile="icons/login-icon.svg" color="256" size="75" is-native="true"
></icon></div>
<div class="dialog-item-text">My privacy</div>
</div>
<div v-bind:class="(filtersettings.find(v => ('My security').includes(v))) ? '' :'dialog-item-disable'">
<div class="dialog-icon">
<icon id="35" svgfile="icons/privacy.svg" color="256" size="75" is-native="true"
></icon></div>
<div class="dialog-item-text">My security</div>
</div>
<div v-bind:class="(filtersettings.find(v => ('Language').includes(v))) ? '' :'dialog-item-disable'">
<div class="dialog-icon">
<icon id="36" svgfile="icons/module-language.svg" color="256" size="75" is-native="true"
></icon></div>
<div class="dialog-item-text">Language</div>
</div>
</div>
</dialog-box>
<icon-button ref="settings2"
text="About my computer"
id="31"
svgfile="icons/owner-icon.svg"
size="28"
color="256"
v-on:button-click="openModal('aboutmycomputerModal')"
v-bind:disabled=false
></icon-button>
<dialog-box
ref="aboutmycomputerModal"
search-field="false"
ok-button="true"
cancel-button="true"
icon-data="icons/owner-icon.svg"
title-data="About my computer"
v-on:on-cancel="userCancelMethod('aboutmycomputerModal')"
v-on:on-ok="userOkMethod('aboutmycomputerModal')"
>
<div class="computer-content">
<div class="computer-software">Software</div>
<div>
<div class="computer-sugarizer">Sugarizer:</div>
<div class="computer-value">{{computerData.sugarizerVersion}}</div>
</div>
<div>
<div class="computer-clienttype">Client type:</div>
<div class="computer-value">{{computerData.clientName}}</div>
</div>
<div>
<div class="computer-browser">Browser:</div>
<div class="computer-value">{{computerData.browser}}</div>
</div>
<div>
<div class="computer-browserversion">Browser version:</div>
<div class="computer-value">{{computerData.browserVersion}}</div>
</div>
<div>
<div class="computer-useragent">User Agent:</div>
<div class="computer-value">{{computerData.useragent}}</div>
</div>
<div>
<div class="computer-storage">Storage:</div>
<div class="computer-value">{{computerData.storage}}</div>
</div>
<div class="computer-copyright">Copyright and license</div>
<div class="computer-contributor">© 2013-2022 Lionel Laské, Sugar Labs Inc and </div>
<div class="computer-contributor-link" v-bind:href="this.contributorsUrl">contributors</div>
<div class="computer-licence">Sugarizer is an open source software licensed under the Apache 2.0 license.</div>
<div class="computer-licence">Most activities use this license too but some could use a different license, check the README file for more information.</div>
</div>
</dialog-box>
<div class="password-demo">
<password v-on:password-set="passwordSet($event)"></password>
</div>
<div class="filterBox-demo">
<filter-box
ref="filterBox1" name="filterBox1"
v-bind:options="FilterBox1Data"
v-on:filter-selected="filterSelected($event)"
></filter-box>
<filter-box
ref="filterBox2" name="filterBox2"
v-bind:options="FilterBox2Data"
v-on:filter-selected="filterSelected($event)"
></filter-box>
</div>
<input type="button" value="Change Color" v-on:click="changeColor()"/>
<input type="button" value="Change Position" v-on:click="changePosition()"/>
<input type="button" value="Change Size" v-on:click="changeSize()"/>
<icon ref="icon1"
id="1"
svgfile="icons/old-owner.svg"
color="8"
size="60"
x="-2"
is-native="true"
></icon>
<icon ref="icon2"
id="2"
svgfile="icons/owner-icon.svg"
color="45"
size="50"
y="-2"
></icon>
<select-box
v-bind:options="selectBoxDummyData"
v-on:option-selected="optionSelected($event)"
></select-box>
<icon-button ref="buttonIcon1"
text="button one"
id="3"
svgfile="icons/abcd.svg"
size="28"
color="256"
v-on:button-click="buttonfunc1"
v-bind:disabled=false
></icon-button>
<icon-button ref="buttonIcon2"
text="button two"
id="29"
svgfile="icons/star.svg"
size="28"
color="256"
v-on:button-click="buttonfunc2"
v-bind:disabled=false
></icon-button>
<icon ref="popupIcon"
id="4"
svgfile="icons/star.svg"
color="65"
size="40"
y="10"
x="5"
v-on:mouseover="showPopupFunction($event)"
v-on:mouseleave="removePopupFunction($event)"
style="width: fit-content;"
></icon>
<icon ref="popupIcon"
id="5"
svgfile="icons/write.svg"
color="95"
size="40"
y="10"
x="5"
v-on:mouseover="showPopupFunction($event)"
v-on:mouseleave="removePopupFunction($event)"
style="width: fit-content;"
></icon>
<popup ref="popup"
v-bind:item="popupData"
v-on:mouseleave="removePopupFunction($event)"
v-on:itemis-clicked="itemisClicked($event)"
></popup>
<search-field
placeholder="search in home"
v-on:input-changed="searchFunction($event)"
></search-field>
<ul>
<li v-for="product in filterProducts" key="product.name">
Product Name : {{product.name}} - Price : {{product.price}} ({{product.category}})
</li>
</ul>
</div>
<script src="js/icon.js"></script>
<script src="js/iconbutton.js"></script>
<script src="js/searchfield.js"></script>
<script src="js/popup.js"></script>
<script src="js/selectbox.js"></script>
<script src="js/filterbox.js"></script>
<script src="js/password.js"></script>
<script src="js/dialog.js"></script>
<script src="js/app.js"></script>
</body>
</html>