Skip to content

Commit 9b9cf04

Browse files
committed
configure for netlify
1 parent 64fb48e commit 9b9cf04

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

dashboard/public/_redirects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* /index.html 200
2+

dashboard/src/views/Feedbacks/Filters.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
>
1717
<div class="flex items-center">
1818
<span
19-
:class="`bg-${filter.color}`"
19+
:class="filter.color.bg"
2020
class="inline-block w-2 h-2 mr-2 rounded-full"/> {{ filter.label }}
2121
</div>
2222
<span
23-
:class="filter.active ? `text-${filter.color}` : 'text-brand-graydark'"
23+
:class="filter.active ? filter.color.text : 'text-brand-graydark'"
2424
class="font-bold"
2525
>
2626
{{ filter.amount }}
@@ -43,10 +43,10 @@ const LABELS = {
4343
}
4444
4545
const COLORS = {
46-
all: 'brand-info',
47-
issue: 'brand-danger',
48-
idea: 'brand-warning',
49-
other: 'brand-graydark'
46+
all: { text: 'text-brand-info', bg: 'bg-brand-info' },
47+
issue: { text: 'text-brand-danger', bg: 'bg-brand-danger' },
48+
idea: { text: 'text-brand-warning', bg: 'bg-brand-warning' },
49+
other: { text: 'text-brand-graydark', bg: 'bg-brand-graydark' }
5050
}
5151
5252
function applyFiltersStructure (summary) {

dashboard/tailwind.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ const colors = require('tailwindcss/colors')
22
const palette = require('./palette')
33

44
module.exports = {
5-
purge: [],
5+
purge: [
6+
'./src/**/*.html',
7+
'./src/**/*.vue',
8+
'./src/**/*.jsx'
9+
],
610
presets: [],
711
darkMode: false, // or 'media' or 'class'
812
theme: {

0 commit comments

Comments
 (0)