mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Use preview macro
This commit is contained in:
parent
10e4f97924
commit
892aa4a2a1
7 changed files with 26 additions and 40 deletions
|
|
@ -119,10 +119,8 @@ struct TailscaleLink: View {
|
||||||
|
|
||||||
// MARK: - Preview
|
// MARK: - Preview
|
||||||
|
|
||||||
struct AccessDashboardPageView_Previews: PreviewProvider {
|
#Preview("Access Dashboard Page") {
|
||||||
static var previews: some View {
|
AccessDashboardPageView()
|
||||||
AccessDashboardPageView()
|
.frame(width: 640, height: 480)
|
||||||
.frame(width: 640, height: 480)
|
.background(Color(NSColor.windowBackgroundColor))
|
||||||
.background(Color(NSColor.windowBackgroundColor))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,10 +104,8 @@ struct ProtectDashboardPageView: View {
|
||||||
|
|
||||||
// MARK: - Preview
|
// MARK: - Preview
|
||||||
|
|
||||||
struct ProtectDashboardPageView_Previews: PreviewProvider {
|
#Preview("Protect Dashboard Page") {
|
||||||
static var previews: some View {
|
ProtectDashboardPageView()
|
||||||
ProtectDashboardPageView()
|
.frame(width: 640, height: 480)
|
||||||
.frame(width: 640, height: 480)
|
.background(Color(NSColor.windowBackgroundColor))
|
||||||
.background(Color(NSColor.windowBackgroundColor))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -122,10 +122,8 @@ struct RequestPermissionsPageView: View {
|
||||||
|
|
||||||
// MARK: - Preview
|
// MARK: - Preview
|
||||||
|
|
||||||
struct RequestPermissionsPageView_Previews: PreviewProvider {
|
#Preview("Request Permissions Page") {
|
||||||
static var previews: some View {
|
RequestPermissionsPageView()
|
||||||
RequestPermissionsPageView()
|
.frame(width: 640, height: 480)
|
||||||
.frame(width: 640, height: 480)
|
.background(Color(NSColor.windowBackgroundColor))
|
||||||
.background(Color(NSColor.windowBackgroundColor))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -147,10 +147,8 @@ struct SelectTerminalPageView: View {
|
||||||
|
|
||||||
// MARK: - Preview
|
// MARK: - Preview
|
||||||
|
|
||||||
struct SelectTerminalPageView_Previews: PreviewProvider {
|
#Preview("Select Terminal Page") {
|
||||||
static var previews: some View {
|
SelectTerminalPageView()
|
||||||
SelectTerminalPageView()
|
.frame(width: 640, height: 480)
|
||||||
.frame(width: 640, height: 480)
|
.background(Color(NSColor.windowBackgroundColor))
|
||||||
.background(Color(NSColor.windowBackgroundColor))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -94,10 +94,8 @@ struct VTCommandPageView: View {
|
||||||
|
|
||||||
// MARK: - Preview
|
// MARK: - Preview
|
||||||
|
|
||||||
struct VTCommandPageView_Previews: PreviewProvider {
|
#Preview("VT Command Page") {
|
||||||
static var previews: some View {
|
VTCommandPageView(cliInstaller: CLIInstaller())
|
||||||
VTCommandPageView(cliInstaller: CLIInstaller())
|
.frame(width: 640, height: 480)
|
||||||
.frame(width: 640, height: 480)
|
.background(Color(NSColor.windowBackgroundColor))
|
||||||
.background(Color(NSColor.windowBackgroundColor))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,10 +50,8 @@ struct WelcomePageView: View {
|
||||||
|
|
||||||
// MARK: - Preview
|
// MARK: - Preview
|
||||||
|
|
||||||
struct WelcomePageView_Previews: PreviewProvider {
|
#Preview("Welcome Page") {
|
||||||
static var previews: some View {
|
WelcomePageView()
|
||||||
WelcomePageView()
|
.frame(width: 640, height: 480)
|
||||||
.frame(width: 640, height: 480)
|
.background(Color(NSColor.windowBackgroundColor))
|
||||||
.background(Color(NSColor.windowBackgroundColor))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -183,8 +183,6 @@ struct WelcomeView: View {
|
||||||
|
|
||||||
// MARK: - Preview
|
// MARK: - Preview
|
||||||
|
|
||||||
struct WelcomeView_Previews: PreviewProvider {
|
#Preview("Welcome View") {
|
||||||
static var previews: some View {
|
WelcomeView()
|
||||||
WelcomeView()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue