Pe 96 left navbar (#27)

* nice. bottom done

* work on adding workspaces

* starting on Tabs
This commit is contained in:
anandamarsh
2023-09-30 12:13:40 -07:00
committed by GitHub
parent b1820224d5
commit 5a0effb691
46 changed files with 11910 additions and 258 deletions
+11203
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -45,6 +45,7 @@
"@electron-forge/maker-rpm": "^6.0.0-beta.70",
"@electron-forge/maker-squirrel": "^6.0.0-beta.70",
"@electron-forge/maker-zip": "^6.0.0-beta.70",
"@svgr/webpack": "^8.1.0",
"@types/classnames": "^2.3.1",
"@types/electron": "^1.6.10",
"@types/node": "^18.0.3",
@@ -56,6 +57,7 @@
"css-loader": "^6.7.1",
"electron": "25.4.0",
"electron-rebuild": "^3.2.8",
"file-loader": "^6.2.0",
"http-server": "^14.1.1",
"less": "^4.1.2",
"less-loader": "^11.0.0",
+5
View File
@@ -0,0 +1,5 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="add">
<path id="Vector" d="M8 2.25C8.41421 2.25 8.75 2.58579 8.75 3V7.25H12.9999C13.4142 7.25 13.7499 7.58579 13.7499 8C13.7499 8.41421 13.4142 8.75 12.9999 8.75H8.75V13C8.75 13.4142 8.41421 13.75 8 13.75C7.58579 13.75 7.25 13.4142 7.25 13V8.75H2.99994C2.58573 8.75 2.24994 8.41421 2.24994 8C2.24994 7.58579 2.58573 7.25 2.99994 7.25H7.25V3C7.25 2.58579 7.58579 2.25 8 2.25Z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 494 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

+5
View File
@@ -0,0 +1,5 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="chevron left">
<path id="Vector" d="M9.37532 3.87037C9.06142 3.60011 8.58787 3.63548 8.31761 3.94938L5.24716 7.51555C5.00479 7.79706 5.005 8.21358 5.24766 8.49484L8.3181 12.0537C8.58869 12.3673 9.06228 12.4022 9.3759 12.1316C9.68952 11.861 9.72441 11.3874 9.45383 11.0738L6.80564 8.0044L9.45433 4.92809C9.72459 4.61419 9.68922 4.14064 9.37532 3.87037Z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 471 B

+10
View File
@@ -0,0 +1,10 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="globe" clip-path="url(#clip0_877_3373)">
<path id="Vector" d="M2.8036 4.99805H4.93136C5.20393 4.00767 5.60992 3.09518 6.12818 2.29776C4.71686 2.76074 3.53598 3.7331 2.8036 4.99805ZM8.0002 2.30822C7.36149 3.02543 6.84135 3.94162 6.49682 4.99805H9.50369C9.15932 3.94141 8.63922 3.02533 8.0002 2.30822ZM9.8557 6.49805H6.14448C6.07205 6.98072 6.03383 7.48276 6.03383 8.00006C6.03383 8.51728 6.07222 9.01943 6.14492 9.50232H9.85562C9.928 9.01963 9.96618 8.51751 9.96618 8.00006C9.96618 7.48269 9.92803 6.98065 9.8557 6.49805ZM11.3698 9.50232H13.8106C13.9341 9.0228 14 8.51954 14 8C14 7.4806 13.9342 6.97745 13.8107 6.49805H11.3699C11.4334 6.98712 11.4662 7.48902 11.4662 8.00006C11.4662 8.51118 11.4334 9.01316 11.3698 9.50232ZM9.50346 11.0023H6.49812C6.84293 12.0578 7.36295 12.9739 8.00061 13.6912C8.63925 12.9742 9.15913 12.0585 9.50346 11.0023ZM6.13019 13.7029C5.61195 12.9053 5.20549 11.9927 4.93242 11.0023H2.80381C3.53655 12.2677 4.71812 13.2402 6.13019 13.7029ZM2.18944 9.50232H4.63058C4.5668 9.01306 4.53383 8.51107 4.53383 8.00006C4.53383 7.48905 4.56667 6.98716 4.63024 6.49805H2.18934C2.06583 6.97745 2 7.4806 2 8C2 8.51954 2.06586 9.0228 2.18944 9.50232ZM9.87246 13.702C11.2834 13.239 12.4639 12.2669 13.1962 11.0023H11.0689C10.7964 11.9925 10.3907 12.9048 9.87246 13.702ZM13.1964 4.99805C12.4642 3.73335 11.2836 2.76113 9.87267 2.29803C10.3909 3.09536 10.7967 4.00771 11.0691 4.99805H13.1964ZM0.927726 5.49789C1.95757 2.58706 4.73409 0.5 8 0.5C11.2659 0.5 14.0424 2.58706 15.0723 5.49789C15.3495 6.28142 15.5 7.12394 15.5 8C15.5 8.87621 15.3494 9.71887 15.0721 10.5025C14.0422 13.4131 11.2658 15.5 8 15.5C4.73424 15.5 1.95783 13.4131 0.92787 10.5025C0.65057 9.71887 0.5 8.87621 0.5 8C0.5 7.12394 0.650517 6.28142 0.927726 5.49789Z" />
</g>
<defs>
<clipPath id="clip0_877_3373">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 4.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 2.6 KiB

+14
View File
@@ -0,0 +1,14 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="help" clip-path="url(#clip0_877_3413)">
<g id="Vector">
<path d="M8 5.15C7.81163 5.14997 7.62858 5.21252 7.47961 5.32782C7.33065 5.44312 7.2242 5.60464 7.177 5.787C7.1274 5.97968 7.0033 6.14477 6.83198 6.24594C6.66067 6.34712 6.45618 6.3761 6.2635 6.3265C6.07082 6.2769 5.90573 6.1528 5.80456 5.98148C5.70338 5.81017 5.6744 5.60568 5.724 5.413C5.8665 4.85867 6.20641 4.3754 6.67992 4.05389C7.15344 3.73237 7.72802 3.59473 8.29582 3.66678C8.86363 3.73882 9.38561 4.01562 9.76383 4.44521C10.142 4.87479 10.3505 5.42765 10.35 6C10.35 7.036 9.784 7.578 9.387 7.948C8.997 8.311 8.801 8.498 8.742 8.906C8.70775 9.09729 8.60058 9.26782 8.44309 9.38165C8.28559 9.49549 8.09005 9.54375 7.89768 9.51627C7.7053 9.48879 7.5311 9.38771 7.41177 9.23432C7.29245 9.08094 7.23732 8.88723 7.258 8.694C7.392 7.752 7.943 7.241 8.308 6.904L8.363 6.852C8.716 6.522 8.85 6.364 8.85 6C8.85 5.88838 8.82801 5.77785 8.7853 5.67472C8.74258 5.57159 8.67997 5.47789 8.60104 5.39896C8.52211 5.32003 8.42841 5.25742 8.32528 5.2147C8.22215 5.17199 8.11162 5.15 8 5.15Z" />
<path d="M8.75 11.15C8.75 11.3489 8.67098 11.5397 8.53033 11.6803C8.38968 11.821 8.19891 11.9 8 11.9C7.80109 11.9 7.61032 11.821 7.46967 11.6803C7.32902 11.5397 7.25 11.3489 7.25 11.15C7.25 10.9511 7.32902 10.7603 7.46967 10.6197C7.61032 10.479 7.80109 10.4 8 10.4C8.19891 10.4 8.38968 10.479 8.53033 10.6197C8.67098 10.7603 8.75 10.9511 8.75 11.15Z" />
<path d="M8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8Z" />
</g>
</g>
<defs>
<clipPath id="clip0_877_3413">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

+13
View File
@@ -0,0 +1,13 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="clock backward" clip-path="url(#clip0_877_3363)">
<g id="Vector">
<path d="M8.25843 4.47461C8.67264 4.47461 9.00843 4.8104 9.00843 5.22461V7.98571L11.2296 8.92626C11.6162 9.07495 11.8091 9.5089 11.6604 9.8955C11.5117 10.2821 11.0778 10.475 10.6912 10.3263L7.98919 9.20082C7.69955 9.08942 7.50843 8.81114 7.50843 8.50081V5.22461C7.50843 4.8104 7.84421 4.47461 8.25843 4.47461Z" />
<path d="M15.9999 8C15.9999 3.85786 12.642 0.5 8.49988 0.5C5.73269 0.5 3.31653 1.99898 2.01747 4.22577L1.74147 2.77671C1.66397 2.36981 1.27129 2.10278 0.864389 2.18028C0.45749 2.25778 0.190459 2.65046 0.267959 3.05736L0.849614 6.11122C0.925297 6.50858 1.30245 6.77433 1.70211 6.71191L4.86015 6.21867C5.2694 6.15475 5.54935 5.77117 5.48543 5.36192C5.42151 4.95267 5.03793 4.67272 4.62868 4.73664L3.33874 4.93811C4.3858 3.17734 6.30581 2 8.49988 2C11.8136 2 14.4999 4.68629 14.4999 8C14.4999 11.3137 11.8136 14 8.49988 14C7.42502 14 6.41828 13.718 5.54722 13.2246C5.18682 13.0204 4.72915 13.147 4.52497 13.5074C4.3208 13.8678 4.44745 14.3255 4.80784 14.5297C5.89848 15.1475 7.15915 15.5 8.49988 15.5C12.642 15.5 15.9999 12.1421 15.9999 8Z" />
</g>
</g>
<defs>
<clipPath id="clip0_877_3363">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 3.3 KiB

+5
View File
@@ -0,0 +1,5 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="actions">
<path id="Vector" d="M6.79999 4C6.79999 3.33728 7.33724 2.8 7.99999 2.8C8.66271 2.8 9.19999 3.33728 9.19999 4C9.19999 4.66272 8.66271 5.2 7.99999 5.2C7.33724 5.2 6.79999 4.66272 6.79999 4ZM6.79999 8C6.79999 7.33728 7.33724 6.8 7.99999 6.8C8.66271 6.8 9.19999 7.33728 9.19999 8C9.19999 8.66274 8.66271 9.2 7.99999 9.2C7.33724 9.2 6.79999 8.66274 6.79999 8ZM6.79999 12C6.79999 11.3373 7.33724 10.8 7.99999 10.8C8.66271 10.8 9.19999 11.3373 9.19999 12C9.19999 12.6627 8.66271 13.2 7.99999 13.2C7.33724 13.2 6.79999 12.6627 6.79999 12Z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 661 B

+8
View File
@@ -0,0 +1,8 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="grid 4">
<g id="Vector">
<path d="M9.63945 2.16696C9.84318 2.058 10.0452 1.99998 10.6024 1.99998L12.3975 2.00003C12.9547 2.00002 13.1568 2.058 13.3605 2.16695C13.5642 2.2759 13.7241 2.43577 13.833 2.63946C13.942 2.84316 14 3.04525 14 3.60245L14 5.39755C14 5.95476 13.942 6.15681 13.833 6.36054C13.7241 6.56425 13.5643 6.72406 13.3605 6.83302C13.1568 6.94198 12.9548 7 12.3976 7L10.6024 6.99999C10.0452 6.99999 9.84316 6.94197 9.63947 6.83303C9.43576 6.72409 9.27589 6.56422 9.16696 6.36052C9.05801 6.15682 8.99999 5.95476 8.99999 5.39757L8.99999 3.60243C8.99999 3.04523 9.058 2.84317 9.16696 2.63945C9.27592 2.43572 9.43573 2.27592 9.63945 2.16696Z" />
<path d="M5.39757 8.99999C5.95477 8.99999 6.15682 9.05801 6.36053 9.16695C6.56423 9.27589 6.7241 9.43576 6.83304 9.63946C6.94198 9.84317 7 10.0452 7 10.6024V12.3976C7 12.9548 6.94198 13.1568 6.83304 13.3605C6.7241 13.5642 6.56423 13.7241 6.36053 13.833C6.15682 13.942 5.95477 14 5.39757 14H3.60243C3.04523 14 2.84318 13.942 2.63947 13.833C2.43577 13.7241 2.2759 13.5642 2.16696 13.3605C2.05802 13.1568 2 12.9548 2 12.3976V10.6024C2 10.0452 2.05802 9.84317 2.16696 9.63946C2.2759 9.43576 2.43577 9.27589 2.63947 9.16695C2.84318 9.05801 3.04523 8.99999 3.60243 8.99999H5.39757ZM12.3976 8.99999C12.9548 8.99999 13.1568 9.05801 13.3605 9.16695C13.5642 9.27589 13.7241 9.43576 13.833 9.63946C13.942 9.84317 14 10.0452 14 10.6024V12.3976C14 12.9548 13.942 13.1568 13.833 13.3605C13.7241 13.5642 13.5642 13.7241 13.3605 13.833C13.1568 13.942 12.9548 14 12.3976 14H10.6024C10.0452 14 9.84317 13.942 9.63947 13.833C9.43577 13.7241 9.2759 13.5642 9.16696 13.3605C9.05802 13.1568 9 12.9548 9 12.3976V10.6024C9 10.0452 9.05802 9.84317 9.16696 9.63946C9.2759 9.43576 9.43577 9.27589 9.63947 9.16695C9.84317 9.05801 10.0452 8.99999 10.6024 8.99999H12.3976ZM5.39757 1.99999C5.95477 1.99999 6.15682 2.05801 6.36053 2.16695C6.56423 2.27589 6.7241 2.43576 6.83304 2.63946C6.94198 2.84317 7 3.04522 7 3.60242V5.39756C7 5.95476 6.94198 6.15682 6.83304 6.36052C6.7241 6.56423 6.56423 6.72409 6.36053 6.83304C6.15682 6.94198 5.95477 6.99999 5.39757 6.99999H3.60243C3.04523 6.99999 2.84318 6.94198 2.63947 6.83304C2.43577 6.72409 2.2759 6.56423 2.16696 6.36052C2.05802 6.15682 2 5.95476 2 5.39756V3.60242C2 3.04522 2.05802 2.84317 2.16696 2.63946C2.2759 2.43576 2.43577 2.27589 2.63947 2.16695C2.84318 2.05801 3.04523 1.99999 3.60243 1.99999H5.39757Z" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

+1 -1
View File
@@ -6,7 +6,7 @@ import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
import cn from "classnames";
import { If } from "tsx-control-statements/components";
import type { RemoteType } from "../types";
import type { RemoteType } from "../types/types";
import "./common.less";
+1 -1
View File
@@ -7,7 +7,7 @@ import localizedFormat from "dayjs/plugin/localizedFormat";
import { If } from "tsx-control-statements/components";
import { GlobalModel } from "../../model";
import { termHeightFromRows } from "../../util/textmeasure";
import type { LineType } from "../../types";
import type { LineType } from "../../types/types";
import cn from "classnames";
import type { LineContainerModel } from "../../model";
import * as lineutil from "../../main/line/lineutil";
+1 -1
View File
@@ -11,7 +11,7 @@ import type {
RendererContext,
WindowSize,
PtyDataType,
} from "../../types";
} from "../../types/types";
import { getTheme } from "../../themes";
type DataUpdate = {
+17
View File
@@ -1,6 +1,7 @@
@base-color: #eceeec;
@base-background: rgba(21, 23, 21, 1);
@base-background-dev: rgba(21, 23, 21, 1);
@base-border: rgba(241, 246, 243, 0.08);
@term-black: #000000;
@term-red: #cc0000;
@@ -60,6 +61,22 @@ body {
color: @base-color;
}
svg {
fill: @base-color;
}
// styles.less
.hoverEffect {
&:hover {
cursor: pointer;
box-shadow: 0px 2px 2px 0 rgba(255, 255, 255, 0.1), 0px 4px 5px 0 rgba(255, 255, 255, 0.2),
0px 0px 5px 2.5px rgba(255, 255, 255, 0.5);
transition: box-shadow 0.2s ease;
}
}
#title-bar {
-webkit-app-region: drag;
height: 30px;
+1 -1
View File
@@ -4,7 +4,7 @@ import * as mobx from "mobx";
import { boundMethod } from "autobind-decorator";
import { If } from "tsx-control-statements/components";
import dayjs from "dayjs";
import type { ContextMenuOpts } from "../types";
import type { ContextMenuOpts } from "../types/types";
import localizedFormat from "dayjs/plugin/localizedFormat";
import { GlobalModel } from "../model";
import { isBlank } from "../util/util";
+1 -1
View File
@@ -4,7 +4,7 @@ import * as mobx from "mobx";
import { boundMethod } from "autobind-decorator";
import { If, For } from "tsx-control-statements/components";
import cn from "classnames";
import type { BookmarkType } from "../../types";
import type { BookmarkType } from "../../types/types";
import { GlobalModel } from "../../model";
import { CmdStrCode, Markdown } from "../../common/common";
+1 -1
View File
@@ -6,7 +6,7 @@ import { sprintf } from "sprintf-js";
import { boundMethod } from "autobind-decorator";
import cn from "classnames";
import { GlobalModel, GlobalCommandRunner, Cmd } from "../../model";
import { HistoryItem, RemotePtrType, LineType, CmdDataType } from "../../types";
import { HistoryItem, RemotePtrType, LineType, CmdDataType } from "../../types/types";
import dayjs from "dayjs";
import localizedFormat from "dayjs/plugin/localizedFormat";
import customParseFormat from "dayjs/plugin/customParseFormat";

Some files were not shown because too many files have changed in this diff Show More