Skip to content

Commit a279ec9

Browse files
committed
refactor re. PointFreeHTML
1 parent 4e8e163 commit a279ec9

37 files changed

+218
-220
lines changed

Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension Target.Dependency {
2424
static var htmlAttributeTypes: Self { .product(name: "HTMLAttributeTypes", package: "swift-html-types") }
2525
static var htmlElementTypes: Self { .product(name: "HTMLElementTypes", package: "swift-html-types") }
2626
static var pointFreeHTML: Self { .product(name: "PointFreeHTML", package: "pointfree-html") }
27-
static var pointFreeHtmlTestSupport: Self { .product(name: "PointFreeHtmlTestSupport", package: "pointfree-html") }
27+
static var pointFreeHtmlTestSupport: Self { .product(name: "PointFreeHTMLTestSupport", package: "pointfree-html") }
2828
}
2929

3030
let package = Package(

Package@swift-6.0.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension Target.Dependency {
2424
static var htmlAttributeTypes: Self { .product(name: "HTMLAttributeTypes", package: "swift-html-types") }
2525
static var htmlElementTypes: Self { .product(name: "HTMLElementTypes", package: "swift-html-types") }
2626
static var pointFreeHTML: Self { .product(name: "PointFreeHTML", package: "pointfree-html") }
27-
static var pointFreeHtmlTestSupport: Self { .product(name: "PointFreeHtmlTestSupport", package: "pointfree-html") }
27+
static var pointFreeHtmlTestSupport: Self { .product(name: "PointFreeHTMLTestSupport", package: "pointfree-html") }
2828
}
2929

3030
let package = Package(

Sources/HTMLElements+PointFreeHTML/<area> Image Map Area.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
import Foundation
9+
import PointFreeHTML
910

1011
extension HTMLElementTypes.Area {
1112
public func callAsFunction() -> some HTML {

Tests/CSS+PointFreeHTML Tests/AccentColor Tests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import CSSPropertyTypes
1010
import CSSTypeTypes
1111
import Dependencies
1212
import Foundation
13-
import PointFreeHtmlTestSupport
13+
import PointFreeHTMLTestSupport
1414
import PointFreeHTML
1515
import Testing
1616

@@ -29,7 +29,7 @@ struct AccentColorTests {
2929
) {
3030
"""
3131
<!doctype html>
32-
<html lang="en">
32+
<html>
3333
<head>
3434
<style>
3535
.accent-color-dMYaj4{accent-color:red}
@@ -55,7 +55,7 @@ struct AccentColorTests {
5555
) {
5656
"""
5757
<!doctype html>
58-
<html lang="en">
58+
<html>
5959
<head>
6060
<style>
6161
.accent-color-bQ3ZC1{accent-color:#FF0000}
@@ -81,7 +81,7 @@ struct AccentColorTests {
8181
) {
8282
"""
8383
<!doctype html>
84-
<html lang="en">
84+
<html>
8585
<head>
8686
<style>
8787
.accent-color-trEDH1{accent-color:inherit}
@@ -107,7 +107,7 @@ struct AccentColorTests {
107107
) {
108108
"""
109109
<!doctype html>
110-
<html lang="en">
110+
<html>
111111
<head>
112112
<style>
113113
@media print{
@@ -135,7 +135,7 @@ struct AccentColorTests {
135135
) {
136136
"""
137137
<!doctype html>
138-
<html lang="en">
138+
<html>
139139
<head>
140140
<style>
141141
.accent-color-egMjx3:hover{accent-color:#FF0000}
@@ -161,7 +161,7 @@ struct AccentColorTests {
161161
) {
162162
"""
163163
<!doctype html>
164-
<html lang="en">
164+
<html>
165165
<head>
166166
<style>
167167
my-component .accent-color-XyDYD1{accent-color:#FF0000}

Tests/CSS+PointFreeHTML Tests/AlignContent Tests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import CSS_PointFreeHTML
99
import CSSPropertyTypes
1010
import CSSTypeTypes
1111
import Dependencies
12-
import PointFreeHtmlTestSupport
12+
import PointFreeHTMLTestSupport
1313
import PointFreeHTML
1414
import Testing
1515

@@ -28,7 +28,7 @@ struct AlignContentTests {
2828
) {
2929
"""
3030
<!doctype html>
31-
<html lang="en">
31+
<html>
3232
<head>
3333
<style>
3434
.align-content-CdPBO2{align-content:center}
@@ -54,7 +54,7 @@ struct AlignContentTests {
5454
) {
5555
"""
5656
<!doctype html>
57-
<html lang="en">
57+
<html>
5858
<head>
5959
<style>
6060
.align-content-n56cj2{align-content:flex-start}
@@ -80,7 +80,7 @@ struct AlignContentTests {
8080
) {
8181
"""
8282
<!doctype html>
83-
<html lang="en">
83+
<html>
8484
<head>
8585
<style>
8686
.align-content-trEDH1{align-content:inherit}
@@ -106,7 +106,7 @@ struct AlignContentTests {
106106
) {
107107
"""
108108
<!doctype html>
109-
<html lang="en">
109+
<html>
110110
<head>
111111
<style>
112112
@media print{
@@ -134,7 +134,7 @@ struct AlignContentTests {
134134
) {
135135
"""
136136
<!doctype html>
137-
<html lang="en">
137+
<html>
138138
<head>
139139
<style>
140140
.align-content-a0Jun2:hover{align-content:space-around}
@@ -160,7 +160,7 @@ struct AlignContentTests {
160160
) {
161161
"""
162162
<!doctype html>
163-
<html lang="en">
163+
<html>
164164
<head>
165165
<style>
166166
my-component .align-content-KzNip3{align-content:space-between}
@@ -186,7 +186,7 @@ struct AlignContentTests {
186186
) {
187187
"""
188188
<!doctype html>
189-
<html lang="en">
189+
<html>
190190
<head>
191191
<style>
192192
.align-content-msN8p3{align-content:stretch}

Tests/CSS+PointFreeHTML Tests/AlignItems Tests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import CSS_PointFreeHTML
99
import CSSPropertyTypes
1010
import CSSTypeTypes
1111
import Dependencies
12-
import PointFreeHtmlTestSupport
12+
import PointFreeHTMLTestSupport
1313
import PointFreeHTML
1414
import Testing
1515

@@ -28,7 +28,7 @@ struct AlignItemsTests {
2828
) {
2929
"""
3030
<!doctype html>
31-
<html lang="en">
31+
<html>
3232
<head>
3333
<style>
3434
.align-items-CdPBO2{align-items:center}
@@ -54,7 +54,7 @@ struct AlignItemsTests {
5454
) {
5555
"""
5656
<!doctype html>
57-
<html lang="en">
57+
<html>
5858
<head>
5959
<style>
6060
.align-items-n56cj2{align-items:flex-start}
@@ -80,7 +80,7 @@ struct AlignItemsTests {
8080
) {
8181
"""
8282
<!doctype html>
83-
<html lang="en">
83+
<html>
8484
<head>
8585
<style>
8686
.align-items-trEDH1{align-items:inherit}
@@ -106,7 +106,7 @@ struct AlignItemsTests {
106106
) {
107107
"""
108108
<!doctype html>
109-
<html lang="en">
109+
<html>
110110
<head>
111111
<style>
112112
@media print{
@@ -134,7 +134,7 @@ struct AlignItemsTests {
134134
) {
135135
"""
136136
<!doctype html>
137-
<html lang="en">
137+
<html>
138138
<head>
139139
<style>
140140
.align-items-fCQVh2:hover{align-items:baseline}
@@ -160,7 +160,7 @@ struct AlignItemsTests {
160160
) {
161161
"""
162162
<!doctype html>
163-
<html lang="en">
163+
<html>
164164
<head>
165165
<style>
166166
my-component .align-items-dzpgf{align-items:flex-end}
@@ -186,7 +186,7 @@ struct AlignItemsTests {
186186
) {
187187
"""
188188
<!doctype html>
189-
<html lang="en">
189+
<html>
190190
<head>
191191
<style>
192192
.align-items-msN8p3{align-items:stretch}

Tests/CSS+PointFreeHTML Tests/AlignSelf Tests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import CSS_PointFreeHTML
99
import CSSPropertyTypes
1010
import CSSTypeTypes
1111
import Dependencies
12-
import PointFreeHtmlTestSupport
12+
import PointFreeHTMLTestSupport
1313
import PointFreeHTML
1414
import Testing
1515

@@ -28,7 +28,7 @@ struct AlignSelfTests {
2828
) {
2929
"""
3030
<!doctype html>
31-
<html lang="en">
31+
<html>
3232
<head>
3333
<style>
3434
.align-self-CdPBO2{align-self:center}
@@ -54,7 +54,7 @@ struct AlignSelfTests {
5454
) {
5555
"""
5656
<!doctype html>
57-
<html lang="en">
57+
<html>
5858
<head>
5959
<style>
6060
.align-self-u7yQf2{align-self:auto}
@@ -80,7 +80,7 @@ struct AlignSelfTests {
8080
) {
8181
"""
8282
<!doctype html>
83-
<html lang="en">
83+
<html>
8484
<head>
8585
<style>
8686
.align-self-trEDH1{align-self:inherit}
@@ -106,7 +106,7 @@ struct AlignSelfTests {
106106
) {
107107
"""
108108
<!doctype html>
109-
<html lang="en">
109+
<html>
110110
<head>
111111
<style>
112112
@media print{
@@ -134,7 +134,7 @@ struct AlignSelfTests {
134134
) {
135135
"""
136136
<!doctype html>
137-
<html lang="en">
137+
<html>
138138
<head>
139139
<style>
140140
.align-self-fCQVh2:hover{align-self:baseline}
@@ -160,7 +160,7 @@ struct AlignSelfTests {
160160
) {
161161
"""
162162
<!doctype html>
163-
<html lang="en">
163+
<html>
164164
<head>
165165
<style>
166166
my-component .align-self-dzpgf{align-self:flex-end}
@@ -186,7 +186,7 @@ struct AlignSelfTests {
186186
) {
187187
"""
188188
<!doctype html>
189-
<html lang="en">
189+
<html>
190190
<head>
191191
<style>
192192
.align-self-msN8p3{align-self:stretch}

0 commit comments

Comments
 (0)