-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate to turbo repo to avoid nx issues
- Loading branch information
Showing
17 changed files
with
753 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,7 @@ site/**/*.js | |
vocs.config.tsx.timestamp-*.mjs | ||
|
||
bin | ||
**/.turbo | ||
|
||
# Turborepo | ||
.turbo |
Submodule embedded-accounts-quickstart
updated
4 files
+2 −0 | .gitignore | |
+7 −1 | next.config.mjs | |
+2 −2 | src/config.ts | |
+10 −0 | turbo.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/node_modules/vocs/_lib/app/components/Sidebar.js b/node_modules/vocs/_lib/app/components/Sidebar.js | ||
index 203ded0..cc1acc0 100644 | ||
--- a/node_modules/vocs/_lib/app/components/Sidebar.js | ||
+++ b/node_modules/vocs/_lib/app/components/Sidebar.js | ||
@@ -48,7 +48,7 @@ function getSidebarGroups(sidebar) { | ||
} | ||
function getActiveChildItem(items, pathname) { | ||
return items.find((item) => { | ||
- if (matchPath(pathname, item.link ?? '')) | ||
+ if (matchPath(pathname, item.link ?? '') && pathname !== '/') | ||
return true; | ||
if (item.link === pathname) | ||
return true; | ||
@@ -64,7 +64,7 @@ function SidebarItem(props) { | ||
const match = useMatch(item.link || ''); | ||
const hasActiveChildItem = useMemo(() => (item.items ? Boolean(getActiveChildItem(item.items, pathname)) : false), [item.items, pathname]); | ||
const [collapsed, setCollapsed] = useState(() => { | ||
- if (item.link && match) | ||
+ if (item.link && match && pathname !== '/') | ||
return false; | ||
if (!item.items) | ||
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": ["//"], | ||
"tasks": { | ||
"build": { | ||
"outputs": ["dist/**", "sidebar/**"], | ||
"dependsOn": ["^build"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"tasks": { | ||
"build": { | ||
"dependsOn": ["^build", "generate"], | ||
"outputs": [".next/**", "!.next/cache/**", "dist/**"], | ||
"cache": true | ||
}, | ||
"test": { | ||
"dependsOn": ["^build"], | ||
"cache": false, | ||
"persistent": true | ||
}, | ||
"test:ci": { | ||
"dependsOn": ["^build"] | ||
}, | ||
"docs:gen": { | ||
"outputs": ["../../site/pages/reference/**"] | ||
}, | ||
"generate": { | ||
"dependsOn": ["^build"], | ||
"outputs": ["src/**/plugins/**"], | ||
"cache": true | ||
} | ||
} | ||
} |
Oops, something went wrong.