From 99ca5a5ff890805605c2c6f653dd47844f78ecac Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 27 Apr 2021 13:58:22 -0500 Subject: [PATCH 01/23] Add Redshift --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 47b8e9b..e1bcd48 100644 --- a/README.md +++ b/README.md @@ -342,6 +342,7 @@ Builds - [Java on M1 Benchmarks](https://docs.google.com/spreadsheets/d/1g4U7LAI * [AutoCAD](https://www.autodesk.com/products/autocad/overview?plc=ACDIST&term=1-YEAR&support=ADVANCED&quantity=1) - ✳️ Yes, works via Rosetta 2 - [Verification](https://github.com/ThatGuySam/doesitarm/issues/499#issuecomment-754202196) [AutoDesk Forums](https://forums.autodesk.com/t5/autocad-for-mac-forum/apple-silicon/m-p/9652836) * [CADintosh](https://www.lemkesoft.de/en/products/cadintosh/download/) - βœ… Yes, Full Native Apple Silicon Support - [πŸ§ͺ Apple Silicon App Tested](https://doesitarm.com/apple-silicon-app-test/) * [PrusaSlicer](https://www.prusa3d.com/prusaslicer/) - βœ… Yes, Full Native Apple Silicon Support as of v2.3.1 - [Release Notes](https://github.com/prusa3d/PrusaSlicer/releases/tag/version_2.3.1) +* [Redshift](https://www.redshift3d.com/demo) - βœ… Yes, Full Native Apple Silicon Support - [Press Release](https://www.businesswire.com/news/home/20210413005903/en/Maxon-Announces-Redshift-for-macOS-Including-Native-Support-for-M1-Powered-Macs) * [Rhinoceros 3D](https://www.rhino3d.com/download/) - 🚫 No, not yet supported only works on Intel-based Macs - [Developer Article](https://discourse.mcneel.com/t/apple-silicon-and-rhino-for-mac-the-work-continues/113164) * [Shaper3D](https://www.shapr3d.com/) - βœ… Yes, it was shown at the November 10th event - [Apple Nov 10 Event](https://youtu.be/5AwdkGKmZ0I?t=2211) * [SketchUp](https://www.sketchup.com/) - ✳️ Yes, works via Rosetta 2 - [Discussion](https://forums.sketchup.com/t/the-new-m1-processor/141946) From c894f3726cac5d6bdb32d3a9f1834b636c61a6af Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 27 Apr 2021 14:56:17 -0500 Subject: [PATCH 02/23] Manually read payload if undefined --- pages/app/_slug/benchmarks.vue | 43 +++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/pages/app/_slug/benchmarks.vue b/pages/app/_slug/benchmarks.vue index 5ebed09..233d6c2 100644 --- a/pages/app/_slug/benchmarks.vue +++ b/pages/app/_slug/benchmarks.vue @@ -107,33 +107,38 @@ export default { VideoPlayer, ChannelCredit }, - asyncData ({ params: { slug }, payload: { app, allVideos, submitVideoCard } }) { + async asyncData ( data ) { - // const { allVideoAppsList } = await import('~/helpers/get-list.js') - // // const { default: videoList } = await import('~/static/video-list.json') + const { + params: { slug }, + route + } = data - // const { videosRelatedToApp } = await import('~/helpers/related.js') + let { + payload + } = data - // const app = allVideoAppsList.find(app => (app.slug === slug)) - // const submitVideoCard = { - // endpoint: `https://docs.google.com/forms/d/e/1FAIpQLSeEVGM9vE7VcfLMy6fJkfU70X2VZ60rHDyhDQLtnAN4nso0WA/viewform?usp=pp_url&entry.1018125313=${app.name}` - // } - // // const featuredApps = [] + // Manually get payload as fallback + if ( payload === undefined ) { + const { promises: fs } = await import('fs') - // const relatedVideos = videosRelatedToApp( app ).map(video => { - // // console.log('video', video) - // return { - // ...video, - // // endpoint: `#${video.id}` - // } - // }) + // Read back the JSON we just wrote to ensure it exists + const savedListJSON = await fs.readFile('./static/nuxt-endpoints.json', 'utf-8') + const savedList = JSON.parse( savedListJSON ) + + const endpoint = savedList.find( resource => { + return resource.route === route.path + } ) + + payload = endpoint.payload + } return { - app, - allVideos, - submitVideoCard + app: payload.app, + allVideos: payload.allVideos, + submitVideoCard: payload.submitVideoCard } }, data: function () { From 8872a71d4e4f415da48ee629f5109971a195b68a Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 27 Apr 2021 16:29:44 -0500 Subject: [PATCH 03/23] Use lite youtube player --- components/video/player.vue | 184 ++++++++++++++++++++++++++++++++---- 1 file changed, 165 insertions(+), 19 deletions(-) diff --git a/components/video/player.vue b/components/video/player.vue index b7a2bc9..46bf852 100644 --- a/components/video/player.vue +++ b/components/video/player.vue @@ -9,21 +9,75 @@ class="video-canvas w-screen flex flex-col justify-center items-center bg-black" >
-
+
+
+ + + + +
+
+ + + +
+
+