Skip to content

Commit 9fbd4c8

Browse files
committed
chore: remove outdated AI context and hooks examples; update dependencies and add logo assets
1 parent 5ad8d3d commit 9fbd4c8

File tree

7 files changed

+31
-30
lines changed

7 files changed

+31
-30
lines changed

apps/web/public/logo.svg

Lines changed: 12 additions & 0 deletions
Loading

docs/.vitepress/config.mts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export default defineConfig({
1616
nav: [
1717
{ text: 'Guide', link: '/guide/' },
1818
{ text: 'Specifications', link: '/spec/' },
19-
{ text: 'AI Context', link: '/AI_CONTEXT' }
2019
],
2120

2221
// Sidebar Configuration
@@ -36,7 +35,6 @@ export default defineConfig({
3635
items: [
3736
{ text: 'SDK Reference', link: '/guide/sdk-reference' },
3837
{ text: 'Writing Hooks', link: '/guide/logic-hooks' },
39-
{ text: 'Hooks Examples', link: '/guide/logic-hooks-examples' },
4038
{ text: 'Custom Actions', link: '/guide/logic-actions' }
4139
]
4240
}

docs/guide/logic-hooks-examples.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/public/logo.svg

Lines changed: 12 additions & 0 deletions
Loading

examples/project-management/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"build": "tsc && cp src/*.yml dist/",
1212
"test": "echo \"No tests specified\" && exit 0"
1313
},
14-
"peerDependencies": {
15-
"@objectql/core": "^1.1.0"
14+
"dependencies": {
15+
"@objectql/core": "^1.2.0"
1616
},
1717
"devDependencies": {
18-
"@objectql/core": "^1.1.0",
18+
"@objectql/types": "^1.2.0",
1919
"typescript": "^5.3.0"
2020
}
2121
}

examples/project-management/src/projects.action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ObjectQLContext } from '@objectql/core';
1+
import { ObjectQLContext } from '@objectql/types';
22

33
export const listenTo = 'projects';
44

examples/project-management/src/projects.hook.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { HookContext, ObjectQLContext } from '@objectql/core';
1+
import { HookContext, ObjectQLContext } from '@objectql/types';
22

33
// Optional if filename matches object name, but good practice.
44
export const listenTo = 'projects';
55

6-
export async function beforeFind(context: HookContext) {
6+
export async function beforeFind(context: any) {
77
if (!context.ctx.isSystem && context.ctx.userId) {
88
console.log(`[File Hook] Projects: Restricting access for ${context.ctx.userId}`);
99
context.utils.restrict(['owner', '=', context.ctx.userId]);
1010
}
1111
}
1212

13-
export async function beforeCreate(context: HookContext) {
13+
export async function beforeCreate(context: any) {
1414
if (context.doc) {
1515
if (!context.doc.owner && context.ctx.userId) {
1616
console.log(`[File Hook] Projects: Auto-assigning owner ${context.ctx.userId}`);

0 commit comments

Comments
 (0)