From 6b3fc39a1dd92a44a3b647bfe55bdf8b2eeac590 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Mon, 6 Aug 2018 21:37:15 +0300 Subject: [PATCH] Use dummy themes for now --- .../partials/bdsettings/remotecard.scss | 9 +++++- client/src/ui/components/bd/ThemesView.vue | 32 +++++++++++++++++-- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/client/src/styles/partials/bdsettings/remotecard.scss b/client/src/styles/partials/bdsettings/remotecard.scss index 6c06ed97..210e7174 100644 --- a/client/src/styles/partials/bdsettings/remotecard.scss +++ b/client/src/styles/partials/bdsettings/remotecard.scss @@ -32,7 +32,14 @@ font-weight: 700; .bd-remoteCard-info { - line-height: 14px; + display: flex; + font-size: 14px; + line-height: 16px; + + .bd-material-design-icon { + display: flex; + fill: $colbdgreen; + } } } } diff --git a/client/src/ui/components/bd/ThemesView.vue b/client/src/ui/components/bd/ThemesView.vue index ed68c563..1554aba3 100644 --- a/client/src/ui/components/bd/ThemesView.vue +++ b/client/src/ui/components/bd/ThemesView.vue @@ -74,8 +74,36 @@ async refreshOnline() { this.loadingOnline = true; try { - const getThemes = await BdWebApi.themes.get(); - this.onlineThemes = JSON.parse(getThemes); + // const getThemes = await BdWebApi.themes.get(); + // this.onlineThemes = JSON.parse(getThemes); + const dummies = []; + for (let i = 0; i < 10; i++) { + dummies.push({ + id: `theme${i}`, + name: `Dummy ${i}`, + tags: ['tag1', 'tag2', 'tag3', 'tag4', 'tag5'], + installs: Math.floor(Math.random() * 10000), + updated: '2018-07-21T14:51:32.057Z', + rating: Math.floor(Math.random() * 1000), + activeUsers: Math.floor(Math.random() * 1000), + rated: Math.random() > .5, + version: '1.0.0', + repository: { + name: 'ExampleRepository', + baseUri: 'https://github.com/Jiiks/ExampleRepository', + rawUri: 'https://github.com/Jiiks/ExampleRepository/raw/master' + }, + files: { + readme: 'Example/readme.md', + previews: [{ + large: 'Example/preview1-big.png', + thumb: 'Example/preview1-small.png' + }] + }, + author: 'Jiiks' + }); + } + this.onlineThemes = { docs: dummies }; } catch (err) { Logger.err('ThemesView', err); } finally {