Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #715 from AlexRogalskiy/feature/themes
Feature/themes
- Loading branch information
Showing
109 changed files
with
8,776 additions
and
7,402 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"dev": { | ||
"DEBUG": "true" | ||
"DEBUG": "true", | ||
"NODE_ENV": "dev" | ||
}, | ||
"prod": { | ||
"DEBUG": "false", | ||
"AWS_LAMBDA_FUNCTION_VERSION": "1.0" | ||
"NODE_ENV": "prod" | ||
}, | ||
"test": { | ||
"TZ": "utc" | ||
"TZ": "utc", | ||
"NODE_ENV": "test" | ||
} | ||
} |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run all | ||
npm run test:all | ||
npm run changelog | ||
|
||
git add docs/ | ||
git add api/ | ||
git add tests/ | ||
git add typings/ | ||
|
||
git add CHANGELOG.md | ||
git add package-lock.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run check:all |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# [0.0.0-dev](https://github.com/AlexRogalskiy/quotes/compare/v2.0.1...v0.0.0-dev) (2021-03-27) | ||
|
||
|
||
|
||
## [2.0.1](https://github.com/AlexRogalskiy/quotes/compare/2.0.1...v2.0.1) (2021-03-05) | ||
|
||
|
||
|
||
## 1.0.1 (2021-02-16) | ||
|
||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Optional } from '../../typings/standard-types' | ||
import { AnimationPattern } from '../../typings/enum-types' | ||
import { AnimationOptions } from '../../typings/domain-types' | ||
|
||
/** | ||
* AnimationRecord | ||
* @desc Type representing animation config options | ||
*/ | ||
export type AnimationRecord = Record<AnimationPattern, AnimationOptions> | ||
|
||
/** | ||
* Animation mappings | ||
* @desc Type representing supported animation mappings | ||
*/ | ||
const animations: Readonly<AnimationRecord> = { | ||
'default': { | ||
animation: '', | ||
keyframes: '', | ||
}, | ||
'grow-out-in': { | ||
animation: 'animation:grow-out-in 2s linear infinite alternate;', | ||
keyframes: `@keyframes grow-out-in{ | ||
0% { | ||
box-shadow:0 2px 4px -2px rgba(0,0,0,.25); | ||
transform:scale(.95); | ||
} | ||
100% { | ||
box-shadow:0 0 4px 2px rgba(0,0,0,.25); | ||
transform:scale(1); | ||
} | ||
}`, | ||
}, | ||
} | ||
|
||
/** | ||
* Returns {@link AnimationOptions} by input {@link AnimationPattern} value | ||
* @param value initial input {@link AnimationPattern} to fetch by | ||
*/ | ||
export const getAnimation = (value: Optional<AnimationPattern>): AnimationOptions => { | ||
return value ? animations[value] : animations[AnimationPattern.default] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Profile } from '../../typings/enum-types' | ||
import { ProfileOptions } from '../../typings/domain-types' | ||
|
||
import { IMAGE_OPTIONS, INDEX_OPTIONS, OUTPUT_OPTIONS } from '../constants/constants' | ||
|
||
import { mergeProps } from '../utils/commons' | ||
|
||
/** | ||
* ConfigRecord | ||
* @desc Type representing profile config options | ||
*/ | ||
export type ConfigRecord = Record<Profile, ProfileOptions> | ||
|
||
/** | ||
* Configuration options | ||
*/ | ||
export const CONFIG: Readonly<ConfigRecord> = { | ||
dev: { | ||
imageOptions: IMAGE_OPTIONS, | ||
indexOptions: INDEX_OPTIONS, | ||
outputOptions: OUTPUT_OPTIONS, | ||
}, | ||
prod: { | ||
imageOptions: IMAGE_OPTIONS, | ||
indexOptions: mergeProps(INDEX_OPTIONS, { delimiter: '__' }), | ||
outputOptions: OUTPUT_OPTIONS, | ||
}, | ||
test: { | ||
imageOptions: IMAGE_OPTIONS, | ||
indexOptions: INDEX_OPTIONS, | ||
outputOptions: OUTPUT_OPTIONS, | ||
}, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import boxen from 'boxen' | ||
|
||
import { ImageOptions, IndexOptions } from '../../typings/domain-types' | ||
|
||
/** | ||
* Output configuration options | ||
*/ | ||
export const OUTPUT_OPTIONS: Readonly<boxen.Options> = { | ||
padding: 1, | ||
margin: 1, | ||
borderStyle: 'single', | ||
borderColor: 'yellow', | ||
} | ||
|
||
/** | ||
* Image configuration options | ||
*/ | ||
export const IMAGE_OPTIONS: Readonly<ImageOptions> = { | ||
width: '100%', | ||
height: '100%', | ||
} | ||
|
||
/** | ||
* Index configuration options | ||
*/ | ||
export const INDEX_OPTIONS: Readonly<IndexOptions> = { | ||
delimiter: '_', | ||
path: '.cache', | ||
name: 'lunr-index.json', | ||
} |
Oops, something went wrong.