@linktr.ee/create-link-app 1.7.11 → 1.7.12
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/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Link App",
|
|
3
|
+
"has_url": false,
|
|
3
4
|
"elements": [
|
|
4
5
|
{
|
|
5
|
-
"id": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"id": "title",
|
|
12
|
-
"title": "Title",
|
|
13
|
-
"inputType": "text"
|
|
6
|
+
"id": "url",
|
|
7
|
+
"inputType": "text",
|
|
8
|
+
"label": "URL",
|
|
9
|
+
"defaultValue": "https://example.com"
|
|
14
10
|
},
|
|
15
11
|
{
|
|
16
|
-
"id": "
|
|
17
|
-
"
|
|
18
|
-
"
|
|
12
|
+
"id": "linkBehavior",
|
|
13
|
+
"inputType": "linkBehavior",
|
|
14
|
+
"label": "How would you like this link to act?",
|
|
15
|
+
"defaultValue": "embedLabel",
|
|
16
|
+
"linkBehaviorLabels": {
|
|
17
|
+
"embedLabel": "Display link app's UI",
|
|
18
|
+
"linkOffLabel": "Go directly to URL"
|
|
19
|
+
}
|
|
19
20
|
}
|
|
20
21
|
]
|
|
21
22
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AppProps } from './types'
|
|
1
|
+
import { AppProps } from "./types";
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import "./tailwind.css";
|
|
5
4
|
|
|
6
5
|
function App(props: AppProps) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return <div>Unknown layout: {__layout}</div>
|
|
20
|
-
}
|
|
6
|
+
return (
|
|
7
|
+
<div className="px-6 pt-12 pb-11 h-full">
|
|
8
|
+
<h1>My first link app!</h1>
|
|
9
|
+
<p>Congratulations, you now have a Linktree link!</p>
|
|
10
|
+
<button
|
|
11
|
+
className="bg-black text-white py-2 px-4 rounded-full my-2"
|
|
12
|
+
onClick={() => window.open(props.url, "_blank")}
|
|
13
|
+
>
|
|
14
|
+
Visit your URL
|
|
15
|
+
</button>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
21
18
|
}
|
|
22
19
|
|
|
23
|
-
export default App
|
|
20
|
+
export default App;
|