Skip to content

Commit daf6ec0

Browse files
authored
Reduce size of examples (yewstack#2601)
* Reduce size of examples with this one weird trick * oops, fixup function_router
1 parent dc60d60 commit daf6ec0

File tree

23 files changed

+36
-0
lines changed

23 files changed

+36
-0
lines changed

examples/boids/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>Yew • Boids</title>
66

7+
<link data-trunk rel="rust" />
78
<link data-trunk rel="sass" href="index.scss" />
89
</head>
910

examples/contexts/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • Context</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79

810
<body></body>

examples/counter/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>Yew • Counter</title>
66

7+
<link data-trunk rel="rust" />
78
<link data-trunk rel="sass" href="index.scss" />
89
</head>
910

examples/dyn_create_destroy_apps/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>Yew • Create and destroy apps</title>
66

7+
<link data-trunk rel="rust" />
78
<link data-trunk rel="sass" href="index.scss" />
89
</head>
910

examples/file_upload/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • File Upload</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79

810
<body></body>

examples/function_memory_game/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<title>Yew • Function Memory Game</title>
88
<base data-trunk-public-url />
99

10+
<link data-trunk rel="rust" />
1011
<link data-trunk rel="sass" href="scss/index.scss" />
1112
<link data-trunk rel="copy-dir" href="public/" />
1213

examples/function_todomvc/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
rel="stylesheet"
1313
href="https://cdn.jsdelivr.net/npm/todomvc-app-css@2.3.0/index.css"
1414
/>
15+
16+
<link data-trunk rel="rust" />
1517
</head>
1618
<body></body>
1719
</html>

examples/futures/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • Futures</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79

810
<body></body>

examples/game_of_life/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>Yew • Game of Life</title>
66

7+
<link data-trunk rel="rust" />
78
<link data-trunk rel="css" href="styles.css" />
89
<link data-trunk rel="copy-file" href="assets/favicon.ico" />
910
</head>

examples/inner_html/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • Inner HTML</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79

810
<body></body>

examples/js_callback/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>Yew • Js Callback</title>
66

7+
<link data-trunk rel="rust" />
78
<link data-trunk rel="sass" href="index.scss" />
89
</head>
910

examples/keyed_list/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<title>Yew • Keyed list</title>
66
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
77
<link data-trunk rel="css" href="styles.css" />
8+
9+
<link data-trunk rel="rust" />
810
</head>
911

1012
<body></body>

examples/mount_point/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • Mount Point</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79

810
<body></body>

examples/nested_list/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>Yew • Nested List</title>
66

7+
<link data-trunk rel="rust" />
78
<link data-trunk rel="sass" href="styles.scss" />
89
</head>
910

examples/node_refs/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • Node Refs</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79

810
<body></body>

examples/password_strength/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>Yew • Password Strength Estimator</title>
66

7+
<link data-trunk rel="rust" />
78
<link data-trunk rel="sass" href="index.scss" />
89
</head>
910

examples/portals/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • Portals</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79

810
<body></body>

examples/router/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
href="https://cdn.jsdelivr.net/npm/bulma@0.9.0/css/bulma.min.css"
1212
/>
1313
<link data-trunk rel="sass" href="index.scss" />
14+
15+
<link data-trunk rel="rust" />
1416
</head>
1517

1618
<body></body>

examples/suspense/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<title>Yew Suspense Demo</title>
66

77
<link data-trunk rel="sass" href="index.scss" />
8+
<link data-trunk rel="rust" />
89
</head>
910

1011
<body></body>

examples/timer/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<title>Yew • Timer</title>
77
<link data-trunk rel="scss" href="index.scss"/>
88
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@900&display=swap" rel="stylesheet">
9+
<link data-trunk rel="rust" />
910
</head>
1011

1112
<body></body>

examples/todomvc/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
rel="stylesheet"
1313
href="https://cdn.jsdelivr.net/npm/todomvc-app-css@2.3.0/index.css"
1414
/>
15+
16+
<link data-trunk rel="rust" />
1517
</head>
1618
<body></body>
1719
</html>

examples/two_apps/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • Two Apps</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79
<body>
810
<div class="first-app"></div>

examples/webgl/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Yew • WebGL</title>
6+
7+
<link data-trunk rel="rust" />
68
</head>
79

810
<body></body>

0 commit comments

Comments
 (0)