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 @@ + + +