You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14,67 +15,22 @@ export async function install() {
14
15
return;
15
16
}
16
17
17
-
// Ask about license key
18
-
consthasLicense=awaitconfirm({
19
-
message: 'Do you have a license key for Webtools?',
20
-
default: false,
21
-
});
18
+
logger.title(
19
+
'Webtools',
20
+
`${chalk.bold('🚀 Let\'s build your new website with Strapi')}\n`,
21
+
);
22
22
23
-
letlicenseKey: string|null=null;
24
-
if(hasLicense){
25
-
licenseKey=awaitinput({
26
-
message: 'Please enter your license key:',
27
-
validate: (value)=>{
28
-
if(!value||value.trim().length===0){
29
-
return'License key cannot be empty';
30
-
}
31
-
returntrue;
32
-
},
33
-
});
34
-
35
-
// Create license files
36
-
console.log(chalk.blue('\nSetting up license configuration...'));
37
-
constsuccess=awaitcreateLicenseFiles(licenseKey);
38
-
if(!success){
39
-
console.log(chalk.red('Failed to setup license configuration. Continuing without the license.'));
40
-
licenseKey=null;
41
-
}
42
-
}
23
+
// console.log('🚀 Get more out of Webtools with premium add-ons!\n');
24
+
25
+
// const { licenseKey } = await licenseSetup();
26
+
27
+
constlicenseKey=null;
43
28
44
29
// Get available content types
45
30
constcontentTypes=getContentTypes();
46
31
47
-
if(contentTypes.length===0){
48
-
console.log(chalk.yellow('No content types found in your Strapi project, skipping Webtools setup step. You can enable Webtools later using the "enable" command.'));
49
-
}else{
50
-
// Let user select content types
51
-
constselectedContentTypes=awaitcheckbox({
52
-
message: 'Select content types to enable Webtools for:',
53
-
choices: contentTypes.map((type)=>({
54
-
name: type,
55
-
value: type,
56
-
})),
57
-
});
58
-
59
-
// Enable Webtools for selected content types
60
-
if(selectedContentTypes.length>0){
61
-
console.log(chalk.blue('\nEnabling Webtools for selected content types...'));
0 commit comments