create-miro-app
Advanced tools
Comparing version 1.10.9 to 1.11.0
@@ -1,2 +0,2 @@ | ||
async function init() { | ||
export async function init() { | ||
miro.board.ui.on('icon:click', async () => { | ||
@@ -3,0 +3,0 @@ await miro.board.ui.openPanel({url: 'app.html'}); |
@@ -1,2 +0,2 @@ | ||
async function init() { | ||
export async function init() { | ||
miro.board.ui.on('icon:click', async () => { | ||
@@ -3,0 +3,0 @@ await miro.board.ui.openPanel({url: 'app.html'}); |
@@ -29,2 +29,3 @@ import pc from 'picocolors'; | ||
'preact-render-to-string': '^5.1.4', | ||
...DEPENDENCIES.mirotone, | ||
}, | ||
@@ -40,2 +41,3 @@ devDependencies: { | ||
jsxImportSource: 'preact', | ||
typeRoots: ['./node_modules/@types', './node_modules/@mirohq'], | ||
}, | ||
@@ -42,0 +44,0 @@ }, |
@@ -20,23 +20,25 @@ import '/assets/style.css'; | ||
return ( | ||
<div className="grid container"> | ||
<div className="cs1 ce12"> | ||
<img src="/assets/congratulations.png" alt="congratulations" /> | ||
<div id="root"> | ||
<div className="grid container"> | ||
<div className="cs1 ce12"> | ||
<img src="/assets/congratulations.png" alt="congratulations" /> | ||
</div> | ||
<div className="cs1 ce12"> | ||
<h1>Congratulations!</h1> | ||
<p>You've just created your first Miro app!</p> | ||
<p> | ||
To explore more and build your own app, see the Miro Developer | ||
Platform documentation. | ||
</p> | ||
</div> | ||
<div className="cs1 ce12"> | ||
<a | ||
className="button button-primary" | ||
target="_blank" | ||
href="https://developers.miro.com" | ||
> | ||
Read the documentation | ||
</a> | ||
</div> | ||
</div> | ||
<div className="cs1 ce12"> | ||
<h1>Congratulations!</h1> | ||
<p>You've just created your first Miro app!</p> | ||
<p> | ||
To explore more and build your own app, see the Miro Developer | ||
Platform documentation. | ||
</p> | ||
</div> | ||
<div className="cs1 ce12"> | ||
<a | ||
className="button button-primary" | ||
target="_blank" | ||
href="https://developers.miro.com" | ||
> | ||
Read the documentation | ||
</a> | ||
</div> | ||
</div> | ||
@@ -43,0 +45,0 @@ ); |
@@ -8,2 +8,3 @@ import pc from 'picocolors'; | ||
} from '../../../../src/interfaces'; | ||
import {SharedTemplates} from '../../../../src/generatedTemplatesList'; | ||
@@ -25,2 +26,3 @@ const CONFIG: Framework = { | ||
}, | ||
templates: [SharedTemplates.ClientAssets], | ||
variants: [ | ||
@@ -35,2 +37,3 @@ { | ||
...DEPENDENCIES.miroNode, | ||
...DEPENDENCIES.mirotone, | ||
...DEPENDENCIES.react, | ||
@@ -52,2 +55,3 @@ ...DEPENDENCIES.reactDom, | ||
...DEPENDENCIES.miroNode, | ||
...DEPENDENCIES.mirotone, | ||
...DEPENDENCIES.react, | ||
@@ -54,0 +58,0 @@ ...DEPENDENCIES.reactDom, |
@@ -1,2 +0,2 @@ | ||
import '../styles/globals.css'; | ||
import '../src/assets/style.css'; | ||
@@ -3,0 +3,0 @@ const MyApp = ({Component, pageProps}) => { |
@@ -14,3 +14,5 @@ import {Html, Head, Main, NextScript} from 'next/document'; | ||
<body> | ||
<Main /> | ||
<div id="root"> | ||
<Main /> | ||
</div> | ||
<NextScript /> | ||
@@ -17,0 +19,0 @@ </body> |
@@ -5,3 +5,3 @@ import {useEffect} from 'react'; | ||
import congratulations from '../public/congratulations.png'; | ||
import congratulations from '../src/assets/congratulations.png'; | ||
@@ -14,5 +14,5 @@ export const getServerSideProps = async function getServerSideProps({req}) { | ||
return { | ||
redirect: { | ||
destination: miro.getAuthUrl(), | ||
permanent: false, | ||
props: { | ||
boards: [], | ||
authUrl: miro.getAuthUrl(), | ||
}, | ||
@@ -37,3 +37,3 @@ }; | ||
export default function Main({boards}) { | ||
export default function Main({boards, authUrl}) { | ||
useEffect(() => { | ||
@@ -49,2 +49,14 @@ if (new URLSearchParams(window.location.search).has('panel')) return; | ||
if (authUrl) { | ||
return ( | ||
<div className="grid wrapper"> | ||
<div className="cs1 ce12"> | ||
<a className="button button-primary" href={authUrl}> | ||
Login | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
} | ||
return ( | ||
@@ -51,0 +63,0 @@ <div className="grid wrapper"> |
@@ -1,2 +0,2 @@ | ||
async function init() { | ||
export async function init() { | ||
miro.board.ui.on('icon:click', async () => { | ||
@@ -3,0 +3,0 @@ await miro.board.ui.openPanel({url: 'app.html'}); |
@@ -1,2 +0,2 @@ | ||
async function init() { | ||
export async function init() { | ||
miro.board.ui.on('icon:click', async () => { | ||
@@ -3,0 +3,0 @@ await miro.board.ui.openPanel({url: 'app.html'}); |
@@ -29,2 +29,3 @@ import pc from 'picocolors'; | ||
'preact-render-to-string': '^5.1.4', | ||
...DEPENDENCIES.mirotone, | ||
}, | ||
@@ -40,2 +41,3 @@ devDependencies: { | ||
jsxImportSource: 'preact', | ||
typeRoots: ['./node_modules/@types', './node_modules/@mirohq'], | ||
}, | ||
@@ -42,0 +44,0 @@ }, |
@@ -20,23 +20,25 @@ import '/assets/style.css'; | ||
return ( | ||
<div className="grid container"> | ||
<div className="cs1 ce12"> | ||
<img src="/assets/congratulations.png" alt="congratulations" /> | ||
<div id="root"> | ||
<div className="grid container"> | ||
<div className="cs1 ce12"> | ||
<img src="/assets/congratulations.png" alt="congratulations" /> | ||
</div> | ||
<div className="cs1 ce12"> | ||
<h1>Congratulations!</h1> | ||
<p>You've just created your first Miro app!</p> | ||
<p> | ||
To explore more and build your own app, see the Miro Developer | ||
Platform documentation. | ||
</p> | ||
</div> | ||
<div className="cs1 ce12"> | ||
<a | ||
className="button button-primary" | ||
target="_blank" | ||
href="https://developers.miro.com" | ||
> | ||
Read the documentation | ||
</a> | ||
</div> | ||
</div> | ||
<div className="cs1 ce12"> | ||
<h1>Congratulations!</h1> | ||
<p>You've just created your first Miro app!</p> | ||
<p> | ||
To explore more and build your own app, see the Miro Developer | ||
Platform documentation. | ||
</p> | ||
</div> | ||
<div className="cs1 ce12"> | ||
<a | ||
className="button button-primary" | ||
target="_blank" | ||
href="https://developers.miro.com" | ||
> | ||
Read the documentation | ||
</a> | ||
</div> | ||
</div> | ||
@@ -43,0 +45,0 @@ ); |
@@ -8,2 +8,3 @@ import pc from 'picocolors'; | ||
} from '../../../../src/interfaces'; | ||
import {SharedTemplates} from '../../../../src/generatedTemplatesList'; | ||
@@ -25,2 +26,3 @@ const CONFIG: Framework = { | ||
}, | ||
templates: [SharedTemplates.ClientAssets], | ||
variants: [ | ||
@@ -35,2 +37,3 @@ { | ||
...DEPENDENCIES.miroNode, | ||
...DEPENDENCIES.mirotone, | ||
...DEPENDENCIES.react, | ||
@@ -52,2 +55,3 @@ ...DEPENDENCIES.reactDom, | ||
...DEPENDENCIES.miroNode, | ||
...DEPENDENCIES.mirotone, | ||
...DEPENDENCIES.react, | ||
@@ -54,0 +58,0 @@ ...DEPENDENCIES.reactDom, |
@@ -1,2 +0,2 @@ | ||
import '../styles/globals.css'; | ||
import '../src/assets/style.css'; | ||
@@ -3,0 +3,0 @@ const MyApp = ({Component, pageProps}) => { |
@@ -14,3 +14,5 @@ import {Html, Head, Main, NextScript} from 'next/document'; | ||
<body> | ||
<Main /> | ||
<div id="root"> | ||
<Main /> | ||
</div> | ||
<NextScript /> | ||
@@ -17,0 +19,0 @@ </body> |
@@ -5,3 +5,3 @@ import {useEffect} from 'react'; | ||
import congratulations from '../public/congratulations.png'; | ||
import congratulations from '../src/assets/congratulations.png'; | ||
@@ -14,5 +14,5 @@ export const getServerSideProps = async function getServerSideProps({req}) { | ||
return { | ||
redirect: { | ||
destination: miro.getAuthUrl(), | ||
permanent: false, | ||
props: { | ||
boards: [], | ||
authUrl: miro.getAuthUrl(), | ||
}, | ||
@@ -37,3 +37,3 @@ }; | ||
export default function Main({boards}) { | ||
export default function Main({boards, authUrl}) { | ||
useEffect(() => { | ||
@@ -49,2 +49,14 @@ if (new URLSearchParams(window.location.search).has('panel')) return; | ||
if (authUrl) { | ||
return ( | ||
<div className="grid wrapper"> | ||
<div className="cs1 ce12"> | ||
<a className="button button-primary" href={authUrl}> | ||
Login | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
} | ||
return ( | ||
@@ -51,0 +63,0 @@ <div className="grid wrapper"> |
{ | ||
"name": "create-miro-app", | ||
"version": "1.10.9", | ||
"version": "1.11.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "miro", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
14
927376
114
3825