d
This commit is contained in:
@@ -6,7 +6,7 @@ model:
|
|||||||
|
|
||||||
service:
|
service:
|
||||||
actions:
|
actions:
|
||||||
modelBus
|
busModel
|
||||||
pipes:
|
pipes:
|
||||||
textApp: [recent, K.meetupIdTextApp]
|
textApp: [recent, K.meetupIdTextApp]
|
||||||
textUI: [recent, K.meetupIdTextUI]
|
textUI: [recent, K.meetupIdTextUI]
|
||||||
|
|||||||
@@ -80,6 +80,9 @@ extension MeetupId {
|
|||||||
) {
|
) {
|
||||||
// MARK: - SectionGenerated Service Actions
|
// MARK: - SectionGenerated Service Actions
|
||||||
|
|
||||||
|
ctrl.m
|
||||||
|
.sink { v in Bus.send("MeetupId", v) }
|
||||||
|
.store(in: &service.subscriptions)
|
||||||
|
|
||||||
|
|
||||||
// MARK: - SectionGenerated Service Pipes
|
// MARK: - SectionGenerated Service Pipes
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ from generation.sectionGeneratedActionShouldLoad import *
|
|||||||
|
|
||||||
def generateServiceSectionGeneratedActions(c):
|
def generateServiceSectionGeneratedActions(c):
|
||||||
base = f"{c.dir}/templates/service-section-generated-action"
|
base = f"{c.dir}/templates/service-section-generated-action"
|
||||||
|
fmtBusModel = c.readFile(f"{base}-bus-model")
|
||||||
fmtCommon = c.readFile(base)
|
fmtCommon = c.readFile(base)
|
||||||
fmtInstant = c.readFile(f"{base}-instant")
|
fmtInstant = c.readFile(f"{base}-instant")
|
||||||
fmtRelay = c.readFile(f"{base}-relay")
|
fmtRelay = c.readFile(f"{base}-relay")
|
||||||
@@ -21,6 +22,11 @@ def generateServiceSectionGeneratedActions(c):
|
|||||||
|
|
||||||
# Шаблонные действия.
|
# Шаблонные действия.
|
||||||
if value == "":
|
if value == "":
|
||||||
|
# busModel.
|
||||||
|
if key == "busModel":
|
||||||
|
c.serviceSectionGeneratedActions += "\n".join(fmtBusModel) + "\n"
|
||||||
|
continue
|
||||||
|
|
||||||
# instant model.
|
# instant model.
|
||||||
if key == "🚀model":
|
if key == "🚀model":
|
||||||
c.serviceSectionGeneratedActions += "\n".join(fmtInstantModel) + "\n"
|
c.serviceSectionGeneratedActions += "\n".join(fmtInstantModel) + "\n"
|
||||||
@@ -66,7 +72,8 @@ def generateServiceSectionGeneratedActions(c):
|
|||||||
for fmt in template:
|
for fmt in template:
|
||||||
ln = fmt \
|
ln = fmt \
|
||||||
.replace("%SHOULD%", action) \
|
.replace("%SHOULD%", action) \
|
||||||
.replace("%SINK%", value)
|
.replace("%SINK%", value) \
|
||||||
|
.replace("%MODULE%", c.module)
|
||||||
output += ln + "\n"
|
output += ln + "\n"
|
||||||
|
|
||||||
c.serviceSectionGeneratedActions += output
|
c.serviceSectionGeneratedActions += output
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
ctrl.m
|
||||||
|
.sink { v in Bus.send("%MODULE%", v) }
|
||||||
|
.store(in: &service.subscriptions)
|
||||||
@@ -4,6 +4,7 @@ import UIKit
|
|||||||
@UIApplicationMain
|
@UIApplicationMain
|
||||||
class AppDelegate: UIResponder, UIApplicationDelegate
|
class AppDelegate: UIResponder, UIApplicationDelegate
|
||||||
{
|
{
|
||||||
|
let meetupIS = MeetupId.Service(.init())
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
|
|
||||||
func application(
|
func application(
|
||||||
|
|||||||
Reference in New Issue
Block a user