Skip to content

Commit c0669a9

Browse files
authored
feat: Add web based GUI start wizard to ionic start command (#4746)
1 parent d81e08b commit c0669a9

File tree

6 files changed

+152
-10
lines changed

6 files changed

+152
-10
lines changed

packages/@ionic/cli/assets/oauth/success/index.html

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,26 @@
8686
letter-spacing: -0.02em;
8787
font-weight: 400;
8888
}
89+
90+
.ad-box{
91+
display:block;
92+
text-align:center;
93+
padding-top:30px;
94+
}
95+
96+
.ad-box>ion-card{
97+
width:300px;
98+
display:inline-block;
99+
}
100+
101+
.cta{
102+
padding-top:30px;
103+
}
104+
89105
</style>
106+
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script>
107+
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script>
108+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css"/>
90109
</head>
91110
<body>
92111
<header>
@@ -97,10 +116,56 @@
97116
</a>
98117
</header>
99118
<main>
119+
100120
<div>
101-
<h1>You are authenticated.</h1>
102-
<p>Please return to your terminal. You may close this window.</p>
121+
<h1 class="authenticated1" style="display:none;">You are authenticated!</h1>
122+
<p class="authenticated2" style="display:none;">You may close this window and return to your terminal but first check out our native solutions!</p>
123+
<h1 class="wizardtext1" style="display:none;">Your app is now building in your terminal!</h1>
124+
<p class="wizardtext2" style="display:none;">While you're waiting, check out our Native Solutions.</p>
125+
<h1 class="errortext1" style="display:none;">There was an error logging in. Please return to the terminal.</h1>
126+
<p class="errortext2" style="display:none;">In the meantime, check out our Native Solutions.</p>
127+
128+
<div class="ad-box">
129+
<ion-card>
130+
<ion-card-content>
131+
<svg width="123" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M35.28 6.64h-1.94V18h1.94V6.64zm7.8 4.14a3.07 3.07 0 00-2.65-1.28c-2.45 0-3.84 1.97-3.84 4.36 0 2.36 1.4 4.33 3.84 4.33 1.3 0 2.27-.51 2.8-1.37V18H45V6h-1.9v4.78zm.09 3.08c0 1.48-.88 2.65-2.34 2.65-1.44 0-2.33-1.17-2.33-2.65 0-1.52.9-2.68 2.33-2.68 1.46 0 2.34 1.16 2.34 2.68zm11.15.54l.01-.6c0-2.42-1.61-4.3-4.08-4.3-2.46 0-4.13 1.92-4.13 4.34 0 2.48 1.64 4.35 4.15 4.35 1.93 0 3.4-1.17 3.9-2.81h-1.92c-.3.73-1.05 1.18-1.93 1.18-1.33 0-2.18-.85-2.32-2.16h6.32zm-4.07-3.34c1.23 0 2.03.78 2.2 1.93h-4.42c.2-1.13 1-1.93 2.22-1.93zM57.2 9.7h-1.76V18h1.9v-4.82c0-1.3.75-2.04 1.95-2.04 1.14 0 1.65.75 1.65 1.88V18h1.9v-5.22c0-1.93-1.07-3.28-3.08-3.28-1.36 0-2.21.64-2.56 1.3V9.7zm9.44 1.52h1.4V9.7h-1.4V7.54h-1.9V9.7h-1.26v1.52h1.26V18h1.9v-6.78zm3-2.92c.7 0 1.19-.48 1.19-1.16 0-.7-.5-1.2-1.18-1.2-.7 0-1.2.5-1.2 1.2 0 .68.5 1.16 1.2 1.16zM68.7 18h1.9V9.7h-1.9V18zm5.77-6.78h1.39V9.7h-1.4V7.54h-1.9V9.7H71.3v1.52h1.26V18h1.9v-6.78zm2.9 10.1h1.9L83.98 9.7H82l-2.28 6.01-2.26-6.01h-2.03l3.34 8.24-1.4 3.39zm18-14.68l-3.24 8.8h-.03l-3.22-8.8h-2.19L91.06 18h2.02l4.4-11.36h-2.13zm7.94 3.07v1.19c-.53-.87-1.5-1.38-2.8-1.38-2.45 0-3.84 1.97-3.84 4.34 0 2.36 1.4 4.33 3.84 4.33 1.3 0 2.27-.51 2.8-1.37V18h1.76V9.71h-1.76zm-4.73 4.15c0-1.5.9-2.66 2.33-2.66 1.46 0 2.34 1.17 2.34 2.66 0 1.48-.88 2.65-2.34 2.65-1.44 0-2.33-1.17-2.33-2.65zm11.74 2.65c-1.16 0-1.77-.64-1.77-1.93V9.7h-1.9v4.78c0 2.13.98 3.71 3.67 3.71 2.68 0 3.66-1.58 3.66-3.71V9.7h-1.9v4.88c0 1.3-.61 1.93-1.76 1.93zm7.14 1.49V6h-1.9v12h1.9zm3.87-6.78h1.4V9.7h-1.4V7.54h-1.9V9.7h-1.27v1.52h1.27V18h1.9v-6.78z" fill="#001A3A"></path><path d="M24 12c0 5.25-.9 8.32-3.07 10.05C19.05 23.55 16.13 24 12 24c-4.72 0-7.8-.6-9.68-2.7C.68 19.5 0 16.57 0 12c0-4.88.75-7.88 2.63-9.6C4.5.52 7.5 0 12 0c4.43 0 7.43.53 9.3 2.33C23.25 4.04 24 7.04 24 12z" fill="#0065D4"></path><path d="M12 20.03a7.95 7.95 0 01-7.95-7.95 7.95 7.95 0 0115.9.07c0 4.43-3.6 7.88-7.95 7.88zM12 5.1a7.04 7.04 0 10-.02 14.08A7.04 7.04 0 0012 5.1z" fill="#1F95FF"></path><path d="M11.17 11.33V3.68c0-.45.38-.83.83-.83.45 0 .82.38.82.83v7.65c0 .45-.37.82-.82.82a.83.83 0 01-.83-.82z" fill="url(#subnav-logo_svg__paint0_linear)"></path><path d="M19.65 15.68l-7.27-4.2a.85.85 0 00-1.13.3c-.22.37-.07.82.3 1.05l7.28 4.2c.37.22.9.07 1.12-.3.23-.3.08-.83-.3-1.05z" fill="url(#subnav-logo_svg__paint1_linear)"></path><path d="M4.35 15.68l7.28-4.2a.85.85 0 011.12.3c.22.37.07.82-.3 1.05l-7.28 4.2a.85.85 0 01-1.12-.3c-.23-.3-.08-.83.3-1.05z" fill="url(#subnav-logo_svg__paint2_linear)"></path><path d="M12 8.48a3.68 3.68 0 10.01 7.36A3.68 3.68 0 0012 8.48z" fill="#fff"></path><defs><linearGradient id="subnav-logo_svg__paint0_linear" x1="12" y1="8.81" x2="12" y2="3.04" gradientUnits="userSpaceOnUse"><stop stop-color="#80BDFE"></stop><stop offset="1" stop-color="#DFF1FB"></stop></linearGradient><linearGradient id="subnav-logo_svg__paint1_linear" x1="14.95" y1="13.88" x2="19.94" y2="16.77" gradientUnits="userSpaceOnUse"><stop stop-color="#80BDFE"></stop><stop offset="1" stop-color="#DFF1FB"></stop></linearGradient><linearGradient id="subnav-logo_svg__paint2_linear" x1="9.02" y1="13.91" x2="4.03" y2="16.71" gradientUnits="userSpaceOnUse"><stop stop-color="#80BDFE"></stop><stop offset="1" stop-color="#DFF1FB"></stop></linearGradient></defs></svg>
132+
<p><b>Identity Vault</b> provides secure biometric authentication for mobile apps.</p>
133+
</ion-card-content>
134+
</ion-card>
135+
<ion-card>
136+
<ion-card-content>
137+
<svg width="129" height="25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M34.05 18l.81-2.2h5.1l.8 2.2h2.12L38.46 6.64H36.4L32 18h2.05zm3.37-8.96l1.9 5H35.5l1.9-5h.02zm9.38 7.47c-1.15 0-1.76-.64-1.76-1.93V9.7h-1.9v4.78c0 2.13.97 3.71 3.66 3.71 2.69 0 3.66-1.58 3.66-3.71V9.7h-1.9v4.88c0 1.3-.6 1.93-1.76 1.93zm7.45-5.3h1.4V9.7h-1.4V7.54h-1.9V9.7h-1.27v1.52h1.27V18h1.9v-6.78zM58.2 6h-1.9v12h1.9v-4.8c0-1.31.75-2.06 1.95-2.06 1.14 0 1.65.75 1.65 1.88V18h1.9v-5.22c0-1.93-1.07-3.28-3.09-3.28-1.23 0-2.03.53-2.41 1.1V6zm10.18 6.3c0 3.5 2.37 5.92 5.68 5.92 2.82 0 5-1.68 5.46-4.38h-2.07c-.38 1.6-1.68 2.53-3.4 2.53-2.26 0-3.62-1.62-3.62-4.07 0-2.44 1.36-4.04 3.63-4.04 1.71 0 3 .92 3.4 2.52h2.06c-.47-2.7-2.64-4.38-5.46-4.38-3.31 0-5.68 2.42-5.68 5.9zm16.02 5.9c2.66 0 4.32-2 4.32-4.34A4.21 4.21 0 0084.4 9.5a4.2 4.2 0 00-4.3 4.36 4.2 4.2 0 004.3 4.33zM82 13.85c0-1.62 1.02-2.68 2.4-2.68 1.4 0 2.42 1.06 2.42 2.68 0 1.6-1.03 2.65-2.42 2.65-1.38 0-2.4-1.05-2.4-2.65zm9.6-4.16h-1.76V18h1.9v-4.82c0-1.3.76-2.04 1.96-2.04 1.14 0 1.65.75 1.65 1.88V18h1.9v-5.22c0-1.93-1.07-3.28-3.09-3.28-1.36 0-2.2.64-2.56 1.3V9.7zm9 0h-1.76V18h1.9v-4.82c0-1.3.76-2.04 1.96-2.04 1.14 0 1.65.75 1.65 1.88V18h1.9v-5.22c0-1.93-1.07-3.28-3.09-3.28-1.36 0-2.2.64-2.56 1.3V9.7zm14.9 4.7v-.6c0-2.42-1.6-4.3-4.07-4.3s-4.13 1.92-4.13 4.34c0 2.48 1.63 4.35 4.14 4.35 1.94 0 3.41-1.17 3.9-2.81h-1.91c-.3.73-1.06 1.18-1.94 1.18-1.32 0-2.17-.85-2.32-2.16h6.32zm-4.07-3.34c1.23 0 2.03.78 2.2 1.93h-4.42c.19-1.13.99-1.93 2.22-1.93zm4.64 2.8c0 2.4 1.7 4.33 4.14 4.33a3.79 3.79 0 003.94-3.2h-1.96c-.22.9-.97 1.52-2 1.52-1.36 0-2.22-1.1-2.22-2.65 0-1.57.86-2.68 2.22-2.68 1.03 0 1.78.63 2 1.52h1.96a3.79 3.79 0 00-3.94-3.2c-2.45 0-4.14 1.94-4.14 4.36zm11.27-2.64h1.39V9.7h-1.4V7.54h-1.9V9.7h-1.26v1.52h1.26V18h1.9v-6.78z" fill="#03060B"></path><path d="M24 12.02c0 5.25-.9 8.33-3.07 10.05-1.88 1.5-4.8 1.95-8.93 1.95-4.72 0-7.8-.6-9.68-2.7C.67 19.52 0 16.6 0 12.02c0-4.87.75-7.87 2.63-9.6C4.5.62 7.5.02 12 .02c4.43 0 7.43.53 9.3 2.33 1.95 1.72 2.7 4.72 2.7 9.67z" fill="#00CEAB"></path><path d="M14.7 4.59L8.75 19.18l.62.25 5.94-14.59-.63-.25z" fill="#08ECC0"></path><path d="M4.86 8.67l-.26.62 14.59 5.94.25-.63L4.86 8.67z" fill="#08ECC0"></path><path d="M19.14 8.66L4.63 14.78l.26.62L19.4 9.28l-.26-.62z" fill="#08ECC0"></path><path d="M9.3 4.6l-.63.26 6.12 14.5.62-.25L9.3 4.59z" fill="#08ECC0"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M15.38 4.34a.56.56 0 100-1.13.56.56 0 000 1.13zm0 .65a1.22 1.22 0 100-2.44 1.22 1.22 0 000 2.44zM8.72 20.74a.56.56 0 100-1.12.56.56 0 000 1.12zm0 .66a1.22 1.22 0 100-2.44 1.22 1.22 0 000 2.44zm11.44-5.53a.56.56 0 100-1.13.56.56 0 000 1.13zm0 .65a1.22 1.22 0 100-2.43 1.22 1.22 0 000 2.43zM3.84 9.12a.56.56 0 100-1.13.56.56 0 000 1.13zm0 .65a1.22 1.22 0 100-2.43 1.22 1.22 0 000 2.43zm16.32-.65a.56.56 0 100-1.13.56.56 0 000 1.13zm0 .65a1.22 1.22 0 100-2.43 1.22 1.22 0 000 2.43zM3.84 15.96a.56.56 0 100-1.12.56.56 0 000 1.12zm0 .66a1.22 1.22 0 100-2.44 1.22 1.22 0 000 2.44zm11.63 4.1a.56.56 0 100-1.13.56.56 0 000 1.13zm0 .66a1.22 1.22 0 100-2.44 1.22 1.22 0 000 2.43zM8.63 4.34a.56.56 0 100-1.13.56.56 0 000 1.13zm0 .65a1.22 1.22 0 100-2.44 1.22 1.22 0 000 2.44z" fill="#08ECC0"></path><circle cx="12" cy="12.02" fill="url(#subnav-logo_svg__paint0_radial)" r="8.53"></circle><path d="M12 6.07c-1.27 0-2.47.9-2.47 2.78s1.2 2.78 2.47 2.78c1.28 0 2.48-.9 2.48-2.78S13.28 6.07 12 6.07z" fill="#fff"></path><path d="M12 12.52c-2.47 0-5.17 1.13-5.17 3.23 0 .75 2.32 1.5 5.17 1.5s5.18-.68 5.18-1.5c0-2.1-2.7-3.23-5.18-3.23z" fill="url(#subnav-logo_svg__paint1_linear)"></path><defs><radialGradient id="subnav-logo_svg__paint0_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(90 -.01 12.01) scale(8.53125)"><stop offset="0.3" stop-color="#00CEAB"></stop><stop offset="1" stop-color="#00CEAB" stop-opacity="0"></stop></radialGradient><linearGradient id="subnav-logo_svg__paint1_linear" x1="12" y1="12.9" x2="12" y2="17.11" gradientUnits="userSpaceOnUse"><stop stop-color="#BAFFF1"></stop><stop offset="0.02" stop-color="#BEFFF2"></stop><stop offset="0.13" stop-color="#D6FFF7"></stop><stop offset="0.25" stop-color="#E8FFFA"></stop><stop offset="0.4" stop-color="#F5FFFD"></stop><stop offset="0.6" stop-color="#FDFFFF"></stop><stop offset="1" stop-color="#fff"></stop></linearGradient></defs></svg>
138+
<p><b>Auth Connect</b> provides secure authentication for any hybrid mobile app.</p>
139+
</ion-card-content>
140+
</ion-card>
141+
<ion-card>
142+
<ion-card-content>
143+
<svg width="141" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.992 16.48c-1.536 0-2.352-.816-2.432-2.032h-1.92c.064 1.856 1.232 3.776 4.256 3.776 2.72 0 4.512-1.344 4.512-3.408 0-4.544-6.4-2.608-6.4-5.104 0-1.008.816-1.568 2.144-1.568 1.456 0 2.208.896 2.224 2.016h1.904c-.048-2.128-1.456-3.76-4.128-3.76-2.528 0-4.064 1.552-4.064 3.36 0 4.544 6.352 2.368 6.352 5.136 0 1.024-.896 1.584-2.448 1.584zm13.34-2.08s.016-.288.016-.592c0-2.432-1.616-4.304-4.08-4.304s-4.128 1.92-4.128 4.336c0 2.48 1.632 4.352 4.144 4.352 1.936 0 3.408-1.168 3.904-2.816h-1.92c-.304.736-1.056 1.184-1.936 1.184-1.328 0-2.176-.848-2.32-2.16h6.32zm-4.064-3.344c1.232 0 2.032.784 2.192 1.936h-4.416c.192-1.136.992-1.936 2.224-1.936zm4.638 2.8c0 2.4 1.696 4.336 4.144 4.336 2.464 0 3.712-1.712 3.936-3.2h-1.952c-.224.896-.976 1.52-2 1.52-1.36 0-2.224-1.104-2.224-2.656 0-1.568.864-2.672 2.224-2.672 1.024 0 1.776.624 2 1.52h1.952c-.224-1.488-1.472-3.2-3.936-3.2-2.448 0-4.144 1.936-4.144 4.352zm12.644 2.656c-1.152 0-1.76-.64-1.76-1.936v-4.88h-1.904v4.784c0 2.128.976 3.712 3.664 3.712s3.664-1.584 3.664-3.712V9.696H65.31v4.88c0 1.296-.608 1.936-1.76 1.936zm9.725-6.88s-.192-.016-.272-.016c-1.44 0-2.144.704-2.448 1.232V9.696h-1.76V18H70.7v-4.32c0-1.6.8-2.304 2.144-2.304.208 0 .432.032.432.032V9.632zm8.028 4.768s.016-.288.016-.592c0-2.432-1.616-4.304-4.08-4.304s-4.128 1.92-4.128 4.336c0 2.48 1.632 4.352 4.144 4.352 1.936 0 3.408-1.168 3.904-2.816h-1.92c-.304.736-1.056 1.184-1.936 1.184-1.328 0-2.176-.848-2.32-2.16h6.32zm-4.064-3.344c1.232 0 2.032.784 2.192 1.936h-4.416c.192-1.136.992-1.936 2.224-1.936zm12.539 5.424c-1.536 0-2.352-.816-2.432-2.032h-1.92c.064 1.856 1.232 3.776 4.256 3.776 2.72 0 4.512-1.344 4.512-3.408 0-4.544-6.4-2.608-6.4-5.104 0-1.008.816-1.568 2.144-1.568 1.456 0 2.208.896 2.224 2.016h1.904c-.048-2.128-1.456-3.76-4.128-3.76-2.528 0-4.064 1.552-4.064 3.36 0 4.544 6.352 2.368 6.352 5.136 0 1.024-.896 1.584-2.448 1.584zm7.9-5.264h1.392v-1.52h-1.392v-2.16h-1.904v2.16H94.51v1.52h1.263V18h1.904v-6.784zm5.63 6.976c2.656 0 4.32-2 4.32-4.336 0-2.336-1.664-4.352-4.32-4.352-2.64 0-4.304 2.016-4.304 4.352 0 2.336 1.664 4.336 4.304 4.336zm-2.4-4.336c0-1.616 1.024-2.672 2.4-2.672 1.392 0 2.416 1.056 2.416 2.672 0 1.6-1.024 2.656-2.416 2.656-1.376 0-2.4-1.056-2.4-2.656zm12.324-4.224s-.192-.016-.272-.016c-1.44 0-2.144.704-2.448 1.232V9.696h-1.76V18h1.904v-4.32c0-1.6.8-2.304 2.144-2.304.208 0 .432.032.432.032V9.632zm6.476.08v1.184c-.528-.864-1.504-1.376-2.8-1.376-2.448 0-3.84 1.968-3.84 4.336 0 2.368 1.392 4.336 3.84 4.336 1.296 0 2.272-.512 2.8-1.376V18h1.76V9.712h-1.76zm-4.736 4.144c0-1.488.896-2.656 2.336-2.656 1.456 0 2.336 1.168 2.336 2.656 0 1.488-.88 2.656-2.336 2.656-1.44 0-2.336-1.168-2.336-2.656zm14.204-2.976c-.544-.864-1.488-1.376-2.768-1.376-2.368 0-3.824 1.904-3.824 4.192 0 2.288 1.456 4.192 3.824 4.192 1.28 0 2.16-.56 2.624-1.28v1.296c0 1.168-.72 1.968-2.032 1.968-1.2 0-1.76-.624-1.936-1.264h-1.904c.176 1.296 1.312 2.896 3.808 2.896 2.56 0 3.968-1.664 3.968-3.856V9.696h-1.76v1.184zm-.064 2.816c0 1.44-.912 2.512-2.32 2.512-1.376 0-2.304-1.072-2.304-2.512 0-1.456.928-2.512 2.304-2.512 1.408 0 2.32 1.056 2.32 2.512zm11.071.704s.016-.288.016-.592c0-2.432-1.616-4.304-4.08-4.304s-4.128 1.92-4.128 4.336c0 2.48 1.632 4.352 4.144 4.352 1.936 0 3.408-1.168 3.904-2.816h-1.92c-.304.736-1.056 1.184-1.936 1.184-1.328 0-2.176-.848-2.32-2.16h6.32zm-4.064-3.344c1.232 0 2.032.784 2.192 1.936h-4.416c.192-1.136.992-1.936 2.224-1.936z" fill="#001A3A"></path><g clip-path="url(#subnav-logo_svg__clip0)"><path d="M24 12c0 5.25-.9 8.326-3.075 10.05-1.876 1.501-4.8 1.951-8.926 1.951-4.724 0-7.8-.6-9.675-2.7C.675 19.5 0 16.575 0 12c0-4.876.75-7.875 2.625-9.6C4.501.524 7.5 0 12.001 0c4.425 0 7.424.525 9.3 2.325C23.25 4.051 24 7.05 24 12z" fill="#7580F4"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.781 8.063c.26 0 .469.21.469.468v9a.469.469 0 11-.938 0v-9c0-.259.21-.469.47-.469z" fill="url(#subnav-logo_svg__paint0_linear)"></path><path d="M12.035 12.217c4.233-.018 7.658-1.941 7.65-4.296-.007-2.356-3.444-4.25-7.677-4.233-4.233.017-7.658 1.94-7.65 4.296.007 2.355 3.444 4.25 7.677 4.233z" fill="#fff"></path><path d="M13.902 5.988c-.756-.598-2.222-.73-3.271-.293-1.051.435-1.289 1.272-.533 1.87.184.145.412.263.664.352.1.035.159.142.126.244l-.507 1.567a.375.375 0 00.357.49h2.525a.375.375 0 00.357-.49l-.509-1.576a.196.196 0 01.125-.242c.046-.016.09-.033.134-.05 1.05-.438 1.288-1.275.532-1.872z" fill="url(#subnav-logo_svg__paint1_linear)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.556 17.14a.469.469 0 01.633.198c.374.715 1.209 1.394 2.421 1.896 1.202.498 2.724.8 4.39.8 2.686 0 4.962-.782 6.153-1.869a.469.469 0 01.632.693c-1.422 1.297-3.96 2.114-6.784 2.114-1.774 0-3.42-.32-4.75-.872-1.318-.546-2.377-1.341-2.893-2.327a.469.469 0 01.198-.633z" fill="url(#subnav-logo_svg__paint2_linear)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.556 14.278a.469.469 0 01.633.198c.374.715 1.209 1.394 2.421 1.896 1.202.498 2.724.8 4.39.8 2.964 0 5.409-.95 6.47-2.195a.469.469 0 11.713.608C17.869 17.126 15.097 18.11 12 18.11c-1.774 0-3.42-.321-4.75-.872-1.318-.546-2.377-1.341-2.893-2.327a.469.469 0 01.198-.633z" fill="url(#subnav-logo_svg__paint3_linear)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.556 11.416a.469.469 0 01.633.198c.374.714 1.209 1.393 2.421 1.895 1.202.498 2.724.8 4.39.8 1.667 0 3.19-.302 4.391-.8 1.213-.502 2.047-1.18 2.421-1.895a.469.469 0 11.83.434c-.515.986-1.574 1.781-2.892 2.328-1.33.55-2.976.871-4.75.871-1.773 0-3.42-.32-4.749-.871-1.318-.547-2.377-1.342-2.893-2.328a.469.469 0 01.198-.632z" fill="url(#subnav-logo_svg__paint4_linear)"></path></g><defs><linearGradient id="subnav-logo_svg__paint0_linear" x1="4.799" y1="17.834" x2="4.799" y2="8.405" gradientUnits="userSpaceOnUse"><stop offset="0.011" stop-color="#9DAAF8"></stop><stop offset="0.701" stop-color="#DBE9FE"></stop></linearGradient><linearGradient id="subnav-logo_svg__paint1_linear" x1="12.002" y1="6.062" x2="11.987" y2="9.529" gradientUnits="userSpaceOnUse"><stop stop-color="#656FDB"></stop><stop offset="0.138" stop-color="#6973E1"></stop><stop offset="0.605" stop-color="#727DEF"></stop><stop offset="1" stop-color="#7580F4"></stop></linearGradient><linearGradient id="subnav-logo_svg__paint2_linear" x1="4.356" y1="19.03" x2="19.644" y2="19.03" gradientUnits="userSpaceOnUse"><stop stop-color="#A3B0F9"></stop><stop offset="1" stop-color="#7287F8"></stop></linearGradient><linearGradient id="subnav-logo_svg__paint3_linear" x1="4.356" y1="16.168" x2="19.644" y2="16.168" gradientUnits="userSpaceOnUse"><stop stop-color="#BDCAFB"></stop><stop offset="1" stop-color="#7390FB"></stop></linearGradient><linearGradient id="subnav-logo_svg__paint4_linear" x1="4.356" y1="13.305" x2="19.644" y2="13.305" gradientUnits="userSpaceOnUse"><stop stop-color="#D4E2FD"></stop><stop offset="1" stop-color="#819EFC"></stop></linearGradient><clipPath id="subnav-logo_svg__clip0"><path fill="#fff" d="M0 0h24v24H0z"></path></clipPath></defs></svg>
144+
<p><b>Secure Storage</b> provides secure, data-driven, offline-first mobile experiences.</p>
145+
</ion-card-content>
146+
</ion-card>
147+
148+
<div class="cta">
149+
<ion-button href="https://dashboard.ionicframework.com/?native_trial=1" color="primary">Get Access <ion-icon slot="end" name="arrow-forward-outline"></ion-icon></ion-button>
150+
<ion-button href="https://dashboard.ionicframework.com" color="primary" fill="outline">Go to Dashboard <ion-icon slot="end" name="arrow-forward-outline"></ion-icon></ion-button>
151+
</div>
152+
153+
</div>
103154
</div>
155+
104156
</main>
157+
158+
<script type="text/javascript">
159+
if (window.location.search.indexOf('error') !== -1) {
160+
document.querySelector('.errortext1').setAttribute('style', 'display:block;');
161+
document.querySelector('.errortext2').setAttribute('style', 'display:block;');
162+
} else if (window.location.search.indexOf('state') !== -1){
163+
document.querySelector('.wizardtext1').setAttribute('style', 'display:block;');
164+
document.querySelector('.wizardtext2').setAttribute('style', 'display:block;');
165+
} else {
166+
document.querySelector('.authenticated1').setAttribute('style', 'display:block;');
167+
document.querySelector('.authenticated2').setAttribute('style', 'display:block;');
168+
}
169+
</script>
105170
</body>
106171
</html>

packages/@ionic/cli/src/commands/start.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,61 @@ Use the ${input('--type')} option to start projects using older versions of Ioni
238238
}
239239
}
240240

241+
/**
242+
* Check if we should use the wizard for the start command.
243+
* We should use if they ran `ionic start` or `ionic start --capacitor`
244+
* and they are in an interactive environment.
245+
*/
246+
async shouldUseStartWizard(inputs: CommandLineInputs, options: CommandLineOptions) {
247+
const flagsToTestFor = [
248+
'list',
249+
'l',
250+
'cordova',
251+
'link',
252+
'help',
253+
'h',
254+
'type',
255+
'id',
256+
'project-id',
257+
'package-id',
258+
'start-id',
259+
];
260+
261+
let didUseFlags = false ;
262+
263+
for (const key of flagsToTestFor) {
264+
if (options[key] !== null) {
265+
didUseFlags = true;
266+
break;
267+
}
268+
}
269+
270+
return inputs.length === 0 && options['interactive'] && options['deps'] && options['git'] && !didUseFlags;
271+
}
272+
241273
async preRun(inputs: CommandLineInputs, options: CommandLineOptions): Promise<void> {
242274
const { promptToLogin } = await import('../lib/session');
243275

244276
verifyOptions(options, this.env);
245277

278+
if (await this.shouldUseStartWizard(inputs, options)) {
279+
const confirm = await this.env.prompt({
280+
type: 'confirm',
281+
name: 'confirm',
282+
message: 'Use the app creation wizard?',
283+
default: true,
284+
});
285+
286+
if (confirm) {
287+
const startId = await this.env.session.wizardLogin();
288+
if (!startId) {
289+
this.env.log.error('There was an issue using the web wizard. Falling back to CLI wizard.');
290+
} else {
291+
options['start-id'] = startId;
292+
}
293+
}
294+
}
295+
246296
const appflowId = options['id'] ? String(options['id']) : undefined;
247297

248298
if (appflowId) {

packages/@ionic/cli/src/definitions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ export interface OpenIdToken {
282282
refresh_token?: string;
283283
scope: 'openid profile email offline_access';
284284
token_type: 'Bearer';
285+
state?: string;
285286
}
286287

287288
export interface Snapshot {
@@ -443,6 +444,7 @@ export interface ISession {
443444
ssoLogin(email: string): Promise<void>;
444445
tokenLogin(token: string): Promise<void>;
445446
webLogin(): Promise<void>;
447+
wizardLogin(): Promise<string|undefined>;
446448
logout(): Promise<void>;
447449

448450
isLoggedIn(): boolean;

0 commit comments

Comments
 (0)