create-basicjs 0.1.4 → 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.
Files changed (625) hide show
  1. package/README.md +12 -2
  2. package/bin/create-basicjs.js +58 -5
  3. package/bin/verify-package.js +1 -1
  4. package/package.json +2 -2
  5. package/payload/projects/tauri/.github/workflows/build.yml +86 -0
  6. package/payload/projects/tauri/.github/workflows/tests.yml +87 -0
  7. package/payload/projects/tauri/AGENTS.md +128 -0
  8. package/payload/projects/tauri/CLAUDE.md +1 -0
  9. package/payload/projects/tauri/LICENSE +201 -0
  10. package/payload/projects/tauri/NOTICE +8 -0
  11. package/payload/projects/tauri/README.md +269 -0
  12. package/payload/projects/tauri/checks/window-check.js +189 -0
  13. package/payload/projects/tauri/gitignore +8 -0
  14. package/payload/projects/tauri/handbook/01-getting-started.md +188 -0
  15. package/payload/projects/tauri/handbook/02-the-project.md +264 -0
  16. package/payload/projects/tauri/handbook/03-the-page.md +260 -0
  17. package/payload/projects/tauri/handbook/04-commands.md +265 -0
  18. package/payload/projects/tauri/handbook/05-events-and-state.md +275 -0
  19. package/payload/projects/tauri/handbook/06-plugins.md +282 -0
  20. package/payload/projects/tauri/handbook/07-the-window-and-the-app.md +431 -0
  21. package/payload/projects/tauri/handbook/08-security.md +374 -0
  22. package/payload/projects/tauri/handbook/09-tests-and-checks.md +266 -0
  23. package/payload/projects/tauri/handbook/10-building-and-releasing.md +238 -0
  24. package/payload/projects/tauri/handbook/11-troubleshooting.md +259 -0
  25. package/payload/projects/tauri/handbook/README.md +125 -0
  26. package/payload/projects/tauri/handbook/turkce/01-getting-started.md +193 -0
  27. package/payload/projects/tauri/handbook/turkce/02-the-project.md +272 -0
  28. package/payload/projects/tauri/handbook/turkce/03-the-page.md +272 -0
  29. package/payload/projects/tauri/handbook/turkce/04-commands.md +271 -0
  30. package/payload/projects/tauri/handbook/turkce/05-events-and-state.md +284 -0
  31. package/payload/projects/tauri/handbook/turkce/06-plugins.md +286 -0
  32. package/payload/projects/tauri/handbook/turkce/07-the-window-and-the-app.md +433 -0
  33. package/payload/projects/tauri/handbook/turkce/08-security.md +384 -0
  34. package/payload/projects/tauri/handbook/turkce/09-tests-and-checks.md +275 -0
  35. package/payload/projects/tauri/handbook/turkce/10-building-and-releasing.md +241 -0
  36. package/payload/projects/tauri/handbook/turkce/11-troubleshooting.md +264 -0
  37. package/payload/projects/tauri/handbook/turkce/README.md +128 -0
  38. package/payload/projects/tauri/images/app.png +0 -0
  39. package/payload/projects/tauri/src-tauri/Cargo.lock +4389 -0
  40. package/payload/projects/tauri/src-tauri/Cargo.toml +31 -0
  41. package/payload/projects/tauri/src-tauri/app-icon.svg +16 -0
  42. package/payload/projects/tauri/src-tauri/build.rs +15 -0
  43. package/payload/projects/tauri/src-tauri/capabilities/default.json +7 -0
  44. package/payload/projects/tauri/src-tauri/gitignore +5 -0
  45. package/payload/projects/tauri/src-tauri/icons/128x128.png +0 -0
  46. package/payload/projects/tauri/src-tauri/icons/128x128@2x.png +0 -0
  47. package/payload/projects/tauri/src-tauri/icons/32x32.png +0 -0
  48. package/payload/projects/tauri/src-tauri/icons/icon.icns +0 -0
  49. package/payload/projects/tauri/src-tauri/icons/icon.ico +0 -0
  50. package/payload/projects/tauri/src-tauri/src/check.rs +144 -0
  51. package/payload/projects/tauri/src-tauri/src/files.rs +255 -0
  52. package/payload/projects/tauri/src-tauri/src/main.rs +45 -0
  53. package/payload/projects/tauri/src-tauri/src/sizes.rs +214 -0
  54. package/payload/projects/tauri/src-tauri/tauri.conf.json +44 -0
  55. package/payload/projects/tauri/src-tauri/tests/project.rs +243 -0
  56. package/payload/projects/tauri/ui/app.js +459 -0
  57. package/payload/projects/tauri/ui/backend.js +196 -0
  58. package/payload/projects/tauri/ui/basic/LICENSE +14 -0
  59. package/payload/projects/tauri/ui/basic/basic.min.css +1 -0
  60. package/payload/projects/tauri/ui/basic/basic.min.js +78 -0
  61. package/payload/projects/tauri/ui/basic/font/open-sans/LICENSE.txt +206 -0
  62. package/payload/projects/tauri/ui/basic/font/open-sans/OpenSans-Bold.ttf +0 -0
  63. package/payload/projects/tauri/ui/basic/font/open-sans/OpenSans-Regular.ttf +0 -0
  64. package/payload/projects/tauri/ui/basic/scroll-bar.min.js +3 -0
  65. package/payload/projects/tauri/ui/comp/_sources.txt +9 -0
  66. package/payload/projects/tauri/ui/comp/components.min.js +21 -0
  67. package/payload/projects/tauri/ui/index.html +28 -0
  68. package/payload/projects/tauri/ui/sizes.js +104 -0
  69. package/payload/starter/AGENTS.md +11 -6
  70. package/payload/starter/README.md +1 -1
  71. package/payload/starter/_basic/VERSION +1 -1
  72. package/payload/starter/_basic/assets/cards/almond-blossom.png +0 -0
  73. package/payload/starter/_basic/assets/cards/blackberry.png +0 -0
  74. package/payload/starter/_basic/assets/cards/borage.png +0 -0
  75. package/payload/starter/_basic/assets/cards/chamomile.png +0 -0
  76. package/payload/starter/_basic/assets/cards/dill.png +0 -0
  77. package/payload/starter/_basic/assets/cards/eucalyptus.png +0 -0
  78. package/payload/starter/_basic/assets/cards/fennel.png +0 -0
  79. package/payload/starter/_basic/assets/cards/fig.png +0 -0
  80. package/payload/starter/_basic/assets/cards/juniper.png +0 -0
  81. package/payload/starter/_basic/assets/cards/lavender.png +0 -0
  82. package/payload/starter/_basic/assets/cards/lemon.png +0 -0
  83. package/payload/starter/_basic/assets/cards/olives.png +0 -0
  84. package/payload/starter/_basic/assets/cards/oregano.png +0 -0
  85. package/payload/starter/_basic/assets/cards/pepper.png +0 -0
  86. package/payload/starter/_basic/assets/cards/physalis.png +0 -0
  87. package/payload/starter/_basic/assets/cards/pomegranate.png +0 -0
  88. package/payload/starter/_basic/assets/cards/poppy.png +0 -0
  89. package/payload/starter/_basic/assets/cards/rosehip.png +0 -0
  90. package/payload/starter/_basic/assets/cards/saffron.png +0 -0
  91. package/payload/starter/_basic/assets/categories/cappuccino.png +0 -0
  92. package/payload/starter/_basic/assets/categories/chocolate-milk.png +0 -0
  93. package/payload/starter/_basic/assets/categories/coffee.png +0 -0
  94. package/payload/starter/_basic/assets/categories/frappe.png +0 -0
  95. package/payload/starter/_basic/assets/categories/iced-caffee.png +0 -0
  96. package/payload/starter/_basic/assets/categories/milkshake.png +0 -0
  97. package/payload/starter/_basic/assets/categories/orange-juice.png +0 -0
  98. package/payload/starter/_basic/assets/categories/tea.png +0 -0
  99. package/payload/starter/_basic/assets/fruids/brokoli.png +0 -0
  100. package/payload/starter/_basic/assets/fruids/cilek.png +0 -0
  101. package/payload/starter/_basic/assets/fruids/domates.png +0 -0
  102. package/payload/starter/_basic/assets/fruids/elma.png +0 -0
  103. package/payload/starter/_basic/assets/fruids/havuc.png +0 -0
  104. package/payload/starter/_basic/assets/fruids/karpuz.png +0 -0
  105. package/payload/starter/_basic/assets/fruids/limon.png +0 -0
  106. package/payload/starter/_basic/assets/fruids/muz.png +0 -0
  107. package/payload/starter/_basic/assets/fruids/nar.png +0 -0
  108. package/payload/starter/_basic/assets/fruids/patlican.png +0 -0
  109. package/payload/starter/_basic/assets/fruids/yabanmersini.png +0 -0
  110. package/payload/starter/_basic/assets/fruids/yesilbiber.png +0 -0
  111. package/payload/starter/_basic/basic/LICENSE +1 -1
  112. package/payload/starter/_basic/basic/basic.css +3 -6
  113. package/payload/starter/_basic/basic/basic.js +154 -60
  114. package/payload/starter/_basic/basic/basic.min.js +19 -6
  115. package/payload/starter/_basic/basic/scroll-bar.js +4 -2
  116. package/payload/starter/_basic/basic/scroll-bar.min.js +1 -0
  117. package/payload/starter/_basic/comp/accordion.js +659 -0
  118. package/payload/starter/_basic/comp/action-button.js +22 -23
  119. package/payload/starter/_basic/comp/action-tab-bar.js +8 -8
  120. package/payload/starter/_basic/comp/app-bar.js +12 -11
  121. package/payload/starter/_basic/comp/{badge-v2.js → badge.js} +51 -5
  122. package/payload/starter/_basic/comp/bottom-bar.js +62 -26
  123. package/payload/starter/_basic/comp/breadcrumbs.js +4 -2
  124. package/payload/starter/_basic/comp/canvas.js +652 -0
  125. package/payload/starter/_basic/comp/chat-view.js +827 -0
  126. package/payload/starter/_basic/comp/check-box.js +137 -21
  127. package/payload/starter/_basic/comp/code-editor.js +1171 -0
  128. package/payload/starter/_basic/comp/{select-color.js → color-picker.js} +62 -29
  129. package/payload/starter/_basic/comp/context-menu.js +348 -31
  130. package/payload/starter/_basic/comp/{currency-input-b.js → currency-field.js} +48 -29
  131. package/payload/starter/_basic/comp/data-table.js +114 -42
  132. package/payload/starter/_basic/comp/{select-date.js → date-picker.js} +104 -52
  133. package/payload/starter/_basic/comp/dialog.js +214 -76
  134. package/payload/starter/_basic/comp/email-field.js +65 -0
  135. package/payload/starter/_basic/comp/{select-file.js → file-picker.js} +245 -57
  136. package/payload/starter/_basic/comp/filters.js +374 -60
  137. package/payload/starter/_basic/comp/form.js +38 -26
  138. package/payload/starter/_basic/comp/full-screen-select.js +36 -33
  139. package/payload/starter/_basic/comp/gauge.js +12 -8
  140. package/payload/starter/_basic/comp/graph-box.js +3911 -0
  141. package/payload/starter/_basic/comp/grid-group.js +185 -0
  142. package/payload/starter/_basic/comp/hold-to-confirm-button.js +16 -7
  143. package/payload/starter/_basic/comp/image-view.js +598 -0
  144. package/payload/starter/_basic/comp/item-list.js +507 -163
  145. package/payload/starter/_basic/comp/json-editor.js +3221 -0
  146. package/payload/starter/_basic/comp/json-view.js +597 -0
  147. package/payload/starter/_basic/comp/label-editor.js +22 -19
  148. package/payload/starter/_basic/comp/left-menu.js +89 -22
  149. package/payload/starter/_basic/comp/line-progress-bar.js +196 -45
  150. package/payload/starter/_basic/comp/loading-screen.js +49 -18
  151. package/payload/starter/_basic/comp/log-view.js +530 -0
  152. package/payload/starter/_basic/comp/{login-page-v2.js → login-page.js} +205 -106
  153. package/payload/starter/_basic/comp/markdown-view.js +1046 -0
  154. package/payload/starter/_basic/comp/menu-bar.js +624 -0
  155. package/payload/starter/_basic/comp/mini-graph-box.js +20 -11
  156. package/payload/starter/_basic/comp/minimal-accent.js +208 -0
  157. package/payload/starter/_basic/comp/notice.js +15 -13
  158. package/payload/starter/_basic/comp/{number-input-b.js → number-field.js} +26 -19
  159. package/payload/starter/_basic/comp/numeric-keyboard.js +15 -13
  160. package/payload/starter/_basic/comp/page-control.js +21 -4
  161. package/payload/starter/_basic/comp/page-header.js +7 -6
  162. package/payload/starter/_basic/comp/password-field.js +192 -0
  163. package/payload/starter/_basic/comp/period-bar.js +8 -7
  164. package/payload/starter/_basic/comp/{phone-input-b.js → phone-field.js} +80 -45
  165. package/payload/starter/_basic/comp/progress-bar.js +401 -85
  166. package/payload/starter/_basic/comp/property-panel.js +1022 -123
  167. package/payload/starter/_basic/comp/radio-button.js +79 -19
  168. package/payload/starter/_basic/comp/range-slider.js +569 -0
  169. package/payload/starter/_basic/comp/rich-text-editor.js +33 -30
  170. package/payload/starter/_basic/comp/scroll-area.js +308 -0
  171. package/payload/starter/_basic/comp/scrolling-text.js +10 -9
  172. package/payload/starter/_basic/comp/search-input.js +725 -0
  173. package/payload/starter/_basic/comp/search-results.js +60 -24
  174. package/payload/starter/_basic/comp/select-box.js +229 -107
  175. package/payload/starter/_basic/comp/settings-row.js +20 -19
  176. package/payload/starter/_basic/comp/side-panel.js +53 -10
  177. package/payload/starter/_basic/comp/slider-field.js +264 -88
  178. package/payload/starter/_basic/comp/slider.js +556 -86
  179. package/payload/starter/_basic/comp/smart-button.js +438 -353
  180. package/payload/starter/_basic/comp/smart-table.js +748 -186
  181. package/payload/starter/_basic/comp/sortable-list.js +47 -38
  182. package/payload/starter/_basic/comp/spark-line-box.js +25 -16
  183. package/payload/starter/_basic/comp/splitter.js +411 -0
  184. package/payload/starter/_basic/comp/status-bar.js +408 -0
  185. package/payload/starter/_basic/comp/step-bar.js +345 -0
  186. package/payload/starter/_basic/comp/stepper.js +103 -49
  187. package/payload/starter/_basic/comp/tabs.js +67 -18
  188. package/payload/starter/_basic/comp/tag-input.js +50 -10
  189. package/payload/starter/_basic/comp/tap-effect.js +6 -4
  190. package/payload/starter/_basic/comp/text-area-field.js +233 -0
  191. package/payload/starter/_basic/comp/text-field.js +1006 -0
  192. package/payload/starter/_basic/comp/time-line.js +102 -28
  193. package/payload/starter/_basic/comp/{select-time.js → time-picker.js} +104 -51
  194. package/payload/starter/_basic/comp/tiny-select.js +79 -39
  195. package/payload/starter/_basic/comp/tiny-table.js +12 -8
  196. package/payload/starter/_basic/comp/toast.js +87 -34
  197. package/payload/starter/_basic/comp/toggle.js +149 -28
  198. package/payload/starter/_basic/comp/tool-bar.js +760 -0
  199. package/payload/starter/_basic/comp/tooltip.js +80 -17
  200. package/payload/starter/_basic/comp/tree-view.js +124 -41
  201. package/payload/starter/_basic/comp/ui-effects.js +17 -11
  202. package/payload/starter/_basic/comp/ui-standards.js +5 -4
  203. package/payload/starter/_basic/comp/url-field.js +190 -0
  204. package/payload/starter/_basic/comp/web-view.js +70 -16
  205. package/payload/starter/_basic/docs/basic-js-animated-rules.md +15 -9
  206. package/payload/starter/_basic/docs/basic-js-code-rules.md +42 -5
  207. package/payload/starter/_basic/docs/basic-js-components.md +12 -17
  208. package/payload/starter/_basic/docs/basic-js-core.md +5 -4
  209. package/payload/starter/_basic/docs/component-index.md +248 -107
  210. package/payload/starter/_basic/docs/component-template.js +28 -24
  211. package/payload/starter/_basic/docs/handbook/00-introduction.md +6 -2
  212. package/payload/starter/_basic/docs/handbook/00-what-is-new.md +21 -0
  213. package/payload/starter/_basic/docs/handbook/01-label.md +4 -4
  214. package/payload/starter/_basic/docs/handbook/02-box.md +7 -7
  215. package/payload/starter/_basic/docs/handbook/03-image.md +4 -4
  216. package/payload/starter/_basic/docs/handbook/04-common-properties.md +6 -5
  217. package/payload/starter/_basic/docs/handbook/05-autolayout.md +8 -7
  218. package/payload/starter/_basic/docs/handbook/06-button.md +3 -3
  219. package/payload/starter/_basic/docs/handbook/07-input.md +3 -3
  220. package/payload/starter/_basic/docs/handbook/08-page.md +3 -3
  221. package/payload/starter/_basic/docs/handbook/09-useful-examples.md +39 -58
  222. package/payload/starter/_basic/docs/handbook/10-motion.md +6 -6
  223. package/payload/starter/_basic/docs/handbook/11-other-functions.md +1 -0
  224. package/payload/starter/_basic/docs/handbook/13-sound.md +3 -3
  225. package/payload/starter/_basic/docs/handbook/14-using-components.md +180 -0
  226. package/payload/starter/_basic/docs/handbook/15-making-a-component.md +338 -0
  227. package/payload/starter/_basic/docs/what-is-new.md +106 -0
  228. package/payload/starter/_basic/examples/accordion.htm +174 -0
  229. package/payload/starter/_basic/examples/action-button.htm +74 -32
  230. package/payload/starter/_basic/examples/action-tab-bar.htm +5 -6
  231. package/payload/starter/_basic/examples/app-bar.htm +63 -41
  232. package/payload/starter/_basic/examples/badge.htm +96 -0
  233. package/payload/starter/_basic/examples/bottom-bar-2.htm +61 -48
  234. package/payload/starter/_basic/examples/bottom-bar.htm +74 -16
  235. package/payload/starter/_basic/examples/breadcrumbs.htm +160 -150
  236. package/payload/starter/_basic/examples/canvas.htm +190 -0
  237. package/payload/starter/_basic/examples/chat-view.htm +143 -0
  238. package/payload/starter/_basic/examples/check-box-2.htm +71 -82
  239. package/payload/starter/_basic/examples/check-box-3.htm +72 -83
  240. package/payload/starter/_basic/examples/check-box.htm +207 -0
  241. package/payload/starter/_basic/examples/code-editor-2.htm +259 -0
  242. package/payload/starter/_basic/examples/code-editor.htm +272 -0
  243. package/payload/starter/_basic/examples/color-picker.htm +206 -0
  244. package/payload/starter/_basic/examples/context-menu.htm +180 -139
  245. package/payload/starter/_basic/examples/currency-field.htm +105 -0
  246. package/payload/starter/_basic/examples/data-table-2.htm +2 -1
  247. package/payload/starter/_basic/examples/data-table-3.htm +1 -1
  248. package/payload/starter/_basic/examples/data-table-4.htm +15 -12
  249. package/payload/starter/_basic/examples/data-table-5.htm +11 -3
  250. package/payload/starter/_basic/examples/data-table.htm +90 -40
  251. package/payload/starter/_basic/examples/date-picker.htm +239 -0
  252. package/payload/starter/_basic/examples/dialog-centered.htm +394 -40
  253. package/payload/starter/_basic/examples/dialog.htm +267 -46
  254. package/payload/starter/_basic/examples/email-field.htm +102 -0
  255. package/payload/starter/_basic/examples/file-picker.htm +296 -0
  256. package/payload/starter/_basic/examples/filters.htm +33 -22
  257. package/payload/starter/_basic/examples/{form-1.htm → form.htm} +18 -19
  258. package/payload/starter/_basic/examples/full-screen-select.htm +81 -58
  259. package/payload/starter/_basic/examples/gallery-styled.htm +896 -0
  260. package/payload/starter/_basic/examples/gauge.htm +95 -81
  261. package/payload/starter/_basic/examples/graph-box.htm +365 -0
  262. package/payload/starter/_basic/examples/grid-group.htm +179 -0
  263. package/payload/starter/_basic/examples/hold-to-confirm-button.htm +102 -113
  264. package/payload/starter/_basic/examples/image-view.htm +195 -0
  265. package/payload/starter/_basic/examples/item-list-2.htm +138 -94
  266. package/payload/starter/_basic/examples/item-list.htm +191 -86
  267. package/payload/starter/_basic/examples/json-editor.htm +206 -0
  268. package/payload/starter/_basic/examples/json-view.htm +153 -0
  269. package/payload/starter/_basic/examples/label-editor.htm +85 -89
  270. package/payload/starter/_basic/examples/left-menu-2.htm +93 -0
  271. package/payload/starter/_basic/examples/left-menu.htm +42 -37
  272. package/payload/starter/_basic/examples/line-progress-bar.htm +155 -114
  273. package/payload/starter/_basic/examples/loading-screen.htm +149 -125
  274. package/payload/starter/_basic/examples/log-view.htm +175 -0
  275. package/payload/starter/_basic/examples/{login-page-dark-v2.htm → login-page-dark.htm} +265 -267
  276. package/payload/starter/_basic/examples/{login-page-v2.htm → login-page.htm} +266 -267
  277. package/payload/starter/_basic/examples/markdown-view.htm +220 -0
  278. package/payload/starter/_basic/examples/menu-bar-2.htm +225 -0
  279. package/payload/starter/_basic/examples/menu-bar.htm +145 -0
  280. package/payload/starter/_basic/examples/mini-graph-box.htm +98 -109
  281. package/payload/starter/_basic/examples/minimal-accent.htm +196 -0
  282. package/payload/starter/_basic/examples/minimal-theme.htm +432 -0
  283. package/payload/starter/_basic/examples/notice.htm +13 -4
  284. package/payload/starter/_basic/examples/number-field.htm +103 -0
  285. package/payload/starter/_basic/examples/numeric-keyboard.htm +44 -42
  286. package/payload/starter/_basic/examples/page-control.htm +181 -130
  287. package/payload/starter/_basic/examples/page-header.htm +57 -30
  288. package/payload/starter/_basic/examples/password-field.htm +117 -0
  289. package/payload/starter/_basic/examples/period-bar.htm +43 -29
  290. package/payload/starter/_basic/examples/phone-field-select-country.htm +292 -0
  291. package/payload/starter/_basic/examples/phone-field.htm +104 -0
  292. package/payload/starter/_basic/examples/progress-bar-ozden.htm +229 -92
  293. package/payload/starter/_basic/examples/progress-bar.htm +222 -174
  294. package/payload/starter/_basic/examples/property-panel.htm +152 -52
  295. package/payload/starter/_basic/examples/radio-button-2.htm +101 -109
  296. package/payload/starter/_basic/examples/radio-button-3.htm +81 -71
  297. package/payload/starter/_basic/examples/radio-button.htm +289 -0
  298. package/payload/starter/_basic/examples/range-slider.htm +171 -0
  299. package/payload/starter/_basic/examples/rich-text-editor.htm +115 -110
  300. package/payload/starter/_basic/examples/scroll-area.htm +293 -0
  301. package/payload/starter/_basic/examples/scrolling-text.htm +27 -6
  302. package/payload/starter/_basic/examples/search-input-2-light.htm +112 -0
  303. package/payload/starter/_basic/examples/search-input-3-dark.htm +105 -0
  304. package/payload/starter/_basic/examples/{search-input-v2-place.htm → search-input-place.htm} +25 -26
  305. package/payload/starter/_basic/examples/search-input.htm +159 -0
  306. package/payload/starter/_basic/examples/search-results.htm +85 -88
  307. package/payload/starter/_basic/examples/select-box-2-item-view.htm +304 -0
  308. package/payload/starter/_basic/examples/select-box-ozden-dark-text.htm +70 -0
  309. package/payload/starter/_basic/examples/select-box-ozden-item.htm +6 -5
  310. package/payload/starter/_basic/examples/select-box-ozden-text.htm +5 -3
  311. package/payload/starter/_basic/examples/select-box.htm +190 -159
  312. package/payload/starter/_basic/examples/settings-row.htm +92 -43
  313. package/payload/starter/_basic/examples/side-panel-2.htm +63 -25
  314. package/payload/starter/_basic/examples/side-panel.htm +84 -70
  315. package/payload/starter/_basic/examples/slider-2-split.htm +186 -0
  316. package/payload/starter/_basic/examples/slider-field-ozden.htm +286 -0
  317. package/payload/starter/_basic/examples/slider-field.htm +174 -134
  318. package/payload/starter/_basic/examples/slider.htm +257 -180
  319. package/payload/starter/_basic/examples/smart-button-3-ozden.htm +170 -257
  320. package/payload/starter/_basic/examples/smart-button-4-dark.htm +86 -47
  321. package/payload/starter/_basic/examples/smart-button-5-features.htm +130 -125
  322. package/payload/starter/_basic/examples/smart-button-alternatif.htm +266 -0
  323. package/payload/starter/_basic/examples/smart-button.htm +207 -174
  324. package/payload/starter/_basic/examples/smart-table-2.htm +43 -56
  325. package/payload/starter/_basic/examples/smart-table-3.htm +148 -113
  326. package/payload/starter/_basic/examples/smart-table-4.htm +37 -50
  327. package/payload/starter/_basic/examples/{smart-table-1.htm → smart-table-5.htm} +37 -48
  328. package/payload/starter/_basic/examples/smart-table.htm +183 -0
  329. package/payload/starter/_basic/examples/sortable-list.htm +191 -142
  330. package/payload/starter/_basic/examples/spark-line-box.htm +149 -161
  331. package/payload/starter/_basic/examples/splitter.htm +164 -0
  332. package/payload/starter/_basic/examples/status-bar.htm +166 -0
  333. package/payload/starter/_basic/examples/step-bar.htm +129 -0
  334. package/payload/starter/_basic/examples/stepper-2.htm +86 -58
  335. package/payload/starter/_basic/examples/stepper.htm +146 -135
  336. package/payload/starter/_basic/examples/tabs-2.htm +58 -67
  337. package/payload/starter/_basic/examples/tabs.htm +197 -180
  338. package/payload/starter/_basic/examples/tag-input.htm +150 -153
  339. package/payload/starter/_basic/examples/tap-effect.htm +23 -19
  340. package/payload/starter/_basic/examples/text-area-field.htm +104 -0
  341. package/payload/starter/_basic/examples/text-field-2.htm +113 -0
  342. package/payload/starter/_basic/examples/text-field-3-style.htm +105 -0
  343. package/payload/starter/_basic/examples/text-field-4-custom-unit.htm +96 -0
  344. package/payload/starter/_basic/examples/{input-b-ex5-warning-icon.htm → text-field-5-warning-icon.htm} +19 -19
  345. package/payload/starter/_basic/examples/text-field-6-modern-dark.htm +114 -0
  346. package/payload/starter/_basic/examples/text-field-7-modern.htm +106 -0
  347. package/payload/starter/_basic/examples/text-field-8-light-dark.htm +159 -0
  348. package/payload/starter/_basic/examples/text-field.htm +163 -0
  349. package/payload/starter/_basic/examples/time-line.htm +180 -116
  350. package/payload/starter/_basic/examples/time-picker.htm +240 -0
  351. package/payload/starter/_basic/examples/tiny-select.htm +118 -86
  352. package/payload/starter/_basic/examples/tiny-table.htm +40 -34
  353. package/payload/starter/_basic/examples/toast.htm +145 -147
  354. package/payload/starter/_basic/examples/toggle-2.htm +99 -68
  355. package/payload/starter/_basic/examples/toggle-3.htm +104 -101
  356. package/payload/starter/_basic/examples/toggle.htm +161 -93
  357. package/payload/starter/_basic/examples/tool-bar.htm +172 -0
  358. package/payload/starter/_basic/examples/tooltip-2.htm +110 -60
  359. package/payload/starter/_basic/examples/tooltip-3.htm +124 -65
  360. package/payload/starter/_basic/examples/tooltip-4.htm +218 -0
  361. package/payload/starter/_basic/examples/tooltip.htm +206 -124
  362. package/payload/starter/_basic/examples/tree-view.htm +210 -182
  363. package/payload/starter/_basic/examples/ui-effects.htm +207 -185
  364. package/payload/starter/_basic/examples/ui-standards.htm +200 -139
  365. package/payload/starter/_basic/examples/url-field.htm +120 -0
  366. package/payload/starter/_basic/examples/web-view.htm +109 -110
  367. package/payload/starter/_basic/min/accordion.min.js +2 -0
  368. package/payload/starter/_basic/min/action-button.min.js +1 -1
  369. package/payload/starter/_basic/min/app-bar.min.js +1 -1
  370. package/payload/starter/_basic/min/badge.min.js +2 -0
  371. package/payload/starter/_basic/min/bottom-bar.min.js +1 -1
  372. package/payload/starter/_basic/min/canvas.min.js +2 -0
  373. package/payload/starter/_basic/min/chat-view.min.js +2 -0
  374. package/payload/starter/_basic/min/check-box.min.js +1 -1
  375. package/payload/starter/_basic/min/code-editor.min.js +2 -0
  376. package/payload/starter/_basic/min/color-picker.min.js +2 -0
  377. package/payload/starter/_basic/min/context-menu.min.js +1 -1
  378. package/payload/starter/_basic/min/currency-field.min.js +2 -0
  379. package/payload/starter/_basic/min/data-table.min.js +1 -1
  380. package/payload/starter/_basic/min/date-picker.min.js +2 -0
  381. package/payload/starter/_basic/min/dialog.min.js +1 -1
  382. package/payload/starter/_basic/min/email-field.min.js +2 -0
  383. package/payload/starter/_basic/min/file-picker.min.js +2 -0
  384. package/payload/starter/_basic/min/filters.min.js +1 -1
  385. package/payload/starter/_basic/min/form.min.js +1 -1
  386. package/payload/starter/_basic/min/full-screen-select.min.js +1 -1
  387. package/payload/starter/_basic/min/gauge.min.js +1 -1
  388. package/payload/starter/_basic/min/graph-box.min.js +2 -0
  389. package/payload/starter/_basic/min/grid-group.min.js +2 -0
  390. package/payload/starter/_basic/min/hold-to-confirm-button.min.js +1 -1
  391. package/payload/starter/_basic/min/image-view.min.js +2 -0
  392. package/payload/starter/_basic/min/item-list.min.js +1 -1
  393. package/payload/starter/_basic/min/json-editor.min.js +2 -0
  394. package/payload/starter/_basic/min/json-view.min.js +2 -0
  395. package/payload/starter/_basic/min/label-editor.min.js +1 -1
  396. package/payload/starter/_basic/min/left-menu.min.js +1 -1
  397. package/payload/starter/_basic/min/line-progress-bar.min.js +1 -1
  398. package/payload/starter/_basic/min/loading-screen.min.js +1 -1
  399. package/payload/starter/_basic/min/log-view.min.js +2 -0
  400. package/payload/starter/_basic/min/login-page.min.js +2 -0
  401. package/payload/starter/_basic/min/markdown-view.min.js +2 -0
  402. package/payload/starter/_basic/min/menu-bar.min.js +2 -0
  403. package/payload/starter/_basic/min/mini-graph-box.min.js +1 -1
  404. package/payload/starter/_basic/min/minimal-accent.min.js +2 -0
  405. package/payload/starter/_basic/min/notice.min.js +1 -1
  406. package/payload/starter/_basic/min/number-field.min.js +2 -0
  407. package/payload/starter/_basic/min/numeric-keyboard.min.js +1 -1
  408. package/payload/starter/_basic/min/page-control.min.js +1 -1
  409. package/payload/starter/_basic/min/password-field.min.js +2 -0
  410. package/payload/starter/_basic/min/phone-field.min.js +2 -0
  411. package/payload/starter/_basic/min/progress-bar.min.js +1 -1
  412. package/payload/starter/_basic/min/property-panel.min.js +1 -1
  413. package/payload/starter/_basic/min/radio-button.min.js +1 -1
  414. package/payload/starter/_basic/min/range-slider.min.js +2 -0
  415. package/payload/starter/_basic/min/rich-text-editor.min.js +1 -1
  416. package/payload/starter/_basic/min/scroll-area.min.js +2 -0
  417. package/payload/starter/_basic/min/scrolling-text.min.js +1 -1
  418. package/payload/starter/_basic/min/search-input.min.js +2 -0
  419. package/payload/starter/_basic/min/search-results.min.js +1 -1
  420. package/payload/starter/_basic/min/select-box.min.js +1 -1
  421. package/payload/starter/_basic/min/settings-row.min.js +1 -1
  422. package/payload/starter/_basic/min/side-panel.min.js +1 -1
  423. package/payload/starter/_basic/min/slider-field.min.js +1 -1
  424. package/payload/starter/_basic/min/slider.min.js +1 -1
  425. package/payload/starter/_basic/min/smart-button.min.js +1 -1
  426. package/payload/starter/_basic/min/smart-table.min.js +1 -1
  427. package/payload/starter/_basic/min/sortable-list.min.js +1 -1
  428. package/payload/starter/_basic/min/spark-line-box.min.js +1 -1
  429. package/payload/starter/_basic/min/splitter.min.js +2 -0
  430. package/payload/starter/_basic/min/status-bar.min.js +2 -0
  431. package/payload/starter/_basic/min/step-bar.min.js +2 -0
  432. package/payload/starter/_basic/min/stepper.min.js +1 -1
  433. package/payload/starter/_basic/min/tabs.min.js +1 -1
  434. package/payload/starter/_basic/min/tag-input.min.js +1 -1
  435. package/payload/starter/_basic/min/text-area-field.min.js +2 -0
  436. package/payload/starter/_basic/min/text-field.min.js +2 -0
  437. package/payload/starter/_basic/min/time-line.min.js +1 -1
  438. package/payload/starter/_basic/min/time-picker.min.js +2 -0
  439. package/payload/starter/_basic/min/tiny-select.min.js +1 -1
  440. package/payload/starter/_basic/min/toast.min.js +1 -1
  441. package/payload/starter/_basic/min/toggle.min.js +1 -1
  442. package/payload/starter/_basic/min/tool-bar.min.js +2 -0
  443. package/payload/starter/_basic/min/tooltip.min.js +1 -1
  444. package/payload/starter/_basic/min/tree-view.min.js +1 -1
  445. package/payload/starter/_basic/min/ui-effects.min.js +1 -1
  446. package/payload/starter/_basic/min/url-field.min.js +2 -0
  447. package/payload/starter/_basic/min/web-view.min.js +1 -1
  448. package/payload/templates/booking/app/app.js +11 -8
  449. package/payload/templates/booking/app/settings.js +4 -4
  450. package/payload/templates/booking/index.htm +3 -3
  451. package/payload/templates/booking/pages/account.js +6 -6
  452. package/payload/templates/booking/pages/book.js +1 -1
  453. package/payload/templates/booking/pages/services.js +5 -4
  454. package/payload/templates/classic/app/app.js +15 -11
  455. package/payload/templates/classic/app/settings.js +22 -20
  456. package/payload/templates/classic/assets/_attribute.txt +2 -0
  457. package/payload/templates/classic/assets/cards/dill.png +0 -0
  458. package/payload/templates/classic/assets/cards/fennel.png +0 -0
  459. package/payload/templates/classic/assets/cards/juniper.png +0 -0
  460. package/payload/templates/classic/assets/cards/olives.png +0 -0
  461. package/payload/templates/classic/assets/cards/oregano.png +0 -0
  462. package/payload/templates/classic/assets/cards/pepper.png +0 -0
  463. package/payload/templates/classic/assets/cards/rosehip.png +0 -0
  464. package/payload/templates/classic/assets/categories/cappuccino.png +0 -0
  465. package/payload/templates/classic/assets/categories/chocolate-milk.png +0 -0
  466. package/payload/templates/classic/assets/categories/coffee.png +0 -0
  467. package/payload/templates/classic/assets/categories/frappe.png +0 -0
  468. package/payload/templates/classic/assets/categories/iced-caffee.png +0 -0
  469. package/payload/templates/classic/assets/categories/milkshake.png +0 -0
  470. package/payload/templates/classic/assets/categories/orange-juice.png +0 -0
  471. package/payload/templates/classic/assets/categories/tea.png +0 -0
  472. package/payload/templates/classic/index.htm +2 -2
  473. package/payload/templates/classic/pages/example.js +10 -10
  474. package/payload/templates/classic/pages/examples.js +44 -43
  475. package/payload/templates/classic/pages/home.js +16 -15
  476. package/payload/templates/classic/pages/info-pages.js +5 -5
  477. package/payload/templates/classic/pages/search.js +8 -7
  478. package/payload/templates/classic/pages/settings.js +13 -13
  479. package/payload/templates/classic/pages/tasks.js +1 -0
  480. package/payload/templates/classic/pages/template-pages.js +12 -11
  481. package/payload/templates/coffee-shop/app/app.js +12 -8
  482. package/payload/templates/coffee-shop/app/settings.js +4 -4
  483. package/payload/templates/coffee-shop/index.htm +3 -3
  484. package/payload/templates/coffee-shop/pages/drink.js +1 -1
  485. package/payload/templates/coffee-shop/pages/menu.js +5 -4
  486. package/payload/templates/forms/TEMPLATE.md +1 -1
  487. package/payload/templates/forms/appointment-form.htm +55 -53
  488. package/payload/templates/forms/contact-form-to-mail.htm +38 -37
  489. package/payload/templates/forms/contact-form-to-supabase.htm +47 -46
  490. package/payload/templates/forms/dark-contact-form.htm +43 -40
  491. package/payload/templates/forms/event-registration-form.htm +80 -77
  492. package/payload/templates/forms/feedback-form.htm +54 -54
  493. package/payload/templates/forms/order-form.htm +88 -84
  494. package/payload/templates/forms/recruitment-form.htm +60 -60
  495. package/payload/templates/forms/service/readme.md +9 -8
  496. package/payload/templates/forms/service/send-form-mail.php +38 -21
  497. package/payload/templates/forms/support-ticket-form.htm +67 -65
  498. package/payload/templates/panel/common/module-page.js +2 -2
  499. package/payload/templates/panel/common/theme.js +37 -10
  500. package/payload/templates/panel/common/top-bar.js +45 -40
  501. package/payload/templates/panel/index.htm +59 -60
  502. package/payload/templates/panel/module10/greenhouse.htm +98 -113
  503. package/payload/templates/panel/module11/arduino-projects.htm +47 -58
  504. package/payload/templates/panel/module6/energy-hub.htm +71 -103
  505. package/payload/templates/panel/module7/3d-printers.htm +58 -81
  506. package/payload/templates/panel/module8/cold-rooms.htm +58 -79
  507. package/payload/templates/panel/module9/elevator-fleet.htm +72 -93
  508. package/payload/templates/panel/pages/activity.js +134 -152
  509. package/payload/templates/panel/pages/contents.js +291 -308
  510. package/payload/templates/panel/pages/customers.js +250 -267
  511. package/payload/templates/panel/pages/edit-user.js +31 -30
  512. package/payload/templates/panel/pages/home.js +39 -70
  513. package/payload/templates/panel/pages/media.js +166 -183
  514. package/payload/templates/panel/pages/notifications.js +7 -7
  515. package/payload/templates/panel/pages/orders.js +200 -217
  516. package/payload/templates/panel/pages/products.js +259 -278
  517. package/payload/templates/panel/pages/reports.js +74 -123
  518. package/payload/templates/panel/pages/roles.js +57 -60
  519. package/payload/templates/panel/pages/settings.js +127 -143
  520. package/payload/templates/panel/pages/user-actions.js +106 -110
  521. package/payload/templates/panel/pages/user-list.js +221 -238
  522. package/payload/templates/panel/pages/users.js +14 -29
  523. package/payload/templates/shop/TEMPLATE.md +1 -1
  524. package/payload/templates/shop/app/app.js +11 -8
  525. package/payload/templates/shop/app/settings.js +4 -4
  526. package/payload/templates/shop/index.htm +3 -3
  527. package/payload/templates/shop/pages/account.js +7 -7
  528. package/payload/templates/shop/pages/cart.js +1 -1
  529. package/payload/templates/shop/pages/checkout.js +2 -2
  530. package/payload/templates/shop/pages/product.js +2 -2
  531. package/payload/templates/shop/pages/shop.js +6 -5
  532. package/payload/templates/starter/TEMPLATE.md +1 -1
  533. package/payload/templates/starter/app/app.js +12 -8
  534. package/payload/templates/starter/app/settings.js +14 -11
  535. package/payload/templates/starter/index.htm +3 -3
  536. package/payload/templates/starter/pages/about.js +1 -1
  537. package/payload/templates/starter/pages/home.js +2 -2
  538. package/payload/templates/starter/pages/product.js +1 -1
  539. package/payload/templates/starter/pages/products.js +5 -5
  540. package/payload/templates/starter/pages/settings.js +1 -1
  541. package/payload/templates/starter/pages/tasks.js +8 -8
  542. package/payload/templates/starter/pages/website.js +1 -1
  543. package/payload/starter/_basic/comp/chart-box/chart-4.5.1.umd.min.js +0 -13
  544. package/payload/starter/_basic/comp/chart-box/chart-js-LICENSE.md +0 -9
  545. package/payload/starter/_basic/comp/chart-box.js +0 -868
  546. package/payload/starter/_basic/comp/email-input-b.js +0 -57
  547. package/payload/starter/_basic/comp/input-b.js +0 -759
  548. package/payload/starter/_basic/comp/password-input-b.js +0 -164
  549. package/payload/starter/_basic/comp/search-input-v2.js +0 -427
  550. package/payload/starter/_basic/comp/textarea-b.js +0 -184
  551. package/payload/starter/_basic/comp/url-input-b.js +0 -145
  552. package/payload/starter/_basic/examples/badgeV2.htm +0 -68
  553. package/payload/starter/_basic/examples/chart-box.htm +0 -287
  554. package/payload/starter/_basic/examples/check-box-1.htm +0 -220
  555. package/payload/starter/_basic/examples/currency-input-b.htm +0 -71
  556. package/payload/starter/_basic/examples/email-input-b.htm +0 -67
  557. package/payload/starter/_basic/examples/input-b-ex1.htm +0 -132
  558. package/payload/starter/_basic/examples/input-b-ex2.htm +0 -136
  559. package/payload/starter/_basic/examples/input-b-ex3-style.htm +0 -113
  560. package/payload/starter/_basic/examples/input-b-ex4-custom-unit.htm +0 -112
  561. package/payload/starter/_basic/examples/input-b-ex6-dark.htm +0 -108
  562. package/payload/starter/_basic/examples/input-b-ex7-ozden.htm +0 -153
  563. package/payload/starter/_basic/examples/number-input-b.htm +0 -68
  564. package/payload/starter/_basic/examples/password-input-b.htm +0 -70
  565. package/payload/starter/_basic/examples/phone-input-b-select-country.htm +0 -298
  566. package/payload/starter/_basic/examples/phone-input-b.htm +0 -72
  567. package/payload/starter/_basic/examples/radio-button-1.htm +0 -264
  568. package/payload/starter/_basic/examples/search-input-v2-ozden.htm +0 -128
  569. package/payload/starter/_basic/examples/search-input-v2.htm +0 -65
  570. package/payload/starter/_basic/examples/select-color.htm +0 -215
  571. package/payload/starter/_basic/examples/select-date.htm +0 -244
  572. package/payload/starter/_basic/examples/select-file.htm +0 -268
  573. package/payload/starter/_basic/examples/select-time.htm +0 -249
  574. package/payload/starter/_basic/examples/smart-button-2.htm +0 -220
  575. package/payload/starter/_basic/examples/textarea-b.htm +0 -76
  576. package/payload/starter/_basic/examples/unfinished-login-page-dark-supabase.htm +0 -221
  577. package/payload/starter/_basic/examples/unfinished-login-page-supabase.htm +0 -221
  578. package/payload/starter/_basic/examples/url-input-b.htm +0 -85
  579. package/payload/starter/_basic/min/badge-v2.min.js +0 -2
  580. package/payload/starter/_basic/min/chart-box.min.js +0 -2
  581. package/payload/starter/_basic/min/currency-input-b.min.js +0 -2
  582. package/payload/starter/_basic/min/email-input-b.min.js +0 -2
  583. package/payload/starter/_basic/min/input-b.min.js +0 -2
  584. package/payload/starter/_basic/min/login-page-v2.min.js +0 -2
  585. package/payload/starter/_basic/min/number-input-b.min.js +0 -2
  586. package/payload/starter/_basic/min/password-input-b.min.js +0 -2
  587. package/payload/starter/_basic/min/phone-input-b.min.js +0 -2
  588. package/payload/starter/_basic/min/search-input-v2.min.js +0 -2
  589. package/payload/starter/_basic/min/select-color.min.js +0 -2
  590. package/payload/starter/_basic/min/select-date.min.js +0 -2
  591. package/payload/starter/_basic/min/select-file.min.js +0 -2
  592. package/payload/starter/_basic/min/select-time.min.js +0 -2
  593. package/payload/starter/_basic/min/textarea-b.min.js +0 -2
  594. package/payload/starter/_basic/min/url-input-b.min.js +0 -2
  595. package/payload/templates/panel/common/bridge.min.js +0 -0
  596. package/payload/templates/panel/common/full-view.min.js +0 -1
  597. package/payload/templates/panel/common/main-view.min.js +0 -1
  598. package/payload/templates/panel/common/module-page.min.js +0 -1
  599. package/payload/templates/panel/common/right-view.min.js +0 -1
  600. package/payload/templates/panel/common/start-page.min.js +0 -1
  601. package/payload/templates/panel/common/top-bar-v25-07-29-1.js +0 -330
  602. package/payload/templates/panel/common/top-bar-v25-07-29-2.js +0 -265
  603. package/payload/templates/panel/common/top-bar.min.js +0 -1
  604. package/payload/templates/panel/common/ui-standards.min.js +0 -1
  605. package/payload/templates/panel/managers/database.min.js +0 -1
  606. package/payload/templates/panel/managers/login.min.js +0 -1
  607. package/payload/templates/panel/pages/_page-template.min.js +0 -1
  608. package/payload/templates/panel/pages/contents.min.js +0 -1
  609. package/payload/templates/panel/pages/edit-user.min.js +0 -1
  610. package/payload/templates/panel/pages/edit-users-table.min.js +0 -1
  611. package/payload/templates/panel/pages/home.min.js +0 -1
  612. package/payload/templates/panel/pages/notifications.min.js +0 -1
  613. package/payload/templates/panel/pages/reports.min.js +0 -1
  614. package/payload/templates/panel/pages/settings.min.js +0 -1
  615. package/payload/templates/panel/pages/user-actions.min.js +0 -2
  616. package/payload/templates/panel/pages/users.min.js +0 -1
  617. /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn.png +0 -0
  618. /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn2.png +0 -0
  619. /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn.png +0 -0
  620. /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn2.png +0 -0
  621. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear-round.svg +0 -0
  622. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear.svg +0 -0
  623. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.png +0 -0
  624. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.svg +0 -0
  625. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/search.svg +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2020-2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/)
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,8 @@
1
+ Tauri Starter (OzdenUI for Tauri)
2
+ Copyright 2020-2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/)
3
+
4
+ This product includes software developed by Bugra Ozden
5
+ (https://bug7a.github.io/basic.js/).
6
+
7
+ ui/basic/font/open-sans holds the Open Sans font, with its own license
8
+ (ui/basic/font/open-sans/LICENSE.txt).
@@ -0,0 +1,269 @@
1
+ # Tauri Starter: a desktop app with OzdenUI and Rust
2
+
3
+ [![Tests](https://github.com/bug7a/ozdenui-tauri-template/actions/workflows/tests.yml/badge.svg)](https://github.com/bug7a/ozdenui-tauri-template/actions/workflows/tests.yml)
4
+ [![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
5
+
6
+ A desktop app made with [Tauri 2](https://tauri.app/) (OzdenUI for Tauri): the window is a page written with OzdenUI
7
+ ([basic.js](https://bug7a.github.io/basic.js/) and its components) in plain JavaScript, and the work is done in
8
+ Rust. The page has no npm, no bundler and no build step: its files are served as they are. The app is 3.6 MB on macOS.
9
+
10
+ <p align="center">
11
+ <img src="images/app.png" width="800"
12
+ alt="The window of Tauri Starter on macOS: a top bar with the buttons Up, Home, Open... and Sizes, the path of the folder, a Hidden files check box, a table of the folders and files with their kind, size and date, and a status bar">
13
+ </p>
14
+
15
+ The app is a small file browser. Each of its three parts is one way the page and Rust work together:
16
+
17
+ 1. **Folders: the page asks, Rust answers.** Rust reads a folder (`list_folder`), the page shows it in a table with
18
+ its path, a filter and "Hidden files". The keys: ↑ ↓, Page Up / Page Down, Home / End, Enter opens a folder,
19
+ Cmd / Ctrl + ↑ goes up.
20
+ 2. **Sizes: Rust sends events.** Rust measures every folder inside in a thread; the rows get their sizes one by one,
21
+ the status bar counts the files, "Stop" stops the job.
22
+ 3. **Open...: a plugin of Tauri.** The folder dialog of the system, from `tauri-plugin-dialog`, with no Rust code of
23
+ the app (Cmd / Ctrl + O).
24
+
25
+ - **The site:** https://bug7a.github.io/ozdenui-tauri-template/
26
+ - **The handbook** (11 chapters, from the first run to a release):
27
+ [English](handbook/README.md) · [Türkçe](handbook/turkce/README.md) · or as a web page:
28
+ https://bug7a.github.io/ozdenui-tauri-template/handbook/
29
+ - **With an AI assistant:** [AGENTS.md](AGENTS.md) (below).
30
+
31
+ A community template: it is not an official project of Tauri.
32
+
33
+ ## What you need (once)
34
+
35
+ 1. **Rust** 1.90 or newer: https://rustup.rs/
36
+ 2. **The tools of your system:**
37
+ - macOS: `xcode-select --install`
38
+ - Windows: "Desktop development with C++" of the Microsoft C++ Build Tools, and WebView2 (it is in Windows 11, and
39
+ in Windows 10 from version 1803).
40
+ - Linux (Debian / Ubuntu):
41
+ `sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev`.
42
+ Other systems: https://tauri.app/start/prerequisites/
43
+ 3. **The Tauri CLI:** `cargo install tauri-cli --version "^2" --locked` (it compiles for some minutes).
44
+
45
+ ## Start a project
46
+
47
+ - On GitHub: **Use this template** (https://github.com/bug7a/ozdenui-tauri-template/generate), then clone your new
48
+ repository.
49
+ - With npm: `npm create basicjs@latest my-app -- --template tauri`
50
+ - Or download this repository and copy its folder.
51
+
52
+ ## Run it
53
+
54
+ In the folder of the project:
55
+
56
+ ```sh
57
+ cargo tauri dev
58
+ ```
59
+
60
+ The first run compiles about 250 to 290 crates (56 seconds on an Apple Silicon Mac; some minutes on a slower
61
+ computer); the next runs take seconds. A change in `ui/` reloads the window; a change in `src-tauri/src/` compiles
62
+ and starts the app again.
63
+
64
+ The page opens in a browser too, without Rust (through a web server, Ex: Live Server of VS Code): it shows sample
65
+ folders and a sample measure there (`Backend.isInApp()` in `ui/backend.js`), so the look of the page can be made
66
+ without the app.
67
+
68
+ ## Build the app
69
+
70
+ ```sh
71
+ cargo tauri build
72
+ ```
73
+
74
+ | System (2026-11-20) | Time | The app | The installers |
75
+ |---|---|---|---|
76
+ | macOS (Apple Silicon) | 2 min 7 s | `Tauri Starter.app` 3.6 MB | `.dmg` 1.7 MB |
77
+ | Windows 11 (x64) | 2 min 14 s | `tauri-starter.exe` 3.6 MB | `-setup.exe` 1.4 MB, `.msi` 1.9 MB |
78
+ | Linux | | | `.deb`, `.rpm`, `.AppImage` |
79
+
80
+ The files are in `src-tauri/target/release/bundle/`. `src-tauri/Cargo.toml` asks for a small app
81
+ (`[profile.release]`), so a release build takes longer than a dev build.
82
+
83
+ **A release on GitHub:** write the version in `src-tauri/Cargo.toml` (`version = "0.1.0"`), commit, then push a tag
84
+ of the same version:
85
+
86
+ ```sh
87
+ git tag v0.1.0
88
+ git push origin v0.1.0
89
+ ```
90
+
91
+ `.github/workflows/build.yml` builds the app for macOS (Apple Silicon and Intel), Windows and Linux and puts the
92
+ installers into a **draft** release: look at it on the Releases page, then publish it.
93
+
94
+ **Not signed with a certificate:** the system of a user asks once before it opens the app. macOS: System Settings >
95
+ Privacy & Security > "Open Anyway" (on macOS 14 and older: right click on the app > Open). Windows: "More info" >
96
+ "Run anyway". A certificate removes the question: https://tauri.app/distribute/ (chapter 10 of the handbook).
97
+
98
+ ## The three patterns in short
99
+
100
+ **1. A command.** Rust (`src-tauri/src/files.rs`):
101
+
102
+ ```rust
103
+ #[tauri::command(async)]
104
+ pub fn list_folder(app: tauri::AppHandle, path: String, show_hidden: bool) -> Result<Folder, String> { ... }
105
+ ```
106
+
107
+ It is added to the app in `src-tauri/src/main.rs`, and the page calls it in `ui/backend.js`:
108
+
109
+ ```rust
110
+ .invoke_handler(tauri::generate_handler![files::list_folder, sizes::measure_folder, sizes::stop_measure])
111
+ ```
112
+
113
+ ```js
114
+ Backend.listFolder = function (path, showHidden) {
115
+ if (!Backend.isInApp()) return Backend.listSampleFolder(path, showHidden);
116
+ return window.__TAURI__.core.invoke("list_folder", { path: path, showHidden: showHidden });
117
+ };
118
+ ```
119
+
120
+ The arguments are camelCase in JavaScript and snake_case in Rust (`showHidden` is `show_hidden`); an `Err` of Rust
121
+ is the error of the promise. `window.__TAURI__` is there because of `"withGlobalTauri": true` in
122
+ `src-tauri/tauri.conf.json`.
123
+
124
+ **2. Events.** The command starts a thread and answers at once; the thread sends events (`src-tauri/src/sizes.rs`)
125
+ and the page listens to them (`ui/sizes.js`):
126
+
127
+ ```rust
128
+ let _ = app.emit("measure-folder", folder_size);
129
+ ```
130
+
131
+ ```js
132
+ Backend.listen("measure-folder", Sizes.showFolderSize);
133
+ ```
134
+
135
+ **3. A plugin.** `cargo tauri add dialog` wrote the line of `Cargo.toml`, the `.plugin(...)` line of `main.rs` and the
136
+ permission `"dialog:default"` in `src-tauri/capabilities/default.json` (made narrower there: `"dialog:allow-open"`,
137
+ the only dialog the page opens). The page calls it:
138
+
139
+ ```js
140
+ Backend.chooseFolder = function (startPath) {
141
+ if (!Backend.isInApp()) return Promise.resolve(Backend.SAMPLE_CHOSEN_FOLDER);
142
+ return window.__TAURI__.dialog.open({ directory: true, defaultPath: startPath });
143
+ };
144
+ ```
145
+
146
+ Each pattern, step by step, with a new command, a new event and a second plugin: chapters 4, 5 and 6 of the handbook.
147
+
148
+ ## Tests
149
+
150
+ In `src-tauri/`:
151
+
152
+ ```sh
153
+ cargo test # 10 tests: the Rust functions, and 4 that read the page and Rust together
154
+ cargo run --features window-check # the page in its real window
155
+ cargo fmt --check
156
+ cargo clippy --all-targets --features window-check
157
+ ```
158
+
159
+ - The work of the commands is in functions without Tauri (`read_folder`, `add_folder`), so `cargo test` tests them
160
+ without a window. `src-tauri/tests/project.rs` reads the files: a command the page calls that Rust does not have, a
161
+ command that is not in `generate_handler!`, a plugin without its permission, a `<script>` in a page of `ui/` that
162
+ holds code or a web address.
163
+ - **The window check** opens the real window for a few seconds, uses the page as a person would (a folder, Hidden
164
+ files, an error, Sizes, Up, the plugin, the security policy, a file named like an HTML tag), prints a `PASS` or
165
+ `FAIL` line for every step and closes the app: 17 lines on macOS, 15 on Windows (a name with `<` or `>` can not
166
+ be made there, so the two steps of the tag are left out), then `WINDOW CHECK: ALL PASS`. Its steps are in
167
+ `checks/window-check.js`; add one for a feature of yours.
168
+ - `.github/workflows/tests.yml` runs all four on Linux, macOS and Windows at every push.
169
+
170
+ ## With an AI assistant
171
+
172
+ [AGENTS.md](AGENTS.md) is what an AI assistant (Claude Code, Codex, Cursor, Copilot...) must know to change this app:
173
+ where the truth is, the three patterns, the rules of a basic.js page, the mistakes to avoid and the checks to run
174
+ before it says it is done. Claude Code reads it through `CLAUDE.md` (one line: `@AGENTS.md`); most other tools read
175
+ `AGENTS.md` by themselves. An assistant that can not read the files (a chat) can read the same text on the site:
176
+ https://bug7a.github.io/ozdenui-tauri-template/llms.txt
177
+
178
+ Keep `AGENTS.md` true when your app grows: a new pattern or a rule of your own goes there.
179
+
180
+ ## The files
181
+
182
+ ```text
183
+ ui/ THE PAGE
184
+ index.html loads the files below, in this order
185
+ basic/ basic.js v26.11.10 (a copy: do not edit it)
186
+ comp/components.min.js the components of the page (a copy; comp/_sources.txt lists them)
187
+ backend.js every call to Rust and every event of Rust; the sample data of a browser
188
+ app.js the page, example 1 (Folders) and 3 (Open...)
189
+ sizes.js example 2 (Sizes)
190
+ src-tauri/ THE RUST SIDE
191
+ Cargo.toml the name and the version of the app, the crates
192
+ tauri.conf.json the window, the security policy (CSP), the installers
193
+ capabilities/default.json what the page may use (core:default, dialog:allow-open)
194
+ src/main.rs starts the app: the plugin, the state, the commands
195
+ src/files.rs example 1: the command list_folder, and its tests
196
+ src/sizes.rs example 2: the commands measure_folder and stop_measure, the events, and their tests
197
+ src/check.rs the window check (only with --features window-check)
198
+ tests/project.rs the tests that read the page and Rust together
199
+ app-icon.svg, icons/ the icon
200
+ checks/window-check.js the steps of the window check
201
+ .github/workflows/ tests.yml (every push), build.yml (a tag: the release)
202
+ handbook/ the handbook (English, turkce/)
203
+ AGENTS.md, CLAUDE.md the rules for an AI assistant
204
+ ```
205
+
206
+ ## Make it your own
207
+
208
+ 1. `src-tauri/tauri.conf.json`: `productName`, `identifier` (a reversed domain of yours, Ex:
209
+ `com.yourname.notes`), the window (`title`, `width`, `height`) and `bundle` (`publisher`, `copyright`,
210
+ `homepage`, `shortDescription`).
211
+ 2. `src-tauri/Cargo.toml`: `name`, `version`, `description`, `authors`.
212
+ 3. The icon: `cargo tauri icon my-icon.svg` in `src-tauri/` (a square SVG, or a PNG of 1024 px) writes every size
213
+ into `src-tauri/icons/`; keep the five files that `tauri.conf.json` names and delete the others.
214
+ 4. The page: `ui/app.js` (`start()` runs first). Keep `ui/backend.js` as the one place that calls Rust.
215
+ 5. Another component: put its file from the `comp/` folder of [js-components](https://github.com/bug7a/js-components)
216
+ into `ui/comp/` and load it in `ui/index.html` after `components.min.js`
217
+ (`<script src="comp/tooltip.js" type="text/javascript" charset="utf-8"></script>`). A component that extends
218
+ another loads after it. A component file needs a basic.js at least as new as the one it was written for.
219
+ 6. Without an example: take out its files and its lines. Sizes: `ui/sizes.js` and its `<script>`,
220
+ `src-tauri/src/sizes.rs`, its lines in `main.rs`, the `Sizes.` lines of `ui/app.js` and the measure functions of
221
+ `ui/backend.js`, then its steps in `checks/window-check.js`. `cargo test` and the window check tell what is left.
222
+ 7. The files of the template itself: this README, `images/`, `handbook/` and `docs/` (the site). Write your own
223
+ README; keep the handbook if it helps you.
224
+
225
+ ## Security
226
+
227
+ - **The security policy** (`csp` in `src-tauri/tauri.conf.json`): scripts only from the files of the app (no `eval`,
228
+ no script made from a text, no `onclick` attribute, no script from the web), styles from code (basic.js writes
229
+ them), pictures from the app and from `data:` / `blob:` addresses (the icons are SVG texts), and the calls to Rust.
230
+ The window check proves that a text does not run as code. (A `<script>` written in `ui/index.html` itself, with
231
+ code or with a web address, would run: Tauri adds its hash or a nonce to the policy when it builds the app. A
232
+ project test of `cargo test` stops both.)
233
+ - **The permissions** (`src-tauri/capabilities/default.json`): the core of Tauri and the folder dialog of the plugin
234
+ (`dialog:allow-open`: not its save or message dialogs, which the page does not use). The
235
+ commands of the app need no line; each new plugin adds its own.
236
+ - **A name is shown as text:** the page writes every name that comes from Rust with `plainText`, so a file named like
237
+ an HTML tag stays a name.
238
+ - `list_folder` reads any folder the page asks for: right for a file browser, a thing to limit in another app
239
+ (chapter 8 of the handbook).
240
+
241
+ ## Speed (2026-11-04, the release build, Apple M1 with 8 GB)
242
+
243
+ | A folder of | Rust reads it | The answer reaches the page | The rows are on the screen |
244
+ |---|---|---|---|
245
+ | 23 entries | 0.3 ms | 1 ms | 80 ms |
246
+ | 932 entries (`/usr/bin`) | 5 ms | 6 ms | 66 ms |
247
+ | 10,000 entries | 22 ms | 29 ms | 62 ms |
248
+ | 100,000 entries | 226 ms | 302 ms | 89 ms |
249
+
250
+ - `SmartTable` makes only the rows that are seen, so the time of the table does not grow with the folder.
251
+ - Rust sends at most 100,000 entries of a folder (`MAX_ENTRIES` in `files.rs`).
252
+ - "Sizes" on `/usr` (68,000 files, 3.2 GB) took 1.7 s, with 17 progress events; the page drew 60 frames a second
253
+ meanwhile.
254
+
255
+ ## Good to know
256
+
257
+ - macOS asks once before the app reads Desktop, Documents or Downloads (under `cargo tauri dev` it asks for your
258
+ terminal or editor). A refused folder gives an error message; "Sizes" skips the folders it can not read.
259
+ - "Sizes" counts the bytes of the files (as the "Size" of Finder, not the room on the disk) and does not follow links.
260
+ - `src-tauri/target/` is the compiled app (some GB). It is not in git; `cargo clean` in `src-tauri/` deletes it.
261
+ - Tried on macOS (Apple Silicon) and Windows 11 on 2026-11-20: the tests, the window check and the release build.
262
+ Linux is built and checked by the workflows of this repository.
263
+
264
+ ## License
265
+
266
+ Copyright 2020-2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/)
267
+ Licensed under the Apache License, Version 2.0 (see `LICENSE` and `NOTICE`), the same as basic.js.
268
+
269
+ Developed with the help of Claude Code (Anthropic).
@@ -0,0 +1,189 @@
1
+ /* Bismillah */
2
+
3
+ /*
4
+
5
+ window-check.js - Tauri Starter v0.1 (OzdenUI for Tauri)
6
+
7
+ THE WINDOW CHECK: this script plays the page in the real window of the app and tells Rust what it saw.
8
+ Run it in src-tauri/: cargo run --features window-check
9
+ Rust (src-tauri/src/check.rs) makes a small folder (window.CHECK.folder: "b-folder" with a file of 3 bytes in it,
10
+ "a-file.txt" of 5 bytes, ".hidden-file" and, not on Windows, a folder whose name is an HTML tag: window.CHECK.tagName),
11
+ runs this script when the page is loaded, prints its lines and closes the app. The exit code is 0 when no line failed.
12
+ The errors of the page are kept by check.rs from its first line (window.CHECK_PAGE_ERRORS), also the ones of its load.
13
+
14
+ A CHECK OF YOUR OWN: add a step to WindowCheck.run() below. A step waits for what the page shows
15
+ (await WindowCheck.until(...)) and says what it saw (WindowCheck.expect(...)).
16
+ It must not open a dialog of the system: that waits for a person.
17
+
18
+ Started Date: November 2026
19
+ Webpage: https://bug7a.github.io/ozdenui-tauri-template/
20
+
21
+ Copyright 2020-2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/)
22
+ Licensed under the Apache License, Version 2.0
23
+ SPDX-License-Identifier: Apache-2.0
24
+
25
+ */
26
+
27
+ "use strict";
28
+
29
+ const WindowCheck = {};
30
+
31
+ WindowCheck.WAIT_LIMIT = 10000; // ms: the longest wait for one step
32
+ WindowCheck.WAIT_STEP = 50; // ms
33
+ WindowCheck.lines = [];
34
+ WindowCheck.failed = 0;
35
+ // WHY from check.rs: it keeps the errors of the page from its first line, also the ones while the page loaded
36
+ WindowCheck.pageErrors = window.CHECK_PAGE_ERRORS || [];
37
+
38
+ // USAGE: WindowCheck.expect(names.length == 2, "the folder has two entries")
39
+ WindowCheck.expect = function (isTrue, text) {
40
+ WindowCheck.lines.push((isTrue ? "PASS " : "FAIL ") + text);
41
+ if (!isTrue) WindowCheck.failed++;
42
+ };
43
+
44
+ // Waits until isReady() is true. A step that never comes is a FAIL line, and the check goes on.
45
+ WindowCheck.until = function (isReady, text) {
46
+ return new Promise(function (resolve) {
47
+ const started = Date.now();
48
+ const look = function () {
49
+ if (isReady()) return resolve(true);
50
+ if (Date.now() - started > WindowCheck.WAIT_LIMIT) {
51
+ WindowCheck.expect(false, "waited " + (WindowCheck.WAIT_LIMIT / 1000) + " s for: " + text);
52
+ return resolve(false);
53
+ }
54
+ setTimeout(look, WindowCheck.WAIT_STEP);
55
+ };
56
+ look();
57
+ });
58
+ };
59
+
60
+ WindowCheck.namesOf = function (folder) {
61
+ return folder.entries.map(function (entry) { return entry.name; }).join(", ");
62
+ };
63
+
64
+ WindowCheck.entryOf = function (name) {
65
+ return currentFolder.entries.find(function (entry) { return entry.name == name; });
66
+ };
67
+
68
+ WindowCheck.tableShows = function (text) {
69
+ return table.elem.textContent.includes(text);
70
+ };
71
+
72
+ WindowCheck.isShown = function (path) {
73
+ return Boolean(currentFolder) && currentFolder.path == path;
74
+ };
75
+
76
+ WindowCheck.open = function (path) {
77
+ openFolder(path);
78
+ return WindowCheck.until(function () { return WindowCheck.isShown(path); }, "the folder " + path);
79
+ };
80
+
81
+ // A style that the code of the page makes (basic.js and the components do) must pass the security policy
82
+ WindowCheck.isCodeStyleApplied = function () {
83
+ const style = document.createElement("style");
84
+ style.textContent = ".window-check-probe { width: 7px; }";
85
+ const probe = document.createElement("div");
86
+ probe.className = "window-check-probe";
87
+ document.head.appendChild(style);
88
+ document.body.appendChild(probe);
89
+ const isApplied = getComputedStyle(probe).width == "7px";
90
+ style.remove();
91
+ probe.remove();
92
+ return isApplied;
93
+ };
94
+
95
+ // The security policy lets no text run as code (no 'unsafe-eval'): where it does, the policy is off
96
+ WindowCheck.canRunTextAsCode = function () {
97
+ try {
98
+ return new Function("return 1")() == 1;
99
+ } catch (error) {
100
+ return false;
101
+ }
102
+ };
103
+
104
+ // WHY getAttribute: an icon that has no file yet (a row that is not filled) is not a broken picture
105
+ WindowCheck.pictures = function () {
106
+ return Array.from(document.images).filter(function (image) {
107
+ return Boolean(image.getAttribute("src"));
108
+ });
109
+ };
110
+
111
+ WindowCheck.pictureCount = function () {
112
+ return WindowCheck.pictures().length;
113
+ };
114
+
115
+ WindowCheck.brokenPictureCount = function () {
116
+ return WindowCheck.pictures().filter(function (image) {
117
+ return image.complete && image.naturalWidth == 0;
118
+ }).length;
119
+ };
120
+
121
+ WindowCheck.run = async function () {
122
+
123
+ const folderPath = CHECK.folder;
124
+
125
+ // The page in the app
126
+ WindowCheck.expect(Backend.isInApp(), "the page runs in the app (window.__TAURI__)");
127
+ await WindowCheck.until(function () { return Boolean(currentFolder); }, "the home folder");
128
+ WindowCheck.expect(Boolean(currentFolder) && currentFolder.crumbs.length > 0, "the home folder is listed by Rust");
129
+ // The content security policy of tauri.conf.json (app.security.csp): it is on, and the page works with it
130
+ WindowCheck.expect(!WindowCheck.canRunTextAsCode(), "the security policy is on (a text does not run as code)");
131
+ WindowCheck.expect(WindowCheck.isCodeStyleApplied(), "a style made by the code is applied (style-src of the security policy)");
132
+ WindowCheck.expect(WindowCheck.pictureCount() > 0 && WindowCheck.brokenPictureCount() == 0, "the icons are drawn (img-src of the security policy): " + WindowCheck.pictureCount() + " pictures, " + WindowCheck.brokenPictureCount() + " broken");
133
+
134
+ // THE FIRST EXAMPLE: the page asks, Rust answers
135
+ await WindowCheck.open(folderPath);
136
+ const expectedNames = ["b-folder", "a-file.txt"];
137
+ // WHY first: the folders come first, and "<" is before the letters
138
+ if (CHECK.tagName) expectedNames.unshift(CHECK.tagName);
139
+ WindowCheck.expect(WindowCheck.namesOf(currentFolder) == expectedNames.join(", "), "the folders come first, the hidden file is not listed: " + WindowCheck.namesOf(currentFolder));
140
+ WindowCheck.expect(WindowCheck.entryOf("b-folder").isFolder === true && WindowCheck.entryOf("a-file.txt").size == 5, "an entry tells its kind and its size (isFolder, size)");
141
+ // WHY a wait: the table draws its rows a moment after it gets them
142
+ await WindowCheck.until(function () { return WindowCheck.tableShows("a-file.txt"); }, "the rows of the table");
143
+ WindowCheck.expect(WindowCheck.tableShows("a-file.txt") && WindowCheck.tableShows("b-folder"), "the table shows the entries");
144
+
145
+ chkHidden.setChecked(1);
146
+ await WindowCheck.until(function () { return Boolean(WindowCheck.entryOf(".hidden-file")); }, "the hidden file");
147
+ WindowCheck.expect(currentFolder.entries.length == expectedNames.length + 1, "Hidden files: the hidden file is listed too");
148
+
149
+ const missingError = await Backend.listFolder(folderPath + "-missing", false).then(function () { return ""; }, String);
150
+ WindowCheck.expect(missingError.includes("-missing"), "a folder that is not there is an error with a text: " + missingError);
151
+
152
+ // A name is a text, never HTML: the table, the path and an error toast show the name of the tag folder
153
+ if (CHECK.tagName) {
154
+ const tagPath = WindowCheck.entryOf(CHECK.tagName).path;
155
+ await WindowCheck.open(tagPath);
156
+ showError(tagPath + ": an error of the check");
157
+ WindowCheck.expect(crumbs.elem.textContent.includes(CHECK.tagName), "the path shows a name with a tag in it as it is written");
158
+ WindowCheck.expect(!document.querySelector('img[src="x"]') && !window.CHECK_TAG_RAN, "a name with a tag in it does not become HTML (the table, the path, a toast)");
159
+ await WindowCheck.open(folderPath);
160
+ }
161
+
162
+ // THE SECOND EXAMPLE: Rust sends events
163
+ const insidePath = WindowCheck.entryOf("b-folder").path;
164
+ Sizes.start();
165
+ await WindowCheck.until(function () { return Sizes.job == 0 && Sizes.sizeOf(insidePath) != NO_SIZE; }, "the events of the measure");
166
+ WindowCheck.expect(Sizes.sizeOf(insidePath) == 3, "Sizes: the events give the folder inside its size (3 bytes): " + Sizes.sizeOf(insidePath));
167
+ WindowCheck.expect(lblSpeed.elem.textContent.includes("Measured by Rust"), "Sizes: the status bar tells the end: " + lblSpeed.elem.textContent);
168
+
169
+ // THE THIRD EXAMPLE: a plugin of Tauri (the dialog itself waits for a person: only its function is looked at)
170
+ const dialog = window.__TAURI__.dialog;
171
+ WindowCheck.expect(Boolean(dialog) && typeof dialog.open == "function", "the dialog plugin is in the page (window.__TAURI__.dialog.open)");
172
+
173
+ openParent();
174
+ await WindowCheck.until(function () { return !WindowCheck.isShown(folderPath); }, "the folder above");
175
+ WindowCheck.expect(btnUp.enabled == 1 && currentFolder.entries.length > 0, "Up opens the folder above");
176
+
177
+ WindowCheck.expect(WindowCheck.pageErrors.length == 0, "no error in the page" + (WindowCheck.pageErrors.length ? ": " + WindowCheck.pageErrors.join(" | ") : ""));
178
+
179
+ };
180
+
181
+ WindowCheck.run()
182
+ .catch(function (error) {
183
+ // WHY the errors of the page too: a mistake in a script shows here first as a name that is missing
184
+ const pageErrors = WindowCheck.pageErrors.length ? " (errors of the page: " + WindowCheck.pageErrors.join(" | ") + ")" : "";
185
+ WindowCheck.expect(false, "the check stopped: " + error + pageErrors);
186
+ })
187
+ .then(function () {
188
+ window.__TAURI__.event.emit("check-done", { lines: WindowCheck.lines, failed: WindowCheck.failed });
189
+ });