ruby_native 0.5.7 → 0.6.0
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.
- checksums.yaml +4 -4
- data/lib/ruby_native/version.rb +1 -1
- metadata +1 -3
- data/app/javascript/ruby_native/react.js +0 -60
- data/app/javascript/ruby_native/vue.js +0 -110
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5456e6607aa5961850b5a774484ca42467c6decfc6d605bef5cb53f302e652f
|
|
4
|
+
data.tar.gz: 65cfc4e2c0bce516d97337ce74687591618f4225e05eac63a07c91086ce34c00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4af1c21690a1af9976ba6fe925eaadca6787e75e6b2aab20a05b0f89fa049e854122a854e3b5b937d0f7fb8ef679420a23521c73c66cee9aa8fad06900e1b0ce
|
|
7
|
+
data.tar.gz: b2b611b70b24476d9fd933d7631721d1000b94b694a3be31e415181d1e648e54e881662b8056ded977cd87fb5027dcbaa7399dfd1688099257ffe4349522bf56
|
data/lib/ruby_native/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby_native
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joe Masilotti
|
|
@@ -81,8 +81,6 @@ files:
|
|
|
81
81
|
- app/javascript/ruby_native/bridge/push_controller.js
|
|
82
82
|
- app/javascript/ruby_native/bridge/search_controller.js
|
|
83
83
|
- app/javascript/ruby_native/bridge/tabs_controller.js
|
|
84
|
-
- app/javascript/ruby_native/react.js
|
|
85
|
-
- app/javascript/ruby_native/vue.js
|
|
86
84
|
- app/models/ruby_native/iap/purchase_intent.rb
|
|
87
85
|
- app/views/ruby_native/auth/start/show.html.erb
|
|
88
86
|
- config/importmap.rb
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { createElement } from "react"
|
|
2
|
-
import { router } from "@inertiajs/react"
|
|
3
|
-
|
|
4
|
-
window.__inertiaRouter = router
|
|
5
|
-
|
|
6
|
-
export function NativeTabs({ enabled = true }) {
|
|
7
|
-
if (!enabled) return null
|
|
8
|
-
return createElement("div", { "data-native-tabs": true, hidden: true })
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function NativePush() {
|
|
12
|
-
return createElement("div", { "data-native-push": true, hidden: true })
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function NativeForm() {
|
|
16
|
-
return createElement("div", { "data-native-form": true, hidden: true })
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function NativeNavbar({ title, children }) {
|
|
20
|
-
return createElement("div", { "data-native-navbar": title, hidden: true }, children)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function NativeButton({ position = "trailing", icon, title, href, click, selected, children }) {
|
|
24
|
-
const props = { "data-native-button": true }
|
|
25
|
-
if (icon) props["data-native-icon"] = icon
|
|
26
|
-
if (title) props["data-native-title"] = title
|
|
27
|
-
if (href) props["data-native-href"] = href
|
|
28
|
-
if (click) props["data-native-click"] = click
|
|
29
|
-
if (position) props["data-native-position"] = position
|
|
30
|
-
if (selected) props["data-native-selected"] = ""
|
|
31
|
-
return createElement("div", props, children)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function NativeMenuItem({ title, href, click, icon, selected }) {
|
|
35
|
-
const props = { "data-native-menu-item": true }
|
|
36
|
-
if (title) props["data-native-title"] = title
|
|
37
|
-
if (href) props["data-native-href"] = href
|
|
38
|
-
if (click) props["data-native-click"] = click
|
|
39
|
-
if (icon) props["data-native-icon"] = icon
|
|
40
|
-
if (selected) props["data-native-selected"] = ""
|
|
41
|
-
return createElement("div", props)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function NativeOverscroll({ top, bottom }) {
|
|
45
|
-
return createElement("div", {
|
|
46
|
-
"data-native-overscroll-top": top,
|
|
47
|
-
"data-native-overscroll-bottom": bottom || top,
|
|
48
|
-
hidden: true
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function NativeSubmitButton({ title = "Save", click = "[type='submit']" }) {
|
|
53
|
-
return createElement("div", {
|
|
54
|
-
"data-native-submit-button": true,
|
|
55
|
-
"data-native-title": title,
|
|
56
|
-
"data-native-click": click,
|
|
57
|
-
hidden: true
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h } from "vue"
|
|
2
|
-
import { router } from "@inertiajs/vue3"
|
|
3
|
-
|
|
4
|
-
window.__inertiaRouter = router
|
|
5
|
-
|
|
6
|
-
export const NativeTabs = defineComponent({
|
|
7
|
-
name: "NativeTabs",
|
|
8
|
-
props: {
|
|
9
|
-
enabled: { type: Boolean, default: true }
|
|
10
|
-
},
|
|
11
|
-
render() {
|
|
12
|
-
if (!this.enabled) return null
|
|
13
|
-
return h("div", { "data-native-tabs": true, hidden: true })
|
|
14
|
-
}
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
export const NativePush = defineComponent({
|
|
18
|
-
name: "NativePush",
|
|
19
|
-
render() {
|
|
20
|
-
return h("div", { "data-native-push": true, hidden: true })
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
export const NativeForm = defineComponent({
|
|
25
|
-
name: "NativeForm",
|
|
26
|
-
render() {
|
|
27
|
-
return h("div", { "data-native-form": true, hidden: true })
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
export const NativeNavbar = defineComponent({
|
|
32
|
-
name: "NativeNavbar",
|
|
33
|
-
props: { title: { type: String, required: true } },
|
|
34
|
-
render() {
|
|
35
|
-
return h("div", { "data-native-navbar": this.title, hidden: true }, this.$slots.default?.())
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
export const NativeButton = defineComponent({
|
|
40
|
-
name: "NativeButton",
|
|
41
|
-
props: {
|
|
42
|
-
position: { type: String, default: "trailing" },
|
|
43
|
-
icon: String,
|
|
44
|
-
title: String,
|
|
45
|
-
href: String,
|
|
46
|
-
click: String,
|
|
47
|
-
selected: { type: Boolean, default: undefined }
|
|
48
|
-
},
|
|
49
|
-
render() {
|
|
50
|
-
const attrs = { "data-native-button": true }
|
|
51
|
-
if (this.icon) attrs["data-native-icon"] = this.icon
|
|
52
|
-
if (this.title) attrs["data-native-title"] = this.title
|
|
53
|
-
if (this.href) attrs["data-native-href"] = this.href
|
|
54
|
-
if (this.click) attrs["data-native-click"] = this.click
|
|
55
|
-
if (this.position) attrs["data-native-position"] = this.position
|
|
56
|
-
if (this.selected) attrs["data-native-selected"] = ""
|
|
57
|
-
return h("div", attrs, this.$slots.default?.())
|
|
58
|
-
}
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
export const NativeMenuItem = defineComponent({
|
|
62
|
-
name: "NativeMenuItem",
|
|
63
|
-
props: {
|
|
64
|
-
title: String,
|
|
65
|
-
href: String,
|
|
66
|
-
click: String,
|
|
67
|
-
icon: String,
|
|
68
|
-
selected: { type: Boolean, default: undefined }
|
|
69
|
-
},
|
|
70
|
-
render() {
|
|
71
|
-
const attrs = { "data-native-menu-item": true }
|
|
72
|
-
if (this.title) attrs["data-native-title"] = this.title
|
|
73
|
-
if (this.href) attrs["data-native-href"] = this.href
|
|
74
|
-
if (this.click) attrs["data-native-click"] = this.click
|
|
75
|
-
if (this.icon) attrs["data-native-icon"] = this.icon
|
|
76
|
-
if (this.selected) attrs["data-native-selected"] = ""
|
|
77
|
-
return h("div", attrs)
|
|
78
|
-
}
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
export const NativeOverscroll = defineComponent({
|
|
82
|
-
name: "NativeOverscroll",
|
|
83
|
-
props: {
|
|
84
|
-
top: { type: String, required: true },
|
|
85
|
-
bottom: String
|
|
86
|
-
},
|
|
87
|
-
render() {
|
|
88
|
-
return h("div", {
|
|
89
|
-
"data-native-overscroll-top": this.top,
|
|
90
|
-
"data-native-overscroll-bottom": this.bottom || this.top,
|
|
91
|
-
hidden: true
|
|
92
|
-
})
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
export const NativeSubmitButton = defineComponent({
|
|
97
|
-
name: "NativeSubmitButton",
|
|
98
|
-
props: {
|
|
99
|
-
title: { type: String, default: "Save" },
|
|
100
|
-
click: { type: String, default: "[type='submit']" }
|
|
101
|
-
},
|
|
102
|
-
render() {
|
|
103
|
-
return h("div", {
|
|
104
|
-
"data-native-submit-button": true,
|
|
105
|
-
"data-native-title": this.title,
|
|
106
|
-
"data-native-click": this.click,
|
|
107
|
-
hidden: true
|
|
108
|
-
})
|
|
109
|
-
}
|
|
110
|
-
})
|