From 7afbe836d3f44099e1927b031ae3ec92ed60622c Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 24 Jun 2020 03:47:19 +1200 Subject: [PATCH 1/9] Rewrite list items :) --- .vscode/tasks.json | 7 + .../components/ft-auto-grid/ft-auto-grid.js | 11 + .../components/ft-auto-grid/ft-auto-grid.sass | 10 + .../components/ft-auto-grid/ft-auto-grid.vue | 14 + .../ft-element-list/ft-element-list.js | 4 +- .../ft-element-list/ft-element-list.vue | 64 ++--- .../ft-icon-button/ft-icon-button.js | 8 + .../ft-icon-button/ft-icon-button.sass | 3 +- .../ft-icon-button/ft-icon-button.vue | 4 + .../ft-list-playlist/ft-list-playlist.css | 106 -------- .../ft-list-playlist/ft-list-playlist.js | 12 +- .../ft-list-playlist/ft-list-playlist.sass | 1 + .../ft-list-playlist/ft-list-playlist.vue | 49 ++-- .../ft-list-video/ft-list-video.css | 247 ------------------ .../components/ft-list-video/ft-list-video.js | 33 +-- .../ft-list-video/ft-list-video.sass | 1 + .../ft-list-video/ft-list-video.vue | 129 +++++---- .../watch-playlist/watch-playlist.vue | 2 + .../watch-video-playlist.css | 24 +- .../watch-video-playlist.vue | 26 +- .../watch-video-recommendations.css | 9 +- .../watch-video-recommendations.vue | 4 +- src/renderer/sass-partials/_ft-list-item.sass | 151 +++++++++++ src/renderer/views/Playlist/Playlist.css | 3 + src/renderer/views/Playlist/Playlist.vue | 18 +- src/renderer/views/Watch/Watch.sass | 4 +- 26 files changed, 376 insertions(+), 568 deletions(-) create mode 100644 src/renderer/components/ft-auto-grid/ft-auto-grid.js create mode 100644 src/renderer/components/ft-auto-grid/ft-auto-grid.sass create mode 100644 src/renderer/components/ft-auto-grid/ft-auto-grid.vue delete mode 100644 src/renderer/components/ft-list-playlist/ft-list-playlist.css create mode 100644 src/renderer/components/ft-list-playlist/ft-list-playlist.sass delete mode 100644 src/renderer/components/ft-list-video/ft-list-video.css create mode 100644 src/renderer/components/ft-list-video/ft-list-video.sass create mode 100644 src/renderer/sass-partials/_ft-list-item.sass diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1db3b6de..3e3b502c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -7,6 +7,13 @@ "type": "npm", "script": "dev", "problemMatcher": [] + }, + { + "type": "npm", + "script": "dev-runner", + "problemMatcher": [], + "label": "npm: dev-runner", + "detail": "node _scripts/dev-runner.js" } ] } \ No newline at end of file diff --git a/src/renderer/components/ft-auto-grid/ft-auto-grid.js b/src/renderer/components/ft-auto-grid/ft-auto-grid.js new file mode 100644 index 00000000..2befee45 --- /dev/null +++ b/src/renderer/components/ft-auto-grid/ft-auto-grid.js @@ -0,0 +1,11 @@ +import Vue from 'vue' + +export default Vue.extend({ + name: 'FtAutoGrid', + props: { + grid: { + type: Boolean, + required: true + } + } +}) diff --git a/src/renderer/components/ft-auto-grid/ft-auto-grid.sass b/src/renderer/components/ft-auto-grid/ft-auto-grid.sass new file mode 100644 index 00000000..eb71df3e --- /dev/null +++ b/src/renderer/components/ft-auto-grid/ft-auto-grid.sass @@ -0,0 +1,10 @@ +.ft-auto-grid + &.grid + display: grid + grid-template-columns: repeat(auto-fill, 240px) + justify-content: space-evenly + grid-gap: 5px + + &.list + display: grid + grid-gap: 16px diff --git a/src/renderer/components/ft-auto-grid/ft-auto-grid.vue b/src/renderer/components/ft-auto-grid/ft-auto-grid.vue new file mode 100644 index 00000000..14e20186 --- /dev/null +++ b/src/renderer/components/ft-auto-grid/ft-auto-grid.vue @@ -0,0 +1,14 @@ + + +