File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 ~/.cargo/git/db/
2929 target/
3030 key : ubuntu-test-cargo-${{ hashFiles('**/Cargo.lock') }}
31+ - name : Install Tools
32+ run : cargo install typos-cli
3133 - name : Lint
32- run : cargo clippy -- --deny warnings
34+ run : |
35+ cargo clippy -- --deny warnings
36+ typos
3337 - name : Build test
3438 run : cargo build
Original file line number Diff line number Diff line change 1- # GPUI Compoment
1+ # GPUI Component
22
33> This is still an early stage of development, we may change API frequently.
44> But the features is ok to use, you must keep tracking our changes.
Original file line number Diff line number Diff line change 22 "border_radius" : 2 ,
33 "width" : 400 ,
44 "height" : 300 ,
5- "inner_radus " : 30 ,
5+ "inner_radius " : 30 ,
66 "legend_margin" : {
77 "top" : 0
88 },
1212 "series_list" : [
1313 {
1414 "name" : " rose 1" ,
15- "data" : [
16- 40
17- ]
15+ "data" : [40 ]
1816 },
1917 {
2018 "name" : " rose 2" ,
21- "data" : [
22- 38
23- ]
19+ "data" : [38 ]
2420 },
2521 {
2622 "name" : " rose 3" ,
27- "data" : [
28- 32
29- ]
23+ "data" : [32 ]
3024 },
3125 {
3226 "name" : " rose 4" ,
33- "data" : [
34- 30
35- ]
27+ "data" : [30 ]
3628 },
3729 {
3830 "name" : " rose 5" ,
39- "data" : [
40- 28
41- ]
31+ "data" : [28 ]
4232 },
4333 {
4434 "name" : " rose 6" ,
45- "data" : [
46- 26
47- ]
35+ "data" : [26 ]
4836 },
4937 {
5038 "name" : " rose 7" ,
51- "data" : [
52- 22
53- ]
39+ "data" : [22 ]
5440 },
5541 {
5642 "name" : " rose 8" ,
57- "data" : [
58- 18
59- ]
43+ "data" : [18 ]
6044 }
6145 ],
6246 "sub_title_text" : " Sub Title" ,
6347 "theme" : " light" ,
6448 "title_text" : " Nightingale Chart" ,
6549 "type" : " pie"
66- }
50+ }
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ impl Render for SwitchStory {
102102 card ( cx)
103103 . child (
104104 title ( "Security emails" ) . child (
105- Label :: new ( "Receive emails about your account security. When turn off, you never recive email again." ) . text_color ( theme. muted_foreground )
105+ Label :: new ( "Receive emails about your account security. When turn off, you never receive email again." ) . text_color ( theme. muted_foreground )
106106 )
107107 )
108108 . child (
@@ -116,7 +116,7 @@ impl Render for SwitchStory {
116116 )
117117 . child (
118118 card ( cx) . v_flex ( )
119- . items_start ( ) . child ( title ( "Disabled Switchs " ) ) . child (
119+ . items_start ( ) . child ( title ( "Disabled Switches " ) ) . child (
120120 h_flex ( ) . items_center ( )
121121 . gap_6 ( )
122122 . child ( Switch :: new ( "switch3" ) . disabled ( true ) . on_click ( |v, _| {
@@ -133,7 +133,7 @@ impl Render for SwitchStory {
133133 )
134134 . child (
135135 card ( cx) . v_flex ( )
136- . items_start ( ) . child ( title ( "Small Switchs " ) ) . child (
136+ . items_start ( ) . child ( title ( "Small Switches " ) ) . child (
137137 h_flex ( ) . items_center ( )
138138 . gap_6 ( )
139139 . child ( Switch :: new ( "switch3" ) . checked ( self . switch3 ) . label ( "Small Size" ) . small ( ) . on_click ( cx. listener ( move |view, checked, cx| {
Original file line number Diff line number Diff line change @@ -136,12 +136,12 @@ pub(crate) struct ShadcnColors {
136136pub ( crate ) struct ShadcnColor {
137137 #[ serde( default ) ]
138138 pub ( crate ) scale : usize ,
139- #[ serde( deserialize_with = "from_hsa_channel " , alias = "hslChannel" ) ]
139+ #[ serde( deserialize_with = "from_hsl_channel " , alias = "hslChannel" ) ]
140140 pub ( crate ) hsla : Hsla ,
141141}
142142
143143/// Deserialize Hsla from a string in the format "210 40% 98%"
144- fn from_hsa_channel < ' de , D > ( deserializer : D ) -> Result < Hsla , D :: Error >
144+ fn from_hsl_channel < ' de , D > ( deserializer : D ) -> Result < Hsla , D :: Error >
145145where
146146 D : Deserializer < ' de > ,
147147{
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ impl Render for InvalidPanel {
5050 . justify_center ( )
5151 . text_color ( cx. theme ( ) . muted_foreground )
5252 . child ( format ! (
53- "The `{}` panel type is not registed in PanelRegistry." ,
53+ "The `{}` panel type is not registered in PanelRegistry." ,
5454 self . name. clone( )
5555 ) )
5656 }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub trait Panel: EventEmitter<PanelEvent> + FocusableView {
4848 true
4949 }
5050
51- /// Return true if the panel is collapsable , default is `false`.
51+ /// Return true if the panel is collapsible , default is `false`.
5252 fn collapsible ( & self , _cx : & WindowContext ) -> bool {
5353 false
5454 }
Original file line number Diff line number Diff line change @@ -706,7 +706,7 @@ impl TabPanel {
706706 }
707707 }
708708
709- // Here is looks like remove_panel on a same item, but it differnece .
709+ // Here is looks like remove_panel on a same item, but it difference .
710710 //
711711 // We must to split it to remove_panel, unless it will be crash by error:
712712 // Cannot update ui::dock::tab_panel::TabPanel while it is already being updated
Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ where
386386 ListSizingBehavior :: Auto
387387 } ;
388388
389- let inital_view = if let Some ( input) = & self . query_input {
389+ let initial_view = if let Some ( input) = & self . query_input {
390390 if input. read ( cx) . text ( ) . is_empty ( ) {
391391 self . delegate ( ) . render_initial ( cx)
392392 } else {
@@ -420,7 +420,7 @@ where
420420 )
421421 } )
422422 . map ( |this| {
423- if let Some ( view) = inital_view {
423+ if let Some ( view) = initial_view {
424424 this. child ( view)
425425 } else {
426426 this. child (
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ impl PopupMenu {
130130 } )
131131 }
132132
133- /// Bind the focus handle of the menu, when clicked, it will focus back to this handle and then dispath the action
133+ /// Bind the focus handle of the menu, when clicked, it will focus back to this handle and then dispatch the action
134134 pub fn track_focus ( mut self , focus_handle : & FocusHandle ) -> Self {
135135 self . action_focus_handle = Some ( focus_handle. clone ( ) ) ;
136136 self
You can’t perform that action at this time.
0 commit comments