mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 13:42:20 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
21
web/node_modules/react-timezone-select/LICENSE
generated
vendored
Executable file
21
web/node_modules/react-timezone-select/LICENSE
generated
vendored
Executable file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2020 Nico Domino
|
||||
|
||||
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.
|
158
web/node_modules/react-timezone-select/README.md
generated
vendored
Executable file
158
web/node_modules/react-timezone-select/README.md
generated
vendored
Executable file
|
@ -0,0 +1,158 @@
|
|||
# 🌐⌚ react-timezone-select
|
||||
|
||||
[](https://bundlephobia.com/result?p=react-timezone-select@0.8.3)
|
||||
[](https://www.npmjs.com/package/react-timezone-select)
|
||||
[](https://www.npmjs.com/package/react-timezone-select)
|
||||
[](https://github.com/ndom91/react-timezone-select/issues)
|
||||
[](https://github.com/ndom91/react-timezone-select/actions?query=workflow%3A%22Tests+CI%22)
|
||||
[](https://github.com/ndom91/react-timezone-select/blob/main/LICENSE)
|
||||
|
||||
Another react timezone select component, I know.. However this one has a few key benefits!
|
||||
|
||||
While looking around for a good option, I had trouble finding a timezone select components which:
|
||||
|
||||
1\) Adjusted the choices automatically with Daylight Savings Time (DST)
|
||||
2\) Didn't have a huge list of choices to scroll through when technically only 24 (ish) are necessary
|
||||
|
||||
> Update: **v0.7+** now built with [`spacetime`](https://github.com/spencermountain/spacetime) instead of [`moment.js`](https://momentjs.com), reducing bundle size by **~66%**!
|
||||
> Update: **v0.10+** now built with Typescript!
|
||||
|
||||
#### Demo: [ndom91.github.io/react-timezone-select](https://ndom91.github.io/react-timezone-select/)
|
||||
|
||||
This demo is also available in the `./examples` directory. Simply run `npm start` after installing everything and the webpack dev server will begin, where you can find the demo at `localhost:3001`.
|
||||
|
||||
We also have some examples available on Codesandbox using this component with the datetime library [spacetime](https://codesandbox.io/s/react-timezone-select-usage-z37hf) as well as with [moment](https://codesandbox.io/s/react-timezone-select-usage-moment-5n6vn), showing how one might use this component in a real application.
|
||||
|
||||
## 🏗️ Installing
|
||||
|
||||
```bash
|
||||
npm install react-timezone-select
|
||||
```
|
||||
|
||||
## 🔭 Usage
|
||||
|
||||
```jsx
|
||||
import React, { useState } from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import TimezoneSelect from 'react-timezone-select'
|
||||
|
||||
const App = () => {
|
||||
const [selectedTimezone, setSelectedTimezone] = useState('')
|
||||
|
||||
return (
|
||||
<div className='App'>
|
||||
<h2>react-timezone-select</h2>
|
||||
<blockquote>Please make a selection</blockquote>
|
||||
<div className='select-wrapper'>
|
||||
<TimezoneSelect
|
||||
value={selectedTimezone}
|
||||
onChange={setSelectedTimezone}
|
||||
/>
|
||||
</div>
|
||||
<h3>Output:</h3>
|
||||
<div
|
||||
style={{
|
||||
backgroundColor: '#ccc',
|
||||
padding: '20px',
|
||||
margin: '20px auto',
|
||||
borderRadius: '5px',
|
||||
maxWidth: '600px',
|
||||
}}
|
||||
>
|
||||
<pre
|
||||
style={{
|
||||
margin: '0 20px',
|
||||
fontWeight: 500,
|
||||
fontFamily: 'monospace',
|
||||
}}
|
||||
>
|
||||
{JSON.stringify(selectedTimezone, null, 2)}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const rootElement = document.getElementById('root')
|
||||
ReactDOM.render(<App />, rootElement)
|
||||
```
|
||||
|
||||
### Setting Users Timezone as Default
|
||||
|
||||
If you'd like the user's own timezone to be set as the initially selected option, we can make use of the new `Intl` browser api by setting the default state value to `Intl.DateTimeFormat().resolvedOptions().timeZone`.
|
||||
|
||||
```jsx
|
||||
const [timezone, setTimezone] = useState(
|
||||
Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
)
|
||||
```
|
||||
|
||||
Thanks [@ndrwksr](https://github.com/ndom91/react-timezone-select/issues/25)!
|
||||
|
||||
### ⚠ Next.js Users
|
||||
|
||||
For now, Next.js isn't great about handling ESM packages. Until this gets fixed, a workaround involves using [`next-transpile-modules`](https://www.npmjs.com/package/next-transpile-modules) like so:
|
||||
|
||||
```js
|
||||
// next.config.js
|
||||
const withTM = require('next-transpile-modules')(['react-timezone-select']);
|
||||
|
||||
module.exports = withTM({
|
||||
...
|
||||
})
|
||||
```
|
||||
|
||||
## 🕹️ Props
|
||||
|
||||
- `value` - Initial Timezone `string`, i.e. `'Europe/Amsterdam'` or the full object from the onChange function: `{ value: string, label: string, abbrev: string, altName: string }`
|
||||
- `onBlur` - `() => void`
|
||||
- `onChange` - `(timezone) => void`
|
||||
- Example `timezone` parameter:
|
||||
```
|
||||
{
|
||||
value: 'America/Juneau'
|
||||
label: '(GMT-8:00) Alaska,
|
||||
abbrev: 'AHST',
|
||||
offset: -8,
|
||||
altName: 'Alaskan Standard Time'
|
||||
}
|
||||
```
|
||||
- `labelStyle` - `'original' | 'altName' | 'abbrev'`
|
||||
- `timezones` - Custom Timezone Object - see below..
|
||||
- Any other [`react-select`](https://github.com/jedwatson/react-select#props) props
|
||||
|
||||
## 🕒 Custom Timezones
|
||||
|
||||
New in `v0.9.11+` we've shipped a prop to allow users to either fully replace the timezone options or append custom choices of their own.
|
||||
|
||||
The `timezones` prop takes a dictionary of timezones, i.e. an object where the key/value format is: `{ 'IANA Timezone Name' : 'Your Label' }` - don't worry we'll prepend the `(GMT...)` part, just pass the city(s) or region(s) you want in your label.
|
||||
|
||||
For example:
|
||||
|
||||
```
|
||||
import TimezoneSelect, { i18nTimezones } from 'react-timezone-select'
|
||||
...
|
||||
|
||||
<TimezoneSelect
|
||||
value={selectedTimezone}
|
||||
onChange={setSelectedTimezone}
|
||||
timezones={{
|
||||
...i18nTimezones,
|
||||
'America/Lima': 'Pittsburgh',
|
||||
'Europe/Berlin': 'Frankfurt',
|
||||
}}
|
||||
/>
|
||||
```
|
||||
|
||||
This will generate two additional choices in our dropdown, one with the label `'(GMT-5:00) Pittsburgh'` and another with `'(GMT+1:00) Frankfurt'`. One could also omit spreading in the `i18nTimezones` object and pass in ones own completely custom list of timezone choices.
|
||||
|
||||
## 🚧 Contributing
|
||||
|
||||
Pull requests are always welcome! Please stick to the `prettier` settings, and if adding new features, please consider adding test(s) and some notes in the README, where appropriate.
|
||||
|
||||
## 🙏 Thanks
|
||||
|
||||
- [All Contributors](https://github.com/ndom91/react-timezone-select/graphs/contributors)
|
||||
- [Carlos Matallin](https://github.com/matallo/)
|
||||
- [spacetime](https://github.com/spencermountain/spacetime)
|
||||
- [react-select](https://react-select.com)
|
23
web/node_modules/react-timezone-select/dist/index.d.ts
generated
vendored
Normal file
23
web/node_modules/react-timezone-select/dist/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
/// <reference types="react" />
|
||||
import type { Props as ReactSelectProps } from 'react-select';
|
||||
declare type ExcludeValue<T> = Pick<T, Exclude<keyof T, 'value'>>;
|
||||
export declare type ICustomTimezone = {
|
||||
[key: string]: string;
|
||||
};
|
||||
export declare const i18nTimezones: ICustomTimezone;
|
||||
export declare type ILabelStyle = 'original' | 'altName' | 'abbrev';
|
||||
export declare type ITimezoneOption = {
|
||||
value: string;
|
||||
label: string;
|
||||
abbrev?: string;
|
||||
altName?: string;
|
||||
offset?: number;
|
||||
};
|
||||
export declare type ITimezone = ITimezoneOption | string;
|
||||
interface Props extends ExcludeValue<ReactSelectProps> {
|
||||
value: ITimezone;
|
||||
labelStyle?: ILabelStyle;
|
||||
timezones?: ICustomTimezone;
|
||||
}
|
||||
declare const TimezoneSelect: ({ value, onBlur, onChange, labelStyle, timezones, ...props }: Props) => JSX.Element;
|
||||
export default TimezoneSelect;
|
144
web/node_modules/react-timezone-select/dist/index.js
generated
vendored
Normal file
144
web/node_modules/react-timezone-select/dist/index.js
generated
vendored
Normal file
|
@ -0,0 +1,144 @@
|
|||
import React from 'react';
|
||||
import Select from 'react-select';
|
||||
import spacetime from 'spacetime';
|
||||
import { display } from 'spacetime-informal';
|
||||
export const i18nTimezones = {
|
||||
'Pacific/Midway': 'Midway Island, Samoa',
|
||||
'Pacific/Honolulu': 'Hawaii',
|
||||
'America/Juneau': 'Alaska',
|
||||
'America/Boise': 'Mountain Time',
|
||||
'America/Dawson': 'Dawson, Yukon',
|
||||
'America/Chihuahua': 'Chihuahua, La Paz, Mazatlan',
|
||||
'America/Phoenix': 'Arizona',
|
||||
'America/Chicago': 'Central Time',
|
||||
'America/Regina': 'Saskatchewan',
|
||||
'America/Mexico_City': 'Guadalajara, Mexico City, Monterrey',
|
||||
'America/Belize': 'Central America',
|
||||
'America/Detroit': 'Eastern Time',
|
||||
'America/Bogota': 'Bogota, Lima, Quito',
|
||||
'America/Caracas': 'Caracas, La Paz',
|
||||
'America/Santiago': 'Santiago',
|
||||
'America/St_Johns': 'Newfoundland and Labrador',
|
||||
'America/Sao_Paulo': 'Brasilia',
|
||||
'America/Tijuana': 'Tijuana, Pacific Time',
|
||||
'America/Argentina/Buenos_Aires': 'Buenos Aires, Georgetown',
|
||||
'America/Godthab': 'Greenland',
|
||||
'Atlantic/Azores': 'Azores',
|
||||
'Atlantic/Cape_Verde': 'Cape Verde Islands',
|
||||
GMT: 'Dublin, Edinburgh, Lisbon, London',
|
||||
'Africa/Casablanca': 'Casablanca, Monrovia',
|
||||
'Atlantic/Canary': 'Canary Islands',
|
||||
'Europe/Belgrade': 'Belgrade, Bratislava, Budapest, Ljubljana, Prague',
|
||||
'Europe/Sarajevo': 'Sarajevo, Skopje, Warsaw, Zagreb',
|
||||
'Europe/Brussels': 'Brussels, Copenhagen, Madrid, Paris',
|
||||
'Europe/Amsterdam': 'Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
|
||||
'Africa/Algiers': 'West Central Africa',
|
||||
'Europe/Bucharest': 'Bucharest',
|
||||
'Africa/Cairo': 'Cairo',
|
||||
'Europe/Helsinki': 'Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius',
|
||||
'Europe/Athens': 'Athens, Istanbul, Minsk',
|
||||
'Asia/Jerusalem': 'Jerusalem',
|
||||
'Africa/Harare': 'Harare, Pretoria',
|
||||
'Europe/Moscow': 'Moscow, St. Petersburg, Volgograd',
|
||||
'Asia/Kuwait': 'Kuwait, Riyadh',
|
||||
'Africa/Nairobi': 'Nairobi',
|
||||
'Asia/Baghdad': 'Baghdad',
|
||||
'Asia/Tehran': 'Tehran',
|
||||
'Asia/Dubai': 'Abu Dhabi, Muscat',
|
||||
'Asia/Baku': 'Baku, Tbilisi, Yerevan',
|
||||
'Asia/Kabul': 'Kabul',
|
||||
'Asia/Yekaterinburg': 'Ekaterinburg',
|
||||
'Asia/Karachi': 'Islamabad, Karachi, Tashkent',
|
||||
'Asia/Kolkata': 'Chennai, Kolkata, Mumbai, New Delhi',
|
||||
'Asia/Kathmandu': 'Kathmandu',
|
||||
'Asia/Dhaka': 'Astana, Dhaka',
|
||||
'Asia/Colombo': 'Sri Jayawardenepura',
|
||||
'Asia/Almaty': 'Almaty, Novosibirsk',
|
||||
'Asia/Rangoon': 'Yangon Rangoon',
|
||||
'Asia/Bangkok': 'Bangkok, Hanoi, Jakarta',
|
||||
'Asia/Krasnoyarsk': 'Krasnoyarsk',
|
||||
'Asia/Shanghai': 'Beijing, Chongqing, Hong Kong SAR, Urumqi',
|
||||
'Asia/Kuala_Lumpur': 'Kuala Lumpur, Singapore',
|
||||
'Asia/Taipei': 'Taipei',
|
||||
'Australia/Perth': 'Perth',
|
||||
'Asia/Irkutsk': 'Irkutsk, Ulaanbaatar',
|
||||
'Asia/Seoul': 'Seoul',
|
||||
'Asia/Tokyo': 'Osaka, Sapporo, Tokyo',
|
||||
'Asia/Yakutsk': 'Yakutsk',
|
||||
'Australia/Darwin': 'Darwin',
|
||||
'Australia/Adelaide': 'Adelaide',
|
||||
'Australia/Sydney': 'Canberra, Melbourne, Sydney',
|
||||
'Australia/Brisbane': 'Brisbane',
|
||||
'Australia/Hobart': 'Hobart',
|
||||
'Asia/Vladivostok': 'Vladivostok',
|
||||
'Pacific/Guam': 'Guam, Port Moresby',
|
||||
'Asia/Magadan': 'Magadan, Solomon Islands, New Caledonia',
|
||||
'Asia/Kamchatka': 'Kamchatka, Marshall Islands',
|
||||
'Pacific/Fiji': 'Fiji Islands',
|
||||
'Pacific/Auckland': 'Auckland, Wellington',
|
||||
'Pacific/Tongatapu': "Nuku'alofa",
|
||||
};
|
||||
const TimezoneSelect = ({ value, onBlur, onChange, labelStyle = 'original', timezones = i18nTimezones, ...props }) => {
|
||||
const getOptions = React.useMemo(() => {
|
||||
return Object.entries(timezones)
|
||||
.reduce((obj, entry) => {
|
||||
const a = spacetime.now().goto(entry[0]);
|
||||
const tz = a.timezone();
|
||||
const tzDisplay = display(entry[0]);
|
||||
let label = '';
|
||||
let abbrev = entry[0];
|
||||
let altName = entry[0];
|
||||
if (tzDisplay && tzDisplay.daylight && tzDisplay.standard) {
|
||||
abbrev = a.isDST()
|
||||
? tzDisplay.daylight.abbrev
|
||||
: tzDisplay.standard.abbrev;
|
||||
altName = a.isDST()
|
||||
? tzDisplay.daylight.name
|
||||
: tzDisplay.standard.name;
|
||||
}
|
||||
const min = tz.current.offset * 60;
|
||||
const hr = `${(min / 60) ^ 0}:` + (min % 60 === 0 ? '00' : Math.abs(min % 60));
|
||||
const prefix = `(GMT${hr.includes('-') ? hr : `+${hr}`}) ${entry[1]}`;
|
||||
switch (labelStyle) {
|
||||
case 'original':
|
||||
label = prefix;
|
||||
break;
|
||||
case 'altName':
|
||||
label = `${prefix} ${!altName.includes('/') ? `(${altName})` : ''}`;
|
||||
break;
|
||||
case 'abbrev':
|
||||
label = `${prefix} ${abbrev.length < 5 ? `(${abbrev})` : ''}`;
|
||||
break;
|
||||
default:
|
||||
label = `${prefix}`;
|
||||
}
|
||||
obj.push({
|
||||
value: entry[0],
|
||||
label: label,
|
||||
offset: tz.current.offset,
|
||||
abbrev: abbrev,
|
||||
altName: altName,
|
||||
});
|
||||
return obj;
|
||||
}, [])
|
||||
.sort((a, b) => {
|
||||
return a.offset - b.offset;
|
||||
});
|
||||
}, [labelStyle, timezones]);
|
||||
const handleChange = (tz) => {
|
||||
onChange && onChange(tz);
|
||||
};
|
||||
const parseTimezone = (value) => {
|
||||
if (typeof value === 'object' && value.value && value.label)
|
||||
return value;
|
||||
if (typeof value === 'string') {
|
||||
return getOptions.find(tz => tz.value === value);
|
||||
}
|
||||
else if (value.value && !value.label) {
|
||||
return getOptions.find(tz => tz.value === value.value);
|
||||
}
|
||||
};
|
||||
return (React.createElement(Select, Object.assign({ value: parseTimezone(value), onChange: handleChange, options: getOptions, onBlur: onBlur }, props)));
|
||||
};
|
||||
export default TimezoneSelect;
|
||||
//# sourceMappingURL=index.js.map
|
1
web/node_modules/react-timezone-select/dist/index.js.map
generated
vendored
Normal file
1
web/node_modules/react-timezone-select/dist/index.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":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AE;QACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK;YAAE,OAAO,KAAK,CAAA;QACzE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,OAAO,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,CAAA;SACjD;aAAM,IAAI,KAAK,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;YACtC,OAAO,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC,CAAA;SACvD;IACH,CAAC,CAAA;IAED,OAAO,CACL,oBAAC,MAAM,kBACL,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,EAC3B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,MAAM,IACV,KAAK,EACT,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
79
web/node_modules/react-timezone-select/package.json
generated
vendored
Executable file
79
web/node_modules/react-timezone-select/package.json
generated
vendored
Executable file
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
"name": "react-timezone-select",
|
||||
"version": "0.10.10",
|
||||
"description": "Usable, dynamic React Timezone Select",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"start": "webpack serve --mode development",
|
||||
"prepublish": "tsc",
|
||||
"postpublish": "npm run build:example && npm run deploy",
|
||||
"build": "tsc --project ./tsconfig.json",
|
||||
"build:example": "webpack --mode production",
|
||||
"deploy": "gh-pages -d example/dist",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"test:ci": "jest --ci --reporters='default' --reporters='./github-actions-reporter'"
|
||||
},
|
||||
"author": "Nico Domino <yo@ndo.dev>",
|
||||
"homepage": "https://github.com/ndom91/react-timezone-select",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ndom91/react-timezone-select.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ndom91/react-timezone-select/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"react",
|
||||
"timezone",
|
||||
"select",
|
||||
"react-select"
|
||||
],
|
||||
"files": [
|
||||
"dist/*"
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"module": "./dist/index.js",
|
||||
"exports": "./dist/index.js",
|
||||
"peerDependencies": {
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-select": "^4.2.1",
|
||||
"spacetime": "^6.14.0",
|
||||
"spacetime-informal": "^0.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^5.11.9",
|
||||
"@testing-library/react": "^11.2.5",
|
||||
"@types/jest": "^26.0.21",
|
||||
"@types/react": "^17.0.3",
|
||||
"@types/react-dom": "^17.0.2",
|
||||
"@types/react-select": "^4.0.13",
|
||||
"css-loader": "^5.1.3",
|
||||
"gh-pages": "^3.1.0",
|
||||
"html-webpack-plugin": "^5.3.1",
|
||||
"jest": "^26.6.3",
|
||||
"prettier": "^2.2.1",
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1",
|
||||
"source-map-loader": "^2.0.1",
|
||||
"style-loader": "^2.0.0",
|
||||
"ts-jest": "^26.5.4",
|
||||
"ts-loader": "^8.0.18",
|
||||
"typescript": "^4.2.3",
|
||||
"webpack": "^5.26.3",
|
||||
"webpack-cli": "^4.5.0",
|
||||
"webpack-dev-server": "^3.11.2"
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5",
|
||||
"semi": false,
|
||||
"jsxSingleQuote": true,
|
||||
"arrowParens": "avoid"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue