Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chinedufn/percy
/ functions
Functions
600 in github.com/chinedufn/percy
⨍
Functions
600
◇
Types & classes
117
↓ 1 callers
Function
not_full_water_bottle
(percent_full: f32)
examples/unit-testing-components/src/main.rs:20
↓ 1 callers
Method
old_node_idx
Every Patch is meant to be applied to a specific node within the DOM. Get the index of the DOM node that this patch should apply to. DOM nodes are ind
crates/percy-dom/src/patch.rs:149
↓ 1 callers
Function
onmousemove_name
()
crates/percy-dom/src/diff.rs:2935
↓ 1 callers
Function
out_dir
()
crates/percy-preview-app/build.rs:51
↓ 1 callers
Method
overwrite_event_attrib_fn
Overwrite an event handler. # Panics Panics if there isn't an event attrib fn to overwrite.
crates/virtual-node/src/event/virtual_events.rs:170
↓ 1 callers
Function
overwrite_events
( node: &VirtualNode, events_node: Rc<RefCell<VirtualEventNode>>, virtual_events: &mut VirtualEven
crates/percy-dom/src/patch/apply_patches.rs:201
↓ 1 callers
Function
parse_attribute_key
Parse an attribute key such as the "http-equiv" in `<meta http-equiv="refresh" />`
crates/html-macro/src/tag.rs:218
↓ 1 callers
Function
parse_attributes
Parse the attributes starting from something like: id="app" class=*CSS> As soon as we see > We know that the element has no more attributes and our l
crates/html-macro/src/tag.rs:154
↓ 1 callers
Function
parse_block
(input: &mut ParseStream)
crates/html-macro/src/tag.rs:287
↓ 1 callers
Method
parse_braced
Parse an incoming Tag::Braced text node
crates/html-macro/src/parser/braced.rs:10
↓ 1 callers
Function
parse_close_tag
</div>
crates/html-macro/src/tag.rs:276
↓ 1 callers
Method
parse_close_tag
Parse an incoming Tag::Close
crates/html-macro/src/parser/close_tag.rs:7
↓ 1 callers
Method
parse_expr
Parse an incoming syn::Expr node inside a block
crates/html-macro/src/parser/statement.rs:24
↓ 1 callers
Function
parse_open_tag
`<div id="app" class=*CSS>`
crates/html-macro/src/tag.rs:128
↓ 1 callers
Method
parse_open_tag
Parse an incoming Tag::Open
crates/html-macro/src/parser/open_tag.rs:13
↓ 1 callers
Method
parse_statement
Parse an incoming syn::Stmt node inside a block
crates/html-macro/src/parser/statement.rs:7
↓ 1 callers
Method
parse_text
Parse an incoming Tag::Text text node
crates/html-macro/src/parser/text.rs:8
↓ 1 callers
Function
parse_text_node
Parse a sequence of tokens until we run into a closing tag html! { <div> Hello World </div> } or a brace html! { <div> Hello World { Braced } </div>
crates/html-macro/src/tag.rs:315
↓ 1 callers
Function
percy_diff_and_patch_root_node
( vdom_root: &VirtualNode, dom_root: &Node, events: &mut VirtualEvents, )
examples/embed-non-percy-node/src/lib.rs:79
↓ 1 callers
Function
port
()
examples/isomorphic/client/src/lib.rs:149
↓ 1 callers
Function
port
()
crates/percy-dom/src/single_page_app.rs:77
↓ 1 callers
Function
previews
All of the view components to preview.
examples/component-preview/src/preview.rs:9
↓ 1 callers
Function
process_delete_job
(ctx: &mut DiffContext<'a>, delete_job: DeleteJob<'a>)
crates/percy-dom/src/diff.rs:203
↓ 1 callers
Function
process_diff_job
(ctx: &mut DiffContext<'a>, diff_job: DiffJob<'a>)
crates/percy-dom/src/diff.rs:119
↓ 1 callers
Method
push_diff_job
(&mut self, diff_job: DiffJob<'a>)
crates/percy-dom/src/diff.rs:79
↓ 1 callers
Method
push_tag
Generate the tokens for the incoming Tag and update our parser's heuristics that keep track of information about what we've parsed.
crates/html-macro/src/parser/mod.rs:71
↓ 1 callers
Method
remove_event_handler
Remove an event handler.
crates/virtual-node/src/event/virtual_events.rs:213
↓ 1 callers
Method
remove_node
Remove all event handlers for a node.
crates/virtual-node/src/event/virtual_events.rs:226
↓ 1 callers
Method
remove_non_delegated_event_wrapper
Remove a managed event.
crates/virtual-node/src/event/virtual_events.rs:186
↓ 1 callers
Method
render
(&mut self)
examples/isomorphic/client/src/lib.rs:83
↓ 1 callers
Method
render
(&self)
crates/percy-preview-app/src/view/index_route.rs:42
↓ 1 callers
Method
render
(&self)
crates/percy-preview-app/src/view/visualize_component_route.rs:71
↓ 1 callers
Method
render_active_preview
Render the component that is currently being previewed.
crates/percy-preview-app/src/view/visualize_component_route.rs:125
↓ 1 callers
Method
render_preview_list
Render a list of links to component previews. Clicking on a link will show the relevant component.
crates/percy-preview-app/src/view/index_route.rs:63
↓ 1 callers
Method
render_preview_list
Render a list of links to component previews. Clicking on a link will show the relevant component.
crates/percy-preview-app/src/view/visualize_component_route.rs:93
↓ 1 callers
Method
renderer
Returns a function that can be used to render the preview.
crates/percy-preview/src/lib.rs:63
↓ 1 callers
Function
replace_node
Push patches for replacing a node.
crates/percy-dom/src/diff.rs:226
↓ 1 callers
Method
root_node
Return the root node of your application, the highest ancestor of all other nodes in your real DOM tree.
crates/percy-dom/src/pdom.rs:95
↓ 1 callers
Function
run_sunbeam_build
(crate_dir: &PathBuf, out_dir: &PathBuf)
crates/percy-preview-server/src/filesystem_watcher.rs:174
↓ 1 callers
Function
serve
(static_files: String)
examples/isomorphic/server/src/actix_server.rs:44
↓ 1 callers
Method
set_after_route
(&mut self, after_route: Box<dyn Fn(&str) -> ()>)
examples/isomorphic/app/src/store.rs:56
↓ 1 callers
Method
set_description
The preview's description.
crates/percy-preview/src/lib.rs:58
↓ 1 callers
Function
set_events_id
(node: &JsValue, events: &VirtualEvents, events_id: ElementEventsId)
crates/virtual-node/src/event/virtual_events.rs:433
↓ 1 callers
Method
set_first_and_last_child
Set this element's first and last child.
crates/virtual-node/src/event/virtual_events.rs:425
↓ 1 callers
Method
set_most_recent_block_start
Set the location of the most recent start tag's ending LineColumn
crates/html-macro/src/parser/mod.rs:182
↓ 1 callers
Method
set_most_recent_open_tag_end
Set the location of the most recent start tag's ending LineColumn
crates/html-macro/src/parser/mod.rs:177
↓ 1 callers
Function
set_onpopstate_handler
Set a function to be called with the new path whenever a popstate event occurs on the window.
crates/percy-dom/src/single_page_app.rs:48
↓ 1 callers
Method
set_path
(&mut self, path: String)
examples/isomorphic/app/src/state/mod.rs:74
↓ 1 callers
Method
set_path_message_handler
( &mut self, new_path: String, wrap: AppWorldWrapper<Self>, )
crates/percy-preview-app/src/app/world/message/message_handlers/set_path_message_handler.rs:6
↓ 1 callers
Method
set_render_fn
Get the inner render function.
crates/percy-preview/src/rerender.rs:32
↓ 1 callers
Method
set_route_data_provider_message_handler
(&mut self, wrap: AppWorldWrapper<Self>)
crates/percy-preview-app/src/app/world/message/message_handlers/set_route_data_provider_message_handler.rs:7
↓ 1 callers
Function
setup_percy_dom_with_embedded_element
()
examples/embed-non-percy-node/src/lib.rs:53
↓ 1 callers
Function
setup_single_page_application
(window_messenger: WindowMessenger)
crates/percy-preview-app/src/lib.rs:83
↓ 1 callers
Method
should_insert_space_before_text
If the last TagKind was a block or an open tag we check to see if there is space between this text and that tag. If so we insert some space before thi
crates/html-macro/src/parser/text.rs:80
↓ 1 callers
Method
should_propagate
Whether or not the event should propagate.
crates/virtual-node/src/event/event_handlers.rs:48
↓ 1 callers
Function
start_fs_notification_receiver_thread
(config: NotificationReceiverConfig)
crates/percy-preview-server/src/filesystem_watcher.rs:72
↓ 1 callers
Function
start_fs_notification_sender_thread
( config: NotificationSenderConfig, )
crates/percy-preview-server/src/filesystem_watcher.rs:25
↓ 1 callers
Function
start_server
Start the Percy Preview server.
crates/percy-preview-server/src/lib.rs:25
↓ 1 callers
Method
store_found_node
(&mut self, node_idx: u32, node: Node, events_node: EventsNodeAndParent)
crates/percy-dom/src/patch/apply_patches.rs:106
↓ 1 callers
Method
subscribe
(&mut self, callback: Box<dyn Fn() -> ()>)
examples/isomorphic/app/src/store.rs:52
↓ 1 callers
Function
sunbeam_dir
()
examples/component-preview/build.rs:50
↓ 1 callers
Method
take_patches
(self)
crates/percy-dom/src/diff.rs:102
↓ 1 callers
Method
to_json
(&self)
examples/isomorphic/app/src/state/mod.rs:33
↓ 1 callers
Function
to_string
()
crates/virtual-node/src/lib.rs:271
↓ 1 callers
Method
unique_events_id
Create an ElementEventsId that is unique to this VirtualEvents instance.
crates/virtual-node/src/event/virtual_events.rs:253
↓ 1 callers
Function
views_dir
()
examples/component-preview/build.rs:42
↓ 1 callers
Function
views_dir
()
crates/percy-preview-app/build.rs:43
↓ 1 callers
Function
was_created_by_percy
Looks for a property on the element. If it's there then this is a Percy element. TODO: We need to know not just if the node was created by Percy... b
crates/percy-dom/src/patch/apply_patches.rs:536
↓ 1 callers
Function
wasm_bindgen_build
( project_library_name: &str, target: &PathBuf, out_dir: &PathBuf, )
crates/percy-preview-server/src/filesystem_watcher.rs:143
↓ 1 callers
Function
water_bottle_view
(percent_full: f32)
examples/unit-testing-components/src/main.rs:35
Method
__insert_unsupported_signature
( &mut self, event_name: EventName, event: EventAttribFnInner, )
crates/virtual-node/src/event.rs:52
Function
add_attributes
()
crates/percy-dom/src/diff.rs:1165
Function
add_children
()
crates/percy-dom/src/diff.rs:952
Function
add_node_before_node_with_events
()
crates/percy-dom/tests/events.rs:366
Function
always_pushes_patch_for_checked
()
crates/percy-dom/src/diff.rs:1255
Function
always_pushes_patch_for_value
()
crates/percy-dom/src/diff.rs:1225
Function
apostrophe
()
crates/html-macro-test/src/tests/all_tests.rs:213
Function
append_children
()
crates/virtual-node/src/event/virtual_events.rs:448
Function
append_children
()
crates/percy-dom/tests/diff_patch.rs:69
Function
append_element_with_closure
()
crates/percy-dom/tests/pdom.rs:54
Function
append_new_element_to_keyed_list
()
crates/percy-dom/src/diff.rs:2114
Function
append_sibling_text_nodes
()
crates/percy-dom/tests/text.rs:57
Function
append_text_node
()
crates/percy-dom/tests/text.rs:45
Function
array_of_as_ref_str
()
crates/virtual-node/src/velement/attribute_value.rs:154
Method
as_vtext_mut
Return a mutable [`VText`] reference, if this is an [`Text`] variant. [`VText`]: struct.VText.html [`Text`]: enum.VirtualNode.html#variant.Text
crates/virtual-node/src/lib.rs:131
Method
as_vtext_ref
Return a [`VText`] reference, if this is an [`Text`] variant. [`VText`]: struct.VText.html [`Text`]: enum.VirtualNode.html#variant.Text TODO: Rename
crates/virtual-node/src/lib.rs:120
Function
block_root
()
crates/html-macro-test/src/tests/all_tests.rs:123
Function
boolean_attribute_false_ignored
()
crates/virtual-node/src/lib.rs:305
Function
boolean_attribute_true_shown
()
crates/virtual-node/src/lib.rs:293
Function
catch_all
# Example localhost:7878/contributors?init=1200
examples/isomorphic/server/src/actix_server.rs:28
Function
catch_all
(Extension(html): Extension<Arc<CatchAllHtml>>)
crates/percy-preview-server/src/router.rs:35
Function
change_attribute
()
crates/percy-dom/src/diff.rs:1198
Function
child_node
()
crates/html-macro-test/src/tests/all_tests.rs:50
Function
children_recursive
()
crates/virtual-node/src/test_utils.rs:62
Method
children_recursive
Get a vector of all of the VirtualNode children / grandchildren / etc of your virtual_node. Children are visited recursively depth first. # Examples
crates/virtual-node/src/test_utils.rs:28
Function
click_event_works
()
crates/percy-dom/tests/events.rs:47
Function
click_msg
()
examples/isomorphic/app/src/lib.rs:130
Function
closure_moved_variables_used
()
crates/html-macro-test/src/tests/events.rs:38
Function
closure_with_arguments
()
crates/percy-dom/tests/events.rs:461
Function
closure_with_no_arguments
()
crates/percy-dom/tests/events.rs:451
← previous
next →
201–300 of 600, ranked by callers