MCPcopy Create free account

hub / github.com/chinedufn/percy / functions

Functions600 in github.com/chinedufn/percy

↓ 2 callersFunctionmaybe_push_delete_jobs_for_children
(ctx: &mut DiffContext<'a>, node: &'a VirtualNode)
crates/percy-dom/src/diff.rs:251
↓ 2 callersFunctionmaybe_push_insert_before
( ctx: &mut DiffContext<'a>, old_idx: u32, new_nodes: &mut Vec<&'a VirtualNode>, )
crates/percy-dom/src/diff.rs:689
↓ 2 callersFunctionmaybe_push_move_before
(ctx: &mut DiffContext<'a>, old_idx: u32, move_before: &mut Vec<u32>)
crates/percy-dom/src/diff.rs:705
↓ 2 callersFunctionmaybe_set_checked_property
See crates/percy-dom/tests/checked_attribute.rs
crates/percy-dom/src/patch/apply_patches.rs:525
↓ 2 callersFunctionmaybe_set_value_property
See crates/percy-dom/tests/value_attribute.rs
crates/percy-dom/src/patch/apply_patches.rs:516
↓ 2 callersMethodmsg
(&mut self, message: Self::Message, wrap: AppWorldWrapper<Self>)
crates/percy-preview-app/src/app/world/message/message_handlers.rs:12
↓ 2 callersMethodname
The name of the preview.
crates/percy-preview/src/lib.rs:43
↓ 2 callersMethodnew_virtual_node_ident
Create a new identifier for a VirtualNode and increment our node_idx so that next time we call this our node will get a different name.
crates/html-macro/src/parser/mod.rs:204
↓ 2 callersMethodnext_old_node_idx
(&self)
crates/percy-dom/src/diff.rs:94
↓ 2 callersFunctionnode_with_events
( tag: &str, id: &str, events: Vec<EventName>, text: Rc<RefCell<String>>, append: &'static
crates/percy-dom/tests/events.rs:569
↓ 2 callersMethodon_create_element_key
The key for the on create element function
crates/virtual-node/src/velement/special_attributes.rs:26
↓ 2 callersMethodparse
(input: ParseStream)
crates/percy-router-macro/src/route_macro.rs:413
↓ 2 callersFunctionparse_attribute_key_segment
Parse a segment within an attribute key, such as the "http" or "equiv" in `<meta http-equiv="refresh" />`
crates/html-macro/src/tag.rs:250
↓ 2 callersMethodpath
(&self)
examples/isomorphic/app/src/state/mod.rs:56
↓ 2 callersMethodpush_delete_job
(&mut self, delete_job: DeleteJob<'a>)
crates/percy-dom/src/diff.rs:83
↓ 2 callersFunctionrender_active_route
()
examples/component-preview/src/routes.rs:3
↓ 2 callersFunctionrender_app
(app: &AppWorldWrapper<World>)
crates/percy-preview-app/src/render.rs:5
↓ 2 callersFunctionrespond
(path: String, init: Option<u32>)
examples/isomorphic/server/src/actix_server.rs:34
↓ 2 callersMethodroot
Get the root event node.
crates/virtual-node/src/event/virtual_events.rs:124
↓ 2 callersMethodset_router
(&mut self, router: Rc<Router>)
examples/isomorphic/app/src/store.rs:60
↓ 2 callersMethodview
Get the first route in our routes vector view that handles this `incoming_route` and return the view for that route. You'll typically call this when
crates/percy-router/src/router.rs:85
↓ 2 callersMethodwith_on_prefix
`onclick`, `onmousemove` etc
crates/virtual-node/src/event/event_name.rs:20
↓ 2 callersFunctionwithout_first
(string: &str)
crates/percy-router-macro/src/route_macro.rs:469
↓ 2 callersMethodwithout_on_prefix
`click`, `mousemove` etc
crates/virtual-node/src/event/event_name.rs:25
↓ 2 callersFunctionwrite_css_to_file
(css_file: &mut File, class: &str, input: TokenStream)
crates/percy-css-macro/src/lib.rs:103
↓ 1 callersMethodadd_events
( &self, element: &Element, events: &VirtualEvents, events_id: ElementEventsId
crates/virtual-node/src/create_element/add_events.rs:10
↓ 1 callersMethodappend_children_to_dom
( &self, element: &Element, document: &Document, event_node: &mut VirtualEvent
crates/virtual-node/src/create_element.rs:73
↓ 1 callersFunctionappend_text
(text: &Rc<RefCell<String>>, append: &str)
crates/percy-dom/tests/events.rs:600
↓ 1 callersFunctionappend_to_document
(elem: &web_sys::Element)
crates/percy-dom/tests/testing_utilities.rs:19
↓ 1 callersFunctionapply_element_patch
( node: &Element, events_elem_and_parent: &EventsNodeAndParent, patch: &Patch, virtual_events:
crates/percy-dom/src/patch/apply_patches.rs:225
↓ 1 callersFunctionapply_text_patch
( node: &Text, patch: &Patch, events: &mut VirtualEvents, events_elem: &Rc<RefCell<VirtualEven
crates/percy-dom/src/patch/apply_patches.rs:485
↓ 1 callersMethodas_bool
If the attribute is a bool, return it. Otherwise return None.
crates/virtual-node/src/velement/attribute_value.rs:26
↓ 1 callersFunctionassert_elem_first_and_last_child
( elem: &VirtualEventElement, expected_children: &[Rc<RefCell<VirtualEventNode>>], )
crates/virtual-node/src/event/virtual_events.rs:596
↓ 1 callersMethodattach_event_listeners
Attach all of the event listeners that handle event delegation.
crates/percy-dom/src/pdom/events.rs:9
↓ 1 callersMethodattach_onclick_listener
(&mut self)
crates/percy-dom/src/pdom/events.rs:13
↓ 1 callersFunctionbubble_event
Call the event, then call it on its parent, etc
crates/percy-dom/src/pdom/events.rs:42
↓ 1 callersFunctionbuild_all_css
()
examples/component-preview/build.rs:10
↓ 1 callersFunctioncargo_build
( project_dir: &PathBuf, target_dir: &PathBuf, out_dir: &PathBuf, )
crates/percy-preview-server/src/filesystem_watcher.rs:113
↓ 1 callersMethodclick_count
(&self)
examples/isomorphic/app/src/state/mod.rs:52
↓ 1 callersFunctioncomponent_node
( idx: usize, name: &Ident, html_tag: &str, attrs: &Vec<Attr>, var_name_node: &Ident, )
crates/html-macro/src/parser/open_tag.rs:146
↓ 1 callersMethodcontributors
(&self)
examples/isomorphic/app/src/state/mod.rs:60
↓ 1 callersFunctioncrate_dir
()
examples/component-preview/build.rs:46
↓ 1 callersFunctioncrate_dir
()
crates/percy-preview-app/build.rs:47
↓ 1 callersFunctioncreate_app
( config: WebClientConfig, render: Arc<Mutex<Box<dyn FnMut() -> ()>>>, )
crates/percy-preview-app/src/lib.rs:65
↓ 1 callersFunctioncreate_my_special_paragraph_element
()
examples/embed-non-percy-node/src/lib.rs:43
↓ 1 callersFunctioncreate_node_and_events
(vnode: VirtualNode)
crates/percy-dom/tests/testing_utilities.rs:41
↓ 1 callersFunctioncreate_percy_dom
(dom_selector_of_mount: &str)
examples/component-preview/src/lib.rs:50
↓ 1 callersFunctioncreate_percy_dom
(dom_selector_of_mount: &str, start_view: VirtualNode)
crates/percy-preview-app/src/lib.rs:97
↓ 1 callersFunctioncreate_router
( config: ServerConfig, html: String, connections: WebsocketConnections, )
crates/percy-preview-server/src/router.rs:13
↓ 1 callersFunctioncreate_router
()
crates/percy-preview-app/src/routes.rs:5
↓ 1 callersFunctioncreate_valid_node
( html_tag: &str, attrs: &Vec<Attr>, var_name_node: &Ident, tokens: &mut Vec<TokenStream2>, )
crates/html-macro/src/parser/open_tag.rs:77
↓ 1 callersFunctioncreate_world
(config: WorldConfig)
crates/percy-preview-app/src/app/world.rs:20
↓ 1 callersMethodderef_mut
(&mut self)
crates/virtual-node/src/event.rs:132
↓ 1 callersMethoddescription
The preview's description.
crates/percy-preview/src/lib.rs:53
↓ 1 callersFunctiondiff_recursive
(ctx: &mut DiffContext)
crates/percy-dom/src/diff.rs:108
↓ 1 callersFunctiondocument
()
crates/percy-dom/src/single_page_app.rs:65
↓ 1 callersFunctiondocument
()
crates/percy-preview-app/src/lib.rs:110
↓ 1 callersMethodevents
All of the events.
crates/virtual-node/src/event.rs:41
↓ 1 callersMethodexpand_if
Expand an incoming Expr::If block This enables us to use JSX-style conditions inside of blocks such as the following example. # Examples ```rust,ign
crates/html-macro/src/parser/statement.rs:55
↓ 1 callersFunctionfind_attributes_to_add
Add attributes from the new element that are not already on the old one or that have changed.
crates/percy-dom/src/diff.rs:267
↓ 1 callersFunctionfind_attributes_to_remove
Remove attributes that were on the old element that are not present on the new element.
crates/percy-dom/src/diff.rs:297
↓ 1 callersFunctionfind_events_to_add
Add attributes from the new element that are not already on the old one or that have changed.
crates/percy-dom/src/diff.rs:326
↓ 1 callersFunctionfind_events_to_remove
Remove non delegated that were on the old element that are not present on the new element.
crates/percy-dom/src/diff.rs:339
↓ 1 callersFunctionfind_nodes
(ctx: &mut PatchContext)
crates/percy-dom/src/patch/apply_patches.rs:122
↓ 1 callersMethodfinish
1. Pop a node off the stack 2. Look up all of it's children in parent_to_children 3. Append the children to this node 4. Move on to the next node (as
crates/html-macro/src/parser/mod.rs:106
↓ 1 callersMethodfirst_mut
Retrieve the first node mutably
crates/virtual-node/src/iterable_nodes.rs:13
↓ 1 callersFunctionfull_water_bottle
()
examples/unit-testing-components/src/main.rs:9
↓ 1 callersFunctiongen_route_creator
( params: &Punctuated<FnArg, Token![,]>, path: &Lit, create_route: &Ident, )
crates/percy-router-macro/src/route_macro.rs:107
↓ 1 callersFunctiongen_route_handler_mod
( route_fn_name: &Ident, path: &Lit, params: &Punctuated<FnArg, Token![,]>, on_visit_expr: Opt
crates/percy-router-macro/src/route_macro.rs:164
↓ 1 callersFunctiongenerate_patches_for_children
( parent_old_node_idx: u32, old_element: &'a VElement, new_element: &'a VElement, ctx: &mut Di
crates/percy-dom/src/diff.rs:440
↓ 1 callersFunctionget_crate_library_name
/path/to/some-crate -> some_crate
crates/percy-preview-server/src/lib.rs:72
↓ 1 callersFunctionget_descendants
(descendants: &mut Vec<&'a VirtualNode>, node: &'a VirtualNode)
crates/virtual-node/src/test_utils.rs:43
↓ 1 callersMethodget_index_route_data
(&self)
crates/percy-preview-app/src/view/index_route.rs:12
↓ 1 callersFunctionget_longest_increasing_subsequence
( original: &'a [KeyAndChildIdx], )
crates/percy-dom/src/diff/longest_increasing_subsequence.rs:16
↓ 1 callersMethodget_visualize_component_route_data
( &self, component_name_url_friendly: &str, )
crates/percy-preview-app/src/view/visualize_component_route.rs:18
↓ 1 callersMethodhas_initiated_contributors_download
(&self)
examples/isomorphic/app/src/state/mod.rs:64
↓ 1 callersFunctionhistory
()
examples/isomorphic/client/src/lib.rs:137
↓ 1 callersFunctionhistory
()
crates/percy-preview-app/src/lib.rs:114
↓ 1 callersFunctionhostname
()
examples/isomorphic/client/src/lib.rs:145
↓ 1 callersFunctionhostname
()
crates/percy-dom/src/single_page_app.rs:73
↓ 1 callersMethodincrement_click
(&mut self)
examples/isomorphic/app/src/state/mod.rs:70
↓ 1 callersFunctioninit_tracing
()
crates/percy-preview-server/src/lib.rs:61
↓ 1 callersFunctioninsert_closure_tokens
Create the tokens that insert a closure into the virtual element. Tests can be found in crates/html-macro-test/src/events.rs
crates/html-macro/src/parser/open_tag/event.rs:14
↓ 1 callersMethodinsert_node_indices_to_find
Insert the node indices that are needed in order to perform this patch.
crates/percy-dom/src/patch.rs:195
↓ 1 callersFunctionintercept_relative_links
Ensure that anytime a link such as `<a href="/foo" />` is clicked we re-render the page locally instead of hitting the server to load a new page.
examples/isomorphic/client/src/lib.rs:91
↓ 1 callersFunctionintercept_relative_links
Ensures that anytime a link such as `<a href="/foo" />` is clicked we call the provided callback with "/foo".
crates/percy-dom/src/single_page_app.rs:10
↓ 1 callersMethodinto_iter
(self)
crates/virtual-node/src/iterable_nodes.rs:28
↓ 1 callersFunctioninvalid_tag_compile_error
(name: &Ident, html_tag: &str, var_name_node: &Ident)
crates/html-macro/src/parser/open_tag.rs:122
↓ 1 callersFunctionis_self_closing
Whether or not this tag is self closing ``` use html_validation::is_self_closing; assert_eq!(is_self_closing("br"), true); assert_eq!(is_self_closi
crates/html-validation/src/self_closing.rs:29
↓ 1 callersFunctionis_self_closing_svg_tag
Whether or not this svg tag is self closing
crates/html-validation/src/svg_namespace.rs:112
↓ 1 callersFunctionis_valid_tag
(tag: &str)
crates/html-macro/src/parser/mod.rs:281
↓ 1 callersMethodkey_span
Get the span for the attribute's key.
crates/html-macro/src/tag.rs:87
↓ 1 callersFunctionmake_html
(title: &str, wasm: &str, javascript: &str)
crates/percy-preview-server/src/lib.rs:81
↓ 1 callersMethodmatches
(&self, incoming_path: &str)
crates/percy-router/src/router.rs:39
↓ 1 callersMethodmaybe_call_on_remove_element
If an `on_remove_element` function was set, call it.
crates/virtual-node/src/velement/special_attributes.rs:159
↓ 1 callersFunctionmaybe_push_inner_html_patch
( new: &'a VirtualNode, old_element: &VElement, new_element: &VElement, old_node_idx: u32,
crates/percy-dom/src/diff.rs:357
↓ 1 callersFunctionmaybe_push_on_create_element_patch
( new: &'a VirtualNode, old_element: &VElement, new_element: &VElement, old_node_idx: u32,
crates/percy-dom/src/diff.rs:389
↓ 1 callersFunctionmaybe_push_on_remove_element_patch
( old: &'a VirtualNode, old_element: &VElement, new_element: &VElement, old_node_idx: u32,
crates/percy-dom/src/diff.rs:416
↓ 1 callersMethodnext_job
(&mut self)
crates/percy-dom/src/diff.rs:75
↓ 1 callersFunctionnode_with_key
(tag: &'static str, key: &'static str)
crates/percy-dom/src/diff.rs:2866
← previousnext →101–200 of 600, ranked by callers