Initial project upload

This commit is contained in:
Mohamed Mathar Irfan
2026-07-28 17:57:02 +05:30
commit ed6610d5d8
23919 changed files with 3003316 additions and 0 deletions

160
frontend/node_modules/timezone-soft/README.md generated vendored Normal file
View File

@@ -0,0 +1,160 @@
<div align="center">
<div>parse abbreviated, sloppy, and informal timezone names</div>
<div><img src="https://cloud.githubusercontent.com/assets/399657/23590290/ede73772-01aa-11e7-8915-181ef21027bc.png" /></div>
<div align="center">
<a href="https://npmjs.org/package/timezone-soft">
<img src="https://img.shields.io/npm/v/timezone-soft.svg?style=flat-square" />
</a>
<!-- <a href="https://codecov.io/gh/spencermountain/timezone-soft">
<img src="https://codecov.io/gh/spencermountain/timezone-soft/branch/master/graph/badge.svg" />
</a> -->
<a href="https://unpkg.com/timezone-soft/builds/timezone-soft.min.js">
<img src="https://badge-size.herokuapp.com/spencermountain/timezone-soft/master/builds/timezone-soft.min.js" />
</a>
</div>
<div align="center">
<code>npm install timezone-soft</code>
</div>
<sub>
by
<a href="https://spencermountain.github.io/">Spencer Kelly</a>
</sub>
<div align="center">
<sup><i>(formerly called 'spacetime-informal')</i></sup>
</div>
</div>
<p></p>
<!-- spacer -->
<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
```js
import soft from 'timezone-soft'
// get an IANA tz from user input
let timezones = soft('milwaukee')[0]
/*[{
iana: 'America/Chicago',
standard: { name: 'Central Standard Time', abbrev: 'CST' },
daylight: { name: 'Central Daylight Time', abbrev: 'CDT' }
}
]*/
```
<!-- spacer -->
<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
**[IANA timezone codes](https://www.iana.org/time-zones)** are the official reference for timezone information, and is what you should use, whenever possible.
Humans though, _are goofballs_, and use a whole different informal scheme:
---
- In (North) America: **PST, MST, EST**...
- in Europe (lately): **WEST, CEST, EEST**...
- in Africa: **EAT, CAT, WAST**...
- in Australia: **AWST, AEDT, ACST**...
---
#### these line-up with the IANA codes sometimes.
#### ...other times they don't.
<!-- spacer -->
<img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
These names also collide -
'**_IST_**' is used to mean:
- '_Indian Stardard Time_'
- '_Irish Stardard Time_'
- '_Israeli Stardard Time_'
These names also produce all-sorts of ambiguities, regarding DST-changes-
Both Winnipeg and Mexico City are **CST**, but have a much different DST schedule:
![image](https://user-images.githubusercontent.com/399657/52489224-b34d0e00-2b8f-11e9-9de8-0688bec52464.png)
_(thanks [timeanddate.com](https://www.timeanddate.com)!)_
-of course, there's a bunch of political/historical/disputed stuff going on, too. Apologies if this library steps into that unknowingly.
<img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
...so that's what we're trying to fix - to _'soften'_ this exchange, between human and IANA timezone nomenclature, using some _opinionated-but-common-sense_ rules and decision-making.
It was originally built for use in the _[spacetime timezone library](https://github.com/spencermountain/spacetime)_.
<!-- spacer -->
<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
### Usage
```js
const soft = require('timezone-soft')
soft('EST')
// 'America/New_York'
soft('central')
// 'America/Chicago'
soft('venezuela')
// 'America/Caracas'
soft('south east asia')
// 'Asia/Bangkok'
```
Typescript/Deno/Webpack:
```js
import soft from 'timezone-soft'
```
it was built to be as forgiving as possible, and return the most common-sense IANA timezone id from user-input.
<div align="center">
<img height="50px" src="https://user-images.githubusercontent.com/399657/68221814-05ed1680-ffb8-11e9-8b6b-c7528d163871.png"/>
</div>
---
<!-- spacer -->
<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
### DST
Often, the proper timezone name will depend on which date you are referencing.
You can reckon this pretty-easily with [spacetime](https://github.com/spencermountain/spacetime), like this:
```js
const spacetime = require('spacetime')
const soft = require('timezone-soft')
let display = soft('montreal')[0]
let show = display.standard.abbrev
// are we in standard time, or daylight time?
let s = spacetime.now(display.iana)
if (display.daylight && s.isDST()) {
show = display.daylight.abbrev
}
console.log(s.time() + ' ' + show)
// '4:20pm EDT'
```
<!-- spacer -->
<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
work-in-progress!
### See also
- [TimeZoneNames](https://github.com/mattjohnsonpint/TimeZoneNames) .NET Standard Library by Matt Johnson-Pint
MIT

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

58
frontend/node_modules/timezone-soft/package.json generated vendored Normal file
View File

@@ -0,0 +1,58 @@
{
"name": "timezone-soft",
"version": "1.5.2",
"author": "spencermountain",
"description": "interpret abbreviated and informal timezone names",
"main": "builds/timezone-soft.cjs",
"module": "builds/timezone-soft.mjs",
"unpkg": "builds/timezone-soft.min.cjs",
"types": "types/index.d.ts",
"type": "module",
"sideEffects": false,
"exports": {
".": {
"require": "./builds/timezone-soft.cjs",
"import": "./builds/timezone-soft.mjs",
"default": "./builds/timezone-soft.cjs",
"types": "./types/index.d.ts"
}
},
"scripts": {
"watch": "amble ./scratch.js",
"pack": "node ./scripts/pack.js",
"build": "npm run pack && node ./scripts/version.js && rollup -c && npm run filesize",
"filesize": "node ./scripts/filesize.js",
"test": "TESTENV=dev tape ./test/**/*.test.js | tap-dancer",
"testb": "TESTENV=prod tape ./test/**/*.test.js | tap-dancer"
},
"repository": {
"type": "git",
"url": "git+https://github.com/spencermountain/timezone-soft.git"
},
"bugs": {
"url": "https://github.com/spencermountain/timezone-soft/issues"
},
"homepage": "https://github.com/spencermountain/timezone-soft#readme",
"files": [
"builds",
"types"
],
"prettier": {
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 120
},
"devDependencies": {
"@rollup/plugin-node-resolve": "13.3.0",
"amble": "1.3.0",
"efrt": "2.7.0",
"rollup": "2.77.3",
"rollup-plugin-terser": "7.0.2",
"spacetime": "7.5.0",
"tap-dancer": "0.3.4",
"tape": "5.7.2"
},
"license": "MIT"
}

14
frontend/node_modules/timezone-soft/types/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
export interface TimeZoneInfo {
name: string;
abbr: string;
}
export interface DisplayFormat {
iana: string;
standard: TimeZoneInfo;
daylight: TimeZoneInfo;
}
/** interpret timezone names */
export default function timezoneSoft(tz:string): DisplayFormat[]