summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-08-07 00:39:21 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-08-07 00:39:21 +0900
commit3b1669fb6b131e0809b3a4a93270b2b9e4a74247 (patch)
treed9c0397e52f722e53fb99be6c6cae7023f5f054a /packages/client/src/scripts
parentMerge branch 'develop' (diff)
parent12.118.0 (diff)
downloadmisskey-3b1669fb6b131e0809b3a4a93270b2b9e4a74247.tar.gz
misskey-3b1669fb6b131e0809b3a4a93270b2b9e4a74247.tar.bz2
misskey-3b1669fb6b131e0809b3a4a93270b2b9e4a74247.zip
Merge branch 'develop'
Diffstat (limited to 'packages/client/src/scripts')
-rw-r--r--packages/client/src/scripts/theme.ts2
-rw-r--r--packages/client/src/scripts/timezones.ts49
2 files changed, 51 insertions, 0 deletions
diff --git a/packages/client/src/scripts/theme.ts b/packages/client/src/scripts/theme.ts
index 77d1df0826..02ac77b59d 100644
--- a/packages/client/src/scripts/theme.ts
+++ b/packages/client/src/scripts/theme.ts
@@ -25,6 +25,7 @@ export const getBuiltinThemes = () => Promise.all(
'l-vivid',
'l-cherry',
'l-sushi',
+ 'l-u0',
'd-dark',
'd-persimmon',
@@ -35,6 +36,7 @@ export const getBuiltinThemes = () => Promise.all(
'd-green-orange',
'd-cherry',
'd-ice',
+ 'd-u0',
].map(name => import(`../themes/${name}.json5`).then(({ default: _default }): Theme => _default)),
);
diff --git a/packages/client/src/scripts/timezones.ts b/packages/client/src/scripts/timezones.ts
new file mode 100644
index 0000000000..8ce07323f6
--- /dev/null
+++ b/packages/client/src/scripts/timezones.ts
@@ -0,0 +1,49 @@
+export const timezones = [{
+ name: 'UTC',
+ abbrev: 'UTC',
+ offset: 0,
+}, {
+ name: 'Europe/Berlin',
+ abbrev: 'CET',
+ offset: 60,
+}, {
+ name: 'Asia/Tokyo',
+ abbrev: 'JST',
+ offset: 540,
+}, {
+ name: 'Asia/Seoul',
+ abbrev: 'KST',
+ offset: 540,
+}, {
+ name: 'Asia/Shanghai',
+ abbrev: 'CST',
+ offset: 480,
+}, {
+ name: 'Australia/Sydney',
+ abbrev: 'AEST',
+ offset: 600,
+}, {
+ name: 'Australia/Darwin',
+ abbrev: 'ACST',
+ offset: 570,
+}, {
+ name: 'Australia/Perth',
+ abbrev: 'AWST',
+ offset: 480,
+}, {
+ name: 'America/New_York',
+ abbrev: 'EST',
+ offset: -300,
+}, {
+ name: 'America/Mexico_City',
+ abbrev: 'CST',
+ offset: -360,
+}, {
+ name: 'America/Phoenix',
+ abbrev: 'MST',
+ offset: -420,
+}, {
+ name: 'America/Los_Angeles',
+ abbrev: 'PST',
+ offset: -480,
+}];