-
Notifications
You must be signed in to change notification settings - Fork 44
Add textbox #390
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
Open
AlexShmak
wants to merge
7
commits into
mimi-net:main
Choose a base branch
from
AlexShmak:feature/textbox
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+779
−78
Open
Add textbox #390
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
114626b
feat(textbox): add template for textbox element
AlexShmak 6d6e026
feat(textbox): add temporary textbox icon (textbox.svg)
AlexShmak 35996e0
feat(textbox): add editable content field for textbox
AlexShmak 27dba3e
feat(textbox): implement resizable textbox with configurable text con…
AlexShmak 38b3fe8
feat(textbox): implement font style, weight, color and size configura…
AlexShmak 4955978
feat(textbox): rework devices and tools side panel
AlexShmak 3feb67b
refactor(textbox): remove textbox config class from back, ignore all …
AlexShmak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| from enum import Enum | ||
|
|
||
|
|
||
| class NodeType(str, Enum): | ||
| """ | ||
| Types of all functional network nodes | ||
| """ | ||
|
|
||
| HOST = "host" | ||
| SERVER = "server" | ||
| SWITCH = "l2_switch" | ||
| HUB = "l1_hub" | ||
| ROUTER = "router" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,7 +50,7 @@ | |
| display: block; | ||
| margin-bottom: 10px; | ||
| padding: 10px; | ||
| width: 130px; | ||
| width: 170px; | ||
| background-color: white; | ||
| border-radius: 7px; | ||
| box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); | ||
|
|
@@ -63,13 +63,14 @@ | |
| display: block; | ||
| max-height: calc(80vh - 140px); | ||
| padding: 10px; | ||
| width: 130px; | ||
| width: 170px; | ||
| background-color: white; | ||
| border-radius: 7px; | ||
| box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); | ||
| text-align: center; | ||
| color: #222; | ||
| overflow-y: auto; | ||
| margin-bottom: 10px; | ||
| } | ||
|
|
||
| .ws-menu-settings-name { | ||
|
|
@@ -107,4 +108,38 @@ | |
| font-weight: 500; | ||
| color: #222; | ||
| } | ||
|
|
||
| .side-menu-header { | ||
| position: relative; | ||
| text-align: center; | ||
| padding: 6px 28px; | ||
| } | ||
|
|
||
| .side-menu-header span { | ||
| font-size: inherit; | ||
| user-select: none; | ||
| } | ||
|
|
||
| .side-menu-arrow { | ||
| position: absolute; | ||
| top: 50%; | ||
| transform: translateY(-50%); | ||
| cursor: pointer; | ||
| font-size: 1.2rem; | ||
| color: #6c757d; | ||
| opacity: 0.6; | ||
| } | ||
|
|
||
| .side-menu-arrow.left { | ||
| left: 6px; | ||
| } | ||
|
|
||
| .side-menu-arrow.right { | ||
| right: 6px; | ||
| } | ||
|
|
||
| .side-menu-arrow:hover { | ||
| color: #000; | ||
| opacity: 1; | ||
| } | ||
|
Comment on lines
+112
to
+144
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. С новым side menu мне кажется очень крутая идея 👍 Учитывая что скорее всего ещё новые устройства появлятья будут |
||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😠😠😠😠😠😠😠😠😠😠😠 надо этот файл в
.gitignoreдобавитьThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По-хорошему он там должен был быть уже давно (изначально), текущие
.envс примерной конфигурацией стоит оставить сMODE=devи переименовать во что-то, вродеexample.env. Занести в.gitignoreи не трогать продовый.env