This commit is contained in:
root 2025-03-17 13:50:55 -07:00
commit 920cbeaf19
12 changed files with 132 additions and 71 deletions

View file

@ -15,7 +15,7 @@ Please see [this](https://github.com/MathMan05/JankClient/blob/main/InstanceInfo
## RoadMap ## RoadMap
You can view the current roadmap on https://github.com/users/MathMan05/projects/1. You can view the current roadmap on https://github.com/users/MathMan05/projects/1.
## AI Code ## AI Code
AI code due to not being GPLv3 compatable is not allowed in this repo. I thought this didn't need to be said, but it doesn't. AI code due to not being GPLv3 compatable is not allowed in this repo. I thought this didn't need to be said, but it does.
## Link ## Link
The official SpaceBar server for Jank Client https://jankclient.greysilly7.xyz/invite/USgYJo?instance=https%3A%2F%2Fspacebar.chat The official SpaceBar server for Jank Client https://jankclient.greysilly7.xyz/invite/USgYJo?instance=https%3A%2F%2Fspacebar.chat

View file

@ -165,6 +165,22 @@ class Guild extends SnowFlake {
{defaultIndex: sysmap.indexOf(this.properties.system_channel_id)}, {defaultIndex: sysmap.indexOf(this.properties.system_channel_id)},
sysmap, sysmap,
); );
console.log(textChannels, this.channels);
const options: ["DISCOVERABLE", "COMMUNITY", "INVITES_DISABLED"] = [
"DISCOVERABLE",
"COMMUNITY",
"INVITES_DISABLED",
];
const defaultIndex = options.findIndex((_) => this.properties.features.includes(_));
form.addSelect(
I18n.guild.howJoin(),
"features",
options.map((_) => I18n.guild[_]()),
{
defaultIndex: defaultIndex == -1 ? 1 : defaultIndex,
},
options,
);
form.addCheckboxInput(I18n.getTranslation("guild.sendrandomwelcome?"), "s1", { form.addCheckboxInput(I18n.getTranslation("guild.sendrandomwelcome?"), "s1", {
initState: !(this.properties.system_channel_flags & 1), initState: !(this.properties.system_channel_flags & 1),
@ -189,6 +205,13 @@ class Guild extends SnowFlake {
bits += (1 - e.s4) * 8; bits += (1 - e.s4) * 8;
delete e.s4; delete e.s4;
e.system_channel_flags = bits; e.system_channel_flags = bits;
let temp = this.properties.features;
console.log([...temp]);
//@ts-ignore
temp = temp.filter((_) => !options.includes(_));
console.log(temp, options);
temp.push(e.features);
e.features = temp;
}); });
form.addHR(); form.addHR();
@ -439,7 +462,7 @@ class Guild extends SnowFlake {
this.member_count = json.member_count; this.member_count = json.member_count;
this.emojis = json.emojis; this.emojis = json.emojis;
this.headers = this.owner.headers; this.headers = this.owner.headers;
this.channels = []; this.properties.features = json.features;
if (this.properties.icon !== json.icon) { if (this.properties.icon !== json.icon) {
this.properties.icon = json.icon; this.properties.icon = json.icon;
if (this.HTMLicon) { if (this.HTMLicon) {

View file

@ -1,52 +1,34 @@
[ [
{ {
"name": "NomBar", "name": "Spacebar",
"description": "The Tastiest Chat around, get your fill today", "description": "The official Spacebar instance.",
"image": "https://munchy.impassivedev.com/images/icon.png", "image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png",
"url": "https://spacebar.nomchy-verse.com", "urls": {
"language": "en", "wellknown": "https://spacebar.chat/",
"country": "US", "api": "https://old.server.spacebar.chat/api",
"display": true, "cdn": "https://cdn.old.server.spacebar.chat",
"contactInfo": { "gateway": "wss://gateway.old.server.spacebar.chat"
"dicord": "munchy420", },
"github": "https://tea.nomchy-verse.com/munchy", "url": "https://spacebar.chat"
"email": "thedudedies22@gmail.com" },
} {
}, "name": "Fastbar",
{ "description": "The best Spacebar instance with 95% uptime, running under on a NVME drive running with bleeding edge stuff <3",
"name": "Spacebar", "image": "https://spacebar.greysilly7.xyz/logo.png",
"description": "The official Spacebar instance.", "url": "https://greysilly7.xyz",
"image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png", "language": "en",
"urls":{ "country": "US",
"wellknown": "https://spacebar.chat/", "display": true,
"api": "https://old.server.spacebar.chat/api", "urls": {
"cdn": "https://cdn.old.server.spacebar.chat", "wellknown": "https://greysilly7.xyz",
"gateway": "wss://gateway.old.server.spacebar.chat" "api": "https://api-spacebar.greysilly7.xyz/api",
}, "cdn": "https://cdn-spacebar.greysilly7.xyz",
"url": "https://spacebar.chat" "gateway": "wss://gateway-spacebar.greysilly7.xyz"
}, },
{ "contactInfo": {
"name": "Fastbar", "dicord": "greysilly7",
"description": "The best Spacebar instance with 95% uptime, running under on a NVME drive running with bleeding edge stuff <3", "github": "https://github.com/greysilly7",
"image": "https://spacebar.greysilly7.xyz/logo.png", "email": "greysilly7@gmail.com"
"url": "https://greysilly7.xyz", }
"language": "en", }
"country": "US", ]
"display": true,
"urls": {
"wellknown": "https://greysilly7.xyz",
"api": "https://api-spacebar.greysilly7.xyz/api",
"cdn": "https://cdn-spacebar.greysilly7.xyz",
"gateway": "wss://gateway-spacebar.greysilly7.xyz"
},
"contactInfo": {
"dicord": "greysilly7",
"github": "https://github.com/greysilly7",
"email": "greysilly7@gmail.com"
}
},
{
"name": "Vanilla Minigames",
"display": false
}
]

View file

@ -806,7 +806,7 @@ class Localuser {
member.bind(username); member.bind(username);
member.user.bind(memberdiv, member.guild, false); member.user.bind(memberdiv, member.guild, false);
memberdiv.append(pfp, username); memberdiv.append(pfp, username);
memberdiv.classList.add("flexltr", "liststyle"); memberdiv.classList.add("flexltr", "liststyle", "memberListStyle");
membershtml.append(memberdiv); membershtml.append(memberdiv);
} }
category.append(membershtml); category.append(membershtml);

View file

@ -81,11 +81,18 @@ h2:empty {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: bold; font-weight: bold;
} }
.cunread {
.ellipsis {
font-weight: bold;
color: var(--primary-text);
}
}
.ellipsis { .ellipsis {
display: -webkit-box; display: -webkit-box;
word-break: break-all; word-break: break-all;
overflow: hidden; overflow: hidden;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
line-clamp: 1;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
} }
a, a,
@ -635,7 +642,7 @@ span.instanceStatus {
#sentdms .pfp { #sentdms .pfp {
height: 48px; height: 48px;
width: 48px; width: 48px;
margin-bottom: 6px; margin-bottom: 8px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
@ -761,6 +768,7 @@ span.instanceStatus {
margin: 0 6px; margin: 0 6px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-bottom: 2px;
} }
.channelbutton { .channelbutton {
height: 2em; height: 2em;
@ -791,10 +799,10 @@ span.instanceStatus {
.cunread:after { .cunread:after {
content: ""; content: "";
position: absolute; position: absolute;
top: calc(50% - 4px); top: calc(50% - 8px);
left: -10px; left: -10px;
height: 8px; height: 16px;
width: 8px; width: 7px;
background: var(--primary-text); background: var(--primary-text);
border-radius: 50%; border-radius: 50%;
} }
@ -859,6 +867,13 @@ span.instanceStatus {
gap: 8px; gap: 8px;
cursor: pointer; cursor: pointer;
flex-shrink: 0; flex-shrink: 0;
margin-bottom: 4px;
}
.memberListStyle {
span {
font-size: 0.9rem;
margin-left: 4px;
}
} }
.liststyle .statusDiv { .liststyle .statusDiv {
right: -1px; right: -1px;
@ -1522,7 +1537,7 @@ img.bigembedimg {
} }
.memberList h3 { .memberList h3 {
margin: 0 8px 4px 8px; margin: 0 8px 4px 8px;
font-size: 1rem; font-size: 0.9rem;
} }
.memberList .liststyle:hover { .memberList .liststyle:hover {
background: var(--sidebar-hover); background: var(--sidebar-hover);

View file

@ -10,25 +10,20 @@
/* Themes. See themes.txt */ /* Themes. See themes.txt */
.Dark-theme { .Dark-theme {
color-scheme: dark; color-scheme: dark;
--primary-bg: #303339; --primary-bg: #303339;
--primary-hover: #272b31; --primary-hover: #272b31;
--primary-text: #dfdfdf; --primary-text: #dfdfdf;
--primary-text-soft: #adb8b9; --primary-text-soft: #adb8b9;
--secondary-bg: #16191b; --secondary-bg: #16191b;
--secondary-hover: #252b2c; --secondary-hover: #252b2c;
--servers-bg: #191c1d;
--servers-bg: #141718; --channels-bg: #2a2d33;
--channels-bg: #25282b;
--channel-selected: #3c4046; --channel-selected: #3c4046;
--typebox-bg: #3a3e45; --typebox-bg: #3a3e45;
--button-bg: #4e5457; --button-bg: #4e5457;
--button-hover: #6b7174; --button-hover: #6b7174;
--spoiler-bg: #000000; --spoiler-bg: #000000;
--link: #5ca9ed; --link: #5ca9ed;
--primary-text-prominent: #efefef; --primary-text-prominent: #efefef;
--dock-bg: #1b1e20; --dock-bg: #1b1e20;
--card-bg: #000000; --card-bg: #000000;

View file

@ -501,6 +501,7 @@ export async function getapiurls(str: string): Promise<
const temp = new URL(str); const temp = new URL(str);
temp.port = ""; temp.port = "";
const newOrgin = temp.host; const newOrgin = temp.host;
const protical = temp.protocol;
const tempurls = { const tempurls = {
api: new URL(urls.api), api: new URL(urls.api),
cdn: new URL(urls.cdn), cdn: new URL(urls.cdn),
@ -509,10 +510,20 @@ export async function getapiurls(str: string): Promise<
login: new URL(urls.login), login: new URL(urls.login),
}; };
tempurls.api.host = newOrgin; tempurls.api.host = newOrgin;
tempurls.api.protocol = protical;
tempurls.cdn.host = newOrgin; tempurls.cdn.host = newOrgin;
tempurls.api.protocol = protical;
tempurls.gateway.host = newOrgin; tempurls.gateway.host = newOrgin;
tempurls.gateway.protocol = newOrgin === "http:" ? "ws:" : "wss:";
tempurls.wellknown.host = newOrgin; tempurls.wellknown.host = newOrgin;
tempurls.wellknown.protocol = protical;
tempurls.login.host = newOrgin; tempurls.login.host = newOrgin;
tempurls.login.protocol = protical;
try { try {
if (!(await fetch(tempurls.api + "/ping")).ok) { if (!(await fetch(tempurls.api + "/ping")).ok) {
res(false); res(false);

View file

@ -237,7 +237,11 @@
"stickWelcomeReact?": "Prompt members of your guild to react with a sticker when someone joins!", "stickWelcomeReact?": "Prompt members of your guild to react with a sticker when someone joins!",
"boostMessage?": "Send a message when someone boosts your guild!", "boostMessage?": "Send a message when someone boosts your guild!",
"helpTips?": "Send helpful tips for your guild!", "helpTips?": "Send helpful tips for your guild!",
"defaultNoti": "Set the default notification settings of your guild!" "defaultNoti": "Set the default notification settings of your guild!",
"howJoin": "How can people join your guild?",
"COMMUNITY": "Apply to join",
"INVITES_DISABLED": "Invite only",
"DISCOVERABLE": "Discovery"
}, },
"role": { "role": {
"displaySettings": "Display settings", "displaySettings": "Display settings",

View file

@ -181,7 +181,23 @@
"tokenDisplay": "토큰: $1", "tokenDisplay": "토큰: $1",
"advancedBot": "고급 봇 설정", "advancedBot": "고급 봇 설정",
"language": "언어:", "language": "언어:",
"connections": "연결" "connections": "연결",
"deleteAccount": "계정 삭제",
"deleteAccountButton": "계정 삭제",
"manageInstance": "인스턴스 관리"
},
"manageInstance": {
"stop": "인스턴스 중지",
"AreYouSureStop": "이 인스턴스를 중지하시겠습니까?",
"length": "길이:",
"format": "포맷:",
"TokenFormats": {
"URLs": "초대 URL"
},
"create": "만들기",
"clientURL": "클라이언트 URL:",
"regType": "토큰 URL 유형 등록",
"copy": "복사"
}, },
"message": { "message": {
"reactionAdd": "반응 추가", "reactionAdd": "반응 추가",

View file

@ -124,7 +124,13 @@
"botUsername": "Botbenotzernumm:", "botUsername": "Botbenotzernumm:",
"advancedBot": "Erweidert Bot-Astellungen", "advancedBot": "Erweidert Bot-Astellungen",
"language": "Sprooch:", "language": "Sprooch:",
"connections": "Verbindungen" "connections": "Verbindungen",
"deleteAccountButton": "Kont läschen"
},
"manageInstance": {
"length": "Längt:",
"genericType": "Geneeresch",
"copy": "Kopéieren"
}, },
"message": { "message": {
"reactionAdd": "Reaktioun derbäisetzen", "reactionAdd": "Reaktioun derbäisetzen",

View file

@ -3,7 +3,11 @@
"last-updated": "2024/11/4", "last-updated": "2024/11/4",
"locale": "en", "locale": "en",
"comment": "Don't know how often I'll update this top part lol", "comment": "Don't know how often I'll update this top part lol",
"authors": ["MathMan05", "McDutchie", "Vl1"] "authors": [
"MathMan05",
"McDutchie",
"Vl1"
]
}, },
"readableName": "{{doc-important|This should be the name of the language you are translating into, in that language. Please DO NOT translate this into your languages word for “English”!}}", "readableName": "{{doc-important|This should be the name of the language you are translating into, in that language. Please DO NOT translate this into your languages word for “English”!}}",
"typing": "$1 is the number of people typing and $2 is the names of the people typing separated by commas", "typing": "$1 is the number of people typing and $2 is the names of the people typing separated by commas",

View file

@ -324,7 +324,12 @@
"advancedBot": "Расширенные настройки бота", "advancedBot": "Расширенные настройки бота",
"botInviteCreate": "Создатель приглашения бота", "botInviteCreate": "Создатель приглашения бота",
"language": "Язык:", "language": "Язык:",
"connections": "Подключения" "connections": "Подключения",
"deleteAccount": "Удаление учётной записи",
"areYouSureDelete": "Вы уверены, что хотите удалить свою учётную запись? Если да, введите фразу $1",
"sillyDeleteConfirmPhrase": "Шрек - это любовь, Шрек - это жизнь",
"deleteAccountButton": "Удалить учётную запись",
"mustTypePhrase": "Чтобы удалить свою учётную запись, вам необходимо ввести фразу"
}, },
"message": { "message": {
"reactionAdd": "Добавить реакцию", "reactionAdd": "Добавить реакцию",