Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
name: Build

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm run build
- run: npx bun install
- run: npx bun run build
env:
TERMINUSDB_API_TOKEN: ${{ secrets.TERMINUSDB_API_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm run build
- run: npx bun install
- run: npx bun run build
env:
TERMINUSDB_API_TOKEN: ${{ secrets.TERMINUSDB_API_TOKEN }}
- run: curl -X POST ${{ secrets.CLOUDFLARE_DEPLOY_HOOK }} -o /dev/null
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
.next
.env
bun.lock
src/menu.json

# dependencies
/node_modules
Expand Down
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions schema/content-examples/menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"MenuTitle":"Start with TerminusCMS","Order":null,"menu_order":"1","Level1":[{"Menu1Label":"Get Started","Order":"1","Menu1Page":{"slug":"get-started"},"Level2":[]},{"Menu1Label":"Product Tour","Order":"2","Menu1Page":{"slug":"product-tour"},"Level2":[{"Menu2Label":"Overview","Order":"3","Menu2Page":{"slug":"projects-terminuscms-tour"},"Level3":[]},{"Menu2Label":"Teams & Users","Order":"4","Menu2Page":{"slug":"manage-teams-users-terminuscms-tour"},"Level3":[]},{"Menu2Label":"Curate Data","Order":"5","Menu2Page":{"slug":"content-curation-terminuscms-tour"},"Level3":[]},{"Menu2Label":"Change Requests","Order":"6","Menu2Page":{"slug":"change-request-workflows-terminuscms-tour"},"Level3":[]},{"Menu2Label":"GraphQL & WOQL Query","Order":"7","Menu2Page":{"slug":"graphql-and-woql-query-terminuscms-tour"},"Level3":[]}]},{"Menu1Label":"Connect to TerminusCMS","Order":"8","Menu1Page":{"slug":"how-to-connect-terminuscms"},"Level2":[]}]},{"MenuTitle":"Start with TerminusDB","Order":null,"menu_order":"2","Level1":[{"Menu1Label":"Get Started with TerminusDB","Order":"132","Menu1Page":{"slug":"get-started-with-terminusdb"},"Level2":[]},{"Menu1Label":"Install Options","Order":"133","Menu1Page":{"slug":"terminusdb-install-options"},"Level2":[{"Menu2Label":"Install on Kubernetes","Order":"4","Menu2Page":{"slug":"install-on-kubernetes"},"Level3":[]},{"Menu2Label":"Install as a Docker Container","Order":"135","Menu2Page":{"slug":"install-terminusdb-as-a-docker-container"},"Level3":[]},{"Menu2Label":"Install from Source Code","Order":"136","Menu2Page":{"slug":"install-terminusdb-from-source-code"},"Level3":[]}]},{"Menu1Label":"CLI Commands","Order":"137","Menu1Page":{"slug":"terminusdb-cli-commands"},"Level2":[]}]},{"MenuTitle":"How-To Guides","Order":null,"menu_order":"3","Level1":[{"Menu1Label":"Clone a Demo Project","Order":"9","Menu1Page":{"slug":"clone-a-demo-terminuscms-project"},"Level2":[]},{"Menu1Label":"Use the Clients","Order":"10","Menu1Page":{"slug":"use-the-clients"},"Level2":[{"Menu2Label":"Use the JS Client","Order":"11","Menu2Page":{"slug":"use-the-javascript-client"},"Level3":[{"Menu3Label":"Install JS Client","Order":"12","Menu3Page":{"slug":"install-terminusdb-js-client"}},{"Menu3Label":"Connect to JS Client","Order":"13","Menu3Page":{"slug":"connect-with-the-javascript-client"}},{"Menu3Label":"Create DB with JS","Order":"14","Menu3Page":{"slug":"create-a-database"}},{"Menu3Label":"Connect to DB with JS","Order":"15","Menu3Page":{"slug":"connect-to-a-database"}},{"Menu3Label":"Add a Schema with JS","Order":"16","Menu3Page":{"slug":"add-a-schema"}},{"Menu3Label":"Add Doc with JS","Order":"17","Menu3Page":{"slug":"add-a-document"}},{"Menu3Label":"Edit Docs with JS","Order":"18","Menu3Page":{"slug":"edit-a-document"}},{"Menu3Label":"Delete Docs with JS","Order":"19","Menu3Page":{"slug":"delete-a-document"}},{"Menu3Label":"Get Docs with JS","Order":"20","Menu3Page":{"slug":"get-documents"}},{"Menu3Label":"Query Docs with JS","Order":"21","Menu3Page":{"slug":"query-documents"}},{"Menu3Label":"Run WOQL Query","Order":"21","Menu3Page":{"slug":"run-woql-query"}}]},{"Menu2Label":"Use the Python Client","Order":"23","Menu2Page":{"slug":"use-the-python-client"},"Level3":[{"Menu3Label":"Install Python Client","Order":"24","Menu3Page":{"slug":"install-the-python-client"}},{"Menu3Label":"Connect with Python Client","Order":"25","Menu3Page":{"slug":"connect-with-python-client"}},{"Menu3Label":"Create DB with Python","Order":"26","Menu3Page":{"slug":"create-database-with-python-client"}},{"Menu3Label":"Connect to DB with Python","Order":"27","Menu3Page":{"slug":"connect-to-a-database-with-python-client"}},{"Menu3Label":"Add Docs with Python","Order":"28","Menu3Page":{"slug":"add-documents-with-python-client"}},{"Menu3Label":"Add Schema with Python","Order":"29","Menu3Page":{"slug":"add-a-schema-with-the-python-client"}},{"Menu3Label":"Edit Docs with Python","Order":"30","Menu3Page":{"slug":"edit-documents-with-python-client"}},{"Menu3Label":"Get Docs with Python","Order":"31","Menu3Page":{"slug":"get-documents-with-python-client"}},{"Menu3Label":"Delete Docs with Python","Order":"32","Menu3Page":{"slug":"delete-documents-with-python-client"}},{"Menu3Label":"Import Data with Python","Order":"33","Menu3Page":{"slug":"import-data-with-python-client"}},{"Menu3Label":"WOQL Query with Python","Order":"34","Menu3Page":{"slug":"woql-query-with-python-client"}}]}]},{"Menu1Label":"Collaboration Features","Order":"35","Menu1Page":{"slug":"use-the-collaboration-features"},"Level2":[{"Menu2Label":"Collaboration with JS","Order":"36","Menu2Page":{"slug":"collaboration-with-javascript-client"},"Level3":[{"Menu3Label":"Clone with JS","Order":"37","Menu3Page":{"slug":"clone-a-project"}},{"Menu3Label":"Branch with JS","Order":"38","Menu3Page":{"slug":"branch-a-project"}},{"Menu3Label":"Reset with JS","Order":"39","Menu3Page":{"slug":"reset-a-project"}},{"Menu3Label":"Squash with JS","Order":"40","Menu3Page":{"slug":"squash-projects"}},{"Menu3Label":"Time Travel with JS","Order":"41","Menu3Page":{"slug":"time-travel-to-previous-commits"}},{"Menu3Label":"Diff & Patch with JS","Order":"42","Menu3Page":{"slug":"diff-and-patch-operations"}}]},{"Menu2Label":"Collaboration with Python","Order":"43","Menu2Page":{"slug":"collaboration-with-python-client"},"Level3":[{"Menu3Label":"Branch with Python","Order":"44","Menu3Page":{"slug":"branch-a-project-with-the-python-client"}},{"Menu3Label":"Clone with Python","Order":"45","Menu3Page":{"slug":"clone-a-database-with-python"}},{"Menu3Label":"Reset with Python","Order":"46","Menu3Page":{"slug":"reset-to-a-commit-with-python"}},{"Menu3Label":"Squash with Python","Order":"47","Menu3Page":{"slug":"squash-a-project-with-python"}},{"Menu3Label":"Time Travel with Python","Order":"48","Menu3Page":{"slug":"time-travel-with-python"}}]},{"Menu2Label":"Collaboration Dashboard","Order":"50","Menu2Page":{"slug":"collaboration-with-terminuscms-dashboard"},"Level3":[{"Menu3Label":"Branch with Dashboard","Order":"51","Menu3Page":{"slug":"branch"}},{"Menu3Label":"Clone with Dashboard","Order":"52","Menu3Page":{"slug":"clone"}},{"Menu3Label":"Reset with Dashboard","Order":"53","Menu3Page":{"slug":"reset"}},{"Menu3Label":"Squash with Dashboard","Order":"54","Menu3Page":{"slug":"squash"}},{"Menu3Label":"Time Travel with Dashboard","Order":"55","Menu3Page":{"slug":"time-travel"}}]}]},{"Menu1Label":"Use VectorLink","Order":"36","Menu1Page":{"slug":"use-vectorlink"},"Level2":[{"Menu2Label":"Add OpenAI Key","Order":"1","Menu2Page":{"slug":"set-up-vectorlink"},"Level3":[]},{"Menu2Label":"Configure Vector Embeddings","Order":"2","Menu2Page":{"slug":"openai-handlebars-config"},"Level3":[]},{"Menu2Label":"Index Your Data","Order":"3","Menu2Page":{"slug":"index-your-data"},"Level3":[]}]},{"Menu1Label":"Build Schema","Order":"56","Menu1Page":{"slug":"model-schema"},"Level2":[{"Menu2Label":"Model Schema UI","Order":"57","Menu2Page":{"slug":"use-the-model-builder-ui"},"Level3":[]},{"Menu2Label":"JSON Editor","Order":"58","Menu2Page":{"slug":"use-the-json-editor"},"Level3":[]}]},{"Menu1Label":"Manage Projects","Order":"65","Menu1Page":{"slug":"manage-projects-with-terminuscms"},"Level2":[{"Menu2Label":"Create Teams with UI","Order":"2","Menu2Page":{"slug":"create-a-team-with-terminuscms"},"Level3":[]},{"Menu2Label":"Create Projects with UI","Order":"3","Menu2Page":{"slug":"create-a-project-with-terminuscms"},"Level3":[]},{"Menu2Label":"Invite Users with UI","Order":"4","Menu2Page":{"slug":"invite-users-using-terminuscms"},"Level3":[]},{"Menu2Label":"Get API Key","Order":"5","Menu2Page":{"slug":"get-your-api-key-from-terminuscms"},"Level3":[]}]},{"Menu1Label":"Query","Order":"70","Menu1Page":{"slug":"how-to-query"},"Level2":[{"Menu2Label":"GraphQL Query","Order":"71","Menu2Page":{"slug":"how-to-query-with-graphql"},"Level3":[{"Menu3Label":"GraphQL Basics","Order":"72","Menu3Page":{"slug":"graphql-basics"}},{"Menu3Label":"GraphQL Filter","Order":"73","Menu3Page":{"slug":"filter-with-graphql"}},{"Menu3Label":"GraphQL Advanced Filter","Order":"74","Menu3Page":{"slug":"advanced-filtering-with-graphql"}},{"Menu3Label":"GraphQL Limit","Order":"75","Menu3Page":{"slug":"limit-results-in-graphql"}},{"Menu3Label":"GraphQL Order By","Order":"76","Menu3Page":{"slug":"order-by-in-graphql"}},{"Menu3Label":"GraphQL Offset","Order":"77","Menu3Page":{"slug":"offset-to-provide-paging"}},{"Menu3Label":"GraphQL Path Queries","Order":"78","Menu3Page":{"slug":"path-queries-in-graphql"}},{"Menu3Label":"GraphQL Back Links","Order":"79","Menu3Page":{"slug":"back-links-in-graphql"}}]},{"Menu2Label":"WOQL Query","Order":"80","Menu2Page":{"slug":"how-to-query-with-woql"},"Level3":[{"Menu3Label":"WOQL Basics","Order":"81","Menu3Page":{"slug":"woql-basics"}},{"Menu3Label":"WOQL Add Docs","Order":"82","Menu3Page":{"slug":"add-documents-with-woql"}},{"Menu3Label":"WOQL Edit Docs","Order":"83","Menu3Page":{"slug":"edit-documents-with-woql"}},{"Menu3Label":"WOQL Delete Docs","Order":"84","Menu3Page":{"slug":"delete-documents-with-woql"}},{"Menu3Label":"WOQL Read Docs","Order":"85","Menu3Page":{"slug":"read-documents-with-woql"}},{"Menu3Label":"WOQL Filter","Order":"86","Menu3Page":{"slug":"filter-with-woql"}},{"Menu3Label":"WOQL Order By","Order":"87","Menu3Page":{"slug":"order-by-with-woql"}},{"Menu3Label":"WOQL Query Arrays","Order":"88","Menu3Page":{"slug":"query-arrays-and-sets-in-woql"}},{"Menu3Label":"WOQL Group Results","Order":"89","Menu3Page":{"slug":"group-query-results"}},{"Menu3Label":"WOQL Path Queries","Order":"90","Menu3Page":{"slug":"path-queries-in-woql"}},{"Menu3Label":"WOQL Math Queries","Order":"91","Menu3Page":{"slug":"maths-based-queries-in-woql"}},{"Menu3Label":"WOQL Schema Queries","Order":"92","Menu3Page":{"slug":"schema-queries-with-woql"}}]}]},{"Menu1Label":"Curate & Import Data","Order":"93","Menu1Page":{"slug":"curate-and-import-data"},"Level2":[{"Menu2Label":"Curate with Dashboard","Order":"94","Menu2Page":{"slug":"use-the-admin-ui-curate-and-import-data"},"Level3":[]},{"Menu2Label":"Import with Python","Order":"97","Menu2Page":{"slug":"import-data-with-python-client"},"Level3":[]}]}]},{"MenuTitle":"Reference Guides","Order":"4","menu_order":"4","Level1":[{"Menu1Label":"Schema Reference","Order":"1","Menu1Page":{"slug":"schema-reference-guide"},"Level2":[]},{"Menu1Label":"JS Client Reference","Order":"2","Menu1Page":{"slug":"javascript"},"Level2":[]},{"Menu1Label":"Python Client Reference","Order":"3","Menu1Page":{"slug":"python"},"Level2":[]},{"Menu1Label":"GraphQL Reference","Order":"4","Menu1Page":{"slug":"graphql-query-reference"},"Level2":[{"Menu2Label":"Connecting to GraphQL","Order":"121","Menu2Page":{"slug":"connecting-to-graphql-reference"},"Level3":[]},{"Menu2Label":"GraphQL Naming Conventions","Order":"122","Menu2Page":{"slug":"graphql-naming-conventions-reference"},"Level3":[]},{"Menu2Label":"System Graph Interface","Order":"123","Menu2Page":{"slug":"system-graph-graphql-interface-reference"},"Level3":[]},{"Menu2Label":"Connect with Apollo Client","Order":"999","Menu2Page":{"slug":"connect-with-apollo-client"},"Level3":[]}]},{"Menu1Label":"HTTP reference","Order":"5","Menu1Page":{"slug":"openapi"},"Level2":[]},{"Menu1Label":"Access Control","Order":"6","Menu1Page":{"slug":"js-access-control"},"Level2":[]},{"Menu1Label":"Supported Data Types","Order":"7","Menu1Page":{"slug":"terminuscms-data-types"},"Level2":[]},{"Menu1Label":"Document Insertion","Order":"8","Menu1Page":{"slug":"document-insertion"},"Level2":[]},{"Menu1Label":"TerminusCMS Dashboard","Order":"9","Menu1Page":{"slug":"terminuscms-dashboard-reference"},"Level2":[]},{"Menu1Label":"JSON Diff and Patch","Order":"10","Menu1Page":{"slug":"json-diff-and-patch"},"Level2":[]},{"Menu1Label":"Path Queries","Order":"11","Menu1Page":{"slug":"path-query-reference-guide"},"Level2":[]},{"Menu1Label":"Schema Migration","Order":"12","Menu1Page":{"slug":"schema-migration-reference-guide"},"Level2":[]},{"Menu1Label":"WOQL Class Reference","Order":"13","Menu1Page":{"slug":"woql-class-reference-guide"},"Level2":[]}]},{"MenuTitle":"UI SDK","Order":null,"menu_order":"5","Level1":[{"Menu1Label":"Use the Document UI SDK","Order":"1","Menu1Page":{"slug":"document-ui-sdk"},"Level2":[{"Menu2Label":"UI SDK Data Types","Order":"1","Menu2Page":{"slug":"document-ui-sdk-data-types"},"Level3":[{"Menu3Label":"Array","Order":"1","Menu3Page":{"slug":"array"}},{"Menu3Label":"Choice Document","Order":"2","Menu3Page":{"slug":"choice-document"}},{"Menu3Label":"Choice Sub-Document","Order":"3","Menu3Page":{"slug":"choice-subdocuments"}},{"Menu3Label":"List","Order":"4","Menu3Page":{"slug":"list"}},{"Menu3Label":"Mandatory","Order":"5","Menu3Page":{"slug":"mandatory"}},{"Menu3Label":"One Of","Order":"6","Menu3Page":{"slug":"oneof"}},{"Menu3Label":"Optional","Order":"7","Menu3Page":{"slug":"optional"}},{"Menu3Label":"Order By","Order":"8","Menu3Page":{"slug":"orderby"}},{"Menu3Label":"Render As","Order":"9","Menu3Page":{"slug":"render-as"}},{"Menu3Label":"Set","Order":"10","Menu3Page":{"slug":"set"}},{"Menu3Label":"sysJSON","Order":"11","Menu3Page":{"slug":"sysjson"}}]},{"Menu2Label":"UI SDK GeoJSON","Order":"2","Menu2Page":{"slug":"ui-sdk-geojson"},"Level3":[]}]},{"Menu1Label":"Document UI Template","Order":"2","Menu1Page":{"slug":"document-ui-template"},"Level2":[{"Menu2Label":"TDB React Table","Order":"1","Menu2Page":{"slug":"tdb-react-table"},"Level3":[]},{"Menu2Label":"Use TDB Documents","Order":"2","Menu2Page":{"slug":"usetdbdocuments"},"Level3":[]},{"Menu2Label":"Use TDB GraphQL Query","Order":"3","Menu2Page":{"slug":"usetdbgraphqlquery"},"Level3":[]},{"Menu2Label":"UI Components","Order":"4","Menu2Page":{"slug":"ui-components"},"Level3":[{"Menu3Label":"Document Classes Summary","Order":"1","Menu3Page":{"slug":"documentclassessummary"}},{"Menu3Label":"Documents GraphQL Table","Order":"2","Menu3Page":{"slug":"documentsgraphqltable"}},{"Menu3Label":"Edit Documents","Order":"3","Menu3Page":{"slug":"edit-document-component"}},{"Menu3Label":"List Documents","Order":"4","Menu3Page":{"slug":"list-documents-component"}},{"Menu3Label":"New Documents","Order":"5","Menu3Page":{"slug":"newdocumentcomponent"}},{"Menu3Label":"View Documents","Order":"6","Menu3Page":{"slug":"viewdocumentcomponent"}}]}]}]},{"MenuTitle":"Explanations","Order":null,"menu_order":"6","Level1":[{"Menu1Label":"Acid Transactions","Order":"139","Menu1Page":{"slug":"acid-transactions-explanation"},"Level2":[]},{"Menu1Label":"Datalog","Order":"140","Menu1Page":{"slug":"datalog-explanation"},"Level2":[]},{"Menu1Label":"Documents","Order":"141","Menu1Page":{"slug":"documents-explanation"},"Level2":[]},{"Menu1Label":"Glossary","Order":"142","Menu1Page":{"slug":"glossary"},"Level2":[]},{"Menu1Label":"Graphs","Order":"143","Menu1Page":{"slug":"graphs-explanation"},"Level2":[]},{"Menu1Label":"Immutability","Order":"144","Menu1Page":{"slug":"immutability-explanation"},"Level2":[]},{"Menu1Label":"TerminusDB","Order":"144","Menu1Page":{"slug":"terminusdb-explanation"},"Level2":[]},{"Menu1Label":"Schema Weakening","Order":"145","Menu1Page":{"slug":"what-is-schema-weakening"},"Level2":[]},{"Menu1Label":"WOQL","Order":"146","Menu1Page":{"slug":"woql-explanation"},"Level2":[]}]}]