microsoft / TypeScript-Website

The Website and web infrastructure for learning TypeScript
https://www.typescriptlang.org
Creative Commons Attribution 4.0 International
2.21k stars 1.36k forks source link

Idea: move the run button to complied js code aside feature wanted #2316

Closed xgqfrms closed 2 years ago

xgqfrms commented 2 years ago

Improvement Idea:

Idea: move the run button to complied js code aside feature wanted

image

Why:

image

It confused me, left side run meanings just compile ts code to js code, not to run the compiled js code.

It's will be easier to find and use it if move to the js side, and I think that will provide better UX.

Alternative ideas:

xgqfrms commented 2 years ago

demo code

https://www.typescriptlang.org/play?#code/IYIwzgLgTsDGEAJYBthjAgggOwJYFthkEBvAWACgEkB7bSKAV3hqgAoBKUgX0uoHp+CQL1GgQxjAnaaBVmz4JQDOIjAAHAKbAA1pwBcCAG41cAEwDcMwQkDHcoEAPQLCagCldAMP+As7UCScoBtFO1MBueoDztQA3OMmoQbABmNDSGOgy42ADmHDr6RuRU1LT0NMgqAHTINLFsAERBCAC8hQA0CGERHKapvBSNlChoGAAi+QgqAB4QKtiGGDgERKQyNZEI0XFlCADk8-UCQjS6KlBQRioIgOragN4+gGGRgGtugGxO+1IysHQMzBCsoeFTM-HjqdRgjKrsdTIr018Nn8Ad9skFHrVlghGtQ1hstoYdso1JouCk0ukwJkcnkCoUAO7AOIAQkKvwalEa13oiCUXyUAE85tgVPiEJ0CvN8EF5uS6UpGdlkRpOPV+YLwfNALwbgDYd3n1FqodBIYD9WKsXAqDC9fqDYZ4QjEdHVJ5RaAxWJzRZQ8xwzbbPZHM4XaSpam3FjsSZmrZxNHAz7fUXA8wQAAWuDAwPDkbBqohhnJ1BhCDtCKRqhF-vemOxuXyRUJJLJUMaVJuiHUuAgECZpQQLLZHLY8xCkbD8soVZrDKFmdR9W7tbjwWlgA49+VAA