PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
feat(core): store whether the send page stacks its list
baiyuze329e1e119030
diff --git a/client-core/internal/config/config.go b/client-core/internal/config/config.goindex 44a99f1..aec7253 100644--- a/client-core/internal/config/config.go+++ b/client-core/internal/config/config.go@@ -73,6 +73,8 @@ type Config struct {ReceiveDisabled bool `json:"receive_disabled,omitempty"`// ReceiveNotifyDisabled 收到隔空传送的文件时不发系统通知ReceiveNotifyDisabled bool `json:"receive_notify_disabled,omitempty"`+ // SendLayoutStacked 让隔空传送页上下排:传输列表放在雷达下面。默认左右排,只有界面用+ SendLayoutStacked bool `json:"send_layout_stacked,omitempty"`}// EffectiveReceiveDir 返回隔空传送实际的保存位置。diff --git a/client-core/internal/rpc/convert.go b/client-core/internal/rpc/convert.goindex 171e1a7..6515128 100644--- a/client-core/internal/rpc/convert.go+++ b/client-core/internal/rpc/convert.go@@ -88,6 +88,7 @@ func configToProto(c config.Config) *pb.Config {ReceiveDir: c.ReceiveDir,ReceiveDisabled: c.ReceiveDisabled,ReceiveNotifyDisabled: c.ReceiveNotifyDisabled,+ SendLayoutStacked: c.SendLayoutStacked,}}@@ -162,6 +163,7 @@ func configFromProto(in *pb.Config, base config.Config) config.Config {c.ReceiveDir = in.GetReceiveDir()c.ReceiveDisabled = in.GetReceiveDisabled()c.ReceiveNotifyDisabled = in.GetReceiveNotifyDisabled()+ c.SendLayoutStacked = in.GetSendLayoutStacked()return c}diff --git a/proto/gen/pasteferry/v1/daemon.pb.go b/proto/gen/pasteferry/v1/daemon.pb.goindex 4074694..c44cf1e 100644--- a/proto/gen/pasteferry/v1/daemon.pb.go+++ b/proto/gen/pasteferry/v1/daemon.pb.go@@ -2692,8 +2692,10 @@ type Config struct {ReceiveDisabled bool `protobuf:"varint,24,opt,name=receive_disabled,json=receiveDisabled,proto3" json:"receive_disabled,omitempty"`// 收到文件时不发系统通知ReceiveNotifyDisabled bool `protobuf:"varint,25,opt,name=receive_notify_disabled,json=receiveNotifyDisabled,proto3" json:"receive_notify_disabled,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // 隔空传送页里,传输列表放在雷达下面(上下排)。默认 false:放在雷达右边(左右排)+ SendLayoutStacked bool `protobuf:"varint,26,opt,name=send_layout_stacked,json=sendLayoutStacked,proto3" json:"send_layout_stacked,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}func (x *Config) Reset() {@@ -2901,6 +2903,13 @@ func (x *Config) GetReceiveNotifyDisabled() bool {return false}+func (x *Config) GetSendLayoutStacked() bool {+ if x != nil {+ return x.SendLayoutStacked+ }+ return false+}+type OfficialUsage struct {state protoimpl.MessageState `protogen:"open.v1"`Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`@@ -4978,7 +4987,7 @@ const file_pasteferry_v1_daemon_proto_rawDesc = "" +"\x04kind\x18\x01 \x01(\x0e2\x1d.pasteferry.v1.ConnectionKindR\x04kind\"P\n" +"\x17SetDeviceAddressRequest\x12\x1b\n" +"\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12\x18\n" +- "\aaddress\x18\x02 \x01(\tR\aaddress\"\xb9\b\n" ++ "\aaddress\x18\x02 \x01(\tR\aaddress\"\xe9\b\n" +"\x06Config\x129\n" +"\x19auto_sync_threshold_bytes\x18\x01 \x01(\x03R\x16autoSyncThresholdBytes\x12.\n" +"\x13history_ttl_seconds\x18\x02 \x01(\x03R\x11historyTtlSeconds\x12*\n" +@@ -5008,7 +5017,8 @@ const file_pasteferry_v1_daemon_proto_rawDesc = "" +"\vreceive_dir\x18\x17 \x01(\tR\n" +"receiveDir\x12)\n" +"\x10receive_disabled\x18\x18 \x01(\bR\x0freceiveDisabled\x126\n" +- "\x17receive_notify_disabled\x18\x19 \x01(\bR\x15receiveNotifyDisabled\"\xd8\x02\n" ++ "\x17receive_notify_disabled\x18\x19 \x01(\bR\x15receiveNotifyDisabled\x12.\n" ++ "\x13send_layout_stacked\x18\x1a \x01(\bR\x11sendLayoutStacked\"\xd8\x02\n" +"\rOfficialUsage\x12\x1c\n" +"\tavailable\x18\x01 \x01(\bR\tavailable\x12\x10\n" +"\x03day\x18\x02 \x01(\tR\x03day\x12\x1f\n" +diff --git a/proto/pasteferry/v1/daemon.proto b/proto/pasteferry/v1/daemon.protoindex 116b86a..1861cae 100644--- a/proto/pasteferry/v1/daemon.proto+++ b/proto/pasteferry/v1/daemon.proto@@ -483,6 +483,8 @@ message Config {bool receive_disabled = 24;// 收到文件时不发系统通知bool receive_notify_disabled = 25;+ // 隔空传送页里,传输列表放在雷达下面(上下排)。默认 false:放在雷达右边(左右排)+ bool send_layout_stacked = 26;}enum ServiceMode {