Merge branch 'main' into fix/windows_disks

This commit is contained in:
Abdenasser Elidrissi 2024-11-08 17:56:16 +01:00 committed by GitHub
commit 82eb4426f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 38 additions and 12 deletions

View File

@ -11,7 +11,7 @@ env:
RUSTUP_MAX_RETRIES: 10 RUSTUP_MAX_RETRIES: 10
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
RUSTC_WRAPPER: sccache RUSTC_WRAPPER: sccache
CARGO_BUILD_JOBS: ${{ runtime.numCPU }} CARGO_BUILD_JOBS: 2
jobs: jobs:
build: build:
@ -32,15 +32,18 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
/var/cache/apt /var/cache/apt/archives/*.deb
/var/lib/apt/lists /var/lib/apt/lists/*
key: ${{ runner.os }}-apt-${{ hashFiles('**/build-check.yml') }} key: ${{ runner.os }}-apt-${{ hashFiles('**/build-check.yml') }}
restore-keys: | restore-keys: |
${{ runner.os }}-apt- ${{ runner.os }}-apt-
- name: Install Linux Dependencies - name: Install Linux Dependencies
if: steps.cache-apt.outputs.cache-hit != 'true'
run: | run: |
sudo rm -rf /var/cache/apt/archives/lock
sudo rm -rf /var/cache/apt/archives/partial
sudo rm -rf /var/lib/apt/lists/lock
sudo rm -rf /var/lib/apt/lists/partial
sudo apt-get update sudo apt-get update
sudo apt-get install --no-install-recommends -y \ sudo apt-get install --no-install-recommends -y \
build-essential \ build-essential \
@ -58,12 +61,18 @@ jobs:
with: with:
components: cargo components: cargo
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
profile: minimal
- name: Install sccache
run: |
SCCACHE_VERSION=v0.7.7
curl -L "https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" | tar xz
sudo mv sccache-*/sccache /usr/local/bin/sccache
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
workspaces: "./src-tauri -> target"
shared-key: "build" shared-key: "build"
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci

View File

@ -22,6 +22,12 @@
- 💻 CPU and Memory usage tracking - 💻 CPU and Memory usage tracking
- 🎨 Beautiful, modern UI with dark/light themes - 🎨 Beautiful, modern UI with dark/light themes
- 🔍 Process search and filtering - 🔍 Process search and filtering
Search for processes by name, command, or PID. Search for multiple things at once by separating them with commas. For
example, `arm, x86` will return processes having `arm` or `x86` as a substring of the name or command. You can use
regular expressions too. For example, `d$` will return a list of daemons (which tend to end in the letter `d`), while
`(\w+)\.\w+` will return a list of processes with reverse domain name notation, such as `com.docker.vmnetd`.
- 📌 Pin important processes - 📌 Pin important processes
- 🛠 Process management (kill processes) - 🛠 Process management (kill processes)
- 🎯 Sort by any column - 🎯 Sort by any column

View File

@ -30,7 +30,7 @@
let columns: Column[] = [ let columns: Column[] = [
{ id: "name", label: "Process Name", visible: true, required: true }, { id: "name", label: "Process Name", visible: true, required: true },
{ id: "pid", label: "PID", visible: true, required: true }, { id: "pid", label: "PID", visible: true, required: false },
{ {
id: "status", id: "status",
label: "Status", label: "Status",
@ -60,11 +60,22 @@
}; };
$: filteredProcesses = processes.filter((process) => { $: filteredProcesses = processes.filter((process) => {
const matchesSearch = searchTerm let matchesSearch = searchTerm.length === 0;
? process.name.toLowerCase().includes(searchTerm.toLowerCase()) || searchTerm
process.command.toLowerCase().includes(searchTerm.toLowerCase()) || .split(",")
process.pid.toString().includes(searchTerm) .map((term) => term.trim())
: true; .forEach((term) => {
const nameSubstringMatch = process.name
.toLowerCase()
.includes(term.toLowerCase());
const nameRegexMatch = new RegExp(term, "i").test(process.name);
const commandMatch = process.command
.toLowerCase()
.includes(term.toLowerCase());
const pidMatch = process.pid.toString().includes(term);
matchesSearch ||=
nameSubstringMatch || nameRegexMatch || commandMatch || pidMatch;
});
const matchesStatus = const matchesStatus =
statusFilter === "all" ? true : process.status === statusFilter; statusFilter === "all" ? true : process.status === statusFilter;