fix(app): erase large view tuple types with into_any() at page and section boundaries
This commit is contained in:
1 parent
37b323c9ac
commit
b43b060c8a
3 files changed
+15
-10
No files matched your search
@@ -27,6 +27,7 @@ pub(crate) fn PlacePage() -> impl IntoView {
|
||||
let id = params.read().get("id").unwrap_or_default();
|
||||
view! { <PlaceDetail place_id=id/> }
|
||||
}} }
|
||||
.into_any()
|
||||
}
|
||||
|
||||
#[component]
|
||||
@@ -195,6 +196,7 @@ fn PlaceDetail(place_id: String) -> impl IntoView {
|
||||
</Transition>
|
||||
</div>
|
||||
}
|
||||
.into_any()
|
||||
}
|
||||
|
||||
fn progress_phase(events: &[JobEvent]) -> usize {
|
||||
|
||||
@@ -233,7 +233,7 @@ pub(crate) fn HomePage() -> impl IntoView {
|
||||
|
||||
view! {
|
||||
<div class="home-wrap discovery-home" data-has-results=move || (!submitted.get().is_empty()).to_string()>
|
||||
<div class="search-column">
|
||||
{view! { <div class="search-column">
|
||||
<Show when=move || submitted.get().is_empty()>
|
||||
<div class="page-heading discovery-intro">
|
||||
<h1>"장소 검색"</h1>
|
||||
@@ -286,9 +286,9 @@ pub(crate) fn HomePage() -> impl IntoView {
|
||||
</div>
|
||||
</Show>
|
||||
</section>
|
||||
</div>
|
||||
</div> }.into_any()}
|
||||
|
||||
<div class="results-column">
|
||||
{view! { <div class="results-column">
|
||||
<Show when=move || selection_error.get()>
|
||||
<div class="alert-error retry-row" role="alert">
|
||||
<p>"장소를 열지 못했습니다. 잠시 후 다시 시도해 주세요."</p>
|
||||
@@ -372,9 +372,10 @@ pub(crate) fn HomePage() -> impl IntoView {
|
||||
</ol>
|
||||
<p>"사진과 리뷰로 추정한 결과로, 실제 배치와 다를 수 있습니다."</p>
|
||||
</details>
|
||||
</div>
|
||||
</div> }.into_any()}
|
||||
</div>
|
||||
}
|
||||
.into_any()
|
||||
}
|
||||
|
||||
#[component]
|
||||
@@ -496,6 +497,7 @@ pub(crate) fn RecentPlacesPage() -> impl IntoView {
|
||||
</section>
|
||||
</div>
|
||||
}
|
||||
.into_any()
|
||||
}
|
||||
|
||||
/// Display the supplied ISO calendar date without guessing the user's timezone.
|
||||
|
||||
@@ -479,7 +479,7 @@ pub(crate) fn WorkspaceView(layout: Layout, photos: Vec<PhotoSummary>) -> impl I
|
||||
</div>
|
||||
<p class="workspace-warning"><Icon name="info"/>{warning}</p>
|
||||
<div class="workspace-grid" data-mobile-panel=move || mobile_panel.get()>
|
||||
<section class="viewport-col" id="layout-panel" aria-label="공간 배치">
|
||||
{view! { <section class="viewport-col" id="layout-panel" aria-label="공간 배치">
|
||||
<div class="viewport-toolbar">
|
||||
{if many_floors {
|
||||
view! {
|
||||
@@ -634,9 +634,9 @@ pub(crate) fn WorkspaceView(layout: Layout, photos: Vec<PhotoSummary>) -> impl I
|
||||
}
|
||||
}).collect_view()}
|
||||
</div>
|
||||
</section>
|
||||
</section> }.into_any()}
|
||||
|
||||
<aside class="summary-col" id="info-panel" aria-label="공간 정보">
|
||||
{view! { <aside class="summary-col" id="info-panel" aria-label="공간 정보">
|
||||
{move || selection.get().map(|s| {
|
||||
let total = s.photos.len();
|
||||
let selected_photos = StoredValue::new(s.photos.clone());
|
||||
@@ -735,10 +735,10 @@ pub(crate) fn WorkspaceView(layout: Layout, photos: Vec<PhotoSummary>) -> impl I
|
||||
})}
|
||||
</section>
|
||||
})}
|
||||
</aside>
|
||||
</aside> }.into_any()}
|
||||
</div>
|
||||
|
||||
<dialog id="space-photo-dialog" class="photo-dialog" aria-labelledby="space-photo-title"
|
||||
{view! { <dialog id="space-photo-dialog" class="photo-dialog" aria-labelledby="space-photo-title"
|
||||
on:keydown=move |ev| {
|
||||
if ev.key() == "ArrowLeft" {
|
||||
ev.prevent_default();
|
||||
@@ -784,8 +784,9 @@ pub(crate) fn WorkspaceView(layout: Layout, photos: Vec<PhotoSummary>) -> impl I
|
||||
}
|
||||
})}
|
||||
</div>
|
||||
</dialog>
|
||||
</dialog> }.into_any()}
|
||||
}
|
||||
.into_any()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in new issue
Block a user