ocean-brain 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/client/dist/assets/{Calendar-BJHLksEZ.js → Calendar-DbPut8EU.js} +1 -1
- package/server/client/dist/assets/{Callout-wFx9oCas.js → Callout-DfX-gIUB.js} +1 -1
- package/server/client/dist/assets/{Graph-9piERaNR.js → Graph-yHE9m5fy.js} +1 -1
- package/server/client/dist/assets/{Image.es-Be7par_j.js → Image.es-CtMc7BW4.js} +1 -1
- package/server/client/dist/assets/{Note-CC9ybxXL.js → Note-BECn-AoI.js} +2 -2
- package/server/client/dist/assets/{Plus.es-BKm7uDYu.js → Plus.es-BGVIIQtM.js} +1 -1
- package/server/client/dist/assets/{Reminders-DRxA8v98.js → Reminders-CvEJf0eQ.js} +1 -1
- package/server/client/dist/assets/{Search-BunSQrqv.js → Search-CKZhztuV.js} +1 -1
- package/server/client/dist/assets/{SurfaceCard-FhlC8VSR.js → SurfaceCard-Bnfo5EOl.js} +1 -1
- package/server/client/dist/assets/{Tag-z_crJ5JP.js → Tag-C4oAwjs0.js} +1 -1
- package/server/client/dist/assets/{TagNotes-D7wIJ4jy.js → TagNotes-Rl1ZSJP6.js} +1 -1
- package/server/client/dist/assets/{Trash.es-ByMVwx0d.js → Trash.es-BcwUz2yM.js} +1 -1
- package/server/client/dist/assets/ViewNotes-B9Yc0A87.js +1 -0
- package/server/client/dist/assets/ViewSectionTableRenderer-C5yJBO7C.js +102 -0
- package/server/client/dist/assets/Views-Bqq0pUEE.js +1 -0
- package/server/client/dist/assets/{image.api-B5Qi-Txv.js → image.api-CuGTgzyQ.js} +1 -1
- package/server/client/dist/assets/{index-nYj7BL3a.js → index-B43ulIPo.js} +3 -3
- package/server/client/dist/assets/{index-cHJQCo8V.js → index-BQDR6hIA.js} +1 -1
- package/server/client/dist/assets/{index-Cd81UxEh.css → index-CDjYEIVf.css} +1 -1
- package/server/client/dist/assets/{manage-image-glbtBibn.js → manage-image-Bs4Kmevx.js} +1 -1
- package/server/client/dist/assets/{manage-image-detail-DcZggB1M.js → manage-image-detail-WARala-v.js} +1 -1
- package/server/client/dist/assets/{mcp-BBUpQdS9.js → mcp-C0Z3vKBa.js} +1 -1
- package/server/client/dist/assets/{placeholder-B_qb_qkc.js → placeholder-D080guzn.js} +3 -3
- package/server/client/dist/assets/{properties-CiyQv6Tb.js → properties-DbnmfbT5.js} +1 -1
- package/server/client/dist/assets/trash-D5ZiZfTk.js +1 -0
- package/server/client/dist/assets/{useReminderMutate-CSKliBcc.js → useReminderMutate-h7d_S_X2.js} +2 -2
- package/server/client/dist/index.html +2 -2
- package/server/dist/features/view/graphql/view.type-defs.js +22 -0
- package/server/dist/features/view/graphql/view.type-defs.js.map +1 -1
- package/server/dist/features/view/services/workspace.js +77 -16
- package/server/dist/features/view/services/workspace.js.map +1 -1
- package/server/prisma/schema.prisma +1 -0
- package/server/client/dist/assets/ViewNotes-Duo9XmcJ.js +0 -1
- package/server/client/dist/assets/Views-D4Z_O9Kd.js +0 -1
- package/server/client/dist/assets/trash-CQnj4Rmv.js +0 -1
- package/server/client/dist/assets/view-dashboard-B5fKgvk_.js +0 -99
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import{h as n}from"./index-nYj7BL3a.js";const d=`
|
|
2
|
-
id
|
|
3
|
-
tabId
|
|
4
|
-
title
|
|
5
|
-
displayType
|
|
6
|
-
tagNames
|
|
7
|
-
mode
|
|
8
|
-
propertyFilters {
|
|
9
|
-
key
|
|
10
|
-
name
|
|
11
|
-
valueType
|
|
12
|
-
operator
|
|
13
|
-
value
|
|
14
|
-
}
|
|
15
|
-
sortBy
|
|
16
|
-
sortOrder
|
|
17
|
-
limit
|
|
18
|
-
order
|
|
19
|
-
`;function V(){return n(`query FetchViewWorkspace {
|
|
20
|
-
viewWorkspace {
|
|
21
|
-
activeTabId
|
|
22
|
-
tabs {
|
|
23
|
-
id
|
|
24
|
-
title
|
|
25
|
-
order
|
|
26
|
-
sections {
|
|
27
|
-
${d}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}`)}function I(e){return n(`query FetchViewSection($id: ID!) {
|
|
32
|
-
viewSection(id: $id) {
|
|
33
|
-
${d}
|
|
34
|
-
}
|
|
35
|
-
}`,{id:e})}function w(e,{limit:t=25,offset:i=0}={}){return n(`query FetchViewSectionNotes($id: ID!, $pagination: PaginationInput) {
|
|
36
|
-
viewSectionNotes(id: $id, pagination: $pagination) {
|
|
37
|
-
totalCount
|
|
38
|
-
notes {
|
|
39
|
-
id
|
|
40
|
-
title
|
|
41
|
-
pinned
|
|
42
|
-
tags {
|
|
43
|
-
id
|
|
44
|
-
name
|
|
45
|
-
}
|
|
46
|
-
createdAt
|
|
47
|
-
updatedAt
|
|
48
|
-
properties {
|
|
49
|
-
key
|
|
50
|
-
name
|
|
51
|
-
value
|
|
52
|
-
valueType
|
|
53
|
-
option { id label value color order }
|
|
54
|
-
createdAt
|
|
55
|
-
updatedAt
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}`,{id:e,pagination:{limit:t,offset:i}})}function $(e){return n(`mutation CreateViewTab($title: String!) {
|
|
60
|
-
createViewTab(title: $title) {
|
|
61
|
-
id
|
|
62
|
-
}
|
|
63
|
-
}`,{title:e})}function m(e,t){return n(`mutation UpdateViewTab($id: ID!, $title: String!) {
|
|
64
|
-
updateViewTab(id: $id, title: $title) {
|
|
65
|
-
id
|
|
66
|
-
}
|
|
67
|
-
}`,{id:e,title:t})}function f(e){return n(`mutation DeleteViewTab($id: ID!) {
|
|
68
|
-
deleteViewTab(id: $id)
|
|
69
|
-
}`,{id:e})}function T(e){return n(`mutation SetActiveViewTab($id: ID!) {
|
|
70
|
-
setActiveViewTab(id: $id) {
|
|
71
|
-
activeTabId
|
|
72
|
-
tabs {
|
|
73
|
-
id
|
|
74
|
-
title
|
|
75
|
-
order
|
|
76
|
-
sections {
|
|
77
|
-
${d}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}`,{id:e})}function S(e){return n(`mutation ReorderViewTabs($tabIds: [ID!]!) {
|
|
82
|
-
reorderViewTabs(tabIds: $tabIds) {
|
|
83
|
-
id
|
|
84
|
-
}
|
|
85
|
-
}`,{tabIds:e})}function g(e,t){return n(`mutation CreateViewSection($tabId: ID!, $input: ViewSectionInput!) {
|
|
86
|
-
createViewSection(tabId: $tabId, input: $input) {
|
|
87
|
-
id
|
|
88
|
-
}
|
|
89
|
-
}`,{tabId:e,input:t})}function v(e,t){return n(`mutation UpdateViewSection($id: ID!, $input: ViewSectionInput!) {
|
|
90
|
-
updateViewSection(id: $id, input: $input) {
|
|
91
|
-
id
|
|
92
|
-
}
|
|
93
|
-
}`,{id:e,input:t})}function y(e){return n(`mutation DeleteViewSection($id: ID!) {
|
|
94
|
-
deleteViewSection(id: $id)
|
|
95
|
-
}`,{id:e})}function h(e,t){return n(`mutation ReorderViewSections($tabId: ID!, $sectionIds: [ID!]!) {
|
|
96
|
-
reorderViewSections(tabId: $tabId, sectionIds: $sectionIds) {
|
|
97
|
-
id
|
|
98
|
-
}
|
|
99
|
-
}`,{tabId:e,sectionIds:t})}const D={activeTabId:null,tabs:[]},l=e=>{const t=e.trim();return t?t.startsWith("@")?t:t.startsWith("#")?`@${t.slice(1)}`:`@${t}`:""},c=(e,t,i)=>{if(t===i)return e;const r=e.findIndex(s=>s.id===t),a=e.findIndex(s=>s.id===i);if(r<0||a<0)return e;const o=[...e],[u]=o.splice(r,1);return o.splice(a,0,u),o},A=e=>{const t=e.flatMap(i=>typeof i=="string"?i.split(","):[]);return Array.from(new Set(t.map(l).filter(Boolean)))},W=e=>e.tabs.length===0?null:e.activeTabId?e.tabs.find(t=>t.id===e.activeTabId)??e.tabs[0]??null:e.tabs[0]??null,x=(e,t)=>e.tabs.some(i=>i.id===t)?{...e,activeTabId:t}:e,N=(e,t,i)=>({...e,tabs:c(e.tabs,t,i)}),E=(e,t,i,r)=>({...e,tabs:e.tabs.map(a=>a.id===t?{...a,sections:c(a.sections,i,r)}:a)}),F=e=>e==="or"?"Matches any selected tag":"Matches all selected tags",M=e=>e==="or"?"OR":"AND",b=e=>{switch(e){case"before":return"before";case"after":return"after";case"exists":return"is set";case"notExists":return"is empty";default:return"is"}},q=e=>{const t=b(e.operator);return e.operator==="exists"||e.operator==="notExists"?`${e.name} ${t}`:`${e.name} ${t} ${e.value??""}`.trim()},C=e=>({page:1,sectionId:e.id});export{D as E,q as a,C as b,b as c,F as d,V as e,w as f,M as g,W as h,T as i,S as j,E as k,h as l,$ as m,A as n,f as o,g as p,v as q,N as r,x as s,y as t,m as u,I as v};
|