forked from AUTOMATIC1111/stable-diffusion-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AUTOMATIC1111#14588 from Sj-Si/feature/extra-netwo…
…rks-tree-view Feature: Extra Networks Tree View
- Loading branch information
Showing
15 changed files
with
1,316 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
<div class='card' style={style} onclick={card_clicked} data-name="{name}" {sort_keys}> | ||
<div class="card" style="{style}" onclick="{card_clicked}" data-name="{name}" {sort_keys}> | ||
{background_image} | ||
<div class="button-row"> | ||
{metadata_button} | ||
{edit_button} | ||
</div> | ||
<div class='actions'> | ||
<div class='additional'> | ||
<span style="display:none" class='search_term{search_only}'>{search_term}</span> | ||
</div> | ||
<span class='name'>{name}</span> | ||
<span class='description'>{description}</span> | ||
<div class="button-row">{copy_path_button}{metadata_button}{edit_button}</div> | ||
<div class="actions"> | ||
<div class="additional">{search_terms}</div> | ||
<span class="name">{name}</span> | ||
<span class="description">{description}</span> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="copy-path-button card-button" | ||
title="Copy path to clipboard" | ||
onclick="extraNetworksCopyCardPath(event, '{filename}')" | ||
data-clipboard-text="{filename}"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="edit-button card-button" | ||
title="Edit metadata" | ||
onclick="extraNetworksEditUserMetadata(event, '{tabname}', '{extra_networks_tabname}', '{name}')"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="metadata-button card-button" | ||
title="Show internal metadata" | ||
onclick="extraNetworksRequestMetadata(event, '{extra_networks_tabname}', '{name}')"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<div id='{tabname}_{extra_networks_tabname}_pane' class='extra-network-pane'> | ||
<div class="extra-network-control"> | ||
<div class="extra-network-control--search"> | ||
<input | ||
id="{tabname}_{extra_networks_tabname}_extra_search" | ||
class="extra-network-control--search-text" | ||
type="search" | ||
placeholder="Filter files" | ||
> | ||
</div> | ||
<div | ||
id="{tabname}_{extra_networks_tabname}_extra_sort" | ||
class="extra-network-control--sort" | ||
data-sortmode="{data_sortmode}" | ||
data-sortkey="{data_sortkey}" | ||
title="Sort by path" | ||
onclick="extraNetworksControlSortOnClick(event, '{tabname}', '{extra_networks_tabname}');" | ||
> | ||
<i class="extra-network-control--sort-icon"></i> | ||
</div> | ||
<div | ||
id="{tabname}_{extra_networks_tabname}_extra_sort_dir" | ||
class="extra-network-control--sort-dir" | ||
data-sortdir="{data_sortdir}" | ||
title="Sort ascending" | ||
onclick="extraNetworksControlSortDirOnClick(event, '{tabname}', '{extra_networks_tabname}');" | ||
> | ||
<i class="extra-network-control--sort-dir-icon"></i> | ||
</div> | ||
<div | ||
id="{tabname}_{extra_networks_tabname}_extra_tree_view" | ||
class="extra-network-control--tree-view {tree_view_btn_extra_class}" | ||
title="Enable Tree View" | ||
onclick="extraNetworksControlTreeViewOnClick(event, '{tabname}', '{extra_networks_tabname}');" | ||
> | ||
<i class="extra-network-control--tree-view-icon"></i> | ||
</div> | ||
<div | ||
id="{tabname}_{extra_networks_tabname}_extra_refresh" | ||
class="extra-network-control--refresh" | ||
title="Refresh page" | ||
onclick="extraNetworksControlRefreshOnClick(event, '{tabname}', '{extra_networks_tabname}');" | ||
> | ||
<i class="extra-network-control--refresh-icon"></i> | ||
</div> | ||
</div> | ||
<div class="extra-network-pane-content"> | ||
<div id='{tabname}_{extra_networks_tabname}_tree' class='extra-network-tree {tree_view_div_extra_class}'> | ||
{tree_html} | ||
</div> | ||
<div id='{tabname}_{extra_networks_tabname}_cards' class='extra-network-cards'> | ||
{items_html} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<span data-filterable-item-text hidden>{search_terms}</span> | ||
<div class="tree-list-content {subclass}" | ||
type="button" | ||
onclick="extraNetworksTreeOnClick(event, '{tabname}', '{extra_networks_tabname}');{onclick_extra}" | ||
data-path="{data_path}" | ||
data-hash="{data_hash}" | ||
> | ||
<span class='tree-list-item-action tree-list-item-action--leading'> | ||
{action_list_item_action_leading} | ||
</span> | ||
<span class="tree-list-item-visual tree-list-item-visual--leading"> | ||
{action_list_item_visual_leading} | ||
</span> | ||
<span class="tree-list-item-label tree-list-item-label--truncate"> | ||
{action_list_item_label} | ||
</span> | ||
<span class="tree-list-item-visual tree-list-item-visual--trailing"> | ||
{action_list_item_visual_trailing} | ||
</span> | ||
<span class="tree-list-item-action tree-list-item-action--trailing"> | ||
{action_list_item_action_trailing} | ||
</span> | ||
</div> |
Oops, something went wrong.