Михаил Капелько 10 months ago
parent
commit
836adabe08
2 changed files with 6 additions and 8 deletions
  1. +2
    -8
      Modules/MeetupIdX/src/MeetupId.Generated.swift
  2. +4
    -0
      Utilities/platform/2/generation/pipeSource.py

+ 2
- 8
Modules/MeetupIdX/src/MeetupId.Generated.swift View File

@@ -87,10 +87,7 @@ extension MeetupId {
ctrl.pipeValue(
dbg: "textA",
sub: nil,
Bus.events
.compactMap { Bus.convertKeyValue(K.meetupIdTextApp.rawValue, $0) }
.map { (k: String, v: String) -> String in v }
.eraseToAnyPublisher(),
Bus.events.compactMap { Bus.convertKeyValue(K.meetupIdTextApp.rawValue, $0) }.map { (k: String, v: String) in v }.eraseToAnyPublisher().eraseToAnyPublisher(),
{
$0.textApp.value = $1
$0.textApp.isRecent = true
@@ -103,10 +100,7 @@ extension MeetupId {
ctrl.pipeValue(
dbg: "textUI",
sub: nil,
Bus.events
.compactMap { Bus.convertKeyValue(K.meetupIdTextUI.rawValue, $0) }
.map { (k: String, v: String) -> String in v }
.eraseToAnyPublisher(),
Bus.events.compactMap { Bus.convertKeyValue(K.meetupIdTextUI.rawValue, $0) }.map { (k: String, v: String) in v }.eraseToAnyPublisher().eraseToAnyPublisher(),
{
$0.textUI.value = $1
$0.textUI.isRecent = true


+ 4
- 0
Utilities/platform/2/generation/pipeSource.py View File

@@ -14,6 +14,10 @@ def pipeSource(name, entity):
# Прямое обращение к VM.
if src.startswith("vm."):
src = "core." + src
# Обращение к константе шины.
elif src.startswith("K."):
key = src
src = "Bus.events.compactMap { Bus.convertKeyValue(" + key + ".rawValue, $0) }.map { (k: String, v: String) in v }.eraseToAnyPublisher()"
# Значение по умолчанию.
elif src == default:
return default + "." + name


Loading…
Cancel
Save