Skip to content

Commit 532302f

Browse files
authored
feat(welcome): add welcome tab for first-time users (Acode-Foundation#1783)
* feat(welcome): add welcome tab for first-time users - Create welcome page component - Show welcome tab automatically on first app launch - Add "welcome" command to command palette * feat(constants): extract social URLs to constants.js * fix(quicktools): hideQuickTools issue of EditorFile tabs on init * feat: add. docs url on help page * chore(i18n): add missing string keys
1 parent 05a1b5d commit 532302f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+628
-61
lines changed

src/ace/commands.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,14 @@ const commands = [
349349
},
350350
readOnly: true,
351351
},
352+
{
353+
name: "acode:showWelcome",
354+
description: "Show Welcome",
355+
exec() {
356+
acode.exec("welcome");
357+
},
358+
readOnly: true,
359+
},
352360
];
353361

354362
export function setCommands(editor) {

src/handlers/quickTools.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,13 @@ function toggle() {
361361

362362
function setHeight(height = 1, save = true) {
363363
const { $footer, $row1, $row2 } = quickTools;
364-
const { editor } = editorManager;
364+
const { editor, activeFile } = editorManager;
365+
366+
// If active file has hideQuickTools, force height to 0 and don't save
367+
if (activeFile?.hideQuickTools) {
368+
height = 0;
369+
save = false;
370+
}
365371

366372
setFooterHeight(height);
367373
if (save) {

src/lang/ar-ye.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,9 @@
489489
"issues found": "Issues found",
490490
"error details": "Error details",
491491
"active tools": "Active tools",
492-
"available tools": "Available tools"
492+
"available tools": "Available tools",
493+
"recent": "Recent Files",
494+
"command palette": "Open Command Palette",
495+
"change theme": "Change Theme",
496+
"documentation": "Documentation"
493497
}

src/lang/be-by.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,5 +490,9 @@
490490
"issues found": "Issues found",
491491
"error details": "Error details",
492492
"active tools": "Active tools",
493-
"available tools": "Available tools"
493+
"available tools": "Available tools",
494+
"recent": "Recent Files",
495+
"command palette": "Open Command Palette",
496+
"change theme": "Change Theme",
497+
"documentation": "Documentation"
494498
}

src/lang/bn-bd.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,9 @@
489489
"issues found": "Issues found",
490490
"error details": "Error details",
491491
"active tools": "Active tools",
492-
"available tools": "Available tools"
492+
"available tools": "Available tools",
493+
"recent": "Recent Files",
494+
"command palette": "Open Command Palette",
495+
"change theme": "Change Theme",
496+
"documentation": "Documentation"
493497
}

src/lang/cs-cz.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,9 @@
489489
"issues found": "Nalezené problémy",
490490
"error details": "Podrobnosti o chybě",
491491
"active tools": "Active tools",
492-
"available tools": "Available tools"
492+
"available tools": "Available tools",
493+
"recent": "Recent Files",
494+
"command palette": "Open Command Palette",
495+
"change theme": "Change Theme",
496+
"documentation": "Documentation"
493497
}

src/lang/de-de.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,9 @@
489489
"issues found": "Gefundene Probleme",
490490
"error details": "Fehlerdetails",
491491
"active tools": "Aktive Tools",
492-
"available tools": "Verfügbare Tools"
492+
"available tools": "Verfügbare Tools",
493+
"recent": "Recent Files",
494+
"command palette": "Open Command Palette",
495+
"change theme": "Change Theme",
496+
"documentation": "Documentation"
493497
}

src/lang/en-us.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,9 @@
489489
"issues found": "Issues found",
490490
"error details": "Error details",
491491
"active tools": "Active tools",
492-
"available tools": "Available tools"
492+
"available tools": "Available tools",
493+
"recent": "Recent Files",
494+
"command palette": "Open Command Palette",
495+
"change theme": "Change Theme",
496+
"documentation": "Documentation"
493497
}

src/lang/es-sv.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,9 @@
489489
"issues found": "Issues found",
490490
"error details": "Error details",
491491
"active tools": "Active tools",
492-
"available tools": "Available tools"
492+
"available tools": "Available tools",
493+
"recent": "Recent Files",
494+
"command palette": "Open Command Palette",
495+
"change theme": "Change Theme",
496+
"documentation": "Documentation"
493497
}

src/lang/fr-fr.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,9 @@
489489
"issues found": "Issues found",
490490
"error details": "Error details",
491491
"active tools": "Active tools",
492-
"available tools": "Available tools"
492+
"available tools": "Available tools",
493+
"recent": "Recent Files",
494+
"command palette": "Open Command Palette",
495+
"change theme": "Change Theme",
496+
"documentation": "Documentation"
493497
}

0 commit comments

Comments
 (0)