Commit graph

41 commits

Author SHA1 Message Date
Ayman Bagabas
cc0168c65e
refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
Ayman Bagabas
ff8c8247c5
docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
Ayman Bagabas
eecd88792a
docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
Ayman Bagabas
20b1d5def3
chore: update examples to use tea.View 2025-10-01 13:50:44 -04:00
Ayman Bagabas
f2d8c4d1e4
chore: update examples and api 2025-10-01 13:50:43 -04:00
Andrey Nering
ca493b9828 chore: run modernize 2025-05-30 17:22:31 -03:00
Ayman Bagabas
6a72a24a38
docs(examples): update list-fancy and views examples 2025-02-04 14:27:05 -05:00
Ayman Bagabas
55f6f9f70b
chore(examples): update examples 2025-01-23 15:42:03 -05:00
Ayman Bagabas
ed3971de95 chore(examples): use lipgloss/v2 in examples 2024-10-31 16:07:31 -04:00
Ayman Bagabas
e812e941e7
fix: examples: update examples to use tea.KeyPressMsg and tea.MouseClickMsg 2024-10-11 11:53:41 -04:00
Ayman Bagabas
1678d85ce2
feat: use bubbles/v2 and bubbletea/v2 in examples and tutorials 2024-09-18 14:21:14 -04:00
Ayman Bagabas
ee120d5542
chore: update examples to use v2-exp 2024-09-12 11:39:54 -04:00
Ayman Bagabas
7199a7f29d
chore(examples): use lipgloss for indentation
Fixes: a6f77ff8cd
2024-03-22 14:04:59 -04:00
Ayman Bagabas
a6f77ff8cd
chore(examples): use lipgloss everywhere possible (#963)
Lip Gloss abstracts away the color profiles logic and results in less
lines
2024-03-22 13:55:19 -04:00
Carlos Alexandro Becker
b80eb8303b
docs: fix lint issues in examples and tutorials (#759)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-09 13:33:53 -03:00
Christian Muehlhaeuser
6b77c8fc10 chore: rename StartReturningModel to Run
Added aliases for the old functions, but deprecated them.
2022-10-08 01:34:17 +02:00
Christian Muehlhaeuser
22d15efad7 chore: clean up linter errors in examples 2022-10-08 00:56:56 +02:00
Maas Lalani
d20732aaea docs: add examples/gifs locally to repository 2022-10-03 15:07:28 -04:00
Maas Lalani
70576bc9e0
examples/README.md GIFs (#470)
* docs(examples): Add `examples/README.md`

Adds `examples/README.md` with GIFs of examples

* docs(examples): Individual READMEs

* docs(examples): add short description to each example
2022-10-03 12:06:18 -04:00
Christian Rocha
1a0beff868
chore: use go 1.16 (#449)
* chore: use go 1.16 and gofmt accordingly

* chore: also update examples and tuts to go 1.16
2022-09-14 19:08:36 -04:00
Christian Muehlhaeuser
7c939e8dfb Use termenv's EnvColorProfile, which respects NO_COLOR and CLICOLOR_FORCE env vars 2022-02-06 04:24:31 +01:00
Christian Muehlhaeuser
b6c7f93d9a Fix various typos in examples 2021-03-12 02:16:41 +01:00
Christian Rocha
df0da42954
Add progressbar example 2021-01-12 18:13:29 -05:00
Christian Rocha
7507f3d805
Update views example to use new Model interface-based structure 2020-10-15 16:30:34 -04:00
Christian Rocha
51e97bb959
Add descriptions to example programs and bump deps in examples 2020-10-14 11:51:32 -04:00
Christian Rocha
1dda8ac639
Color and formatting for "views" demo 2020-10-02 20:17:19 -04:00
Christian Rocha
43bcbfc84b
Clean up 'views' example 2020-07-30 12:32:24 -04:00
Christian Rocha
4ce9b4ea83
Fix broken logic in original "views" example 2020-06-05 14:12:02 -04:00
Christian Rocha
3b8b011b5a
Rename to Bubble Tea (with the import name tea) 2020-05-25 19:48:36 -04:00
Christian Rocha
ade8203c21
Remove entire subscription model
It was a valiant effort, and the implementation was solid and
dependable, but at the end of the day we can achieve the same
functionality in a much simpler fashion with commands, especially
because Go is not held to the same restrictions as Elm.
2020-05-12 18:00:50 -04:00
Christian Rocha
82ddbb8e12
Move components over and update examples 2020-05-12 17:06:00 -04:00
Christian Rocha
d503d5dbf6
Every sends the time at which the timer ticked 2020-05-05 14:26:06 -04:00
Christian Rocha
ac67237eab
Add 'Every' subscription for ticking with the system clock 2020-05-05 13:38:46 -04:00
Christian Rocha
b50ee76165
Subs shouldn't take a model as an argument
This also nullifies the need for SubMap
2020-05-04 18:52:44 -04:00
Christian Rocha
91271cacab
Fill out constants and strings for control keys 2020-01-26 16:46:30 -05:00
Christian Rocha
651b881a02
Update examples to use new subscription model 2020-01-25 21:28:16 -05:00
Christian Rocha
6a0489592f
Programs should take an init type/function as the first argument
This is in line with the way Elm works. Also update examples.
2020-01-18 22:22:04 -05:00
Christian Rocha
768462afb3
Update tea imports in examples 2020-01-18 11:15:55 -05:00
Christian Rocha
208f421470
Refactor the keybinding stuff + add backspace 2020-01-17 20:46:34 -05:00
Christian Rocha
fe42b5c4a7
Clear necessary lines before rendering 2020-01-15 22:41:45 -05:00
Christian Rocha
7f3506eedc
Whoops, fix framerate in example so it running at 60fps 2020-01-15 16:06:14 -05:00