mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
Merge remote-tracking branch 'origin' into samsung-icon-session
This commit is contained in:
commit
0dfeb7b421
11 changed files with 35 additions and 10 deletions
|
@ -1,2 +1,2 @@
|
||||||
API_SERVER=__API_URL__
|
VITE_API_URL=__API_URL__
|
||||||
THEMES_URL=https://static.revolt.chat/themes
|
VITE_THEMES_URL=https://static.revolt.chat/themes
|
3
.github/FUNDING.yml
vendored
3
.github/FUNDING.yml
vendored
|
@ -1 +1,2 @@
|
||||||
ko_fi: insertish
|
ko_fi: insertish
|
||||||
|
custom: https://insrt.uk/donate
|
||||||
|
|
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
||||||
[submodule "external/lang"]
|
[submodule "external/lang"]
|
||||||
path = external/lang
|
path = external/lang
|
||||||
url = https://gitlab.insrt.uk/revolt/translations
|
url = https://github.com/revoltchat/translations
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
"/(lib)",
|
"/(lib)",
|
||||||
"/(redux|mobx)",
|
"/(redux|mobx)",
|
||||||
"/(context)",
|
"/(context)",
|
||||||
"/(ui|common)|.svg$",
|
"/(ui|common)|.svg|.webp$",
|
||||||
"^[./]",
|
"^[./]",
|
||||||
],
|
],
|
||||||
importOrderSeparation: true,
|
importOrderSeparation: true,
|
||||||
|
|
|
@ -14,7 +14,6 @@ RUN npm prune --production
|
||||||
FROM node:15-buster
|
FROM node:15-buster
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY --from=builder /usr/src/app .
|
COPY --from=builder /usr/src/app .
|
||||||
RUN rm ./.env
|
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
CMD [ "yarn", "start:inject" ]
|
CMD [ "yarn", "start:inject" ]
|
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 8676906ec594a42ee72dcc5ad227357bb300570d
|
Subproject commit 2d5b96a5c72bb706b73e9b67d5be395810a18c15
|
|
@ -40,6 +40,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"fs-extra": "^10.0.0",
|
||||||
|
"klaw": "^3.0.0",
|
||||||
|
"sirv-cli": "^1.0.14",
|
||||||
"vite": "npm:@insertish/vite@2.4.0-beta.3-dynamic-import-css-3c1466b"
|
"vite": "npm:@insertish/vite@2.4.0-beta.3-dynamic-import-css-3c1466b"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -92,7 +95,6 @@
|
||||||
"eslint-config-preact": "^1.1.4",
|
"eslint-config-preact": "^1.1.4",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"highlight.js": "^11.0.1",
|
"highlight.js": "^11.0.1",
|
||||||
"klaw": "^3.0.0",
|
|
||||||
"localforage": "^1.9.0",
|
"localforage": "^1.9.0",
|
||||||
"lodash.defaultsdeep": "^4.6.1",
|
"lodash.defaultsdeep": "^4.6.1",
|
||||||
"lodash.isequal": "^4.5.0",
|
"lodash.isequal": "^4.5.0",
|
||||||
|
@ -123,7 +125,6 @@
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"shade-blend-color": "^1.0.0",
|
"shade-blend-color": "^1.0.0",
|
||||||
"sirv-cli": "^1.0.14",
|
|
||||||
"styled-components": "^5.3.0",
|
"styled-components": "^5.3.0",
|
||||||
"typescript": "^4.3.2",
|
"typescript": "^4.3.2",
|
||||||
"ulid": "^2.3.0",
|
"ulid": "^2.3.0",
|
||||||
|
|
|
@ -67,6 +67,7 @@ export enum Language {
|
||||||
BOTTOM = "bottom",
|
BOTTOM = "bottom",
|
||||||
LEET = "leet",
|
LEET = "leet",
|
||||||
PIGLATIN = "piglatin",
|
PIGLATIN = "piglatin",
|
||||||
|
ENCHANTMENT_TABLE = "enchantment",
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LanguageEntry {
|
export interface LanguageEntry {
|
||||||
|
@ -146,7 +147,7 @@ export const Languages: { [key in Language]: LanguageEntry } = {
|
||||||
|
|
||||||
owo: {
|
owo: {
|
||||||
display: "OwO",
|
display: "OwO",
|
||||||
emoji: "🐱",
|
emoji: "😸",
|
||||||
i18n: "owo",
|
i18n: "owo",
|
||||||
dayjs: "en-gb",
|
dayjs: "en-gb",
|
||||||
cat: "alt",
|
cat: "alt",
|
||||||
|
@ -172,6 +173,13 @@ export const Languages: { [key in Language]: LanguageEntry } = {
|
||||||
dayjs: "en-gb",
|
dayjs: "en-gb",
|
||||||
cat: "alt",
|
cat: "alt",
|
||||||
},
|
},
|
||||||
|
enchantment: {
|
||||||
|
display: "Enchantment Table",
|
||||||
|
emoji: "🪄",
|
||||||
|
i18n: "enchantment",
|
||||||
|
dayjs: "en-gb",
|
||||||
|
cat: "alt",
|
||||||
|
},
|
||||||
piglatin: {
|
piglatin: {
|
||||||
display: "Pig Latin",
|
display: "Pig Latin",
|
||||||
emoji: "🐖",
|
emoji: "🐖",
|
||||||
|
|
BIN
src/pages/settings/assets/enchanting_table.webp
Normal file
BIN
src/pages/settings/assets/enchanting_table.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 324 KiB |
|
@ -13,6 +13,7 @@ import {
|
||||||
import Emoji from "../../../components/common/Emoji";
|
import Emoji from "../../../components/common/Emoji";
|
||||||
import Checkbox from "../../../components/ui/Checkbox";
|
import Checkbox from "../../../components/ui/Checkbox";
|
||||||
import Tip from "../../../components/ui/Tip";
|
import Tip from "../../../components/ui/Tip";
|
||||||
|
import enchantingTableWEBP from "../assets/enchanting_table.webp";
|
||||||
import tokiponaSVG from "../assets/toki_pona.svg";
|
import tokiponaSVG from "../assets/toki_pona.svg";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
@ -38,6 +39,12 @@ function Entry({ entry: [x, lang], locale }: { entry: Key } & Props) {
|
||||||
<div className={styles.flag}>
|
<div className={styles.flag}>
|
||||||
{lang.emoji === "🙂" ? (
|
{lang.emoji === "🙂" ? (
|
||||||
<img src={tokiponaSVG} width={42} />
|
<img src={tokiponaSVG} width={42} />
|
||||||
|
) : lang.emoji === "🪄" ? (
|
||||||
|
<img
|
||||||
|
src={enchantingTableWEBP}
|
||||||
|
width={42}
|
||||||
|
style={{ objectFit: "contain" }}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Emoji size={42} emoji={lang.emoji} />
|
<Emoji size={42} emoji={lang.emoji} />
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -2459,6 +2459,15 @@ from@~0:
|
||||||
resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe"
|
resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe"
|
||||||
integrity sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=
|
integrity sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=
|
||||||
|
|
||||||
|
fs-extra@^10.0.0:
|
||||||
|
version "10.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1"
|
||||||
|
integrity sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==
|
||||||
|
dependencies:
|
||||||
|
graceful-fs "^4.2.0"
|
||||||
|
jsonfile "^6.0.1"
|
||||||
|
universalify "^2.0.0"
|
||||||
|
|
||||||
fs-extra@^9.0.1:
|
fs-extra@^9.0.1:
|
||||||
version "9.1.0"
|
version "9.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
|
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
|
||||||
|
|
Loading…
Reference in a new issue