Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
31605365
Verified
Commit
31605365
authored
May 07, 2021
by
les
Browse files
use bar to show today in calendar
parent
81b6b199
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/helper.js
View file @
31605365
...
...
@@ -6,7 +6,7 @@ export function attributesFromEvents (_events, _tags) {
const
colors
=
[
'
blue
'
,
'
orange
'
,
'
yellow
'
,
'
teal
'
,
'
indigo
'
,
'
green
'
,
'
red
'
,
'
purple
'
,
'
pink
'
,
'
gray
'
]
const
tags
=
take
(
_tags
,
10
).
map
(
t
=>
t
.
tag
)
let
attributes
=
[]
attributes
.
push
({
key
:
'
today
'
,
dates
:
new
Date
(),
highlight
:
{
color
:
'
green
'
,
fillMode
:
'
outline
'
}
})
attributes
.
push
({
key
:
'
today
'
,
dates
:
new
Date
(),
bar
:
{
color
:
'
green
'
,
fillMode
:
'
outline
'
}
})
const
now
=
dayjs
().
unix
()
function
getColor
(
event
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment