opacity | suffix | opacity | suffix | opacity | suffix | opacity | suffix | opacity | suffix | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
100% | FF |
80% | CC |
60% | 99 |
40% | 66 |
20% | 33 |
||||
99% | FC |
79% | C9 |
59% | 96 |
39% | 63 |
19% | 30 |
||||
98% | FA |
78% | C7 |
58% | 94 |
38% | 61 |
18% | 2E |
||||
97% | F7 |
77% | C4 |
57% | 91 |
37% | 5E |
17% | 2B |
||||
96% | F5 |
76% | C2 |
56% | 8F |
36% | 5C |
16% | 29 |
||||
95% | F2 |
75% | BF |
55% | 8C |
35% | 59 |
15% | 26 |
||||
94% | F0 |
74% | BD |
54% | 8A |
34% | 57 |
14% | 24 |
||||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Prefix | Description | Details | Examples | | |
| ---------- | ------------------------ | --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | |
| `feat` | Feature | A new feature | • `feat: add dropdown filters to assist with sorting`<br>• `feat: add column selection functionality to result tables`<br>• `feat: add nested navigation drawer` | | |
| `fix` | Bug Fix | A bug fix | • |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example on how to create your own apolloClient. Just import this file from any of | |
// your component to begin to launch your graphql queries, mutations etc and that's it. | |
// Nothing more is needed, apolloClient by itself is already very powerful, without using vue-apollo. | |
// | |
// @see https://www.apollographql.com/docs/react/basics/setup.html | |
// @see https://www.apollographql.com/docs/react/api/apollo-client.html | |
import { ApolloClient } from 'apollo-client'; | |
import { createHttpLink } from 'apollo-link-http'; | |
import { InMemoryCache } from 'apollo-cache-inmemory'; | |
import { setContext } from 'apollo-link-context'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Filters an array of objects using custom predicates. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria | |
* @return {Array} | |
*/ | |
function filterArray(array, filters) { | |
const filterKeys = Object.keys(filters); | |
return array.filter(item => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MIT License (MIT) | |
Copyright (c) 2015 Justin Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const collections = [ | |
{ id: 1, name: "xyz" }, | |
{ id: 2, name: "ds" }, | |
{ id: 3, name: "rtrt" }, | |
{ id: 4, name: "nhf" }, | |
{ id: 5, name: "qwe" }, | |
]; | |
const filtered = _.findByValues(collections, "id", [1, 3, 4]); |