Skip to content

Commit 587c39d

Browse files
committed
works with catalog data
1 parent 639352f commit 587c39d

23 files changed

Lines changed: 18215 additions & 246 deletions

devbox.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.0/.schema/devbox.schema.json",
3+
"packages": ["nodejs@latest"],
4+
"env": {
5+
"DEVBOX_COREPACK_ENABLED": "true"
6+
},
7+
"shell": {
8+
"init_hook": [
9+
"echo 'Welcome to devbox!' > /dev/null"
10+
],
11+
"scripts": {
12+
"test": [
13+
"echo \"Error: no test specified\" && exit 1"
14+
]
15+
}
16+
}
17+
}

devbox.lock

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"github:NixOS/nixpkgs/nixpkgs-unstable": {
5+
"resolved": "github:NixOS/nixpkgs/08fcb0dcb59df0344652b38ea6326a2d8271baff?lastModified=1749401433&narHash=sha256-HXIQzULIG%2FMEUW2Q%2FSs47oE3QrjxvpUX7gUl4Xp6lnc%3D"
6+
},
7+
"nodejs@latest": {
8+
"last_modified": "2025-05-29T08:12:58Z",
9+
"plugin_version": "0.0.2",
10+
"resolved": "github:NixOS/nixpkgs/3866ad91cfc172f08a6839def503d8fc2923c603#nodejs_24",
11+
"source": "devbox-search",
12+
"version": "24.1.0",
13+
"systems": {
14+
"aarch64-darwin": {
15+
"outputs": [
16+
{
17+
"name": "out",
18+
"path": "/nix/store/2q5an9rpdq4vhc5ag04ajxnzxxqsqchq-nodejs-24.1.0",
19+
"default": true
20+
},
21+
{
22+
"name": "dev",
23+
"path": "/nix/store/hb25vqffnqd3hl7glmm1y4n54bmpfppr-nodejs-24.1.0-dev"
24+
},
25+
{
26+
"name": "libv8",
27+
"path": "/nix/store/jw04y4lzw7x0v2yh437s3l6cri5l50vv-nodejs-24.1.0-libv8"
28+
}
29+
],
30+
"store_path": "/nix/store/2q5an9rpdq4vhc5ag04ajxnzxxqsqchq-nodejs-24.1.0"
31+
},
32+
"aarch64-linux": {
33+
"outputs": [
34+
{
35+
"name": "out",
36+
"path": "/nix/store/1ypnf27d1amna71zl7jgjpli4r2xqzx9-nodejs-24.1.0",
37+
"default": true
38+
},
39+
{
40+
"name": "libv8",
41+
"path": "/nix/store/z1cbkwmgw0f94rhvc40v3k8z1rg9zkzf-nodejs-24.1.0-libv8"
42+
},
43+
{
44+
"name": "dev",
45+
"path": "/nix/store/3alphvmg91jin165pj9q5zfk7j40azbg-nodejs-24.1.0-dev"
46+
}
47+
],
48+
"store_path": "/nix/store/1ypnf27d1amna71zl7jgjpli4r2xqzx9-nodejs-24.1.0"
49+
},
50+
"x86_64-darwin": {
51+
"outputs": [
52+
{
53+
"name": "out",
54+
"path": "/nix/store/plga9910l27vbg30ajmdsmccyj2a3pxm-nodejs-24.1.0",
55+
"default": true
56+
},
57+
{
58+
"name": "dev",
59+
"path": "/nix/store/4b8xp5vrd08ca1im5b607x1wwvy4njjx-nodejs-24.1.0-dev"
60+
},
61+
{
62+
"name": "libv8",
63+
"path": "/nix/store/d6cq633qq8jr8liaip97fjwpv9r15ivb-nodejs-24.1.0-libv8"
64+
}
65+
],
66+
"store_path": "/nix/store/plga9910l27vbg30ajmdsmccyj2a3pxm-nodejs-24.1.0"
67+
},
68+
"x86_64-linux": {
69+
"outputs": [
70+
{
71+
"name": "out",
72+
"path": "/nix/store/wnayblhh0555nwfccnzcqkzph52y4yby-nodejs-24.1.0",
73+
"default": true
74+
},
75+
{
76+
"name": "libv8",
77+
"path": "/nix/store/4paqvzbw7jjzvn64liv5wwzc7fdsr7k7-nodejs-24.1.0-libv8"
78+
},
79+
{
80+
"name": "dev",
81+
"path": "/nix/store/8ydr7k53w188y9fhskl7ahl8ibchx7w8-nodejs-24.1.0-dev"
82+
}
83+
],
84+
"store_path": "/nix/store/wnayblhh0555nwfccnzcqkzph52y4yby-nodejs-24.1.0"
85+
}
86+
}
87+
}
88+
}
89+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"devDependencies": {
2222
"@babel/types": "^7.24.0",
2323
"@ldo/cli": "0.0.1-alpha.24",
24+
"@rdfjs/types": "^2.0.1",
2425
"@types/jsonld": "^1.5.14",
2526
"@types/node": "^20.11.25",
2627
"@types/shexj": "^2.1.7",

pnpm-lock.yaml

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/AppListItem.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
<template>
2-
<v-list-item
3-
:title="props.app.name"
4-
:prepend-icon="ldo.applicationIcon(props.app)"
5-
>
2+
<v-list-item :title="props.app.name" :prepend-icon="ldo.applicationIcon(props.app)">
63
</v-list-item>
74
</template>
85

96
<script setup lang="ts">
107
11-
import type { Implementation } from '@/ldo/shapes.typings';
8+
import type { Software } from '@/ldo/shapes.typings';
129
import { useLdo } from '@/ldo'
1310
1411
const props = defineProps<{
15-
app: Implementation
12+
app: Software
1613
}>()
1714
1815
const ldo = useLdo()
19-
16+
2017
</script>

src/components/ApplicationTable.vue

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,35 @@
1111
</tr>
1212
</thead>
1313
<tbody>
14-
<tr
15-
v-for="application of props.applications"
16-
>
14+
<tr v-for="application of props.applications">
1715
<td>
18-
<app-list-item
19-
:app="application"
20-
@click="ldo.show(application)"
21-
>
16+
<app-list-item :app="application" @click="ldo.show(application)">
2217
</app-list-item>
2318
</td>
24-
<v-chip
25-
v-for="scope of application.accesses"
26-
:prepend-icon="ldo.scopeIcon(scope)"
27-
:text="scope.name"
28-
class="scope-chip"
29-
@click="ldo.show(scope)"
30-
></v-chip>
19+
<!--
3120
<td>
21+
<v-chip v-for="scope of application.accesses" :prepend-icon="ldo.scopeIcon(scope)" :text="scope.name"
22+
class="scope-chip" @click="ldo.show(scope)"></v-chip>
3223
</td>
24+
-->
3325
</tr>
3426
</tbody>
3527
</v-table>
3628
</template>
3729
<script setup lang="ts">
38-
import { defineProps } from 'vue';
39-
import { useLdo } from '@/ldo'
40-
import type { Implementation } from '@/ldo/shapes.typings'
30+
import { defineProps } from 'vue';
31+
import { useLdo } from '@/ldo'
32+
import type { Software } from '@/ldo/shapes.typings'
4133
42-
const props = defineProps<{
43-
applications: Implementation[]
44-
}>()
34+
const props = defineProps<{
35+
applications: Software[]
36+
}>()
4537
46-
const ldo = useLdo()
38+
const ldo = useLdo()
4739
4840
</script>
4941
<style>
50-
.scope-chip {
51-
margin-right: 1rem;
52-
}
42+
.scope-chip {
43+
margin-right: 1rem;
44+
}
5345
</style>

src/components/DraftListItem.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
<template>
2-
<v-list-item
3-
:title="props.draft.name"
4-
:prepend-icon="props.icon"
5-
>
2+
<v-list-item :title="props.draft.name" :prepend-icon="props.icon">
63
</v-list-item>
74
</template>
85

96
<script setup lang="ts">
107
11-
import type { Draft } from '@/ldo/shapes.typings';
8+
import type { Specification, CreativeWork } from '@/ldo/shapes.typings';
129
1310
const props = defineProps<{
14-
draft: Draft
11+
draft: Specification | CreativeWork
1512
icon?: string
1613
}>()
17-
14+
1815
</script>

src/components/DraftTable.vue

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,31 @@
1414
</tr>
1515
</thead>
1616
<tbody>
17-
<tr
18-
v-for="draft of props.drafts"
19-
>
17+
<tr v-for="draft of props.drafts">
2018
<td>
2119
{{ ldo.isEditor(draft, person) ? '✅' : '' }}
2220
</td>
2321
<td>
2422
{{ ldo.isAuthor(draft, person) ? '✅' : '' }}
2523
</td>
2624
<td>
27-
<draft-list-item
28-
:draft="draft"
29-
:icon="ldo.draftIcon(draft)"
30-
@click="ldo.show(draft)"
31-
>
25+
<draft-list-item :draft="draft" :icon="ldo.draftIcon(draft)" @click="ldo.show(draft)">
3226
</draft-list-item>
3327
</td>
3428
</tr>
3529
</tbody>
3630
</v-table>
3731
</template>
3832
<script setup lang="ts">
39-
import { defineProps } from 'vue';
40-
import { useLdo } from '@/ldo'
41-
import type { Person, Draft } from '@/ldo/shapes.typings'
33+
import { defineProps } from 'vue';
34+
import { useLdo } from '@/ldo'
35+
import type { Person, Specification, CreativeWork } from '@/ldo/shapes.typings'
4236
43-
const props = defineProps<{
44-
person: Person
45-
drafts: Draft[]
46-
}>()
37+
const props = defineProps<{
38+
person: Person
39+
drafts: (Specification | CreativeWork)[]
40+
}>()
4741
48-
const ldo = useLdo()
42+
const ldo = useLdo()
4943
5044
</script>

src/components/ImplementationTable.vue

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,32 @@
1414
</tr>
1515
</thead>
1616
<tbody>
17-
<tr
18-
v-for="implementation of props.implementations"
19-
>
17+
<tr v-for="implementation of props.implementations">
2018
<td>
2119
{{ ldo.isMaintainer(implementation, person) ? '✅' : '' }}
2220
</td>
2321
<td>
2422
{{ ldo.isContributor(implementation, person) ? '✅' : '' }}
2523
</td>
2624
<td>
27-
<draft-list-item
28-
:draft="implementation"
29-
:icon="ldo.implementationIcon(implementation)"
30-
@click="ldo.show(implementation)"
31-
>
25+
<draft-list-item :draft="implementation" :icon="ldo.implementationIcon(implementation)"
26+
@click="ldo.show(implementation)">
3227
</draft-list-item>
3328
</td>
3429
</tr>
3530
</tbody>
3631
</v-table>
3732
</template>
3833
<script setup lang="ts">
39-
import { defineProps } from 'vue';
40-
import { useLdo } from '@/ldo'
41-
import type { Person, Implementation } from '@/ldo/shapes.typings'
34+
import { defineProps } from 'vue';
35+
import { useLdo } from '@/ldo'
36+
import type { Person, Software } from '@/ldo/shapes.typings'
4237
43-
const props = defineProps<{
44-
person: Person
45-
implementations: Implementation[]
46-
}>()
38+
const props = defineProps<{
39+
person: Person
40+
implementations: Software[]
41+
}>()
4742
48-
const ldo = useLdo()
43+
const ldo = useLdo()
4944
5045
</script>

0 commit comments

Comments
 (0)