Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Jan 1, 2025
1 parent 136f756 commit 38e3909
Show file tree
Hide file tree
Showing 16 changed files with 348 additions and 316 deletions.
14 changes: 8 additions & 6 deletions config/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def prettify_layout_attribute_style_type(
global SELECTED_LANGUAGE

values = item.get("text", {}).get(SELECTED_LANGUAGE, "")
value_handler = item.get("value_handler", "")

key_main = "ADD_LAYOUT_ATTRIBUTE_STYLE_TYPE"
key_hide = "ADD_LAYOUT_ATTRIBUTE_STYLE_TYPE_HIDE"
key_repeat = "ADD_LAYOUT_ATTRIBUTE_STYLE_TYPE_REPEAT"
Expand All @@ -155,7 +157,7 @@ def prettify_layout_attribute_style_type(
return (
key_hide
+ command_layout_style_type(
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", values
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", values, value_handler
)
+ "\n"
)
Expand All @@ -166,15 +168,15 @@ def prettify_layout_attribute_style_type(
result += (
key_hide
+ command_layout_style_type(
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", value
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", value, value_handler
)
+ "\n"
)
else:
result += (
key_repeat
+ command_layout_style_type(
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", value
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", value, value_handler
)
+ "\n"
)
Expand All @@ -184,7 +186,7 @@ def prettify_layout_attribute_style_type(
return (
key_main
+ command_layout_style_type(
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", values
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", values, value_handler
)
+ "\n"
)
Expand All @@ -195,15 +197,15 @@ def prettify_layout_attribute_style_type(
result += (
key_main
+ command_layout_style_type(
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", value
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", value, value_handler
)
+ "\n"
)
else:
result += (
key_repeat
+ command_layout_style_type(
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", value
item, "AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_", value, value_handler
)
+ "\n"
)
Expand Down
2 changes: 2 additions & 0 deletions src/generated-config/ast_block_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ ADD_BLOCK_TYPE(AST_BLOCK_TYPE_ERROR, "ERROR", "error")








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_style_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(unset, "حذف شده")








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_style_state_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_EMPT








622 changes: 312 additions & 310 deletions src/generated-config/ast_layout_attribute_style_type.h

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_style_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,8 @@ const ast_layout_attribute_pair_t ast_layout_allowed_style_list_zoom[] = {








Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ extern const ast_layout_attribute_pair_t ast_layout_allowed_style_list_zoom[];








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ ADD_LAYOUT_ATTRIBUTE_TYPE(AST_LAYOUT_ATTRIBUTE_TYPE_RESPONSIVE_MIN_HEIGHT, "RESP








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ const ast_layout_attribute_pair_t ast_layout_allowed_lang[] = {








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_value_extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ extern const ast_layout_attribute_pair_t ast_layout_allowed_lang[];








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ ADD_LAYOUT_TYPE_REPEAT(AST_LAYOUT_TYPE_MEDIA, "MEDIA", "media", "@media", "وا








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_type_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ else if (attribute->parent_node_type == AST_LAYOUT_TYPE_MEDIA) {








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_type_attributes_all.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,5 @@ const size_t map_size = sizeof(layout_map) / sizeof(layout_map[0]);





2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_type_attributes_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,5 @@ const size_t valid_attributes_media_length = 0;





Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,5 @@ extern const size_t valid_attributes_media_length;





2 changes: 2 additions & 0 deletions src/generated-config/ast_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ ADD_TYPE(AST_TYPE_ERROR, "ERROR", "error")








0 comments on commit 38e3909

Please sign in to comment.