mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-19 13:51:23 +00:00
Various fixes
This commit is contained in:
parent
0a8e87e26a
commit
440664e56f
|
@ -176,6 +176,7 @@ public class StoreViewState {
|
||||||
var l = Arrays.stream(entry)
|
var l = Arrays.stream(entry)
|
||||||
.map(StoreEntryWrapper::new)
|
.map(StoreEntryWrapper::new)
|
||||||
.peek(storeEntryWrapper -> storeEntryWrapper.update())
|
.peek(storeEntryWrapper -> storeEntryWrapper.update())
|
||||||
|
.peek(wrapper -> wrapper.applyLastAccess())
|
||||||
.toList();
|
.toList();
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
// Don't update anything if we have already reset
|
// Don't update anything if we have already reset
|
||||||
|
|
|
@ -121,6 +121,25 @@ public abstract class StorageElement {
|
||||||
notifyUpdate(false, true);
|
notifyUpdate(false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setLastModified(Instant lastModified) {
|
||||||
|
if (lastModified.equals(this.lastModified)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.lastModified = lastModified;
|
||||||
|
notifyUpdate(false, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setLastUsed(Instant lastUsed) {
|
||||||
|
if (lastUsed.equals(this.lastUsed)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.lastUsed = lastUsed;
|
||||||
|
notifyUpdate(false, false);
|
||||||
|
}
|
||||||
|
|
||||||
public interface Listener {
|
public interface Listener {
|
||||||
void onUpdate();
|
void onUpdate();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
.scroll-bar {
|
||||||
|
-fx-opacity: 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-bar .thumb {
|
||||||
|
-fx-opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
.scroll-bar:vertical {
|
.scroll-bar:vertical {
|
||||||
-fx-min-width: 7px;
|
-fx-min-width: 7px;
|
||||||
-fx-pref-width: 7px;
|
-fx-pref-width: 7px;
|
||||||
|
|
|
@ -6,11 +6,11 @@ import io.xpipe.app.storage.DataStorage;
|
||||||
import io.xpipe.app.storage.DataStoreEntry;
|
import io.xpipe.app.storage.DataStoreEntry;
|
||||||
import io.xpipe.app.storage.DataStoreEntryRef;
|
import io.xpipe.app.storage.DataStoreEntryRef;
|
||||||
import io.xpipe.core.store.DataStore;
|
import io.xpipe.core.store.DataStore;
|
||||||
|
|
||||||
import javafx.beans.value.ObservableValue;
|
import javafx.beans.value.ObservableValue;
|
||||||
|
|
||||||
import lombok.Value;
|
import lombok.Value;
|
||||||
|
|
||||||
|
import java.time.Duration;
|
||||||
|
|
||||||
public class CloneStoreAction implements ActionProvider {
|
public class CloneStoreAction implements ActionProvider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -52,12 +52,15 @@ public class CloneStoreAction implements ActionProvider {
|
||||||
@Value
|
@Value
|
||||||
static class Action implements ActionProvider.Action {
|
static class Action implements ActionProvider.Action {
|
||||||
|
|
||||||
DataStoreEntry store;
|
DataStoreEntry entry;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
DataStorage.get()
|
var entry = DataStoreEntry.createNew(this.entry.getName() + " (Copy)", this.entry.getStore());
|
||||||
.addStoreEntryIfNotPresent(DataStoreEntry.createNew(store.getName() + " (Copy)", store.getStore()));
|
var instant = this.entry.getLastAccess().plus(Duration.ofSeconds(1));
|
||||||
|
entry.setLastModified(instant);
|
||||||
|
entry.setLastUsed(instant);
|
||||||
|
DataStorage.get().addStoreEntryIfNotPresent(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -395,3 +395,4 @@ hyperVVm.displayName=Hyper-V VM
|
||||||
hyperVVm.displayDescription=Opret forbindelse til en Hyper-V VM via SSH eller PSSession
|
hyperVVm.displayDescription=Opret forbindelse til en Hyper-V VM via SSH eller PSSession
|
||||||
trustHost=Tillidsvært
|
trustHost=Tillidsvært
|
||||||
trustHostDescription=Tilføj ComputerName til listen over betroede værter
|
trustHostDescription=Tilføj ComputerName til listen over betroede værter
|
||||||
|
copyIp=Kopier IP
|
||||||
|
|
|
@ -373,3 +373,4 @@ hyperVVm.displayName=Hyper-V VM
|
||||||
hyperVVm.displayDescription=Verbindung zu einer Hyper-V VM über SSH oder PSSession
|
hyperVVm.displayDescription=Verbindung zu einer Hyper-V VM über SSH oder PSSession
|
||||||
trustHost=Vertrauenswürdiger Host
|
trustHost=Vertrauenswürdiger Host
|
||||||
trustHostDescription=Computername zur Liste der vertrauenswürdigen Hosts hinzufügen
|
trustHostDescription=Computername zur Liste der vertrauenswürdigen Hosts hinzufügen
|
||||||
|
copyIp=IP kopieren
|
||||||
|
|
|
@ -371,4 +371,5 @@ hyperVVm.displayName=Hyper-V VM
|
||||||
hyperVVm.displayDescription=Connect to a Hyper-V VM via SSH or PSSession
|
hyperVVm.displayDescription=Connect to a Hyper-V VM via SSH or PSSession
|
||||||
trustHost=Trust host
|
trustHost=Trust host
|
||||||
trustHostDescription=Add ComputerName to trusted hosts list
|
trustHostDescription=Add ComputerName to trusted hosts list
|
||||||
|
copyIp=Copy IP
|
||||||
|
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=VM Hyper-V
|
||||||
hyperVVm.displayDescription=Conectarse a una máquina virtual Hyper-V mediante SSH o PSSession
|
hyperVVm.displayDescription=Conectarse a una máquina virtual Hyper-V mediante SSH o PSSession
|
||||||
trustHost=Host de confianza
|
trustHost=Host de confianza
|
||||||
trustHostDescription=Añadir ComputerName a la lista de hosts de confianza
|
trustHostDescription=Añadir ComputerName a la lista de hosts de confianza
|
||||||
|
copyIp=Copiar IP
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=VM Hyper-V
|
||||||
hyperVVm.displayDescription=Se connecter à une VM Hyper-V via SSH ou PSSession
|
hyperVVm.displayDescription=Se connecter à une VM Hyper-V via SSH ou PSSession
|
||||||
trustHost=Hôte de confiance
|
trustHost=Hôte de confiance
|
||||||
trustHostDescription=Ajoute NomOrdinateur à la liste des hôtes de confiance
|
trustHostDescription=Ajoute NomOrdinateur à la liste des hôtes de confiance
|
||||||
|
copyIp=Copier l'IP
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=VM Hyper-V
|
||||||
hyperVVm.displayDescription=Connettersi a una macchina virtuale Hyper-V tramite SSH o PSSession
|
hyperVVm.displayDescription=Connettersi a una macchina virtuale Hyper-V tramite SSH o PSSession
|
||||||
trustHost=Host fiduciario
|
trustHost=Host fiduciario
|
||||||
trustHostDescription=Aggiungi NomeComputer all'elenco degli host attendibili
|
trustHostDescription=Aggiungi NomeComputer all'elenco degli host attendibili
|
||||||
|
copyIp=Copia IP
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=Hyper-V VM
|
||||||
hyperVVm.displayDescription=SSHまたはPSSession経由でHyper-V VMに接続する
|
hyperVVm.displayDescription=SSHまたはPSSession経由でHyper-V VMに接続する
|
||||||
trustHost=トラストホスト
|
trustHost=トラストホスト
|
||||||
trustHostDescription=ComputerNameを信頼済みホストリストに追加する
|
trustHostDescription=ComputerNameを信頼済みホストリストに追加する
|
||||||
|
copyIp=コピーIP
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=Hyper-V VM
|
||||||
hyperVVm.displayDescription=Verbinding maken met een Hyper-V VM via SSH of PSSession
|
hyperVVm.displayDescription=Verbinding maken met een Hyper-V VM via SSH of PSSession
|
||||||
trustHost=Vertrouwende host
|
trustHost=Vertrouwende host
|
||||||
trustHostDescription=ComputerNaam toevoegen aan vertrouwde hosts lijst
|
trustHostDescription=ComputerNaam toevoegen aan vertrouwde hosts lijst
|
||||||
|
copyIp=IP kopiëren
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=VM Hyper-V
|
||||||
hyperVVm.displayDescription=Liga-te a uma VM Hyper-V através de SSH ou PSSession
|
hyperVVm.displayDescription=Liga-te a uma VM Hyper-V através de SSH ou PSSession
|
||||||
trustHost=Anfitrião de confiança
|
trustHost=Anfitrião de confiança
|
||||||
trustHostDescription=Adiciona ComputerName à lista de anfitriões de confiança
|
trustHostDescription=Adiciona ComputerName à lista de anfitriões de confiança
|
||||||
|
copyIp=Copia o IP
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=Hyper-V VM
|
||||||
hyperVVm.displayDescription=Подключение к виртуальной машине Hyper-V через SSH или PSSession
|
hyperVVm.displayDescription=Подключение к виртуальной машине Hyper-V через SSH или PSSession
|
||||||
trustHost=Доверительный хост
|
trustHost=Доверительный хост
|
||||||
trustHostDescription=Добавьте ComputerName в список доверенных хостов
|
trustHostDescription=Добавьте ComputerName в список доверенных хостов
|
||||||
|
copyIp=Копировать IP
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=Hyper-V VM
|
||||||
hyperVVm.displayDescription=SSH veya PSSession aracılığıyla bir Hyper-V sanal makinesine bağlanma
|
hyperVVm.displayDescription=SSH veya PSSession aracılığıyla bir Hyper-V sanal makinesine bağlanma
|
||||||
trustHost=Güven ev sahibi
|
trustHost=Güven ev sahibi
|
||||||
trustHostDescription=ComputerName'i güvenilir ana bilgisayarlar listesine ekleme
|
trustHostDescription=ComputerName'i güvenilir ana bilgisayarlar listesine ekleme
|
||||||
|
copyIp=IP Kopyala
|
||||||
|
|
|
@ -369,3 +369,4 @@ hyperVVm.displayName=Hyper-V 虚拟机
|
||||||
hyperVVm.displayDescription=通过 SSH 或 PSSession 连接到 Hyper-V 虚拟机
|
hyperVVm.displayDescription=通过 SSH 或 PSSession 连接到 Hyper-V 虚拟机
|
||||||
trustHost=信任主机
|
trustHost=信任主机
|
||||||
trustHostDescription=将 ComputerName 添加到受信任主机列表
|
trustHostDescription=将 ComputerName 添加到受信任主机列表
|
||||||
|
copyIp=复制 IP
|
||||||
|
|
Loading…
Reference in a new issue