create-basicjs 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/bin/create-basicjs.js +27 -1
- package/package.json +1 -1
- package/payload/projects/tauri/.github/workflows/build.yml +86 -0
- package/payload/projects/tauri/.github/workflows/tests.yml +87 -0
- package/payload/projects/tauri/AGENTS.md +128 -0
- package/payload/projects/tauri/CLAUDE.md +1 -0
- package/payload/projects/tauri/LICENSE +201 -0
- package/payload/projects/tauri/NOTICE +8 -0
- package/payload/projects/tauri/README.md +269 -0
- package/payload/projects/tauri/checks/window-check.js +189 -0
- package/payload/projects/tauri/gitignore +8 -0
- package/payload/projects/tauri/handbook/01-getting-started.md +188 -0
- package/payload/projects/tauri/handbook/02-the-project.md +264 -0
- package/payload/projects/tauri/handbook/03-the-page.md +260 -0
- package/payload/projects/tauri/handbook/04-commands.md +265 -0
- package/payload/projects/tauri/handbook/05-events-and-state.md +275 -0
- package/payload/projects/tauri/handbook/06-plugins.md +282 -0
- package/payload/projects/tauri/handbook/07-the-window-and-the-app.md +431 -0
- package/payload/projects/tauri/handbook/08-security.md +374 -0
- package/payload/projects/tauri/handbook/09-tests-and-checks.md +266 -0
- package/payload/projects/tauri/handbook/10-building-and-releasing.md +238 -0
- package/payload/projects/tauri/handbook/11-troubleshooting.md +259 -0
- package/payload/projects/tauri/handbook/README.md +125 -0
- package/payload/projects/tauri/handbook/turkce/01-getting-started.md +193 -0
- package/payload/projects/tauri/handbook/turkce/02-the-project.md +272 -0
- package/payload/projects/tauri/handbook/turkce/03-the-page.md +272 -0
- package/payload/projects/tauri/handbook/turkce/04-commands.md +271 -0
- package/payload/projects/tauri/handbook/turkce/05-events-and-state.md +284 -0
- package/payload/projects/tauri/handbook/turkce/06-plugins.md +286 -0
- package/payload/projects/tauri/handbook/turkce/07-the-window-and-the-app.md +433 -0
- package/payload/projects/tauri/handbook/turkce/08-security.md +384 -0
- package/payload/projects/tauri/handbook/turkce/09-tests-and-checks.md +275 -0
- package/payload/projects/tauri/handbook/turkce/10-building-and-releasing.md +241 -0
- package/payload/projects/tauri/handbook/turkce/11-troubleshooting.md +264 -0
- package/payload/projects/tauri/handbook/turkce/README.md +128 -0
- package/payload/projects/tauri/images/app.png +0 -0
- package/payload/projects/tauri/src-tauri/Cargo.lock +4389 -0
- package/payload/projects/tauri/src-tauri/Cargo.toml +31 -0
- package/payload/projects/tauri/src-tauri/app-icon.svg +16 -0
- package/payload/projects/tauri/src-tauri/build.rs +15 -0
- package/payload/projects/tauri/src-tauri/capabilities/default.json +7 -0
- package/payload/projects/tauri/src-tauri/gitignore +5 -0
- package/payload/projects/tauri/src-tauri/icons/128x128.png +0 -0
- package/payload/projects/tauri/src-tauri/icons/128x128@2x.png +0 -0
- package/payload/projects/tauri/src-tauri/icons/32x32.png +0 -0
- package/payload/projects/tauri/src-tauri/icons/icon.icns +0 -0
- package/payload/projects/tauri/src-tauri/icons/icon.ico +0 -0
- package/payload/projects/tauri/src-tauri/src/check.rs +144 -0
- package/payload/projects/tauri/src-tauri/src/files.rs +255 -0
- package/payload/projects/tauri/src-tauri/src/main.rs +45 -0
- package/payload/projects/tauri/src-tauri/src/sizes.rs +214 -0
- package/payload/projects/tauri/src-tauri/tauri.conf.json +44 -0
- package/payload/projects/tauri/src-tauri/tests/project.rs +243 -0
- package/payload/projects/tauri/ui/app.js +459 -0
- package/payload/projects/tauri/ui/backend.js +196 -0
- package/payload/projects/tauri/ui/basic/LICENSE +14 -0
- package/payload/projects/tauri/ui/basic/basic.min.css +1 -0
- package/payload/projects/tauri/ui/basic/basic.min.js +78 -0
- package/payload/projects/tauri/ui/basic/font/open-sans/LICENSE.txt +206 -0
- package/payload/projects/tauri/ui/basic/font/open-sans/OpenSans-Bold.ttf +0 -0
- package/payload/projects/tauri/ui/basic/font/open-sans/OpenSans-Regular.ttf +0 -0
- package/payload/projects/tauri/ui/basic/scroll-bar.min.js +3 -0
- package/payload/projects/tauri/ui/comp/_sources.txt +9 -0
- package/payload/projects/tauri/ui/comp/components.min.js +21 -0
- package/payload/projects/tauri/ui/index.html +28 -0
- package/payload/projects/tauri/ui/sizes.js +104 -0
- package/payload/starter/_basic/VERSION +1 -1
- package/payload/starter/_basic/comp/bottom-bar.js +31 -3
- package/payload/starter/_basic/comp/code-editor.js +219 -1
- package/payload/starter/_basic/comp/context-menu.js +6 -1
- package/payload/starter/_basic/comp/markdown-view.js +4 -2
- package/payload/starter/_basic/comp/property-panel.js +1 -1
- package/payload/starter/_basic/comp/slider.js +27 -12
- package/payload/starter/_basic/comp/smart-button.js +5 -1
- package/payload/starter/_basic/comp/smart-table.js +8 -1
- package/payload/starter/_basic/comp/stepper.js +29 -3
- package/payload/starter/_basic/comp/toggle.js +2 -1
- package/payload/starter/_basic/docs/component-index.md +53 -53
- package/payload/starter/_basic/examples/code-editor.htm +48 -1
- package/payload/starter/_basic/examples/gallery-styled.htm +896 -0
- package/payload/starter/_basic/examples/search-input.htm +1 -1
- package/payload/starter/_basic/examples/select-box-2-item-view.htm +304 -0
- package/payload/starter/_basic/examples/{slider-2-classic.htm → slider-2-split.htm} +36 -2
- package/payload/starter/_basic/examples/stepper-2.htm +22 -6
- package/payload/starter/_basic/min/bottom-bar.min.js +1 -1
- package/payload/starter/_basic/min/code-editor.min.js +1 -1
- package/payload/starter/_basic/min/context-menu.min.js +1 -1
- package/payload/starter/_basic/min/markdown-view.min.js +1 -1
- package/payload/starter/_basic/min/slider.min.js +1 -1
- package/payload/starter/_basic/min/smart-button.min.js +1 -1
- package/payload/starter/_basic/min/smart-table.min.js +1 -1
- package/payload/starter/_basic/min/stepper.min.js +1 -1
- package/payload/starter/_basic/min/toggle.min.js +1 -1
|
@@ -9,14 +9,14 @@ Each one: its file, the files it needs (load them first), and its examples.
|
|
|
9
9
|
Tab bar with underline and pill variants, counts, badges, closable tabs, a vertical mode and optional panels.
|
|
10
10
|
|
|
11
11
|
- file: `_basic/comp/tabs.js`
|
|
12
|
-
- examples: `_basic/examples/tabs.htm`, `_basic/examples/tabs-2.htm`, `_basic/examples/minimal-theme.htm`
|
|
12
|
+
- examples: `_basic/examples/tabs.htm`, `_basic/examples/tabs-2.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
13
13
|
|
|
14
14
|
### TreeView
|
|
15
15
|
|
|
16
16
|
A tree of nested items with lazy branches, keyboard and type-ahead: a file explorer, a category tree, a menu or design tool layers.
|
|
17
17
|
|
|
18
18
|
- file: `_basic/comp/tree-view.js`
|
|
19
|
-
- examples: `_basic/examples/tree-view.htm`, `_basic/examples/minimal-theme.htm`
|
|
19
|
+
- examples: `_basic/examples/tree-view.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
20
20
|
|
|
21
21
|
### Breadcrumbs
|
|
22
22
|
|
|
@@ -75,7 +75,7 @@ Mobile app bottom bar built from a JSON list of buttons, with badges; the name o
|
|
|
75
75
|
The steps of a job in a row: a cart, an address, a payment. A step that is behind has a check mark and can be clicked to go back, the step of now is filled. For a history of what happened: TimeLine. Light, dark and minimal looks.
|
|
76
76
|
|
|
77
77
|
- file: `_basic/comp/step-bar.js`
|
|
78
|
-
- examples: `_basic/examples/step-bar.htm`, `_basic/examples/minimal-theme.htm`
|
|
78
|
+
- examples: `_basic/examples/step-bar.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
79
79
|
|
|
80
80
|
### LeftMenu
|
|
81
81
|
|
|
@@ -98,7 +98,7 @@ Round floating action button in the corner of the screen; it opens a menu of act
|
|
|
98
98
|
A simple menu that opens at the mouse point, with text or icon items (SVG icons take the text color) and submenus.
|
|
99
99
|
|
|
100
100
|
- file: `_basic/comp/context-menu.js`
|
|
101
|
-
- examples: `_basic/examples/context-menu.htm`, `_basic/examples/minimal-theme.htm`
|
|
101
|
+
- examples: `_basic/examples/context-menu.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
102
102
|
|
|
103
103
|
### MenuBar
|
|
104
104
|
|
|
@@ -106,7 +106,7 @@ The row of menus at the top of a window: File, Edit, View. Shortcuts, check mark
|
|
|
106
106
|
|
|
107
107
|
- file: `_basic/comp/menu-bar.js`
|
|
108
108
|
- needs: `_basic/comp/context-menu.js`
|
|
109
|
-
- examples: `_basic/examples/menu-bar.htm`, `_basic/examples/menu-bar-2.htm`, `_basic/examples/minimal-theme.htm`
|
|
109
|
+
- examples: `_basic/examples/menu-bar.htm`, `_basic/examples/menu-bar-2.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
110
110
|
|
|
111
111
|
### ToolBar
|
|
112
112
|
|
|
@@ -114,14 +114,14 @@ The row of small buttons of a window, under its menus: icons with a hint, lines
|
|
|
114
114
|
|
|
115
115
|
- file: `_basic/comp/tool-bar.js`
|
|
116
116
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/context-menu.js`, `_basic/comp/menu-bar.js`
|
|
117
|
-
- examples: `_basic/examples/tool-bar.htm`, `_basic/examples/minimal-theme.htm`
|
|
117
|
+
- examples: `_basic/examples/tool-bar.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
118
118
|
|
|
119
119
|
### SmartButton
|
|
120
120
|
|
|
121
121
|
The default button: an icon and a text (or one of them; an empty text makes an icon button). The look in three steps: styleName (the template: ozden ... ozden4, pill, outlined, ozdenDark-4Dark, minimal, minimalDark), tone (white, cyan, orange, yellow, green, blue, and blueDark... for a dark page) and style (your own colors: the color and the color under the mouse; pressed, it gets darker by itself). A waiting clock or dots while a job runs, and a two-click ask with a bubble.
|
|
122
122
|
|
|
123
123
|
- file: `_basic/comp/smart-button.js`
|
|
124
|
-
- examples: `_basic/examples/smart-button.htm`, `_basic/examples/smart-button-3-ozden.htm`, `_basic/examples/smart-button-alternatif.htm`, `_basic/examples/smart-button-4-dark.htm`, `_basic/examples/smart-button-5-features.htm`, `_basic/examples/minimal-theme.htm`
|
|
124
|
+
- examples: `_basic/examples/smart-button.htm`, `_basic/examples/smart-button-3-ozden.htm`, `_basic/examples/smart-button-alternatif.htm`, `_basic/examples/smart-button-4-dark.htm`, `_basic/examples/smart-button-5-features.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
125
125
|
|
|
126
126
|
### HoldToConfirmButton
|
|
127
127
|
|
|
@@ -144,7 +144,7 @@ A filter menu: a button and a panel with a search field, groups of check boxes,
|
|
|
144
144
|
A list of items with an icon, a title and a description (or your own rows): vertical, horizontal or grid, single or multiple selection, section titles, search and keyboard; a picture gallery; a pressed flash and animated add / remove.
|
|
145
145
|
|
|
146
146
|
- file: `_basic/comp/item-list.js`
|
|
147
|
-
- examples: `_basic/examples/item-list.htm`, `_basic/examples/item-list-2.htm`, `_basic/examples/minimal-theme.htm`
|
|
147
|
+
- examples: `_basic/examples/item-list.htm`, `_basic/examples/item-list-2.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
148
148
|
|
|
149
149
|
### SelectBox
|
|
150
150
|
|
|
@@ -152,7 +152,7 @@ Dropdown select for single or multiple selection, with select all and clear.
|
|
|
152
152
|
|
|
153
153
|
- file: `_basic/comp/select-box.js`
|
|
154
154
|
- needs: `_basic/comp/search-input.js`
|
|
155
|
-
- examples: `_basic/examples/select-box.htm`, `_basic/examples/select-box-ozden-item.htm`, `_basic/examples/select-box-ozden-text.htm`, `_basic/examples/select-box-ozden-dark-text.htm`, `_basic/examples/minimal-theme.htm`
|
|
155
|
+
- examples: `_basic/examples/select-box.htm`, `_basic/examples/select-box-2-item-view.htm`, `_basic/examples/select-box-ozden-item.htm`, `_basic/examples/select-box-ozden-text.htm`, `_basic/examples/select-box-ozden-dark-text.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
156
156
|
|
|
157
157
|
### FullScreenSelect
|
|
158
158
|
|
|
@@ -167,21 +167,21 @@ A select field whose list opens on the whole screen, with a search box: for phon
|
|
|
167
167
|
Date picker as a popup or an always visible calendar, with a month and year view.
|
|
168
168
|
|
|
169
169
|
- file: `_basic/comp/date-picker.js`
|
|
170
|
-
- examples: `_basic/examples/date-picker.htm`, `_basic/examples/minimal-theme.htm`
|
|
170
|
+
- examples: `_basic/examples/date-picker.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
171
171
|
|
|
172
172
|
### TimePicker
|
|
173
173
|
|
|
174
174
|
Time picker with scrollable hour and minute columns, as a popup or inline.
|
|
175
175
|
|
|
176
176
|
- file: `_basic/comp/time-picker.js`
|
|
177
|
-
- examples: `_basic/examples/time-picker.htm`, `_basic/examples/minimal-theme.htm`
|
|
177
|
+
- examples: `_basic/examples/time-picker.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
178
178
|
|
|
179
179
|
### ColorPicker
|
|
180
180
|
|
|
181
181
|
Color picker: a field that opens a palette, or an always visible palette.
|
|
182
182
|
|
|
183
183
|
- file: `_basic/comp/color-picker.js`
|
|
184
|
-
- examples: `_basic/examples/color-picker.htm`, `_basic/examples/minimal-theme.htm`
|
|
184
|
+
- examples: `_basic/examples/color-picker.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
185
185
|
|
|
186
186
|
### PeriodBar
|
|
187
187
|
|
|
@@ -195,21 +195,21 @@ A month switcher: this month and the months before it in a white capsule, with r
|
|
|
195
195
|
Check box with a label, drawn with code; classic, modern, dark, minimal and minimalDark style packages.
|
|
196
196
|
|
|
197
197
|
- file: `_basic/comp/check-box.js`
|
|
198
|
-
- examples: `_basic/examples/check-box.htm`, `_basic/examples/check-box-2.htm`, `_basic/examples/check-box-3.htm`, `_basic/examples/minimal-theme.htm`
|
|
198
|
+
- examples: `_basic/examples/check-box.htm`, `_basic/examples/check-box-2.htm`, `_basic/examples/check-box-3.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
199
199
|
|
|
200
200
|
### RadioButton
|
|
201
201
|
|
|
202
202
|
Radio buttons that work in groups, with keyboard support and style packages.
|
|
203
203
|
|
|
204
204
|
- file: `_basic/comp/radio-button.js`
|
|
205
|
-
- examples: `_basic/examples/radio-button.htm`, `_basic/examples/radio-button-2.htm`, `_basic/examples/radio-button-3.htm`, `_basic/examples/minimal-theme.htm`
|
|
205
|
+
- examples: `_basic/examples/radio-button.htm`, `_basic/examples/radio-button-2.htm`, `_basic/examples/radio-button-3.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
206
206
|
|
|
207
207
|
### Toggle
|
|
208
208
|
|
|
209
209
|
On and off switch for light and dark pages. Many looks: ozden (the default), light and dark (the look of the kit), classic, the shapes float, round, slim, outline and square, and tick, badge and label with a check, a cross or a text.
|
|
210
210
|
|
|
211
211
|
- file: `_basic/comp/toggle.js`
|
|
212
|
-
- examples: `_basic/examples/toggle.htm`, `_basic/examples/toggle-2.htm`, `_basic/examples/toggle-3.htm`, `_basic/examples/minimal-theme.htm`
|
|
212
|
+
- examples: `_basic/examples/toggle.htm`, `_basic/examples/toggle-2.htm`, `_basic/examples/toggle-3.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
213
213
|
|
|
214
214
|
### TinySelect
|
|
215
215
|
|
|
@@ -232,7 +232,7 @@ Number keys on the screen for a PIN, an amount or a kiosk: two layouts, a hidden
|
|
|
232
232
|
Drop zone and file dialog that lists the chosen files with image previews and sizes.
|
|
233
233
|
|
|
234
234
|
- file: `_basic/comp/file-picker.js`
|
|
235
|
-
- examples: `_basic/examples/file-picker.htm`, `_basic/examples/minimal-theme.htm`
|
|
235
|
+
- examples: `_basic/examples/file-picker.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
236
236
|
|
|
237
237
|
### TagInput
|
|
238
238
|
|
|
@@ -243,17 +243,17 @@ A field of chips for tags, keywords or e-mails, with suggestions, validation and
|
|
|
243
243
|
|
|
244
244
|
### Stepper
|
|
245
245
|
|
|
246
|
-
Number stepper with decimals, a unit, typed editing and hold-to-repeat buttons. A line around the buttons and a round look (ozden).
|
|
246
|
+
Number stepper with decimals, a unit, typed editing and hold-to-repeat buttons. A line around the buttons and a round look (ozden; ozdenDark on a dark page).
|
|
247
247
|
|
|
248
248
|
- file: `_basic/comp/stepper.js`
|
|
249
|
-
- examples: `_basic/examples/stepper.htm`, `_basic/examples/stepper-2.htm`, `_basic/examples/minimal-theme.htm`
|
|
249
|
+
- examples: `_basic/examples/stepper.htm`, `_basic/examples/stepper-2.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
250
250
|
|
|
251
251
|
### SliderField
|
|
252
252
|
|
|
253
253
|
A slider in the shape of a field: the label at the left, the value at the right, step dots, drag, click to jump and typed editing. The ozden look: a cyan fill with a white knob that never cuts a text.
|
|
254
254
|
|
|
255
255
|
- file: `_basic/comp/slider-field.js`
|
|
256
|
-
- examples: `_basic/examples/slider-field.htm`, `_basic/examples/slider-field-ozden.htm`, `_basic/examples/minimal-theme.htm`
|
|
256
|
+
- examples: `_basic/examples/slider-field.htm`, `_basic/examples/slider-field-ozden.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
257
257
|
|
|
258
258
|
### PropertyPanel
|
|
259
259
|
|
|
@@ -282,14 +282,14 @@ A simple rich text editor with a toolbar (bold, headings, lists, quote, link, un
|
|
|
282
282
|
A list whose order is changed by drag and drop, the keyboard or up / down buttons, with locked rows.
|
|
283
283
|
|
|
284
284
|
- file: `_basic/comp/sortable-list.js`
|
|
285
|
-
- examples: `_basic/examples/sortable-list.htm`
|
|
285
|
+
- examples: `_basic/examples/sortable-list.htm`, `_basic/examples/gallery-styled.htm`
|
|
286
286
|
|
|
287
287
|
### CodeEditor
|
|
288
288
|
|
|
289
|
-
A text editor for code: line numbers, colors for Python, JavaScript, JSON, HTML, CSS, SQL and Bash, indent keys, and a file of 100000 lines stays fast. Light and dark themes.
|
|
289
|
+
A text editor for code: line numbers, colors for Python, JavaScript, Go, Ruby, JSON, HTML, CSS, SQL and Bash, indent keys, and a file of 100000 lines stays fast. Light and dark themes.
|
|
290
290
|
|
|
291
291
|
- file: `_basic/comp/code-editor.js`
|
|
292
|
-
- examples: `_basic/examples/code-editor.htm`, `_basic/examples/code-editor-2.htm`
|
|
292
|
+
- examples: `_basic/examples/code-editor.htm`, `_basic/examples/code-editor-2.htm`, `_basic/examples/gallery-styled.htm`
|
|
293
293
|
|
|
294
294
|
### TextField
|
|
295
295
|
|
|
@@ -297,7 +297,7 @@ Labeled text field with an icon, a unit, hints and validation; the base of Email
|
|
|
297
297
|
|
|
298
298
|
- file: `_basic/comp/text-field.js`
|
|
299
299
|
- needs: `_basic/comp/tooltip.js`
|
|
300
|
-
- examples: `_basic/examples/text-field-8-light-dark.htm`, `_basic/examples/text-field.htm`, `_basic/examples/text-field-2.htm`, `_basic/examples/text-field-3-style.htm`, `_basic/examples/text-field-4-custom-unit.htm`, `_basic/examples/text-field-5-warning-icon.htm`, `_basic/examples/text-field-6-modern-dark.htm`, `_basic/examples/text-field-7-modern.htm`, `_basic/examples/minimal-theme.htm`
|
|
300
|
+
- examples: `_basic/examples/text-field-8-light-dark.htm`, `_basic/examples/text-field.htm`, `_basic/examples/text-field-2.htm`, `_basic/examples/text-field-3-style.htm`, `_basic/examples/text-field-4-custom-unit.htm`, `_basic/examples/text-field-5-warning-icon.htm`, `_basic/examples/text-field-6-modern-dark.htm`, `_basic/examples/text-field-7-modern.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
301
301
|
|
|
302
302
|
### EmailField
|
|
303
303
|
|
|
@@ -305,7 +305,7 @@ A TextField that checks e-mail addresses.
|
|
|
305
305
|
|
|
306
306
|
- file: `_basic/comp/email-field.js`
|
|
307
307
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/text-field.js`
|
|
308
|
-
- examples: `_basic/examples/email-field.htm`, `_basic/examples/minimal-theme.htm`
|
|
308
|
+
- examples: `_basic/examples/email-field.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
309
309
|
|
|
310
310
|
### PasswordField
|
|
311
311
|
|
|
@@ -313,7 +313,7 @@ Password field with a show and hide button.
|
|
|
313
313
|
|
|
314
314
|
- file: `_basic/comp/password-field.js`
|
|
315
315
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/text-field.js`
|
|
316
|
-
- examples: `_basic/examples/password-field.htm`, `_basic/examples/minimal-theme.htm`
|
|
316
|
+
- examples: `_basic/examples/password-field.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
317
317
|
|
|
318
318
|
### NumberField
|
|
319
319
|
|
|
@@ -321,7 +321,7 @@ A TextField that accepts only numbers.
|
|
|
321
321
|
|
|
322
322
|
- file: `_basic/comp/number-field.js`
|
|
323
323
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/text-field.js`
|
|
324
|
-
- examples: `_basic/examples/number-field.htm`
|
|
324
|
+
- examples: `_basic/examples/number-field.htm`, `_basic/examples/gallery-styled.htm`
|
|
325
325
|
|
|
326
326
|
### PhoneField
|
|
327
327
|
|
|
@@ -329,7 +329,7 @@ Phone number field with a country code; one example opens a country list.
|
|
|
329
329
|
|
|
330
330
|
- file: `_basic/comp/phone-field.js`
|
|
331
331
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/text-field.js`
|
|
332
|
-
- examples: `_basic/examples/phone-field.htm`, `_basic/examples/phone-field-select-country.htm`
|
|
332
|
+
- examples: `_basic/examples/phone-field.htm`, `_basic/examples/phone-field-select-country.htm`, `_basic/examples/gallery-styled.htm`
|
|
333
333
|
|
|
334
334
|
### CurrencyField
|
|
335
335
|
|
|
@@ -337,7 +337,7 @@ Money field that formats the amount and shows its currency.
|
|
|
337
337
|
|
|
338
338
|
- file: `_basic/comp/currency-field.js`
|
|
339
339
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/text-field.js`
|
|
340
|
-
- examples: `_basic/examples/currency-field.htm`
|
|
340
|
+
- examples: `_basic/examples/currency-field.htm`, `_basic/examples/gallery-styled.htm`
|
|
341
341
|
|
|
342
342
|
### UrlField
|
|
343
343
|
|
|
@@ -345,7 +345,7 @@ Web address field with a protocol selector.
|
|
|
345
345
|
|
|
346
346
|
- file: `_basic/comp/url-field.js`
|
|
347
347
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/text-field.js`, `_basic/comp/tiny-select.js`
|
|
348
|
-
- examples: `_basic/examples/url-field.htm`
|
|
348
|
+
- examples: `_basic/examples/url-field.htm`, `_basic/examples/gallery-styled.htm`
|
|
349
349
|
|
|
350
350
|
### TextAreaField
|
|
351
351
|
|
|
@@ -353,28 +353,28 @@ Multi-line text field in the TextField style, with a character counter.
|
|
|
353
353
|
|
|
354
354
|
- file: `_basic/comp/text-area-field.js`
|
|
355
355
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/text-field.js`
|
|
356
|
-
- examples: `_basic/examples/text-area-field.htm`, `_basic/examples/minimal-theme.htm`
|
|
356
|
+
- examples: `_basic/examples/text-area-field.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
357
357
|
|
|
358
358
|
### SearchInput
|
|
359
359
|
|
|
360
360
|
Search field with a search icon and a clear button.
|
|
361
361
|
|
|
362
362
|
- file: `_basic/comp/search-input.js`
|
|
363
|
-
- examples: `_basic/examples/search-input.htm`, `_basic/examples/search-input-2-light.htm`, `_basic/examples/search-input-3-dark.htm`, `_basic/examples/search-input-place.htm`, `_basic/examples/minimal-theme.htm`
|
|
363
|
+
- examples: `_basic/examples/search-input.htm`, `_basic/examples/search-input-2-light.htm`, `_basic/examples/search-input-3-dark.htm`, `_basic/examples/search-input-place.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
364
364
|
|
|
365
365
|
### Slider
|
|
366
366
|
|
|
367
|
-
Slider for choosing a value in a range, on a step. Looks: round (a thin track and a round white knob: the look of new pages), roundDark for a dark page, and
|
|
367
|
+
Slider for choosing a value in a range, on a step. Looks: round (a thin track and a round white knob: the look of new pages), roundDark for a dark page, and split (inspired by Material 3; splitDark for a dark page).
|
|
368
368
|
|
|
369
369
|
- file: `_basic/comp/slider.js`
|
|
370
|
-
- examples: `_basic/examples/slider.htm`, `_basic/examples/slider-2-
|
|
370
|
+
- examples: `_basic/examples/slider.htm`, `_basic/examples/slider-2-split.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
371
371
|
|
|
372
372
|
### RangeSlider
|
|
373
373
|
|
|
374
374
|
A range of values on a thin bar: two knobs and the part between them: a price, the hours of a day. A step, the smallest distance, its own text in the bubble, the keyboard. Light and dark looks.
|
|
375
375
|
|
|
376
376
|
- file: `_basic/comp/range-slider.js`
|
|
377
|
-
- examples: `_basic/examples/range-slider.htm`, `_basic/examples/minimal-theme.htm`
|
|
377
|
+
- examples: `_basic/examples/range-slider.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
378
378
|
|
|
379
379
|
## feedback
|
|
380
380
|
|
|
@@ -383,7 +383,7 @@ A range of values on a thin bar: two knobs and the part between them: a price, t
|
|
|
383
383
|
Horizontal progress bar with a title and a value text; determinate or indeterminate. Two parts (70 + 5) in their own colors, moving stripes, limit lines and a dark track.
|
|
384
384
|
|
|
385
385
|
- file: `_basic/comp/progress-bar.js`
|
|
386
|
-
- examples: `_basic/examples/progress-bar.htm`, `_basic/examples/progress-bar-ozden.htm`, `_basic/examples/minimal-theme.htm`
|
|
386
|
+
- examples: `_basic/examples/progress-bar.htm`, `_basic/examples/progress-bar-ozden.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
387
387
|
|
|
388
388
|
### Dialog
|
|
389
389
|
|
|
@@ -391,7 +391,7 @@ A dialog over the page with fields and buttons: a button that asks again, a wait
|
|
|
391
391
|
|
|
392
392
|
- file: `_basic/comp/dialog.js`
|
|
393
393
|
- needs: `_basic/comp/tooltip.js`, `_basic/comp/text-field.js`, `_basic/comp/smart-button.js`
|
|
394
|
-
- examples: `_basic/examples/dialog.htm`, `_basic/examples/dialog-centered.htm`, `_basic/examples/minimal-theme.htm`
|
|
394
|
+
- examples: `_basic/examples/dialog.htm`, `_basic/examples/dialog-centered.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
395
395
|
|
|
396
396
|
### Notice
|
|
397
397
|
|
|
@@ -405,14 +405,14 @@ A short message in the middle of the screen over a soft cover: five types, an ic
|
|
|
405
405
|
Short messages that come and go: success, error, loading, and actions like Undo.
|
|
406
406
|
|
|
407
407
|
- file: `_basic/comp/toast.js`
|
|
408
|
-
- examples: `_basic/examples/toast.htm`, `_basic/examples/minimal-theme.htm`
|
|
408
|
+
- examples: `_basic/examples/toast.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
409
409
|
|
|
410
410
|
### StatusBar
|
|
411
411
|
|
|
412
412
|
The thin bar at the bottom of a window: a short message that can go away by itself, a turning circle for a job, small parts that can be clicked. Light and dark themes.
|
|
413
413
|
|
|
414
414
|
- file: `_basic/comp/status-bar.js`
|
|
415
|
-
- examples: `_basic/examples/status-bar.htm`, `_basic/examples/minimal-theme.htm`
|
|
415
|
+
- examples: `_basic/examples/status-bar.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
416
416
|
|
|
417
417
|
### SidePanel
|
|
418
418
|
|
|
@@ -442,7 +442,7 @@ A progress bar drawn with vertical lines: thin, or thick with round ends; the va
|
|
|
442
442
|
A hint bubble over an object: it follows the mouse or stays at the object, with an optional bordered arrow, always inside the screen; your own content in it, or a popover that stays and can be clicked.
|
|
443
443
|
|
|
444
444
|
- file: `_basic/comp/tooltip.js`
|
|
445
|
-
- examples: `_basic/examples/tooltip.htm`, `_basic/examples/tooltip-2.htm`, `_basic/examples/tooltip-3.htm`, `_basic/examples/tooltip-4.htm`, `_basic/examples/minimal-theme.htm`
|
|
445
|
+
- examples: `_basic/examples/tooltip.htm`, `_basic/examples/tooltip-2.htm`, `_basic/examples/tooltip-3.htm`, `_basic/examples/tooltip-4.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
446
446
|
|
|
447
447
|
### Badge
|
|
448
448
|
|
|
@@ -458,7 +458,7 @@ Notification badge on an object: a dot or a number; 0 and 1 can be shown as numb
|
|
|
458
458
|
Charts with no library: one file draws them as SVG. Line, area, bar, pie, doughnut, radar, scatter and bubble, with a tooltip, a legend, a table and its themes (light, dark, minimal).
|
|
459
459
|
|
|
460
460
|
- file: `_basic/comp/graph-box.js`
|
|
461
|
-
- examples: `_basic/examples/graph-box.htm`, `_basic/examples/minimal-theme.htm`
|
|
461
|
+
- examples: `_basic/examples/graph-box.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
462
462
|
|
|
463
463
|
### Gauge
|
|
464
464
|
|
|
@@ -494,7 +494,7 @@ A value of JSON as a tree: the answer of a server, a settings file. Keys and val
|
|
|
494
494
|
|
|
495
495
|
- file: `_basic/comp/json-view.js`
|
|
496
496
|
- needs: `_basic/comp/tree-view.js`, `_basic/comp/context-menu.js`
|
|
497
|
-
- examples: `_basic/examples/json-view.htm`
|
|
497
|
+
- examples: `_basic/examples/json-view.htm`, `_basic/examples/gallery-styled.htm`
|
|
498
498
|
|
|
499
499
|
### JsonEditor
|
|
500
500
|
|
|
@@ -502,7 +502,7 @@ A list or an object of JSON written in a table: add, sort and drag rows; a switc
|
|
|
502
502
|
|
|
503
503
|
- file: `_basic/comp/json-editor.js`
|
|
504
504
|
- needs: `_basic/comp/context-menu.js`, `_basic/comp/search-input.js`
|
|
505
|
-
- examples: `_basic/examples/json-editor.htm`, `_basic/examples/minimal-theme.htm`
|
|
505
|
+
- examples: `_basic/examples/json-editor.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
506
506
|
|
|
507
507
|
### MarkdownView
|
|
508
508
|
|
|
@@ -510,7 +510,7 @@ A text written in Markdown, drawn on the page: a report, the answer of an AI. He
|
|
|
510
510
|
|
|
511
511
|
- file: `_basic/comp/markdown-view.js`
|
|
512
512
|
- needs: `_basic/comp/code-editor.js`
|
|
513
|
-
- examples: `_basic/examples/markdown-view.htm`
|
|
513
|
+
- examples: `_basic/examples/markdown-view.htm`, `_basic/examples/gallery-styled.htm`
|
|
514
514
|
|
|
515
515
|
### ChatView
|
|
516
516
|
|
|
@@ -518,14 +518,14 @@ A conversation with an AI: the messages of the user in bubbles, the answers draw
|
|
|
518
518
|
|
|
519
519
|
- file: `_basic/comp/chat-view.js`
|
|
520
520
|
- needs: `_basic/comp/code-editor.js`, `_basic/comp/markdown-view.js`, `_basic/comp/scroll-area.js`
|
|
521
|
-
- examples: `_basic/examples/chat-view.htm`, `_basic/examples/minimal-theme.htm`
|
|
521
|
+
- examples: `_basic/examples/chat-view.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
522
522
|
|
|
523
523
|
### LogView
|
|
524
524
|
|
|
525
525
|
The output of a program: colored lines with their time and level, following the last line. Fast output is drawn in batches. Light and dark themes.
|
|
526
526
|
|
|
527
527
|
- file: `_basic/comp/log-view.js`
|
|
528
|
-
- examples: `_basic/examples/log-view.htm`
|
|
528
|
+
- examples: `_basic/examples/log-view.htm`, `_basic/examples/gallery-styled.htm`
|
|
529
529
|
|
|
530
530
|
### ScrollingText
|
|
531
531
|
|
|
@@ -556,14 +556,14 @@ Virtual-scroll table for millions of rows, with filtering, sorting, custom cells
|
|
|
556
556
|
|
|
557
557
|
- file: `_basic/comp/smart-table.js`
|
|
558
558
|
- needs: `_basic/comp/search-input.js`, `_basic/comp/context-menu.js`, `_basic/comp/tooltip.js`
|
|
559
|
-
- examples: `_basic/examples/smart-table.htm`, `_basic/examples/smart-table-2.htm`, `_basic/examples/smart-table-3.htm`, `_basic/examples/smart-table-4.htm`, `_basic/examples/smart-table-5.htm`, `_basic/examples/minimal-theme.htm`
|
|
559
|
+
- examples: `_basic/examples/smart-table.htm`, `_basic/examples/smart-table-2.htm`, `_basic/examples/smart-table-3.htm`, `_basic/examples/smart-table-4.htm`, `_basic/examples/smart-table-5.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
560
560
|
|
|
561
561
|
### Canvas
|
|
562
562
|
|
|
563
563
|
A place to draw on: lines, rectangles, circles, polygons, texts and pictures, each with a key; a click finds the shape, a shape can be dragged, free drawing with a pen, the drawing as a picture. Light and dark looks.
|
|
564
564
|
|
|
565
565
|
- file: `_basic/comp/canvas.js`
|
|
566
|
-
- examples: `_basic/examples/canvas.htm`
|
|
566
|
+
- examples: `_basic/examples/canvas.htm`, `_basic/examples/gallery-styled.htm`
|
|
567
567
|
|
|
568
568
|
## pages
|
|
569
569
|
|
|
@@ -572,42 +572,42 @@ A place to draw on: lines, rectangles, circles, polygons, texts and pictures, ea
|
|
|
572
572
|
Sections that fold: a title row and the objects under it, one or more open, with a note, an icon and the keyboard. A closed section keeps its objects. Light and dark themes.
|
|
573
573
|
|
|
574
574
|
- file: `_basic/comp/accordion.js`
|
|
575
|
-
- examples: `_basic/examples/accordion.htm`, `_basic/examples/minimal-theme.htm`
|
|
575
|
+
- examples: `_basic/examples/accordion.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
576
576
|
|
|
577
577
|
### GridGroup
|
|
578
578
|
|
|
579
579
|
A group whose objects stand in columns and rows: a form of titles and fields, the keys of a calculator, tiles. Equal columns, px, parts of the room, an object over more than one cell.
|
|
580
580
|
|
|
581
581
|
- file: `_basic/comp/grid-group.js`
|
|
582
|
-
- examples: `_basic/examples/grid-group.htm`
|
|
582
|
+
- examples: `_basic/examples/grid-group.htm`, `_basic/examples/gallery-styled.htm`
|
|
583
583
|
|
|
584
584
|
### ScrollArea
|
|
585
585
|
|
|
586
586
|
A box whose content scrolls, in one call: the page of a window, or a list between two bars (in a group it takes the room the other objects leave). The scroll bar of the kit; light, dark and minimal.
|
|
587
587
|
|
|
588
588
|
- file: `_basic/comp/scroll-area.js`
|
|
589
|
-
- examples: `_basic/examples/scroll-area.htm`
|
|
589
|
+
- examples: `_basic/examples/scroll-area.htm`, `_basic/examples/gallery-styled.htm`
|
|
590
590
|
|
|
591
591
|
### Splitter
|
|
592
592
|
|
|
593
593
|
Two areas with a line between them: a drag changes their sizes, side by side or one under the other. Keyboard, limits, sizes that follow the window. Light and dark themes.
|
|
594
594
|
|
|
595
595
|
- file: `_basic/comp/splitter.js`
|
|
596
|
-
- examples: `_basic/examples/splitter.htm`, `_basic/examples/minimal-theme.htm`
|
|
596
|
+
- examples: `_basic/examples/splitter.htm`, `_basic/examples/minimal-theme.htm`, `_basic/examples/gallery-styled.htm`
|
|
597
597
|
|
|
598
598
|
### ImageView
|
|
599
599
|
|
|
600
600
|
A place to look at a picture or a plot: zoom with the wheel or two fingers, move with a drag, a small toolbar. A plot that is drawn again does not blink. Light and dark themes.
|
|
601
601
|
|
|
602
602
|
- file: `_basic/comp/image-view.js`
|
|
603
|
-
- examples: `_basic/examples/image-view.htm`
|
|
603
|
+
- examples: `_basic/examples/image-view.htm`, `_basic/examples/gallery-styled.htm`
|
|
604
604
|
|
|
605
605
|
### WebView
|
|
606
606
|
|
|
607
607
|
An iframe box with a loading spinner, errors, messages, scaled previews and a toolbar. The previews on this site use it.
|
|
608
608
|
|
|
609
609
|
- file: `_basic/comp/web-view.js`
|
|
610
|
-
- examples: `_basic/examples/web-view.htm`
|
|
610
|
+
- examples: `_basic/examples/web-view.htm`, `_basic/examples/gallery-styled.htm`
|
|
611
611
|
|
|
612
612
|
### SettingsRow
|
|
613
613
|
|
|
@@ -70,6 +70,53 @@
|
|
|
70
70
|
" return label;",
|
|
71
71
|
"};",
|
|
72
72
|
],
|
|
73
|
+
go: [
|
|
74
|
+
"// A small program: the sum of a list",
|
|
75
|
+
"package main",
|
|
76
|
+
"",
|
|
77
|
+
'import "fmt"',
|
|
78
|
+
"",
|
|
79
|
+
"func total(values []float64) float64 {",
|
|
80
|
+
" sum := 0.0",
|
|
81
|
+
" for _, value := range values {",
|
|
82
|
+
" sum += value",
|
|
83
|
+
" }",
|
|
84
|
+
" return sum",
|
|
85
|
+
"}",
|
|
86
|
+
"",
|
|
87
|
+
"func main() {",
|
|
88
|
+
' fmt.Println("Total:", total([]float64{12.5, 7, 0x10}))',
|
|
89
|
+
"}",
|
|
90
|
+
],
|
|
91
|
+
ruby: [
|
|
92
|
+
"# A small program: the sum of a list",
|
|
93
|
+
'require "json"',
|
|
94
|
+
"",
|
|
95
|
+
"PRICES = [12.5, 7, 0x10, 1_000].freeze",
|
|
96
|
+
"",
|
|
97
|
+
"class Cart",
|
|
98
|
+
" attr_reader :items",
|
|
99
|
+
"",
|
|
100
|
+
" def initialize(items, tax: 0.18)",
|
|
101
|
+
" @items = items",
|
|
102
|
+
" @tax = tax",
|
|
103
|
+
" end",
|
|
104
|
+
"",
|
|
105
|
+
" def total",
|
|
106
|
+
" (@items.sum * (1 + @tax)).round(2)",
|
|
107
|
+
" end",
|
|
108
|
+
"end",
|
|
109
|
+
"",
|
|
110
|
+
"=begin",
|
|
111
|
+
"More than one line",
|
|
112
|
+
"of a comment.",
|
|
113
|
+
"=end",
|
|
114
|
+
"cart = Cart.new(PRICES, tax: 0.2)",
|
|
115
|
+
'puts "Total: #{cart.total}" unless cart.items.empty?',
|
|
116
|
+
"note = <<~TEXT",
|
|
117
|
+
" Thank you, #{ENV[\"USER\"]}.",
|
|
118
|
+
"TEXT",
|
|
119
|
+
],
|
|
73
120
|
json: [
|
|
74
121
|
"{",
|
|
75
122
|
' "name": "basicjs",',
|
|
@@ -113,7 +160,7 @@
|
|
|
113
160
|
],
|
|
114
161
|
};
|
|
115
162
|
|
|
116
|
-
const LANGUAGE_NAMES = { python: "Python", javascript: "JavaScript", json: "JSON", html: "HTML", css: "CSS", sql: "SQL", bash: "Bash" };
|
|
163
|
+
const LANGUAGE_NAMES = { python: "Python", javascript: "JavaScript", go: "Go", ruby: "Ruby", json: "JSON", html: "HTML", css: "CSS", sql: "SQL", bash: "Bash" };
|
|
117
164
|
|
|
118
165
|
let editors = [];
|
|
119
166
|
|