Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Commits
15f9bd3f
Commit
15f9bd3f
authored
1 year ago
by
Tadeusz Miesiąc
Browse files
Options
Downloads
Patches
Plain Diff
fix(removed todo.txt): file delete
parent
cbaaed64
No related branches found
No related tags found
2 merge requests
!223
reset the pin numbers before search results are fetch (so the results will be...
,
!78
Resolve MIN-189 "/display general overlays"
Pipeline
#83391
passed
1 year ago
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/utils/convert/convertDecimalToHex.test.ts
+7
-6
7 additions, 6 deletions
src/utils/convert/convertDecimalToHex.test.ts
src/utils/convert/convertDecimalToHex.ts
+1
-1
1 addition, 1 deletion
src/utils/convert/convertDecimalToHex.ts
todo.txt
+0
-14
0 additions, 14 deletions
todo.txt
with
8 additions
and
21 deletions
src/utils/convert/convertDecimalToHex.test.ts
+
7
−
6
View file @
15f9bd3f
/* eslint-disable no-magic-numbers */
import
{
convertDecimalToHex
}
from
'
./convertDecimalToHex
'
;
describe
(
'
convertDecimalToHex - util
'
,
()
=>
{
import
{
convertDecimalToHexColor
}
from
'
./convertDecimalToHex
'
;
describe
(
'
convertDecimalToHexColor - util
'
,
()
=>
{
it
(
'
should convert small decimal
'
,
()
=>
{
expect
(
convertDecimalToHex
(
57
)).
toEqual
(
'
#000039
'
);
expect
(
convertDecimalToHex
(
0
)).
toEqual
(
'
#000000
'
);
expect
(
convertDecimalToHex
Color
(
57
)).
toEqual
(
'
#000039
'
);
expect
(
convertDecimalToHex
Color
(
0
)).
toEqual
(
'
#000000
'
);
});
it
(
'
should convert negative decimal
'
,
()
=>
{
expect
(
convertDecimalToHex
(
-
3342388
)).
toEqual
(
'
#ccffcc
'
);
expect
(
convertDecimalToHex
(
-
750
)).
toBe
(
'
#fffd12
'
);
expect
(
convertDecimalToHex
Color
(
-
3342388
)).
toEqual
(
'
#ccffcc
'
);
expect
(
convertDecimalToHex
Color
(
-
750
)).
toBe
(
'
#fffd12
'
);
});
});
This diff is collapsed.
Click to expand it.
src/utils/convert/convertDecimalToHex.ts
+
1
−
1
View file @
15f9bd3f
...
...
@@ -2,7 +2,7 @@ const HEX_BASE_NUMBER = 16;
const
WHITE_HEX
=
0xffffff
;
const
EXPECTED_HEX_CHARS_NUMBER
=
6
;
export
const
convertDecimalToHex
=
(
value
:
number
):
string
=>
{
export
const
convertDecimalToHex
Color
=
(
value
:
number
):
string
=>
{
// eslint-disable-next-line no-bitwise
const
trimmedValue
=
value
&
WHITE_HEX
;
let
colorStr
=
trimmedValue
.
toString
(
HEX_BASE_NUMBER
);
...
...
This diff is collapsed.
Click to expand it.
todo.txt
deleted
100644 → 0
+
0
−
14
View file @
cbaaed64
- poinformować zespół ze w czw się spóźnię
- Check adrian PRs
- ADD ALPHA to hex color
- render many squares
- include case with rgb and value fields
- create store, add dummy data
- on button click display dummy data
- exclude rendering reaction for it
- push PR
- Fetch data, organise structure for many overlays and turning on and off
- add few overlays for element
- push PR
- add reaction overlays
- push PR
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment