Commit 88b5e94
Few improvements for Classes (#1588)
* Initial commit
Forked at: 66d506e
Parent branch: yewstack/master
* Use Extend trait; push and contains can use AsRef<str>
* Improve test a tiny bit
* rustfmt
* Reducing allocations
* Add new_static to allow manipulating &'static str instead of String
* rustfmt
* Revert "rustfmt"
This reverts commit 17a5f35.
* Revert "Add new_static to allow manipulating &'static str instead of String"
This reverts commit 35a767e.
* Use Cow<'static, str> instead
* Update yew/src/virtual_dom/mod.rs
Co-authored-by: Simon <simon@siku2.io>
* WIP
Forked at: 66d506e
Parent branch: yewstack/master
* Using clone
* Update yew/src/virtual_dom/mod.rs
Co-authored-by: Simon <simon@siku2.io>
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* WIP
Forked at: 66d506e
Parent branch: yewstack/master
* Fix futures example
* WIP
Forked at: 66d506e
Parent branch: yewstack/master
* WIP
Forked at: 66d506e
Parent branch: yewstack/master
* Revert "WIP"
This reverts commit 8962b0e.
* Rename Classes to HTMLClasses
* Add new object Classes to use with components
* WIP
Forked at: 66d506e
Parent branch: yewstack/master
* Get rid of extra implementation \o/
* WIP
Forked at: 66d506e
Parent branch: yewstack/master
* rustfmt
* Revert to suggested solution
* Add suggested solution to handle component class
* Add suggested Transformer
* Revert "Add suggested Transformer" (conflicting implementations)
This reverts commit f91f7a9.
Co-authored-by: Simon <simon@siku2.io>1 parent 8efba73 commit 88b5e94
3 files changed
Lines changed: 122 additions & 54 deletions
File tree
- examples/futures/src
- yew-macro/src/html_tree/html_tag
- yew/src/virtual_dom
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | | - | |
240 | | - | |
| 240 | + | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
318 | | - | |
| 324 | + | |
319 | 325 | | |
320 | 326 | | |
321 | 327 | | |
322 | | - | |
| 328 | + | |
323 | 329 | | |
324 | 330 | | |
325 | 331 | | |
326 | 332 | | |
327 | 333 | | |
328 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
329 | 343 | | |
330 | 344 | | |
331 | 345 | | |
332 | | - | |
333 | | - | |
| 346 | + | |
| 347 | + | |
334 | 348 | | |
335 | 349 | | |
336 | 350 | | |
337 | 351 | | |
338 | | - | |
339 | | - | |
| 352 | + | |
| 353 | + | |
340 | 354 | | |
341 | 355 | | |
342 | 356 | | |
343 | 357 | | |
344 | 358 | | |
345 | 359 | | |
| 360 | + | |
346 | 361 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
353 | 386 | | |
354 | 387 | | |
355 | 388 | | |
356 | 389 | | |
357 | 390 | | |
358 | 391 | | |
359 | 392 | | |
360 | | - | |
361 | | - | |
| 393 | + | |
| 394 | + | |
362 | 395 | | |
363 | 396 | | |
364 | 397 | | |
365 | 398 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
373 | 411 | | |
374 | 412 | | |
375 | 413 | | |
376 | 414 | | |
377 | 415 | | |
378 | 416 | | |
379 | | - | |
| 417 | + | |
380 | 418 | | |
381 | 419 | | |
382 | 420 | | |
383 | 421 | | |
384 | 422 | | |
385 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
386 | 429 | | |
387 | 430 | | |
388 | 431 | | |
389 | | - | |
| 432 | + | |
390 | 433 | | |
391 | | - | |
392 | | - | |
393 | | - | |
| 434 | + | |
394 | 435 | | |
395 | 436 | | |
396 | 437 | | |
397 | | - | |
| 438 | + | |
398 | 439 | | |
399 | | - | |
400 | | - | |
401 | | - | |
| 440 | + | |
402 | 441 | | |
403 | 442 | | |
404 | 443 | | |
405 | | - | |
| 444 | + | |
406 | 445 | | |
407 | | - | |
| 446 | + | |
408 | 447 | | |
409 | 448 | | |
410 | 449 | | |
411 | | - | |
| 450 | + | |
412 | 451 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
| 452 | + | |
421 | 453 | | |
422 | 454 | | |
423 | 455 | | |
| |||
509 | 541 | | |
510 | 542 | | |
511 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
512 | 558 | | |
513 | 559 | | |
514 | 560 | | |
| |||
527 | 573 | | |
528 | 574 | | |
529 | 575 | | |
530 | | - | |
| 576 | + | |
| 577 | + | |
531 | 578 | | |
532 | 579 | | |
533 | 580 | | |
534 | 581 | | |
535 | 582 | | |
536 | 583 | | |
537 | 584 | | |
538 | | - | |
| 585 | + | |
| 586 | + | |
539 | 587 | | |
540 | 588 | | |
541 | 589 | | |
| |||
548 | 596 | | |
549 | 597 | | |
550 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
551 | 619 | | |
552 | 620 | | |
553 | 621 | | |
| |||
0 commit comments