fix(mobile): resolve user avatars, chat alignment, timestamp formatting, and payslips API
This commit is contained in:
139
node_modules/cli-spinners/index.d.ts
generated
vendored
Normal file
139
node_modules/cli-spinners/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
// TODO: Load the spinner names from the JSON file.
|
||||
export type SpinnerName =
|
||||
| 'dots'
|
||||
| 'dots2'
|
||||
| 'dots3'
|
||||
| 'dots4'
|
||||
| 'dots5'
|
||||
| 'dots6'
|
||||
| 'dots7'
|
||||
| 'dots8'
|
||||
| 'dots9'
|
||||
| 'dots10'
|
||||
| 'dots11'
|
||||
| 'dots12'
|
||||
| 'dots13'
|
||||
| 'dots14'
|
||||
| 'dots8Bit'
|
||||
| 'dotsCircle'
|
||||
| 'sand'
|
||||
| 'line'
|
||||
| 'line2'
|
||||
| 'rollingLine'
|
||||
| 'pipe'
|
||||
| 'simpleDots'
|
||||
| 'simpleDotsScrolling'
|
||||
| 'star'
|
||||
| 'star2'
|
||||
| 'flip'
|
||||
| 'hamburger'
|
||||
| 'growVertical'
|
||||
| 'growHorizontal'
|
||||
| 'balloon'
|
||||
| 'balloon2'
|
||||
| 'noise'
|
||||
| 'bounce'
|
||||
| 'boxBounce'
|
||||
| 'boxBounce2'
|
||||
| 'binary'
|
||||
| 'triangle'
|
||||
| 'arc'
|
||||
| 'circle'
|
||||
| 'squareCorners'
|
||||
| 'circleQuarters'
|
||||
| 'circleHalves'
|
||||
| 'squish'
|
||||
| 'toggle'
|
||||
| 'toggle2'
|
||||
| 'toggle3'
|
||||
| 'toggle4'
|
||||
| 'toggle5'
|
||||
| 'toggle6'
|
||||
| 'toggle7'
|
||||
| 'toggle8'
|
||||
| 'toggle9'
|
||||
| 'toggle10'
|
||||
| 'toggle11'
|
||||
| 'toggle12'
|
||||
| 'toggle13'
|
||||
| 'arrow'
|
||||
| 'arrow2'
|
||||
| 'arrow3'
|
||||
| 'bouncingBar'
|
||||
| 'bouncingBall'
|
||||
| 'smiley'
|
||||
| 'monkey'
|
||||
| 'hearts'
|
||||
| 'clock'
|
||||
| 'earth'
|
||||
| 'material'
|
||||
| 'moon'
|
||||
| 'runner'
|
||||
| 'pong'
|
||||
| 'shark'
|
||||
| 'dqpb'
|
||||
| 'weather'
|
||||
| 'christmas'
|
||||
| 'grenade'
|
||||
| 'point'
|
||||
| 'layer'
|
||||
| 'betaWave'
|
||||
| 'fingerDance'
|
||||
| 'fistBump'
|
||||
| 'soccerHeader'
|
||||
| 'mindblown'
|
||||
| 'speaker'
|
||||
| 'orangePulse'
|
||||
| 'bluePulse'
|
||||
| 'orangeBluePulse'
|
||||
| 'timeTravel'
|
||||
| 'aesthetic'
|
||||
| 'dwarfFortress';
|
||||
|
||||
export type Spinner = {
|
||||
/**
|
||||
The intended time per frame, in milliseconds.
|
||||
*/
|
||||
readonly interval: number;
|
||||
|
||||
/**
|
||||
An array of frames to show for the spinner.
|
||||
*/
|
||||
readonly frames: string[];
|
||||
};
|
||||
|
||||
/**
|
||||
70+ spinners for use in the terminal.
|
||||
|
||||
@example
|
||||
```
|
||||
import cliSpinners from 'cli-spinners';
|
||||
|
||||
console.log(cliSpinners.dots);
|
||||
// {
|
||||
// interval: 80,
|
||||
// frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
|
||||
// }
|
||||
```
|
||||
*/
|
||||
declare const cliSpinners: {
|
||||
readonly [spinnerName in SpinnerName]: Spinner;
|
||||
};
|
||||
|
||||
export default cliSpinners;
|
||||
|
||||
/**
|
||||
Get a random spinner.
|
||||
|
||||
@example
|
||||
```
|
||||
import {randomSpinner} from 'cli-spinners';
|
||||
|
||||
console.log(randomSpinner());
|
||||
// {
|
||||
// interval: 80,
|
||||
// frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
|
||||
// }
|
||||
```
|
||||
*/
|
||||
export function randomSpinner(): Spinner;
|
||||
11
node_modules/cli-spinners/index.js
generated
vendored
Normal file
11
node_modules/cli-spinners/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import spinners from './spinners.json' with {type: 'json'};
|
||||
|
||||
export default spinners;
|
||||
|
||||
const spinnersList = Object.keys(spinners);
|
||||
|
||||
export function randomSpinner() {
|
||||
const randomIndex = Math.floor(Math.random() * spinnersList.length);
|
||||
const spinnerName = spinnersList[randomIndex];
|
||||
return spinners[spinnerName];
|
||||
}
|
||||
9
node_modules/cli-spinners/license
generated
vendored
Normal file
9
node_modules/cli-spinners/license
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
56
node_modules/cli-spinners/package.json
generated
vendored
Normal file
56
node_modules/cli-spinners/package.json
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "cli-spinners",
|
||||
"version": "3.4.0",
|
||||
"description": "Spinners for use in the terminal",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/cli-spinners",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=18.20"
|
||||
},
|
||||
"scripts": {
|
||||
"//test": "xo && ava && tsc --noEmit index.d.ts",
|
||||
"test": "ava && tsc --noEmit index.d.ts",
|
||||
"asciicast": "asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"spinners.json"
|
||||
],
|
||||
"keywords": [
|
||||
"cli",
|
||||
"spinner",
|
||||
"spinners",
|
||||
"terminal",
|
||||
"term",
|
||||
"console",
|
||||
"ascii",
|
||||
"unicode",
|
||||
"loading",
|
||||
"indicator",
|
||||
"progress",
|
||||
"busy",
|
||||
"wait",
|
||||
"idle",
|
||||
"json"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^6.1.2",
|
||||
"log-update": "^6.0.0",
|
||||
"string-length": "^6.0.0",
|
||||
"typescript": "^5.4.5",
|
||||
"xo": "^0.58.0"
|
||||
}
|
||||
}
|
||||
74
node_modules/cli-spinners/readme.md
generated
vendored
Normal file
74
node_modules/cli-spinners/readme.md
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
# cli-spinners
|
||||
|
||||
> 70+ spinners for use in the terminal
|
||||
|
||||
<p align="center">
|
||||
<br>
|
||||
<img width="700" src="screenshot.svg">
|
||||
<br>
|
||||
<br>
|
||||
</p>
|
||||
|
||||
The list of spinners is just a [JSON file](spinners.json) and can be used wherever.
|
||||
|
||||
You probably want to use one of these spinners through the [`ora`](https://github.com/sindresorhus/ora) package.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install cli-spinners
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import cliSpinners from 'cli-spinners';
|
||||
|
||||
console.log(cliSpinners.dots);
|
||||
/*
|
||||
{
|
||||
interval: 80,
|
||||
frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
||||
- `interval` is the intended time per frame, in milliseconds.
|
||||
- `frames` is an array of frames to show for the spinner.
|
||||
|
||||
## Preview
|
||||
|
||||
The header GIF is outdated. See all the [spinner at once](https://jsfiddle.net/sindresorhus/2eLtsbey/embedded/result/) or [one at the time](https://asciinema.org/a/95348?size=big).
|
||||
|
||||
## API
|
||||
|
||||
### cliSpinners
|
||||
|
||||
Each spinner comes with a recommended `interval` and an array of `frames`.
|
||||
|
||||
[See the spinners.](spinners.json)
|
||||
|
||||
### randomSpinner()
|
||||
|
||||
Get a random spinner.
|
||||
|
||||
```js
|
||||
import {randomSpinner} from 'cli-spinners';
|
||||
|
||||
console.log(randomSpinner());
|
||||
/*
|
||||
{
|
||||
interval: 80,
|
||||
frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
- [ora](https://github.com/sindresorhus/ora) - Elegant terminal spinner
|
||||
- [CLISpinner](https://github.com/kiliankoe/CLISpinner) - Terminal spinners for Swift
|
||||
- [py-spinners](https://github.com/ManrajGrover/py-spinners) - Python port
|
||||
- [spinners](https://github.com/FGRibreau/spinners) - Terminal spinners for Rust
|
||||
- [go-spinners](https://github.com/gabe565/go-spinners) - Go port
|
||||
- [bash-cli-spinners](https://github.com/simeg/bash-cli-spinners) - Terminal spinners in Bash
|
||||
1697
node_modules/cli-spinners/spinners.json
generated
vendored
Normal file
1697
node_modules/cli-spinners/spinners.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user