Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "updating copy to clipboard function and adding translations" #84

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions config/auto-translate.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
'ko', // Korean,
'ro', // Romanian
'cz', // Czech
'sk', // Slovakian
'uk', // Ukrainian
'se', // Swedish
],


Expand Down
2 changes: 1 addition & 1 deletion lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"admins.muteUpdate":"Stummschaltung erfolgreich aktualisiert",
"admins.note":"Notiz:",
"admins.noteMessage":"Neu hinzugefügte Admins erhalten ihre Berechtigungen auf dem Server erst bei einem Kartenwechsel. Alternativ können Sie css_reloadadmins mit sofortiger Wirkung ausführen.",
"admins.other":"Andere",
"admins.othger":"Andere",
"admins.overall":"Runden insgesamt",
"admins.panelOwner":"Panel-Inhaber",
"admins.permanent":"Dauerhaft (läuft nie ab)",
Expand Down
72 changes: 10 additions & 62 deletions lang/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"-- Select Server --": "-- Select Server --",
"Address": "Address",
"admins.action": "Action",
"admins.actions": "Actions",
Expand Down Expand Up @@ -65,7 +64,7 @@
"admins.note": "Note:",
"admins.noteGroupMessage": "If you want to delete a group, select all servers. Selecting specific servers will only remove the group from those servers but will not delete the group itself.",
"admins.noteMessage": "Newly added admins will not receive their permissions on the server until a map change. Alternatively, you can execute css_reloadadmins for immediate effect.",
"admins.other": "Other",
"admins.othger": "Other",
"admins.overall": "Rounds Overall",
"admins.panel": "Panel",
"admins.panelOwner": "Panel Owner",
Expand Down Expand Up @@ -117,21 +116,9 @@
"agent.applyAgent": "Apply Agent",
"agent.applyAgentSkin": "Apply Agent Skin",
"agent.error": "An error occurred while applying the agent.",
"Appeal a Ban": "Appeal a Ban",
"Appeal Ban": "Appeal Ban",
"Appeal Details": "Appeal Details",
"Appeals List": "Appeals List",
"Appeals": "Appeals",
"appeals.textOne": "If you are indeed on our ban list and you feel it is unjust or any other circumstances, please fill out the appeal format below.",
"appeals.textThree": "The staff team will be notified of your appeal. They will then review if the ban is conclusive. After reviewing you will get a reply, which usually means within 24 hours.",
"appeals.textTwo": "What happens after I post my appeal?",
"Apply Knife Skin": "Apply Knife Skin",
"Approve": "Approve",
"Ban List": "Ban List",
"Ban Type": "Ban Type",
"Close": "Close",
"Comments": "Comments",
"Created At": "Created At",
"dashboard.active": "Active",
"dashboard.added": "Added",
"dashboard.adminManagement": "Admin Management",
Expand All @@ -146,7 +133,6 @@
"dashboard.ip": "IP",
"dashboard.kills": "Kills",
"dashboard.lastSeen": "Last seen",
"dashboard.lists": "Lists",
"dashboard.lost": "LOST",
"dashboard.map": "Map",
"dashboard.muteMangement": "Mute Management",
Expand Down Expand Up @@ -175,59 +161,24 @@
"dashboard.versionVisible": "This is only visible to you.",
"dashboard.weaponpaints": "Weapon Paints",
"dashboard.won": "WON",
"dashboard.youHaveActiveBans": "You have active Bans on <b>:activeBans</b> servers",
"dashboard.youHaveActiveMutes": "You have active Mutes on <b>:activeMutes</b> servers",
"Delete Report": "Delete Report",
"Delete": "Delete",
"Disabled": "Disabled",
"Email": "Email",
"emails.body.APPROVED": "Your ban appeal has been approved. You can now rejoin the server. If you have any questions, feel free to contact us.",
"emails.body.REJECTED": "Your ban appeal has been denied. If you have any questions or need further information, feel free to contact us.",
"emails.footer.copyright": "&copy; :year :app_name. All rights reserved.",
"emails.footer.github": "GitHub Repository",
"emails.greeting": "Dear :name,",
"emails.regards": "Best regards, Server Administration Team",
"emails.subject.APPROVED": "Your Ban Appeal has been Approved ",
"emails.subject.REJECTED": "Your Ban Appeal has been Denied ",
"Enabled": "Enabled",
"gloves.applyGlove": "Apply Glove",
"gloves.applyGloveSkin": "Apply Glove Skin",
"gloves.error": "An error occurred while applying the glove.",
"gloves.preview": "Glove Preview",
"gloves.select": "Select Glove Type",
"gloves.wear": "Wear",
"Hostname": "Hostname",
"Identifier": "Identifier",
"Media Link (Proof)": "Media Link (Proof)",
"Media Link": "Media Link",
"music.applyMusic": "Apply Music",
"music.applyMusicSkin": "Apply Music Skin",
"music.error": "An error occurred while applying the music.",
"Mute List": "Mute List",
"Name": "Name",
"Nickname": "Nickname",
"Players IP": "Players IP",
"Players Nickname": "Players Nickname",
"Players SteamID": "Players SteamID",
"Reason why you should be unbanned": "Reason why you should be unbanned",
"Reject": "Reject",
"Report Details": "Report Details",
"Report Player": "Report Player",
"Reports List": "Reports List",
"Reports": "Reports",
"reports.textFour": "If your report is approved you will find the player banned status in ban list",
"reports.textOne": "In order to keep our servers running smoothly, offenders of our rules should be punished and we can't always be on call to help.",
"reports.textThree": "The staff team will be notified of your report. They will then review if the report is conclusive.",
"reports.textTwo": "When submitting a player report, we ask you to fill out the report as detailed as possible to help ban the offender as this will help us process your report quickly.",
"Select Knife Category": "Select Knife Category",
"Server Visibility Settings": "Server Visibility Settings",
"Servers": "Servers",
"settings.beCareful": "Be careful when making changes here. Incorrect settings can cause issues with the application.",
"settings.error": "An error occurred while syncing new servers.",
"settings.newServers": "New Servers Synced for visibility settings.",
"settings.noNewServers": "No New Servers Found to sync.",
"settings.sendTestEmail": "Send Test Email",
"settings.testEmailAddress": "Test Email Address",
"settings.update": "Update Settings",
"skins.active": "Active",
"skins.applied": "Skin Applied Successfully.",
Expand All @@ -246,17 +197,14 @@
"skins.selectWear": "Select Wear",
"skins.skinPreview": "Skin Preview",
"skins.wellWorn": "Well-Worn",
"Status": "Status",
"SteamID/IP": "SteamID/IP",
"Submit a Report": "Submit a Report",
"Submit": "Submit",
"Sync New Servers": "Sync New Servers",
"Test SMTP Settings": "Test SMTP Settings",
"View Proof": "View Proof",
"View": "View",
"Visibility": "Visibility",
"Warning": "Warning",
"Your Email": "Your Email",
"Your Name": "Your Name",
"Your SteamID": "Your SteamID"
}
"emails.subject.APPROVED": "Your Ban Appeal has been Approved ",
"emails.subject.REJECTED": "Your Ban Appeal has been Denied ",
"emails.greeting": "Dear :name,",
"emails.body.APPROVED": "Your ban appeal has been approved. You can now rejoin the server. If you have any questions, feel free to contact us.",
"emails.body.REJECTED": "Your ban appeal has been denied. If you have any questions or need further information, feel free to contact us.",
"emails.regards": "Best regards, Server Administration Team",
"emails.footer.copyright": "&copy; :year :app_name. All rights reserved.",
"emails.footer.github": "GitHub Repository"
}
2 changes: 1 addition & 1 deletion lang/en/admins.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
'rcon' => 'RCON',
'login' => 'Login with Steam',
'logout' => 'Logout',
'other' => 'Other',
'othger' => 'Other',
'user' => 'User',
'assists' => 'Assists',
'headhost' => 'Headshots',
Expand Down
2 changes: 1 addition & 1 deletion lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"admins.note": "Nota:",
"admins.noteGroupMessage": "Si desea eliminar un grupo, seleccione todos los servidores. Al seleccionar servidores específicos solo se eliminará el grupo de esos servidores, pero no se eliminará el grupo en sí.",
"admins.noteMessage": "Los administradores recién agregados no recibirán sus permisos en el servidor hasta que se produzca un cambio en el mapa. Alternativamente, puede ejecutar css_reloadadmins para obtener un efecto inmediato.",
"admins.other": "Otro",
"admins.othger": "Otro",
"admins.overall": "Rondas en general",
"admins.panel": "Panel",
"admins.panelOwner": "Propietario del panel",
Expand Down
2 changes: 1 addition & 1 deletion lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"admins.muteUpdate": "Muet mis à jour avec succès",
"admins.note": "Note:",
"admins.noteMessage": "Les administrateurs nouvellement ajoutés ne recevront pas leurs autorisations sur le serveur jusqu'à ce qu'un changement de carte. Alternativement, vous pouvez exécuter css_reloadadmins pour un effet immédiat.",
"admins.other": "Autre",
"admins.othger": "Autre",
"admins.overall": "Tours au total",
"admins.panelOwner": "Propriétaire du panel",
"admins.permanent": "Permanent (ne jamais expirer)",
Expand Down
2 changes: 1 addition & 1 deletion lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"admins.muteUpdate": "Disattivazione audio aggiornata correttamente",
"admins.note": "Nota:",
"admins.noteMessage": "Gli amministratori appena aggiunti non riceveranno le loro autorizzazioni sul server fino a quando non verrà modificata la mappa. In alternativa, puoi eseguire css_reloadadmins con effetto immediato.",
"admins.other": "Altro",
"admins.othger": "Altro",
"admins.overall": "Turni complessivi",
"admins.panelOwner": "Proprietario del pannello",
"admins.permanent": "Permanente (non scade mai)",
Expand Down
2 changes: 1 addition & 1 deletion lang/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"admins.muteUpdate": "ミュートが正常に更新されました",
"admins.note": "注記:",
"admins.noteMessage": "新しく追加された管理者は、マップが変更されるまでサーバー上で権限を受け取りません。あるいは、css_reloadadmins を実行してすぐに効果を得ることができます。",
"admins.other": "他の",
"admins.othger": "他の",
"admins.overall": "ラウンド全体",
"admins.panelOwner": "パネル所有者",
"admins.permanent": "永久 (期限切れなし)",
Expand Down
2 changes: 1 addition & 1 deletion lang/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"admins.muteUpdate": "음소거가 성공적으로 업데이트되었습니다.",
"admins.note": "메모:",
"admins.noteMessage": "새로 추가된 관리자는 지도가 변경될 때까지 서버에 대한 권한을 받지 못합니다. 또는 즉각적인 효과를 위해 css_reloadadmins를 실행할 수 있습니다.",
"admins.other": "다른",
"admins.othger": "다른",
"admins.overall": "라운드 전체",
"admins.panelOwner": "패널 소유자",
"admins.permanent": "영구(만료되지 않음)",
Expand Down
4 changes: 2 additions & 2 deletions lang/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
"admins.muteType":"Tipo",
"admins.muteUpdate":"Mute atualizado com sucesso",
"admins.note":"Observação:",
"admins.noteGroupMessage": "Se você deseja excluir um grupo, selecione todos os servidores. Selecionar servidores específicos apenas removerá o grupo desses servidores, mas não excluirá o grupo em si.",
"admins.noteGroupMessage": "Se você deseja excluir um grupo, selecione todos os servidores. Selecionar servidores específicos apenas removerá o grupo desses servidores, mas não excluirá o grupo em si."
"admins.noteMessage":"Os administradores recém-adicionados não receberão suas permissões no servidor até que o mapa seja alterado. Alternativamente, você pode executar css_reloadadmins para efeito imediato.",
"admins.other":"Outro",
"admins.othger":"Outro",
"admins.overall":"Rounds gerais",
"admins.panel": "Painel",
"admins.panelOwner":"Proprietário do painel",
Expand Down
2 changes: 1 addition & 1 deletion lang/pt_PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"admins.muteUpdate":"Mute foi atualizado!",
"admins.note":"Nota:",
"admins.noteMessage":"Os administradores recém-adicionados não receberão suas permissões no servidor até que o mapa seja alterado. Alternativamente, você pode executar css_reloadadmins para efeito imediato.",
"admins.other":"Outro",
"admins.othger":"Outro",
"admins.overall":"Roundas Gerais",
"admins.panel":"Painel",
"admins.panelOwner":"Proprietário do painel",
Expand Down
2 changes: 1 addition & 1 deletion lang/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"admins.muteUpdate": "Mute actualizat cu succes",
"admins.note": "Notă:",
"admins.noteMessage": "Adminii adăugați recent nu vor primi permisiunile pe server până la schimbarea hărții. Alternativ, puteți executa css_reloadadmins pentru efect imediat.",
"admins.other": "Altul",
"admins.othger": "Altul",
"admins.overall": "Runde Total",
"admins.panelOwner": "Proprietar Panou",
"admins.permanent": "Permanent (Nu Expiră Niciodată)",
Expand Down
2 changes: 1 addition & 1 deletion lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"admins.muteUpdate": "Отключение звука успешно обновлено",
"admins.note": "Примечание:",
"admins.noteMessage": "Вновь добавленные администраторы не получат своих разрешений на сервере до тех пор, пока карта не изменится. Альтернативно, вы можете выполнить css_reloadadmins для немедленного эффекта.",
"admins.other": "Другой",
"admins.othger": "Другой",
"admins.overall": "Всего раундов",
"admins.panelOwner": "Владелец панели",
"admins.permanent": "Постоянный (бессрочный)",
Expand Down
2 changes: 1 addition & 1 deletion lang/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"admins.note": "Poznámka:",
"admins.noteGroupMessage": "Ak chcete odstrániť skupinu, vyberte všetky servery. Výberom konkrétnych serverov sa odstráni iba skupina z týchto serverov, ale samotná skupina sa neodstráni.",
"admins.noteMessage": "Noví administrátori neobdržia svoje oprávnenia na serveri až do zmeny mapy. Alternatívne môžete spustiť css_reloadadmins pre okamžitý efekt.",
"admins.other": "Ostatné",
"admins.othger": "Ostatné",
"admins.overall": "Celkovo kôl",
"admins.panel": "Panel",
"admins.panelOwner": "Majiteľ panelu",
Expand Down
2 changes: 1 addition & 1 deletion lang/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"admins.muteUpdate": "Мут успішно оновлено",
"admins.note": "Примітка:",
"admins.noteMessage": "Нещодавно додані адміни не отримають своїх дозволів на сервері до зміни карти. Або ви можете виконати css_reloadadmins для негайного ефекту.",
"admins.other": "Інше",
"admins.othger": "Інше",
"admins.overall": "Раунди загалом",
"admins.panel": "Панель",
"admins.panelOwner": "Власник панелі",
Expand Down
2 changes: 1 addition & 1 deletion lang/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"admins.muteUpdate": "静音更新成功",
"admins.note": "笔记:",
"admins.noteMessage": "在地图发生更改之前,新添加的管理员不会收到服务器上的权限。或者,您可以执行 css_reloadadmins 以立即生效。",
"admins.other": "其他",
"admins.othger": "其他",
"admins.overall": "总轮数",
"admins.panelOwner": "面板所有者",
"admins.permanent": "永久(永不过期)",
Expand Down
5 changes: 0 additions & 5 deletions resources/images/1x1/se.svg

This file was deleted.

35 changes: 16 additions & 19 deletions resources/js/dashboard/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,28 +117,25 @@ function playerAction(playerName: string, action: string, serverId: string) {
function copyToClipboard(text) {
if (navigator.clipboard) {
navigator.clipboard.writeText(text).then(() => {
Snackbar.show({
text: 'IP and port copied to clipboard!',
actionTextColor: '#fff',
backgroundColor: '#00ab55',
pos: 'top-center'
});
toastr.success('IP and port copied to clipboard!');
}).catch(err => {
console.error('Failed to copy text: ', err);
Snackbar.show({
text: 'Failed to copy IP and port.',
actionTextColor: '#fff',
backgroundColor: '#e7515a',
pos: 'top-center'
});
toastr.error('Failed to copy IP and port.');
});
} else {
// Notify the user that their browser doesn't support the Clipboard API
Snackbar.show({
text: 'Clipboard API not supported in this browser. Please copy manually.',
actionTextColor: '#fff',
backgroundColor: '#e7515a',
pos: 'top-center'
});
// Fallback for older browsers
let textArea = document.createElement("textarea");
textArea.value = text;
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
document.execCommand('copy');
toastr.success('IP and port copied to clipboard!');
} catch (err) {
console.error('Fallback: Oops, unable to copy', err);
toastr.error('Failed to copy IP and port.');
}
document.body.removeChild(textArea);
}
}
Loading
Loading