Skip to content

Commit ebf401e

Browse files
committed
👋 hello, webassembly!
2 parents 2c8b72b + 6a534c2 commit ebf401e

File tree

93 files changed

+26645
-1066
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+26645
-1066
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
xcuserdata/
66
DerivedData/
77
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8-
Package.resolve
8+
Package.resolved

Diff for: CHANGELOG.md

+19-8
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,27 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
<hr align="center" style="background-color: #393939; height: 2px">
5+
## [0.0.2](https://github.com/alja7dali/swift-web-page-ui/releases/tag/0.0.2) - 2022-07-13
66

7-
# Releases
7+
### Added
88

9-
- [Change Log](#change-log)
10-
- [Releases](#releases)
11-
- [0.0.1](#001)
9+
- [Carton](https://github.com/swiftwasm/Carton) `tool` as a build tool to create [WebAssembly](https://webassembly.org) and browser app via [SwiftWasm](https://github.com/swiftwasm) v5.6.
10+
- [JavaScriptKit](https://github.com/swiftwasm/JavaScriptKit) `library` as project dependency
11+
- [OpenCombine](https://github.com/OpenCombine/OpenCombine) `library` as project dependency
12+
- [OpenCombineJS](https://github.com/swiftwasm/OpenCombineJS) `library` as project dependency
13+
- [SwiftUI](https://developer.apple.com/documentation/swiftui) core components implementation
14+
- `CSS` [Properties](https://www.w3schools.com/cssref/default.asp) as View modifiers
15+
- `JavaScript` [EventListeners](https://www.w3schools.com/js/js_htmldom_eventlistener.asp) as View modifiers
16+
- `SwepUIExample` as an example app and demo of `SwepUI` v0.0.2
1217

13-
<hr align="center" style="background-color: #393939; height: 2px">
18+
### Changed
1419

15-
## 0.0.1
20+
- Reimplement some of [Swep](https://github.com/Alja7dali/swift-web-page) Nodes to work with `SwepUI` Views
1621

17-
> **SwepUI** initial release
22+
### Removed
23+
24+
- [Swep](https://github.com/Alja7dali/swift-web-page) as project dependency
25+
26+
## [0.0.1](https://github.com/alja7dali/swift-web-page-ui/releases/tag/0.0.1) - 2022-06-18
27+
28+
> **SwepUI** initial release.

Diff for: CONTRIBUTING.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1>Contributing</h1>
22

3-
Thank you for your interest in Swep! There are multiple ways you can
3+
Thank you for your interest in SwepUI! There are multiple ways you can
44
contribute to this project. We welcome contributions in all areas, with special
55
attention to:
66

@@ -35,7 +35,7 @@ tracker will be used to hash that all out.
3535
### Style Guides
3636

3737
1. Write in UTF-8 in Swift 5.4
38-
2. User modular architecture to group similar functions, classes, etc.
38+
2. User modular architecture to group similar functions, classes, etc.
3939
3. Always use 2 spaces for indentation (don't use tabs)
4040
4. Try to limit line length to 80 characters
4141
5. Class / Struct names should always be capitalized
@@ -64,10 +64,10 @@ We take performance very much to heart. Performance improvements are always
6464
welcome! If you identified a bottleneck, please make sure you follow the
6565
performance fix procedure:
6666

67-
* Prepare a reproducible case that highlights the performance issue, if possible.
67+
- Prepare a reproducible case that highlights the performance issue, if possible.
6868
At least, the case should provide a testable timing result.
69-
* Submit a PR with a fix that provides a measurable performance improvement
70-
* Think hard about all the use cases! Threading and concurrency are important to
69+
- Submit a PR with a fix that provides a measurable performance improvement
70+
- Think hard about all the use cases! Threading and concurrency are important to
7171
think about when it comes to performance, make sure your fix doesn't come with
7272
a performance regression in some use cases.
7373

@@ -86,19 +86,19 @@ Thanks for caring about performance!
8686
> - (a) The contribution was created in whole or in part by me and I
8787
> have the right to submit it under the open source license
8888
> indicated in the file; or
89-
>
89+
>
9090
> - (b) The contribution is based upon previous work that, to the best
9191
> of my knowledge, is covered under an appropriate open source
9292
> license and I have the right under that license to submit that
9393
> work with modifications, whether created in whole or in part
9494
> by me, under the same open source license (unless I am
9595
> permitted to submit under a different license), as indicated
9696
> in the file; or
97-
>
97+
>
9898
> - (c) The contribution was provided directly to me by some other
9999
> person who certified (a), (b) or (c) and I have not modified
100100
> it.
101-
>
101+
>
102102
> - (d) I understand and agree that this project and the contribution
103103
> are public and that a record of the contribution (including all
104104
> personal information I submit with it, including my sign-off) is
@@ -107,5 +107,5 @@ Thanks for caring about performance!
107107
108108
*Wording of statement copied from [elinux.org][elinux.org]*
109109

110-
[Issues]: <https://github.com/alja7dali/swift-web-page/issues>
111-
[elinux.org]: <http://elinux.org/Developer_Certificate_Of_Origin>
110+
[Issues]: <https://github.com/alja7dali/swift-web-page-ui/issues>
111+
[elinux.org]: <http://elinux.org/Developer_Certificate_Of_Origin>

Diff for: Package.resolved

+22-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,30 @@
22
"object": {
33
"pins": [
44
{
5-
"package": "swift-web-page",
6-
"repositoryURL": "https://github.com/Alja7dali/swift-web-page",
5+
"package": "JavaScriptKit",
6+
"repositoryURL": "https://github.com/swiftwasm/JavaScriptKit.git",
77
"state": {
88
"branch": null,
9-
"revision": "48a5f31dccb5803f8b1d68c6b8be0500793777b2",
10-
"version": "0.0.1"
9+
"revision": "2d7bc960eed438dce7355710ece43fa004bbb3ac",
10+
"version": "0.15.0"
11+
}
12+
},
13+
{
14+
"package": "OpenCombine",
15+
"repositoryURL": "https://github.com/OpenCombine/OpenCombine.git",
16+
"state": {
17+
"branch": null,
18+
"revision": "9cf67e363738dbab61b47fb5eaed78d3db31e5ee",
19+
"version": "0.13.0"
20+
}
21+
},
22+
{
23+
"package": "OpenCombineJS",
24+
"repositoryURL": "https://github.com/swiftwasm/OpenCombineJS.git",
25+
"state": {
26+
"branch": null,
27+
"revision": "e574e418ba468ff5c2d4c499eb56f108aeb4d2ba",
28+
"version": "0.2.0"
1129
}
1230
}
1331
]

Diff for: Package.swift

+18-3
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,34 @@ let package = Package(
77
name: "swift-web-page-ui",
88
products: [
99
.library(name: "SwepUI", targets: ["SwepUI"]),
10+
.executable(name: "SwepUIExample", targets: ["SwepUIExample"])
1011
],
1112
dependencies: [
12-
.package(url: "https://github.com/Alja7dali/swift-web-page", from: "0.0.1"),
13+
.package(url: "https://github.com/swiftwasm/JavaScriptKit.git", from: "0.15.0"),
14+
.package(url: "https://github.com/OpenCombine/OpenCombine.git", from: "0.12.0"),
15+
.package(url: "https://github.com/swiftwasm/OpenCombineJS.git", from: "0.2.0"),
1316
],
1417
targets: [
1518
.target(
1619
name: "SwepUI",
1720
dependencies: [
18-
.product(name: "Swep", package: "swift-web-page"),
21+
.product(name: "JavaScriptKit", package: "JavaScriptKit"),
22+
.product(name: "JavaScriptEventLoop", package: "JavaScriptKit"),
23+
.product(name: "JavaScriptBigIntSupport", package: "JavaScriptKit"),
24+
.product(name: "OpenCombine", package: "OpenCombine"),
25+
.product(name: "OpenCombineJS", package: "OpenCombineJS"),
1926
]
2027
),
28+
.executableTarget(
29+
name: "SwepUIExample",
30+
dependencies: ["SwepUI"]
31+
),
32+
.testTarget(
33+
name: "SwepUITests",
34+
dependencies: ["SwepUI"]
35+
),
2136
],
2237
swiftLanguageVersions: [
2338
.version("5"),
2439
]
25-
)
40+
)

0 commit comments

Comments
 (0)