mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-11 13:26:16 +00:00
feat: Linux permission guide
This commit is contained in:
@@ -61,6 +61,8 @@ const de = {
|
||||
TERMINAL: "Konsole",
|
||||
APPLY_SETTINGS: "Änderungen auf das Gerät brennen",
|
||||
NO_DEVICE: "Kein Gerät verbunden",
|
||||
LINUX_PERMISSIONS:
|
||||
"Auf den meisten Linux-basierten Systemen müssen zuerst Berechtigungen angepasst werden.",
|
||||
bootMenu: {
|
||||
TITLE: "Bootmenü",
|
||||
REBOOT: "Neustarten",
|
||||
|
||||
@@ -60,6 +60,8 @@ const en = {
|
||||
TERMINAL: "Terminal",
|
||||
APPLY_SETTINGS: "Flash changes to device",
|
||||
NO_DEVICE: "No device connected",
|
||||
LINUX_PERMISSIONS:
|
||||
"On most Linux based systems need to adjust permissions in order to connnect your device.",
|
||||
bootMenu: {
|
||||
TITLE: "Boot Menu",
|
||||
REBOOT: "Reboot",
|
||||
|
||||
@@ -26,6 +26,35 @@
|
||||
{/if}
|
||||
|
||||
{#if browser}
|
||||
{#if navigator.userAgent.includes("Linux")}
|
||||
<details class="linux-info">
|
||||
<summary>{@html $LL.deviceManager.LINUX_PERMISSIONS()}</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<a target="_blank" href="https://docs.arduino.cc/software/ide-v1/tutorials/Linux#please-read"
|
||||
>Debian (Ubuntu, Mint, Pop!_OS, ...), Fedora, OpenSUSE</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a target="_blank" href="https://wiki.archlinux.org/title/Arduino#Accessing_serial"
|
||||
>Arch (Manjaro, EndeavourOS, ...)</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
target="_blank"
|
||||
href="https://gist.github.com/CMCDragonkai/d00201ec143c9f749fc49533034e5009?permalink_comment_id=4670311#gistcomment-4670311"
|
||||
>NixOS</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a target="_blank" href="https://wiki.gentoo.org/wiki/Arduino#Grant_access_to_non-root_users"
|
||||
>Gentoo</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
{/if}
|
||||
<div class="row">
|
||||
{#if $serialPort}
|
||||
<button
|
||||
@@ -95,6 +124,11 @@
|
||||
margin-block: 8px;
|
||||
}
|
||||
|
||||
details a {
|
||||
display: inline;
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
|
||||
section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -102,6 +136,16 @@
|
||||
justify-content: flex-start;
|
||||
|
||||
min-width: 260px;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
.backdrop {
|
||||
|
||||
Reference in New Issue
Block a user