diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-06-18 07:50:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-18 07:50:58 -0500 |
| commit | 6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8 (patch) | |
| tree | 5a9fc027f35af593fb5c1168bfbeaeec24acdaf3 /src/web | |
| parent | 6e77c4f214c9d8a258c1e39c465cc63fc1912850 (diff) | |
| parent | 2c45386bfa4ad1a8a9dd5cf5793ee895ec0aeeaa (diff) | |
| download | slskd-6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8.tar.gz | |
Merge branch 'colors' into feat/config-console-log-colour
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/.eslintignore | 1 | ||||
| -rw-r--r-- | src/web/package-lock.json | 15 | ||||
| -rw-r--r-- | src/web/package.json | 1 | ||||
| -rw-r--r-- | src/web/src/components/App.css | 7 | ||||
| -rw-r--r-- | src/web/src/components/Browse/Browse.css | 2 | ||||
| -rw-r--r-- | src/web/src/components/Chat/Chat.css | 2 | ||||
| -rw-r--r-- | src/web/src/components/Rooms/Rooms.css | 2 | ||||
| -rw-r--r-- | src/web/src/components/Rooms/Rooms.jsx | 2 | ||||
| -rw-r--r-- | src/web/src/components/Search/Search.css | 2 | ||||
| -rw-r--r-- | src/web/src/components/System/Shares/ContentsModal.jsx | 6 | ||||
| -rw-r--r-- | src/web/src/components/System/System.css | 2 | ||||
| -rw-r--r-- | src/web/src/components/Users/Users.css | 2 |
12 files changed, 23 insertions, 21 deletions
diff --git a/src/web/.eslintignore b/src/web/.eslintignore new file mode 100644 index 00000000..23188627 --- /dev/null +++ b/src/web/.eslintignore @@ -0,0 +1 @@ +*.css
\ No newline at end of file diff --git a/src/web/package-lock.json b/src/web/package-lock.json index 90d5e9fe..1cc43e24 100644 --- a/src/web/package-lock.json +++ b/src/web/package-lock.json @@ -14,7 +14,6 @@ "@microsoft/signalr": "^7.0.7", "@uiw/react-codemirror": "^4.2.4", "axios": "^0.25.0", - "lodash": "^4.17.21", "lz-string": "^1.4.4", "react": "^16.8.6", "react-dom": "^16.8.6", @@ -6391,12 +6390,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -10626,9 +10625,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" diff --git a/src/web/package.json b/src/web/package.json index 87b6eba1..49990771 100644 --- a/src/web/package.json +++ b/src/web/package.json @@ -19,7 +19,6 @@ "@microsoft/signalr": "^7.0.7", "@uiw/react-codemirror": "^4.2.4", "axios": "^0.25.0", - "lodash": "^4.17.21", "lz-string": "^1.4.4", "react": "^16.8.6", "react-dom": "^16.8.6", diff --git a/src/web/src/components/App.css b/src/web/src/components/App.css index 1de44557..054fe1c4 100644 --- a/src/web/src/components/App.css +++ b/src/web/src/components/App.css @@ -121,6 +121,7 @@ body { } .pushable > .pusher.app-content { + min-height: calc(100% - 71px); background: var(--background-color); } @@ -139,7 +140,7 @@ body { } .result-card:last-child, .transfer-card:last-child, .search-list-card:last-child { - margin-bottom: 17px !important; + margin-bottom: 16px !important; } .result-meta { @@ -186,7 +187,7 @@ body { .showmore-button { padding: 20px !important; max-width: 1200px !important; - margin-bottom: 17px !important; + margin-bottom: 16px !important; } .login-button { @@ -245,7 +246,7 @@ body { } .view:last-child { - margin-bottom: 17px; + margin-bottom: 16px; } /* https://github.com/Semantic-Org/Semantic-UI-React/issues/3133#issuecomment-418766748 */ diff --git a/src/web/src/components/Browse/Browse.css b/src/web/src/components/Browse/Browse.css index d7d4ef8e..b7363592 100644 --- a/src/web/src/components/Browse/Browse.css +++ b/src/web/src/components/Browse/Browse.css @@ -71,7 +71,7 @@ } .browse-container:last-child { - margin-bottom: 17px; + margin-bottom: 16px; } .browse-meta { diff --git a/src/web/src/components/Chat/Chat.css b/src/web/src/components/Chat/Chat.css index 92aea58c..15e4b7b6 100644 --- a/src/web/src/components/Chat/Chat.css +++ b/src/web/src/components/Chat/Chat.css @@ -25,7 +25,7 @@ max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; - margin-bottom: 17px; + margin-bottom: 16px; } .chat-segment { diff --git a/src/web/src/components/Rooms/Rooms.css b/src/web/src/components/Rooms/Rooms.css index 961d7e00..e001d6ea 100644 --- a/src/web/src/components/Rooms/Rooms.css +++ b/src/web/src/components/Rooms/Rooms.css @@ -4,7 +4,7 @@ max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; - margin-bottom: 17px; + margin-bottom: 16px; } .rooms-segment { diff --git a/src/web/src/components/Rooms/Rooms.jsx b/src/web/src/components/Rooms/Rooms.jsx index 002ecde3..54e67d3c 100644 --- a/src/web/src/components/Rooms/Rooms.jsx +++ b/src/web/src/components/Rooms/Rooms.jsx @@ -195,7 +195,7 @@ class Rooms extends Component { onRoomChange={(name) => this.selectRoom(name)} /> </Segment> - {active == null ? ( + {active?.length === 0 ? ( <PlaceholderSegment caption="No rooms to display" icon="comments" diff --git a/src/web/src/components/Search/Search.css b/src/web/src/components/Search/Search.css index 817d87b9..a73542f4 100644 --- a/src/web/src/components/Search/Search.css +++ b/src/web/src/components/Search/Search.css @@ -7,7 +7,7 @@ } .search-container:last-child { - margin-bottom: 17px; + margin-bottom: 16px; } .search-segment { diff --git a/src/web/src/components/System/Shares/ContentsModal.jsx b/src/web/src/components/System/Shares/ContentsModal.jsx index bb5b3fc9..5399bcf2 100644 --- a/src/web/src/components/System/Shares/ContentsModal.jsx +++ b/src/web/src/components/System/Shares/ContentsModal.jsx @@ -1,6 +1,5 @@ import { browse } from '../../../lib/shares'; import { CodeEditor, LoaderSegment, Switch } from '../../Shared'; -import { orderBy } from 'lodash'; import React, { useEffect, useState } from 'react'; import { Button, Icon, Modal } from 'semantic-ui-react'; @@ -18,8 +17,11 @@ const ContentsModal = ({ onClose, share, theme }) => { const directories = result.map((directory) => { const lines = [directory.name.replace(remotePath, localPath)]; + const directoryFilesOrderedByFilename = directory.files.sort( + (file1, file2) => file1.filename.localeCompare(file2.filename), + ); - for (const file of orderBy(directory.files, 'filename')) { + for (const file of directoryFilesOrderedByFilename) { lines.push('\t' + file.filename.replace(remotePath, '')); } diff --git a/src/web/src/components/System/System.css b/src/web/src/components/System/System.css index 80642687..ded0449a 100644 --- a/src/web/src/components/System/System.css +++ b/src/web/src/components/System/System.css @@ -5,7 +5,7 @@ margin-left: auto !important; margin-right: auto !important; margin-top: 15px !important; - margin-bottom: 17px; + margin-bottom: 16px; } .logs-table { diff --git a/src/web/src/components/Users/Users.css b/src/web/src/components/Users/Users.css index c9244834..1335a1c7 100644 --- a/src/web/src/components/Users/Users.css +++ b/src/web/src/components/Users/Users.css @@ -7,7 +7,7 @@ } .users-container:last-child { - margin-bottom: 17px; + margin-bottom: 16px; } .users-segment { |
