@linktr.ee/create-link-app 1.7.10 → 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/dist/commands/deploy.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/templates/common/fixtures/props-data.json +3 -1
- package/templates/common/settings.json +13 -12
- package/templates/react-ts/src/App.tsx +15 -18
- package/templates/react-ts/src/types/index.ts +2 -0
package/dist/commands/deploy.js
CHANGED
|
@@ -80,10 +80,10 @@ class Deploy extends base_1.default {
|
|
|
80
80
|
? `https://qa.linktr.ee/admin?action=create-link&linkType=${linkTypeId}`
|
|
81
81
|
: `https://linktr.ee/admin?action=create-link&linkType=${linkTypeId}`;
|
|
82
82
|
this.log(`\n--------------------------------`);
|
|
83
|
-
this.log(`✅
|
|
83
|
+
this.log(`✅ Link App successfully ${flags.update ? 'updated' : 'uploaded'}`);
|
|
84
84
|
this.log(` - Link App ID: ${linkTypeId}`);
|
|
85
85
|
this.log(` - Status: ${result.linkType.status}`);
|
|
86
|
-
this.log(` - Updated: ${new Date(result.linkType.updated_timestamp).toLocaleString()}`);
|
|
86
|
+
this.log(` - Updated: ${new Date(result.linkType.updated_timestamp * 1000).toLocaleString()}`);
|
|
87
87
|
if (buildId) {
|
|
88
88
|
this.log(` - Check Link App build: ${linkAppBuildUrl}`);
|
|
89
89
|
}
|
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;
|