mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-07 02:22:52 +00:00
feat: Linux permission guide
This commit is contained in:
@@ -61,6 +61,8 @@ const de = {
|
|||||||
TERMINAL: "Konsole",
|
TERMINAL: "Konsole",
|
||||||
APPLY_SETTINGS: "Änderungen auf das Gerät brennen",
|
APPLY_SETTINGS: "Änderungen auf das Gerät brennen",
|
||||||
NO_DEVICE: "Kein Gerät verbunden",
|
NO_DEVICE: "Kein Gerät verbunden",
|
||||||
|
LINUX_PERMISSIONS:
|
||||||
|
"Auf den meisten Linux-basierten Systemen müssen zuerst Berechtigungen angepasst werden.",
|
||||||
bootMenu: {
|
bootMenu: {
|
||||||
TITLE: "Bootmenü",
|
TITLE: "Bootmenü",
|
||||||
REBOOT: "Neustarten",
|
REBOOT: "Neustarten",
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ const en = {
|
|||||||
TERMINAL: "Terminal",
|
TERMINAL: "Terminal",
|
||||||
APPLY_SETTINGS: "Flash changes to device",
|
APPLY_SETTINGS: "Flash changes to device",
|
||||||
NO_DEVICE: "No device connected",
|
NO_DEVICE: "No device connected",
|
||||||
|
LINUX_PERMISSIONS:
|
||||||
|
"On most Linux based systems need to adjust permissions in order to connnect your device.",
|
||||||
bootMenu: {
|
bootMenu: {
|
||||||
TITLE: "Boot Menu",
|
TITLE: "Boot Menu",
|
||||||
REBOOT: "Reboot",
|
REBOOT: "Reboot",
|
||||||
|
|||||||
@@ -26,6 +26,35 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if browser}
|
{#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">
|
<div class="row">
|
||||||
{#if $serialPort}
|
{#if $serialPort}
|
||||||
<button
|
<button
|
||||||
@@ -95,6 +124,11 @@
|
|||||||
margin-block: 8px;
|
margin-block: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
details a {
|
||||||
|
display: inline;
|
||||||
|
padding-inline-start: 0;
|
||||||
|
}
|
||||||
|
|
||||||
section {
|
section {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -102,6 +136,16 @@
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|
||||||
min-width: 260px;
|
min-width: 260px;
|
||||||
|
max-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
cursor: pointer;
|
||||||
|
transition: opacity 0.2s ease-in-out;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdrop {
|
.backdrop {
|
||||||
|
|||||||
Reference in New Issue
Block a user