forked from wix-incubator/tpa-demo-app-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
333 lines (258 loc) · 13.6 KB
/
settings.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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!doctype html>
<html lang="en" ng-app="StarterApp">
<head>
<meta charset="UTF-8">
<title>Demo App - Settings</title>
<script src="//static.parastorage.com/services/js-sdk/1.77.0/js/wix.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
<script src="//static.parastorage.com/services/third-party/react/15.3.1/react-with-addons.min.js"></script>
<script src="//static.parastorage.com/services/third-party/react/15.3.1/react-dom.min.js"></script>
<script src="//static.parastorage.com/services/third-party/jquery/3.1.1/dist/jquery.min.js"></script>
<script src="//static.parastorage.com/services/third-party/lodash/4.17.2/lodash.js"></script>
<script src="//static.parastorage.com/services/editor-ui-lib/1.26.0/lib/editor-ui-lib-angular.min.js"></script>
<script src="dist/settings.js"></script>
</head>
<body ng-controller="AppCtrl as settings">
<wix-control name="UI.appSettings">
<wix-control name="UI.panelTabs" ref="panelTabs" props='{defaultTabIndex: settings.defaultTabIndex}' style="height:100%;">
<div class="main-tab" tab="Main">
<img class="app-logo" src="src/settings/svg/logo.svg" alt="app logo"/>
<p class="app-description">
This is the Wix App settings demo.<br>
Please add a short description of your App + CTA for the main action.
</p>
<wix-control name="UI.button" props="{label: 'Main CTA', className: 'btn-confirm-primary', onClick: settings.onButtonClicked}"></wix-control>
</div>
<div class="settings-tab" tab="Settings">
<wix-control name="UI.dropDownSelect" class="settings_onImageClick" props="{
title: 'When image is clicked',
defaultValue:'1',
options:[
{value: '1', label: 'Enter expand mode'},
{value: '2', label: 'Show on full screen'},
{value: '3', label: 'Do nothing'}
]
}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Enable functionality'}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.toggleSwitch" props="{label: 'Allow editing', defaultValue: true}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.toggleSwitch" props="{label: 'Allow deleting', defaultValue: true}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Display info'}"></wix-control>
<hr class="divider-long">
<wix-control class="settings_displayName" name="UI.checkbox" props="{label:'Name', defaultValue: false}"></wix-control>
<wix-control class="settings_displayTitle" name="UI.checkbox" props="{label:'Title', defaultValue: true}"></wix-control>
<wix-control class="settings_displayDescription" name="UI.checkbox" props="{label:'Description', defaultValue: true}"></wix-control>
<hr class="divider-long">
<wix-control class="settings_taxOnImage" name="UI.radioButtons" props="{
title: 'Do images show text?',
defaultValue: '0',
options:[{value: '0', label: 'A title and a description'},
{value: '1', label: 'Just a title'},
{value: '2', label: 'Just a description'}],
onClickPreview: settings.onUpdate('Alignment')
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.textInput" props="{
title: 'Text field',
defaultText:'Title'}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.textInput" props="{
title: 'Text area',
focus: true,
defaultText: 'Paragraph',
isMultiLine:true}">
</wix-control>
</div>
<div class="layout-tab" tab="Layout">
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'How does this gallery look?'}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.slider" props="{
title: 'Columns',
min: 1,
max: 36,
defaultValue: 7
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.slider" props="{
title: 'Spacing (px)',
min: 0,
max: 50,
defaultValue: 10,
units: 'px'
}">
</wix-control>
</div>
<div class="design-tab" tab="Design">
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Text & Background'}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.fontAndColorPicker" props="{
title: 'Title font and color',
startWithTheme: 'font_4',
startWithColor: 'color-5',
'wix-param-font': '_titleFont',
'wix-param-color':'_titleColor',
infoTitle: 'some info title',
infoText: 'some information text should be here'
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.fontAndColorPicker" props="{
title: 'Description font and color',
startWithTheme: 'font_8',
startWithColor: 'color-4',
'wix-param-font': '_descFont',
'wix-param-color':'_descColor',
infoTitle: 'some info title',
infoText: 'some information text should be here'
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.colorPickerSlider" props="{
title: 'Background color',
'wix-param': '_backgroundColor',
startWithColor: 'color-1',
startWithOpacity: 1,
onChange: settings.onUpdate('_backgroundColor')
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Search Field'}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.fontAndColorPicker" props="{
title: 'Input field font and color',
'wix-param-font': '_inputFont',
'wix-param-color':'_inputColor',
startWithTheme: 'font_8',
startWithColor: 'color-3',
infoTitle: 'some info title',
infoText: 'some information text should be here'
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.colorPickerSlider" props="{
title: 'Input field Background',
'wix-param': '_inputFieldBackground',
startWithColor: 'color-1',
startWithOpacity: 1,
onChange: settings.onUpdate('_inputFieldBackground')
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Button'}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.fontAndColorPicker" props="{
title: 'Button font and color',
'wix-param-font': '_btnFont',
'wix-param-color':'_btnTextColor',
startWithTheme: 'font_8',
startWithColor: 'color-1',
infoTitle: 'some info title',
infoText: 'some information text should be here'
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.colorPickerInput" props="{
title: 'Field Text',
'wix-param': '_btnBgColor',
startWithColor: 'color-8',
onChange: settings.onUpdate('_btnBgColor')
}">
</wix-control>
</div>
<div class="anymations-tab" tab="Animations">
<wix-control name="UI.dropDownSelect" class="animations_type" props="{
title: 'Animation',
defaultValue:'1',
options:[
{value: '1', label: 'Slide'},
{value: '2', label: 'Fade'},
{value: '3', label: 'Something else'}
]
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Animation settings', infoText: 'info text', infoTitle: 'info title'}"></wix-control>
<hr class="divider-long">
<wix-control class="animations_button" name="UI.button" props="{label: 'Play Animation', className: 'btn-confirm-secondary', icon: 'playAnimation'}"></wix-control>
<hr class="divider-long">
<wix-control name="UI.dropDownSelect" class="animations_direction" props="{
title: 'Direction',
defaultValue:'2',
options:[
{value: '0', label: 'From Top'},
{value: '1', label: 'From Right'},
{value: '2', label: 'From Bottom'},
{value: '3', label: 'From Left'}
]
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.slider" props="{
title: 'Delay (secs)',
min: 0,
max: 2,
step: 0.1,
defaultValue: 0.6,
units: 'sec'
}">
</wix-control>
<hr class="divider-long">
<wix-control name="UI.toggleSwitch" props="{label: 'Opposite effect', defaultValue: true}"></wix-control>
</div>
<div class="support-tab" tab="Support">
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Developer info'}"></wix-control>
<hr class="divider-long">
<ul class="developer-info">
<li>
<wix-control name="UI.symbol" props="{name: 'email'}"></wix-control>
</li>
<li>
<wix-control name="UI.symbol" props="{name: 'globe'}"></wix-control>
Developer Website
</li>
<li>
<wix-control name="UI.symbol" props="{name: 'phone'}"></wix-control>
1 408 974 4897
</li>
</ul>
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Review the app'}"></wix-control>
<hr class="divider-long">
<p class="review-paragraph">Have you enjoyed the app? Spread the word and rate us in the app market</p>
<div class="button-wrapper-center">
<wix-control name="UI.button" class="support_rateUs" props="{label: 'Rate Us', className: 'btn-confirm-primary'}"></wix-control>
</div>
<hr class="divider-long">
<wix-control name="UI.sectionDividerLabeled" props="{label: 'Send us a message'}"></wix-control>
<hr class="divider-long">
<wix-control class="support_email" name="UI.textInput" props="{
title: 'What\'s your email? (optional)',
placeholder: 'Email'}">
</wix-control>
<hr class="divider-short">
<wix-control class="support_message" name="UI.textInput" props="{
title: 'What do you want to tell us?',
placeholder: 'Write us your message (new feature idea / other issues)',
isMultiLine: true}">
</wix-control>
<hr class="divider-short">
<div class="button-wrapper-center">
<wix-control name="UI.button" class="support_sendButton" props="{label: 'Send'}"></wix-control>
</div>
</div>
<hr class="divider-short">
<wix-control name="UI.button" props="{label: 'Upgrade', className: 'btn-upgrade-nav'}"></wix-control>
</wix-control>
</wix-control>
</body>
</html>