From 9510cfc854f3025deb50cc5e7d3f4a468910c559 Mon Sep 17 00:00:00 2001 From: Mihael Isaev Date: Tue, 4 Apr 2023 05:44:18 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=81=20Upgrade=20to=20v3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/App/{ViewControllers => Pages}/HelloPage.swift | 2 +- Sources/App/{ViewControllers => Pages}/NotFoundPage.swift | 2 +- Sources/App/{ViewControllers => Pages}/WelcomePage.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename Sources/App/{ViewControllers => Pages}/HelloPage.swift (94%) rename Sources/App/{ViewControllers => Pages}/NotFoundPage.swift (94%) rename Sources/App/{ViewControllers => Pages}/WelcomePage.swift (98%) diff --git a/Sources/App/ViewControllers/HelloPage.swift b/Sources/App/Pages/HelloPage.swift similarity index 94% rename from Sources/App/ViewControllers/HelloPage.swift rename to Sources/App/Pages/HelloPage.swift index f33ca32..f026fdd 100755 --- a/Sources/App/ViewControllers/HelloPage.swift +++ b/Sources/App/Pages/HelloPage.swift @@ -1,6 +1,6 @@ import Web -class HelloPage: ViewController { +class HelloPage: PageController { @DOM override var body: DOM.Content { P("Hello page") .textAlign(.center) diff --git a/Sources/App/ViewControllers/NotFoundPage.swift b/Sources/App/Pages/NotFoundPage.swift similarity index 94% rename from Sources/App/ViewControllers/NotFoundPage.swift rename to Sources/App/Pages/NotFoundPage.swift index b8f5475..62a1b88 100755 --- a/Sources/App/ViewControllers/NotFoundPage.swift +++ b/Sources/App/Pages/NotFoundPage.swift @@ -1,6 +1,6 @@ import Web -class NotFoundPage: ViewController { +class NotFoundPage: PageController { @DOM override var body: DOM.Content { P("this is catchall aka 404 NOT FOUND page") .textAlign(.center) diff --git a/Sources/App/ViewControllers/WelcomePage.swift b/Sources/App/Pages/WelcomePage.swift similarity index 98% rename from Sources/App/ViewControllers/WelcomePage.swift rename to Sources/App/Pages/WelcomePage.swift index 4e02aab..b902c5b 100755 --- a/Sources/App/ViewControllers/WelcomePage.swift +++ b/Sources/App/Pages/WelcomePage.swift @@ -1,6 +1,6 @@ import Web -class WelcomePage: ViewController { +class WelcomePage: PageController { @State var clickCount = 0 @State var clicked = false