@fnet/cli 1.13.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fbin/index.js +1 -1
- package/dist/fnet/index.4gymwzqb.js +1 -0
- package/dist/fnet/index.5r21wfyc.js +1 -0
- package/dist/fnet/index.js +9 -9
- package/dist/fnet/index.kanz1359.js +2 -0
- package/dist/fnet/index.kjw4nv5z.js +1 -0
- package/dist/fnet/index.n7q2w82x.js +1 -0
- package/dist/{fnode/index.c8qd1bz3.js → fnet/index.pj3wr582.js} +1 -1
- package/dist/fnet/index.r3cben5x.js +1 -0
- package/dist/fnet/index.sbphkm7x.js +1 -0
- package/dist/{fnode/index.e6g5y0zg.js → fnet/index.wmeh7jrw.js} +1 -1
- package/dist/fnet/index.xym49mp3.js +1 -0
- package/dist/fnet/index.ydv6st7k.js +1 -0
- package/dist/fnode/index.05n3mvs9.js +2 -0
- package/dist/fnode/index.22v7wtt0.js +2 -0
- package/dist/fnode/{index.dtp0a202.js → index.3ay4fp2s.js} +1 -1
- package/dist/fnode/index.6g3j97vm.js +1 -0
- package/dist/fnode/{index.q61zqpb9.js → index.782edcjp.js} +1 -1
- package/dist/fnode/index.7cqahb2f.js +1 -0
- package/dist/fnode/index.fy1xwqp2.js +1 -0
- package/dist/fnode/index.js +2 -2
- package/dist/fnode/index.kswhzt5n.js +1 -0
- package/dist/fnode/{index.1k1sj9qs.js → index.q9ghzdn2.js} +3 -3
- package/dist/fnode/index.r4xke6yy.js +1 -0
- package/dist/fnode/index.w4cz5r8m.js +1 -0
- package/dist/fnode/index.wd23pxn8.js +1 -0
- package/dist/fnode/index.xvyybysy.js +1 -0
- package/dist/fnode/index.z9232w6h.js +1 -0
- package/dist/frun/index.js +1 -1
- package/dist/fservice/index.js +1 -1
- package/package.json +5 -9
- package/readme.md +240 -191
- package/scripts/postinstall.js +19 -4
- package/template/deploy/to-docker/aws/Dockerfile.njk +114 -0
- package/template/deploy/to-docker/aws/build.sh.njk +127 -0
- package/template/deploy/to-docker/docker/Dockerfile.njk +67 -0
- package/template/deploy/to-docker/docker/build.sh.njk +48 -0
- package/template/deploy/to-docker/gcloud/Dockerfile.njk +69 -0
- package/template/deploy/to-docker/gcloud/build.sh.njk +39 -0
- package/template/deploy/to-docker/podman/Dockerfile.njk +69 -0
- package/template/deploy/to-docker/podman/build.sh.njk +44 -0
- package/template/deploy/to-electron/mac/entitlements.plist.njk +18 -0
- package/template/deploy/to-electron/main.js.njk +37 -0
- package/template/deploy/to-electron/package.json.njk +36 -0
- package/template/deploy/to-electron/src/index.html.njk +23 -0
- package/template/deploy/to-ios-app/fnet/index.html.njk +23 -0
- package/template/deploy/to-ios-app/fnet-ios-app/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/template/deploy/to-ios-app/fnet-ios-app/Assets.xcassets/AppIcon.appiconset/Contents.json +112 -0
- package/template/deploy/to-ios-app/fnet-ios-app/Assets.xcassets/Contents.json +6 -0
- package/template/deploy/to-ios-app/fnet-ios-app/Assets.xcassets/launch-images.imageset/Contents.json +23 -0
- package/template/deploy/to-ios-app/fnet-ios-app/ContentView.swift +32 -0
- package/template/deploy/to-ios-app/fnet-ios-app/Info.plist +10 -0
- package/template/deploy/to-ios-app/fnet-ios-app/LaunchScreen.storyboard +26 -0
- package/template/deploy/to-ios-app/fnet-ios-app/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
- package/template/deploy/to-ios-app/fnet-ios-app/WebView.swift +42 -0
- package/template/deploy/to-ios-app/fnet-ios-app/fnet_ios_appApp.swift +17 -0
- package/template/deploy/to-ios-app/fnet-ios-app.xcodeproj/project.pbxproj.njk +417 -0
- package/template/deploy/to-ios-app/fnet-ios-app.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/template/deploy/to-ios-app/fnet-ios-app.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/template/deploy/to-ios-app/fnet-ios-app.xcodeproj/xcshareddata/xcschemes/fnet-ios-app.xcscheme +77 -0
- package/template/deploy/to-macos-app/fnet/index.html.njk +23 -0
- package/template/deploy/to-macos-app/fnet-macos-app/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/template/deploy/to-macos-app/fnet-macos-app/Assets.xcassets/AppIcon.appiconset/Contents.json +68 -0
- package/template/deploy/to-macos-app/fnet-macos-app/Assets.xcassets/Contents.json +6 -0
- package/template/deploy/to-macos-app/fnet-macos-app/ContentView.swift +13 -0
- package/template/deploy/to-macos-app/fnet-macos-app/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
- package/template/deploy/to-macos-app/fnet-macos-app/WebView.swift +30 -0
- package/template/deploy/to-macos-app/fnet-macos-app/fnet_macos_app.entitlements +16 -0
- package/template/deploy/to-macos-app/fnet-macos-app/fnet_macos_appApp.swift +17 -0
- package/template/deploy/to-macos-app/fnet-macos-app.xcodeproj/project.pbxproj.njk +396 -0
- package/template/deploy/to-macos-app/fnet-macos-app.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/template/deploy/to-macos-app/fnet-macos-app.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/template/deploy/to-nextjs/app/layout.tsx.njk +13 -0
- package/template/deploy/to-nextjs/app/page.tsx.njk +28 -0
- package/template/deploy/to-nextjs/next-env.d.ts +5 -0
- package/template/deploy/to-nextjs/package.json.njk +20 -0
- package/template/deploy/to-nextjs/tsconfig.json +34 -0
- package/template/deploy/to-pyip/package/__init__.py.njk +4 -0
- package/template/deploy/to-pyip/package/cli/__init__.py.njk +3 -0
- package/template/deploy/to-pyip/package/cli/index.py.njk +24 -0
- package/template/deploy/to-pyip/package/lib/__init__.py.njk +3 -0
- package/template/deploy/to-pyip/pyproject.toml +3 -0
- package/template/deploy/to-pyip/setup.py.njk +32 -0
- package/template/deploy/to-rust/Cargo.toml.njk +16 -0
- package/template/deploy/to-rust/src/main.rs.njk +112 -0
- package/template/deploy/to-webos/appinfo.json.njk +14 -0
- package/template/deploy/to-webos/index.html.njk +39 -0
- package/template/deploy/to-webos/webOSTVjs-1.2.10/LICENSE-2.0.txt +202 -0
- package/template/deploy/to-webos/webOSTVjs-1.2.10/webOSTV-dev.js +1 -0
- package/template/deploy/to-webos/webOSTVjs-1.2.10/webOSTV.js +1 -0
- package/dist/fnet/index.06vbpwcx.js +0 -1
- package/dist/fnet/index.26r88tdp.js +0 -1
- package/dist/fnet/index.2g93a9kt.js +0 -1
- package/dist/fnet/index.61jdafta.js +0 -1
- package/dist/fnet/index.80hh5mtp.js +0 -1
- package/dist/fnet/index.a2mbqyxe.js +0 -1
- package/dist/fnet/index.gywx3fae.js +0 -1
- package/dist/fnet/index.gza1frda.js +0 -1
- package/dist/fnet/index.r2gf0b3s.js +0 -1
- package/dist/fnet/index.rfysmk2b.js +0 -2
- package/dist/fnode/index.5f1kfz9t.js +0 -1
- package/dist/fnode/index.7ev6y63q.js +0 -1
- package/dist/fnode/index.a4q2w1yd.js +0 -1
- package/dist/fnode/index.btj5x5s4.js +0 -1
- package/dist/fnode/index.n1598ffs.js +0 -1
- package/dist/fnode/index.ng6w9cac.js +0 -1
- package/dist/fnode/index.r8s8r2n7.js +0 -2
- package/dist/fnode/index.xc08sjp4.js +0 -1
- package/dist/fnode/index.zb59076q.js +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>{{params.title}}</title>
|
|
8
|
+
{% if params.include_css===true %}
|
|
9
|
+
<link rel="stylesheet" href='./dist/{{params.entry}}/index.css' />
|
|
10
|
+
{% endif %}
|
|
11
|
+
<script src="./dist/{{params.entry}}/index.js"></script>
|
|
12
|
+
</head>
|
|
13
|
+
<body style="height:100vh;margin:0;padding:0;background-color: #eeeeee;">
|
|
14
|
+
<div id="container" style="height:100%;"></div>
|
|
15
|
+
<script>
|
|
16
|
+
const { createApp } = window['{{params.bundle_name}}'];
|
|
17
|
+
const run = createApp({
|
|
18
|
+
container: document.getElementById("container"),
|
|
19
|
+
});
|
|
20
|
+
const dispose = run();
|
|
21
|
+
</script>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
package/template/deploy/to-ios-app/fnet-ios-app/Assets.xcassets/AppIcon.appiconset/Contents.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"filename" : "icon_40x40.png",
|
|
5
|
+
"idiom" : "universal",
|
|
6
|
+
"platform" : "ios",
|
|
7
|
+
"scale" : "2x",
|
|
8
|
+
"size" : "20x20"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"filename" : "icon_60x60.png",
|
|
12
|
+
"idiom" : "universal",
|
|
13
|
+
"platform" : "ios",
|
|
14
|
+
"scale" : "3x",
|
|
15
|
+
"size" : "20x20"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"filename" : "icon_58x58.png",
|
|
19
|
+
"idiom" : "universal",
|
|
20
|
+
"platform" : "ios",
|
|
21
|
+
"scale" : "2x",
|
|
22
|
+
"size" : "29x29"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"filename" : "icon_87x87.png",
|
|
26
|
+
"idiom" : "universal",
|
|
27
|
+
"platform" : "ios",
|
|
28
|
+
"scale" : "3x",
|
|
29
|
+
"size" : "29x29"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"filename" : "icon_76x76.png",
|
|
33
|
+
"idiom" : "universal",
|
|
34
|
+
"platform" : "ios",
|
|
35
|
+
"scale" : "2x",
|
|
36
|
+
"size" : "38x38"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"filename" : "icon_114x114.png",
|
|
40
|
+
"idiom" : "universal",
|
|
41
|
+
"platform" : "ios",
|
|
42
|
+
"scale" : "3x",
|
|
43
|
+
"size" : "38x38"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"filename" : "icon_80x80.png",
|
|
47
|
+
"idiom" : "universal",
|
|
48
|
+
"platform" : "ios",
|
|
49
|
+
"scale" : "2x",
|
|
50
|
+
"size" : "40x40"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"filename" : "icon_120x120.png",
|
|
54
|
+
"idiom" : "universal",
|
|
55
|
+
"platform" : "ios",
|
|
56
|
+
"scale" : "3x",
|
|
57
|
+
"size" : "40x40"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"filename" : "icon_180x180.png",
|
|
61
|
+
"idiom" : "universal",
|
|
62
|
+
"platform" : "ios",
|
|
63
|
+
"scale" : "3x",
|
|
64
|
+
"size" : "60x60"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"filename" : "icon_128x128.png",
|
|
68
|
+
"idiom" : "universal",
|
|
69
|
+
"platform" : "ios",
|
|
70
|
+
"scale" : "2x",
|
|
71
|
+
"size" : "64x64"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"filename" : "icon_192x192.png",
|
|
75
|
+
"idiom" : "universal",
|
|
76
|
+
"platform" : "ios",
|
|
77
|
+
"scale" : "3x",
|
|
78
|
+
"size" : "64x64"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"filename" : "icon_136x136.png",
|
|
82
|
+
"idiom" : "universal",
|
|
83
|
+
"platform" : "ios",
|
|
84
|
+
"scale" : "2x",
|
|
85
|
+
"size" : "68x68"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"filename" : "icon_152x152.png",
|
|
89
|
+
"idiom" : "universal",
|
|
90
|
+
"platform" : "ios",
|
|
91
|
+
"scale" : "2x",
|
|
92
|
+
"size" : "76x76"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"filename" : "icon_167x167.png",
|
|
96
|
+
"idiom" : "universal",
|
|
97
|
+
"platform" : "ios",
|
|
98
|
+
"scale" : "2x",
|
|
99
|
+
"size" : "83.5x83.5"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"filename" : "icon_1024x1024.png",
|
|
103
|
+
"idiom" : "universal",
|
|
104
|
+
"platform" : "ios",
|
|
105
|
+
"size" : "1024x1024"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"info" : {
|
|
109
|
+
"author" : "xcode",
|
|
110
|
+
"version" : 1
|
|
111
|
+
}
|
|
112
|
+
}
|
package/template/deploy/to-ios-app/fnet-ios-app/Assets.xcassets/launch-images.imageset/Contents.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"filename" : "splash_1242x2688.png",
|
|
5
|
+
"idiom" : "universal",
|
|
6
|
+
"scale" : "1x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"filename" : "splash_1536x2048.png",
|
|
10
|
+
"idiom" : "universal",
|
|
11
|
+
"scale" : "2x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"filename" : "splash_2048x1536.png",
|
|
15
|
+
"idiom" : "universal",
|
|
16
|
+
"scale" : "3x"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"info" : {
|
|
20
|
+
"author" : "xcode",
|
|
21
|
+
"version" : 1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import SwiftUI
|
|
2
|
+
import Speech
|
|
3
|
+
|
|
4
|
+
struct ContentView: View {
|
|
5
|
+
@State private var isSpeechAuthorized = false
|
|
6
|
+
|
|
7
|
+
var body: some View {
|
|
8
|
+
WebView()
|
|
9
|
+
.padding(.vertical, -60.0)
|
|
10
|
+
.edgesIgnoringSafeArea(.all)
|
|
11
|
+
.onAppear(perform: requestSpeechAuthorization)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
func requestSpeechAuthorization() {
|
|
15
|
+
SFSpeechRecognizer.requestAuthorization { authStatus in
|
|
16
|
+
DispatchQueue.main.async {
|
|
17
|
+
switch authStatus {
|
|
18
|
+
case .authorized:
|
|
19
|
+
self.isSpeechAuthorized = true
|
|
20
|
+
default:
|
|
21
|
+
self.isSpeechAuthorized = false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
struct ContentView_Previews: PreviewProvider {
|
|
29
|
+
static var previews: some View {
|
|
30
|
+
ContentView()
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
6
|
+
<false/>
|
|
7
|
+
<key>UIStatusBarStyle</key>
|
|
8
|
+
<string>UIStatusBarStyleLightContent</string>
|
|
9
|
+
</dict>
|
|
10
|
+
</plist>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
|
3
|
+
<device id="retina6_0" orientation="portrait" appearance="light"/>
|
|
4
|
+
<dependencies>
|
|
5
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
|
6
|
+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
7
|
+
</dependencies>
|
|
8
|
+
<scenes>
|
|
9
|
+
<!--View Controller-->
|
|
10
|
+
<scene sceneID="EHf-IW-A2E">
|
|
11
|
+
<objects>
|
|
12
|
+
<viewController storyboardIdentifier="launch-screen" extendedLayoutIncludesOpaqueBars="YES" useStoryboardIdentifierAsRestorationIdentifier="YES" id="01J-lp-oVM" sceneMemberID="viewController">
|
|
13
|
+
<imageView key="view" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch-images" id="5FP-pL-1rt">
|
|
14
|
+
<rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
|
|
15
|
+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
|
16
|
+
</imageView>
|
|
17
|
+
</viewController>
|
|
18
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
19
|
+
</objects>
|
|
20
|
+
<point key="canvasLocation" x="52.671755725190835" y="374.64788732394368"/>
|
|
21
|
+
</scene>
|
|
22
|
+
</scenes>
|
|
23
|
+
<resources>
|
|
24
|
+
<image name="launch-images" width="682.66668701171875" height="512"/>
|
|
25
|
+
</resources>
|
|
26
|
+
</document>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import SwiftUI
|
|
2
|
+
@preconcurrency import WebKit
|
|
3
|
+
|
|
4
|
+
struct WebView: UIViewRepresentable {
|
|
5
|
+
|
|
6
|
+
func makeUIView(context: Context) -> WKWebView {
|
|
7
|
+
let webView = WKWebView()
|
|
8
|
+
webView.navigationDelegate = context.coordinator
|
|
9
|
+
webView.uiDelegate = context.coordinator // uiDelegate ayarını ekledik
|
|
10
|
+
return webView
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
func updateUIView(_ uiView: WKWebView, context: Context) {
|
|
14
|
+
if let url = Bundle.main.url(forResource: "fnet/index", withExtension: "html") {
|
|
15
|
+
let baseUrl = Bundle.main.bundleURL
|
|
16
|
+
uiView.loadFileURL(url, allowingReadAccessTo: baseUrl)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
func makeCoordinator() -> Coordinator {
|
|
21
|
+
Coordinator(self)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class Coordinator: NSObject, WKNavigationDelegate, WKUIDelegate { // WKUIDelegate protokolünü ekledik
|
|
25
|
+
var parent: WebView
|
|
26
|
+
|
|
27
|
+
init(_ parent: WebView) {
|
|
28
|
+
self.parent = parent
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@available(iOS 15, *)
|
|
32
|
+
func webView(
|
|
33
|
+
_ webView: WKWebView,
|
|
34
|
+
requestMediaCapturePermissionFor origin: WKSecurityOrigin,
|
|
35
|
+
initiatedByFrame frame: WKFrameInfo,
|
|
36
|
+
type: WKMediaCaptureType,
|
|
37
|
+
decisionHandler: @escaping (WKPermissionDecision) -> Void
|
|
38
|
+
) {
|
|
39
|
+
decisionHandler(.grant)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|