at main 380 lines 20 kB view raw
1//! The components module contains all shared components for our app. Components are the building blocks of dioxus apps. 2//! They can be used to defined common UI elements like buttons, forms, and modals. In this template, we define a Hero 3//! component and an Echo component for fullstack apps to be used in our app. 4 5pub mod app_link; 6pub use app_link::{ 7 AppLink, AppLinkTarget, use_app_navigate, use_main_navigator_provider, 8 use_subdomain_navigator_provider, 9}; 10 11pub mod css; 12pub use css::{ColourPalette, NotebookCss, ThemePreviewInput, ThemePreviewOutput, generate_theme_preview}; 13 14mod entry; 15#[allow(unused_imports)] 16pub use entry::{ 17 ENTRY_CSS, EntryCard, EntryMarkdown, EntryMetadata, EntryOgMeta, EntryPage, FeedEntryCard, 18 NavButton, calculate_reading_stats, extract_preview, 19}; 20 21pub mod identity; 22#[allow(unused_imports)] 23pub use identity::{NotebookCard, Repository, RepositoryIndex}; 24pub mod avatar; 25 26pub mod profile; 27pub use profile::ProfileDisplay; 28 29pub mod notebook_cover; 30pub use notebook_cover::NotebookCover; 31 32pub mod login; 33 34pub mod record_editor; 35pub mod record_view; 36 37pub mod collab; 38pub use collab::{CollaboratorAvatars, CollaboratorsPanel, InviteDialog, InvitesList}; 39 40pub mod author_list; 41pub use author_list::{AuthorList, extract_author_info}; 42 43use dioxus::prelude::*; 44 45#[derive(PartialEq, Props, Clone)] 46pub struct IconProps { 47 #[props(default = Some(20))] 48 pub height: Option<u32>, 49 /// The width of the `<svg>` element. Defaults to 20. Pass None to omit. 50 #[props(default = Some(20))] 51 pub width: Option<u32>, 52 /// The color to use for filling the icon. Defaults to "currentColor". 53 #[props(default = "currentColor".to_string())] 54 pub fill: String, 55 /// An class for the `<svg>` element. 56 #[props(default = "".to_string())] 57 pub class: String, 58 /// The style of the `<svg>` element. 59 pub style: Option<String>, 60} 61 62#[component] 63pub fn BskyIcon(props: IconProps) -> Element { 64 rsx! { 65 svg { 66 class: "{props.class}", 67 style: props.style, 68 height: props.height.map(|height| height.to_string()), 69 width: props.width.map(|width| width.to_string()), 70 view_box: "0 0 600 530", 71 path { 72 d: "m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z", 73 fill: props.fill 74 } 75 } 76 } 77} 78 79#[component] 80pub fn TangledIcon(props: IconProps) -> Element { 81 rsx! { 82 svg { 83 class: "{props.class}", 84 style: props.style, 85 height: props.height.map(|height| height.to_string()), 86 width: props.width.map(|width| width.to_string()), 87 view_box: "0 0 24.122343 23.274094", 88 path { 89 d: "m 16.348974,24.09935 -0.06485,-0.03766 -0.202005,-0.0106 -0.202008,-0.01048 -0.275736,-0.02601 -0.275734,-0.02602 v -0.02649 -0.02648 l -0.204577,-0.04019 -0.204578,-0.04019 -0.167616,-0.08035 -0.167617,-0.08035 -0.0014,-0.04137 -0.0014,-0.04137 -0.266473,-0.143735 -0.266475,-0.143735 -0.276098,-0.20335 -0.2761,-0.203347 -0.262064,-0.251949 -0.262064,-0.25195 -0.22095,-0.284628 -0.220948,-0.284629 -0.170253,-0.284631 -0.170252,-0.284628 -0.01341,-0.0144 -0.0134,-0.0144 -0.141982,0.161297 -0.14198,0.1613 -0.22313,0.21426 -0.223132,0.214264 -0.186025,0.146053 -0.186023,0.14605 -0.252501,0.163342 -0.252502,0.163342 -0.249014,0.115348 -0.249013,0.115336 0.0053,0.03241 0.0053,0.03241 -0.1716725,0.04599 -0.171669,0.046 -0.3379966,0.101058 -0.3379972,0.101058 -0.1778925,0.04506 -0.1778935,0.04508 -0.3913655,0.02601 -0.3913643,0.02603 -0.3557868,-0.03514 -0.3557863,-0.03514 -0.037426,-0.03029 -0.037427,-0.03029 -0.076924,0.02011 -0.076924,0.02011 -0.050508,-0.05051 -0.050405,-0.05056 L 6.6604532,23.110188 6.451745,23.063961 6.1546135,22.960559 5.8574835,22.857156 5.5319879,22.694039 5.2064938,22.530922 4.8793922,22.302961 4.5522905,22.075005 4.247598,21.786585 3.9429055,21.49817 3.7185335,21.208777 3.4941628,20.919385 3.3669822,20.705914 3.239803,20.492443 3.1335213,20.278969 3.0272397,20.065499 2.9015252,19.7275 2.7758105,19.389504 2.6925225,18.998139 2.6092345,18.606774 2.6096814,17.91299 2.6101284,17.219208 2.6744634,16.90029 2.7387984,16.581374 2.8474286,16.242088 2.9560588,15.9028 3.1137374,15.583492 3.2714148,15.264182 3.3415068,15.150766 3.4115988,15.03735 3.3127798,14.96945 3.2139618,14.90157 3.0360685,14.800239 2.8581753,14.698908 2.5913347,14.503228 2.3244955,14.307547 2.0621238,14.055599 1.7997507,13.803651 1.6111953,13.56878 1.4226411,13.333906 1.2632237,13.087474 1.1038089,12.841042 0.97442,12.575195 0.8450307,12.30935 0.724603,11.971351 0.6041766,11.633356 0.52150365,11.241991 0.4388285,10.850626 0.44091592,10.156842 0.44300333,9.4630594 0.54235911,9.0369608 0.6417149,8.6108622 0.7741173,8.2694368 0.9065196,7.9280115 1.0736303,7.6214262 1.2407515,7.3148397 1.45931,7.0191718 1.6778685,6.7235039 1.9300326,6.4611321 2.1821966,6.1987592 2.4134579,6.0137228 2.6447193,5.8286865 2.8759792,5.6776409 3.1072406,5.526594 3.4282004,5.3713977 3.7491603,5.2162016 3.9263009,5.1508695 4.1034416,5.0855373 4.2813348,4.7481598 4.4592292,4.4107823 4.6718,4.108422 4.8843733,3.8060618 5.198353,3.4805372 5.5123313,3.155014 5.7685095,2.9596425 6.0246877,2.7642722 6.329187,2.5851365 6.6336863,2.406002 6.9497657,2.2751596 7.2658453,2.1443184 7.4756394,2.0772947 7.6854348,2.01027 8.0825241,1.931086 8.4796139,1.851902 l 0.5870477,0.00291 0.5870469,0.00291 0.4447315,0.092455 0.444734,0.092455 0.302419,0.1105495 0.302417,0.1105495 0.329929,0.1646046 0.32993,0.1646033 0.239329,-0.2316919 0.239329,-0.2316919 0.160103,-0.1256767 0.160105,-0.1256767 0.160102,-0.1021909 0.160105,-0.1021899 0.142315,-0.082328 0.142314,-0.082328 0.231262,-0.1090091 0.231259,-0.1090091 0.26684,-0.098743 0.266839,-0.098743 0.320208,-0.073514 0.320209,-0.073527 0.355787,-0.041833 0.355785,-0.041834 0.426942,0.023827 0.426945,0.023828 0.355785,0.071179 0.355788,0.0711791 0.284627,0.09267 0.284629,0.09267 0.28514,0.1310267 0.28514,0.1310255 0.238179,0.1446969 0.238174,0.1446979 0.259413,0.1955332 0.259413,0.1955319 0.290757,0.296774 0.290758,0.2967753 0.151736,0.1941581 0.151734,0.1941594 0.135326,0.2149951 0.135327,0.2149952 0.154755,0.3202073 0.154758,0.3202085 0.09409,0.2677358 0.09409,0.267737 0.06948,0.3319087 0.06948,0.3319099 0.01111,0.00808 0.01111,0.00808 0.444734,0.2173653 0.444734,0.2173665 0.309499,0.2161102 0.309497,0.2161101 0.309694,0.2930023 0.309694,0.2930037 0.18752,0.2348726 0.187524,0.2348727 0.166516,0.2574092 0.166519,0.2574108 0.15273,0.3260252 0.152734,0.3260262 0.08972,0.2668403 0.08971,0.2668391 0.08295,0.3913655 0.08295,0.3913652 -6.21e-4,0.6582049 -6.21e-4,0.658204 -0.06362,0.315725 -0.06362,0.315725 -0.09046,0.289112 -0.09046,0.289112 -0.122759,0.281358 -0.12276,0.281356 -0.146626,0.252323 -0.146629,0.252322 -0.190443,0.258668 -0.190448,0.258671 -0.254911,0.268356 -0.254911,0.268355 -0.286872,0.223127 -0.286874,0.223127 -0.320203,0.187693 -0.320209,0.187693 -0.04347,0.03519 -0.04347,0.03521 0.0564,0.12989 0.0564,0.129892 0.08728,0.213472 0.08728,0.213471 0.189755,0.729363 0.189753,0.729362 0.0652,0.302417 0.0652,0.302419 -0.0018,0.675994 -0.0018,0.675995 -0.0801,0.373573 -0.08009,0.373577 -0.09,0.266839 -0.09,0.26684 -0.190389,0.391364 -0.19039,0.391366 -0.223169,0.320207 -0.223167,0.320209 -0.303585,0.315294 -0.303584,0.315291 -0.284631,0.220665 -0.284629,0.220663 -0.220128,0.132359 -0.220127,0.132358 -0.242395,0.106698 -0.242394,0.106699 -0.08895,0.04734 -0.08895,0.04733 -0.249052,0.07247 -0.24905,0.07247 -0.322042,0.0574 -0.322044,0.0574 -0.282794,-0.003 -0.282795,-0.003 -0.07115,-0.0031 -0.07115,-0.0031 -0.177894,-0.0033 -0.177893,-0.0033 -0.124528,0.02555 -0.124528,0.02555 z m -4.470079,-5.349839 0.214838,-0.01739 0.206601,-0.06782 0.206602,-0.06782 0.244389,-0.117874 0.244393,-0.11786 0.274473,-0.206822 0.27447,-0.20682 0.229308,-0.257201 0.229306,-0.2572 0.219161,-0.28463 0.219159,-0.284629 0.188541,-0.284628 0.188543,-0.28463 0.214594,-0.373574 0.214593,-0.373577 0.133861,-0.312006 0.133865,-0.312007 0.02861,-0.01769 0.02861,-0.01769 0.197275,0.26212 0.197278,0.262119 0.163613,0.150814 0.163614,0.150814 0.201914,0.09276 0.201914,0.09276 0.302417,0.01421 0.302418,0.01421 0.213472,-0.08025 0.213471,-0.08025 0.200606,-0.204641 0.200606,-0.204642 0.09242,-0.278887 0.09241,-0.278888 0.05765,-0.302418 0.05764,-0.302416 L 18.41327,13.768114 18.39502,13.34117 18.31849,12.915185 18.24196,12.4892 18.15595,12.168033 18.06994,11.846867 17.928869,11.444534 17.787801,11.042201 17.621278,10.73296 17.454757,10.423723 17.337388,10.263619 17.220021,10.103516 17.095645,9.9837986 16.971268,9.8640816 16.990048,9.6813736 17.008828,9.4986654 16.947568,9.249616 16.886308,9.0005655 16.752419,8.7159355 16.618521,8.4313217 16.435707,8.2294676 16.252892,8.0276114 16.079629,7.9004245 15.906366,7.773238 l -0.20429,0.1230127 -0.204289,0.1230121 -0.26702,0.059413 -0.267022,0.059413 -0.205761,-0.021508 -0.205766,-0.021508 -0.23495,-0.08844 -0.234953,-0.08844 -0.118429,-0.090334 -0.118428,-0.090333 h -0.03944 -0.03944 L 13.711268,7.8540732 13.655958,7.9706205 13.497227,8.1520709 13.338499,8.3335203 13.168394,8.4419112 12.998289,8.550301 12.777045,8.624223 12.5558,8.698155 H 12.275611 11.995429 L 11.799973,8.6309015 11.604513,8.5636472 11.491311,8.5051061 11.37811,8.446565 11.138172,8.2254579 10.898231,8.0043497 l -0.09565,-0.084618 -0.09565,-0.084613 -0.218822,0.198024 -0.218822,0.1980231 -0.165392,0.078387 -0.1653925,0.078387 -0.177894,0.047948 -0.177892,0.047948 L 9.3635263,8.4842631 9.144328,8.4846889 8.9195029,8.4147138 8.6946778,8.3447386 8.5931214,8.4414036 8.491565,8.5380686 8.3707618,8.7019598 8.2499597,8.8658478 8.0802403,8.9290726 7.9105231,8.9922974 7.7952769,9.0780061 7.6800299,9.1637148 7.5706169,9.2778257 7.4612038,9.3919481 7.1059768,9.9205267 6.7507497,10.449105 l -0.2159851,0.449834 -0.2159839,0.449834 -0.2216572,0.462522 -0.2216559,0.462523 -0.1459343,0.337996 -0.1459342,0.337998 -0.055483,0.220042 -0.055483,0.220041 -0.015885,0.206903 -0.015872,0.206901 0.034307,0.242939 0.034307,0.24294 0.096281,0.196632 0.096281,0.196634 0.143607,0.125222 0.1436071,0.125222 0.1873143,0.08737 0.1873141,0.08737 0.2752084,0.002 0.2752084,0.002 0.2312297,-0.09773 0.231231,-0.09772 0.1067615,-0.07603 0.1067614,-0.07603 0.3679062,-0.29377 0.3679065,-0.293771 0.026804,0.01656 0.026804,0.01656 0.023626,0.466819 0.023626,0.466815 0.088326,0.513195 0.088326,0.513193 0.08897,0.364413 0.08897,0.364411 0.1315362,0.302418 0.1315352,0.302418 0.1051964,0.160105 0.1051954,0.160103 0.1104741,0.11877 0.1104731,0.118769 0.2846284,0.205644 0.2846305,0.205642 0.144448,0.07312 0.144448,0.07312 0.214787,0.05566 0.214787,0.05566 0.245601,0.03075 0.245602,0.03075 0.204577,-0.0125 0.204578,-0.0125 z m 0.686342,-3.497495 -0.11281,-0.06077 -0.106155,-0.134033 -0.106155,-0.134031 -0.04406,-0.18371 -0.04406,-0.183707 0.02417,-0.553937 0.02417,-0.553936 0.03513,-0.426945 0.03513,-0.426942 0.07225,-0.373576 0.07225,-0.373575 0.05417,-0.211338 0.05417,-0.211339 0.0674,-0.132112 0.0674,-0.132112 0.132437,-0.10916 0.132437,-0.109161 0.187436,-0.04195 0.187438,-0.04195 0.170366,0.06469 0.170364,0.06469 0.114312,0.124073 0.114313,0.124086 0.04139,0.18495 0.04139,0.184951 -0.111218,0.459845 -0.111219,0.459844 -0.03383,0.26584 -0.03382,0.265841 -0.03986,0.818307 -0.03986,0.818309 -0.0378,0.15162 -0.03779,0.151621 -0.11089,0.110562 -0.110891,0.110561 -0.114489,0.04913 -0.114489,0.04913 -0.187932,-0.0016 -0.187929,-0.0016 z m -2.8087655,-0.358124 -0.146445,-0.06848 -0.088025,-0.119502 -0.088024,-0.119502 -0.038581,-0.106736 -0.038581,-0.106736 -0.02237,-0.134956 -0.02239,-0.134957 -0.031955,-0.46988 -0.031955,-0.469881 0.036203,-0.444733 0.036203,-0.444731 0.048862,-0.215257 0.048862,-0.215255 0.076082,-0.203349 0.076081,-0.203348 0.0936,-0.111244 0.0936,-0.111245 0.143787,-0.06531 0.1437865,-0.06532 h 0.142315 0.142314 l 0.142314,0.06588 0.142316,0.06588 0.093,0.102325 0.093,0.102325 0.04042,0.120942 0.04042,0.120942 v 0.152479 0.152477 l -0.03347,0.08804 -0.03347,0.08805 -0.05693,0.275653 -0.05693,0.275651 2.11e-4,0.430246 2.12e-4,0.430243 0.04294,0.392646 0.04295,0.392647 -0.09189,0.200702 -0.09189,0.200702 -0.148688,0.0984 -0.148687,0.0984 -0.20136,0.01212 -0.2013595,0.01212 z", 90 fill: props.fill 91 } 92 } 93 94 } 95} 96 97#[used] 98static _IOSK_BOLD: Asset = asset!( 99 "/assets/fonts/ioskeley-mono/IoskeleyMono-Bold.woff2", 100 AssetOptions::builder() 101 .with_hash_suffix(false) 102 .into_asset_options() 103); 104 105#[used] 106static _IOSK_REG: Asset = asset!( 107 "/assets/fonts/ioskeley-mono/IoskeleyMono-Regular.woff2", 108 AssetOptions::builder() 109 .with_hash_suffix(false) 110 .into_asset_options() 111); 112 113#[used] 114static _IOSK_ITAL: Asset = asset!( 115 "/assets/fonts/ioskeley-mono/IoskeleyMono-Italic.woff2", 116 AssetOptions::builder() 117 .with_hash_suffix(false) 118 .into_asset_options() 119); 120 121#[used] 122static _IOSK_LIGHT: Asset = asset!( 123 "/assets/fonts/ioskeley-mono/IoskeleyMono-Light.woff2", 124 AssetOptions::builder() 125 .with_hash_suffix(false) 126 .into_asset_options() 127); 128#[used] 129static _IOSK_LIGHT_ITAL: Asset = asset!( 130 "/assets/fonts/ioskeley-mono/IoskeleyMono-LightItalic.woff2", 131 AssetOptions::builder() 132 .with_hash_suffix(false) 133 .into_asset_options() 134); 135#[used] 136static _IOSK_ITAL_BOLD: Asset = asset!( 137 "/assets/fonts/ioskeley-mono/IoskeleyMono-BoldItalic.woff2", 138 AssetOptions::builder() 139 .with_hash_suffix(false) 140 .into_asset_options() 141); 142 143// Adobe Caslon Pro 144#[used] 145static _CASLON_REG: Asset = asset!( 146 "/assets/fonts/adobe-caslon/AdobeCaslonPro-Regular.ttf", 147 AssetOptions::builder() 148 .with_hash_suffix(false) 149 .into_asset_options() 150); 151 152#[used] 153static _CASLON_BOLD: Asset = asset!( 154 "/assets/fonts/adobe-caslon/AdobeCaslonPro-Bold.ttf", 155 AssetOptions::builder() 156 .with_hash_suffix(false) 157 .into_asset_options() 158); 159 160#[used] 161static _CASLON_ITAL: Asset = asset!( 162 "/assets/fonts/adobe-caslon/AdobeCaslonPro-Italic.ttf", 163 AssetOptions::builder() 164 .with_hash_suffix(false) 165 .into_asset_options() 166); 167 168#[used] 169static _CASLON_SEMIBOLD: Asset = asset!( 170 "/assets/fonts/adobe-caslon/AdobeCaslonPro-Semibold.ttf", 171 AssetOptions::builder() 172 .with_hash_suffix(false) 173 .into_asset_options() 174); 175 176#[used] 177static _CASLON_ITAL_BOLD: Asset = asset!( 178 "/assets/fonts/adobe-caslon/AdobeCaslonPro-BoldItalic.ttf", 179 AssetOptions::builder() 180 .with_hash_suffix(false) 181 .into_asset_options() 182); 183 184// Latin Modern Roman 185#[used] 186static _LM_REG: Asset = asset!( 187 "/assets/fonts/latin-modern/LatinModernRoman-Regular.otf", 188 AssetOptions::builder() 189 .with_hash_suffix(false) 190 .into_asset_options() 191); 192#[used] 193static _LM_BOLD: Asset = asset!( 194 "/assets/fonts/latin-modern/LatinModernRoman-Bold.otf", 195 AssetOptions::builder() 196 .with_hash_suffix(false) 197 .into_asset_options() 198); 199#[used] 200static _LM_ITAL: Asset = asset!( 201 "/assets/fonts/latin-modern/LatinModernRoman-Italic.otf", 202 AssetOptions::builder() 203 .with_hash_suffix(false) 204 .into_asset_options() 205); 206#[used] 207static _LM_BOLD_ITAL: Asset = asset!( 208 "/assets/fonts/latin-modern/LatinModernRoman-BoldItalic.otf", 209 AssetOptions::builder() 210 .with_hash_suffix(false) 211 .into_asset_options() 212); 213 214// Computer Modern Serif 215#[used] 216static _CM_SERIF_REG: Asset = asset!( 217 "/assets/fonts/cm-serif/CMSerif-Regular.woff", 218 AssetOptions::builder() 219 .with_hash_suffix(false) 220 .into_asset_options() 221); 222#[used] 223static _CM_SERIF_BOLD: Asset = asset!( 224 "/assets/fonts/cm-serif/CMSerif-Bold.woff", 225 AssetOptions::builder() 226 .with_hash_suffix(false) 227 .into_asset_options() 228); 229#[used] 230static _CM_SERIF_ITAL: Asset = asset!( 231 "/assets/fonts/cm-serif/CMSerif-Italic.woff", 232 AssetOptions::builder() 233 .with_hash_suffix(false) 234 .into_asset_options() 235); 236#[used] 237static _CM_SERIF_BOLD_ITAL: Asset = asset!( 238 "/assets/fonts/cm-serif/CMSerif-BoldItalic.woff", 239 AssetOptions::builder() 240 .with_hash_suffix(false) 241 .into_asset_options() 242); 243 244// Computer Modern Sans 245#[used] 246static _CM_SANS_REG: Asset = asset!( 247 "/assets/fonts/cm-sans/CMSans-Regular.woff", 248 AssetOptions::builder() 249 .with_hash_suffix(false) 250 .into_asset_options() 251); 252#[used] 253static _CM_SANS_BOLD: Asset = asset!( 254 "/assets/fonts/cm-sans/CMSans-Bold.woff", 255 AssetOptions::builder() 256 .with_hash_suffix(false) 257 .into_asset_options() 258); 259#[used] 260static _CM_SANS_ITAL: Asset = asset!( 261 "/assets/fonts/cm-sans/CMSans-Italic.woff", 262 AssetOptions::builder() 263 .with_hash_suffix(false) 264 .into_asset_options() 265); 266#[used] 267static _CM_SANS_BOLD_ITAL: Asset = asset!( 268 "/assets/fonts/cm-sans/CMSans-BoldItalic.woff", 269 AssetOptions::builder() 270 .with_hash_suffix(false) 271 .into_asset_options() 272); 273 274// Junction 275#[used] 276static _JUNCTION_LIGHT: Asset = asset!( 277 "/assets/fonts/junction/Junction-Light.woff", 278 AssetOptions::builder() 279 .with_hash_suffix(false) 280 .into_asset_options() 281); 282#[used] 283static _JUNCTION_REG: Asset = asset!( 284 "/assets/fonts/junction/Junction-Regular.woff", 285 AssetOptions::builder() 286 .with_hash_suffix(false) 287 .into_asset_options() 288); 289#[used] 290static _JUNCTION_BOLD: Asset = asset!( 291 "/assets/fonts/junction/Junction-Bold.woff", 292 AssetOptions::builder() 293 .with_hash_suffix(false) 294 .into_asset_options() 295); 296 297// Proza Libre 298#[used] 299static _PROZA_REG: Asset = asset!( 300 "/assets/fonts/proza-libre/ProzaLibre-Regular.woff2", 301 AssetOptions::builder() 302 .with_hash_suffix(false) 303 .into_asset_options() 304); 305#[used] 306static _PROZA_ITAL: Asset = asset!( 307 "/assets/fonts/proza-libre/ProzaLibre-Italic.woff2", 308 AssetOptions::builder() 309 .with_hash_suffix(false) 310 .into_asset_options() 311); 312#[used] 313static _PROZA_MEDIUM: Asset = asset!( 314 "/assets/fonts/proza-libre/ProzaLibre-Medium.woff2", 315 AssetOptions::builder() 316 .with_hash_suffix(false) 317 .into_asset_options() 318); 319#[used] 320static _PROZA_SEMIBOLD: Asset = asset!( 321 "/assets/fonts/proza-libre/ProzaLibre-SemiBold.woff2", 322 AssetOptions::builder() 323 .with_hash_suffix(false) 324 .into_asset_options() 325); 326#[used] 327static _PROZA_BOLD: Asset = asset!( 328 "/assets/fonts/proza-libre/ProzaLibre-Bold.woff2", 329 AssetOptions::builder() 330 .with_hash_suffix(false) 331 .into_asset_options() 332); 333#[used] 334static _PROZA_BOLD_ITAL: Asset = asset!( 335 "/assets/fonts/proza-libre/ProzaLibre-BoldItalic.woff2", 336 AssetOptions::builder() 337 .with_hash_suffix(false) 338 .into_asset_options() 339); 340 341pub mod accordion; 342pub mod button; 343pub mod dialog; 344pub mod editor; 345pub mod entry_actions; 346pub mod input; 347pub mod notebook_actions; 348pub mod profile_actions; 349 350pub use entry_actions::EntryActions; 351pub use notebook_actions::NotebookActions; 352pub use profile_actions::{ProfileActions, ProfileActionsMenubar}; 353pub mod toast; 354pub mod hover_card; 355pub mod switch; 356pub mod select; 357pub mod radio_group; 358pub mod slider; 359pub mod checkbox; 360pub mod toggle_group; 361pub mod tooltip; 362 363mod hex_colour_input; 364pub use hex_colour_input::HexColourInput; 365 366mod inline_theme_editor; 367pub use inline_theme_editor::{InlineThemeEditor, InlineThemeValues}; 368 369mod theme_preview; 370pub use theme_preview::ThemePreview; 371 372mod theme_editor; 373pub use theme_editor::{ThemeEditor, ThemeEditorValues, ColourSchemeValues}; 374 375mod notebook_editor; 376pub use notebook_editor::{NotebookEditor, NotebookEditorMode, NotebookFormState}; 377 378pub mod notebook; 379pub use notebook::{delete_publication, sync_publication}; 380pub mod collapsible;