Skip to content

Commit 70d1c18

Browse files
committed
changed curated to offical
1 parent 5b49f5f commit 70d1c18

2 files changed

Lines changed: 25 additions & 25 deletions

File tree

packages/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<title>Package Registry — BasisVR</title>
7-
<meta name="description" content="Built-in, curated, and community packages for BasisVR — install them straight from the Basis Package Manager." />
7+
<meta name="description" content="Built-in, official, and community packages for BasisVR — install them straight from the Basis Package Manager." />
88
<meta name="theme-color" content="#ef1237" media="(prefers-color-scheme: light)">
99
<meta name="theme-color" content="#100f27" media="(prefers-color-scheme: dark)">
1010
<meta name="color-scheme" content="light dark" />
@@ -85,7 +85,7 @@ <h1 class="mt-3 text-4xl font-extrabold sm:text-5xl">
8585
<span class="bg-gradient-to-r from-brand to-purple-600 bg-clip-text text-transparent">Find packages for Basis</span>
8686
</h1>
8787
<p class="mt-4 text-base text-gray-600 dark:text-gray-300">
88-
Built-in, curated, and community add-ons for Basis. Clone the Basis project with the
88+
Built-in, official, and community add-ons for Basis. Clone the Basis project with the
8989
<a href="https://github.com/BasisVR/BasisPackageManager" target="_blank" class="text-brand hover:underline">Basis Package Manager</a>,
9090
then install these — hosted on GitHub or GitLab.
9191
</p>
@@ -166,8 +166,8 @@ <h4 class="mb-2 text-xs font-semibold uppercase tracking-wide text-gray-400">Bun
166166
// Only ever put http/https links in an href — an escaped "javascript:…" is still a clickable script.
167167
const safeUrl = u => { try { const x = new URL(u, location.href); return (x.protocol==='http:'||x.protocol==='https:') ? x.href : '#'; } catch { return '#'; } };
168168
const hostOf = p => { const u=(p.repoUrl||p.gitUrl||'').toLowerCase(); return u.includes('gitlab')?'GitLab':u.includes('github')?'GitHub':''; };
169-
// curated = hosted under the Basis org (github.com/BasisVR/…); anything else is community.
170-
const deriveSource = (repoUrl, gitUrl) => { const m=(repoUrl||gitUrl||'').toLowerCase().match(/github\.com[/:]+([^/?#]+)/); return (m && m[1]==='basisvr') ? 'curated' : 'community'; };
169+
// official = hosted under the Basis org (github.com/BasisVR/…); anything else is community.
170+
const deriveSource = (repoUrl, gitUrl) => { const m=(repoUrl||gitUrl||'').toLowerCase().match(/github\.com[/:]+([^/?#]+)/); return (m && m[1]==='basisvr') ? 'official' : 'community'; };
171171
// The Unity UPM revision from a git URL (#tag / #commit / #branch); HEAD when none.
172172
const refOf = u => { const m=(u||'').match(/#(.+)$/); return m ? m[1].trim() : 'HEAD'; };
173173
// A repo-relative sub-path from ?path= (Unity allows a leading slash), normalised with a trailing /.
@@ -227,10 +227,10 @@ <h4 class="mb-2 text-xs font-semibold uppercase tracking-wide text-gray-400">Bun
227227
}
228228
const fmtNum = n => n>=1e9?(n/1e9).toFixed(1).replace(/\.0$/,'')+'B':n>=1e6?(n/1e6).toFixed(1).replace(/\.0$/,'')+'M':n>=1e3?(n/1e3).toFixed(1).replace(/\.0$/,'')+'K':''+n;
229229
const badgeCls = s => s==='built-in' ? 'bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 ring-1 ring-emerald-500/30'
230-
: s==='curated' ? 'bg-brand/15 text-brand ring-1 ring-brand/30'
230+
: s==='official' ? 'bg-brand/15 text-brand ring-1 ring-brand/30'
231231
: s==='community' ? 'bg-purple-500/15 text-purple-600 dark:text-purple-400 ring-1 ring-purple-500/30'
232232
: 'bg-gray-500/15 text-gray-500 ring-1 ring-gray-500/20';
233-
const dotCls = k => k==='built-in'?'bg-emerald-500':k==='curated'?'bg-brand':k==='community'?'bg-purple-500':'bg-gray-400';
233+
const dotCls = k => k==='built-in'?'bg-emerald-500':k==='official'?'bg-brand':k==='community'?'bg-purple-500':'bg-gray-400';
234234
// Package image is a self-hosted path (icons/<id>.png) or null → fall back to the emoji icon.
235235
const imgOrIcon = p => p.image
236236
? `<img src="${esc(p.image)}" alt="" loading="lazy" referrerpolicy="no-referrer" class="h-full w-full object-cover" onerror="this.replaceWith(document.createTextNode('📦'))">`
@@ -340,7 +340,7 @@ <h4 class="mb-2 text-xs font-semibold uppercase tracking-wide text-gray-400">Bun
340340
const sources = [
341341
{key:'all',label:'All packages',count:all.length},
342342
{key:'built-in',label:'Built-in',count:bySource('built-in')},
343-
{key:'curated',label:'Curated',count:bySource('curated')},
343+
{key:'official',label:'Official',count:bySource('official')},
344344
{key:'community',label:'Community',count:bySource('community')},
345345
];
346346
const chip = (active) => 'flex w-full items-center justify-between rounded-xl px-3 py-2 text-sm transition '
@@ -640,7 +640,7 @@ <h2 class="text-xl font-bold">${esc(b.name)}</h2>
640640
</div>
641641
<div class="grid gap-4 sm:grid-cols-2">
642642
<label class="${SUB_field}"><span class="${SUB_label}">Source (auto)</span>
643-
<div class="${SUB_input} flex items-center justify-between"><span id="srcAuto" class="font-semibold">${src}</span><span id="srcHint" class="text-xs text-gray-400">${src==='curated'?'under github.com/BasisVR':'hosted elsewhere'}</span></div></label>
643+
<div class="${SUB_input} flex items-center justify-between"><span id="srcAuto" class="font-semibold">${src}</span><span id="srcHint" class="text-xs text-gray-400">${src==='official'?'under github.com/BasisVR':'hosted elsewhere'}</span></div></label>
644644
<label class="${SUB_field}"><span class="${SUB_label}">Version</span><input name="version" class="${SUB_input}" value="${esc(p.version||'')}" placeholder="1.0.0"></label>
645645
</div>
646646
<label class="${SUB_field}"><span class="${SUB_label}">Git URL (UPM) *</span><input name="gitUrl" required class="${SUB_input}" value="${esc(submitState.git)}"></label>
@@ -687,7 +687,7 @@ <h2 class="text-xl font-bold">${esc(b.name)}</h2>
687687
const upd = () => {
688688
const s = deriveSource(f.elements.repoUrl.value, f.elements.gitUrl.value);
689689
document.getElementById('srcAuto').textContent = s;
690-
document.getElementById('srcHint').textContent = s==='curated' ? 'under github.com/BasisVR' : 'hosted elsewhere';
690+
document.getElementById('srcHint').textContent = s==='official' ? 'under github.com/BasisVR' : 'hosted elsewhere';
691691
updImg();
692692
};
693693
f.elements.gitUrl.oninput = upd; f.elements.repoUrl.oninput = upd; f.elements.image.oninput = updImg;

packages/packages.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"knobs",
4040
"levers"
4141
],
42-
"source": "curated",
42+
"source": "official",
4343
"gitUrl": "https://github.com/BasisVR/BasisSnapControls.git",
4444
"repoUrl": "https://github.com/BasisVR/BasisSnapControls",
4545
"unity": "6000.0",
@@ -65,7 +65,7 @@
6565
"avatar",
6666
"tools"
6767
],
68-
"source": "curated",
68+
"source": "official",
6969
"gitUrl": "https://github.com/BasisVR/BasisAvatarRecorder.git",
7070
"repoUrl": "https://github.com/BasisVR/BasisAvatarRecorder",
7171
"unity": "6000.0",
@@ -91,7 +91,7 @@
9191
"bug-report",
9292
"tools"
9393
],
94-
"source": "curated",
94+
"source": "official",
9595
"gitUrl": "https://github.com/BasisVR/BasisExceptionReporting.git",
9696
"repoUrl": "https://github.com/BasisVR/BasisExceptionReporting",
9797
"unity": "6000.0",
@@ -116,7 +116,7 @@
116116
"menu",
117117
"networking"
118118
],
119-
"source": "curated",
119+
"source": "official",
120120
"gitUrl": "https://github.com/BasisVR/BasisServersProvider.git",
121121
"repoUrl": "https://github.com/BasisVR/BasisServersProvider",
122122
"unity": "6000.0",
@@ -141,7 +141,7 @@
141141
"image",
142142
"pickup"
143143
],
144-
"source": "curated",
144+
"source": "official",
145145
"gitUrl": "https://github.com/BasisVR/BasisImagePickup.git",
146146
"repoUrl": "https://github.com/BasisVR/BasisImagePickup",
147147
"unity": "6000.0",
@@ -166,7 +166,7 @@
166166
"networking",
167167
"physics"
168168
],
169-
"source": "curated",
169+
"source": "official",
170170
"gitUrl": "https://github.com/BasisVR/BasisVehicles.git",
171171
"repoUrl": "https://github.com/BasisVR/BasisVehicles",
172172
"unity": "6000.0",
@@ -192,7 +192,7 @@
192192
"prefabs",
193193
"scenes"
194194
],
195-
"source": "curated",
195+
"source": "official",
196196
"gitUrl": "https://github.com/BasisVR/BasisExamples.git",
197197
"repoUrl": "https://github.com/BasisVR/BasisExamples",
198198
"unity": "6000.0",
@@ -217,7 +217,7 @@
217217
"streaming",
218218
"player"
219219
],
220-
"source": "curated",
220+
"source": "official",
221221
"gitUrl": "https://github.com/BasisVR/BasisMediaPlayer.git",
222222
"repoUrl": "https://github.com/BasisVR/BasisMediaPlayer",
223223
"unity": "6000.0",
@@ -242,7 +242,7 @@
242242
"youtube",
243243
"integration"
244244
],
245-
"source": "curated",
245+
"source": "official",
246246
"gitUrl": "https://github.com/BasisVR/BasisYtDlpIntegration.git",
247247
"repoUrl": "https://github.com/BasisVR/BasisYtDlpIntegration",
248248
"unity": "6000.0",
@@ -268,7 +268,7 @@
268268
"audio",
269269
"reactive"
270270
],
271-
"source": "curated",
271+
"source": "official",
272272
"gitUrl": "https://github.com/BasisVR/BasisAudioLinkIntegration.git",
273273
"repoUrl": "https://github.com/BasisVR/BasisAudioLinkIntegration",
274274
"unity": "6000.0",
@@ -294,7 +294,7 @@
294294
"openxr",
295295
"tracking"
296296
],
297-
"source": "curated",
297+
"source": "official",
298298
"gitUrl": "https://github.com/BasisVR/BasisOpenXR.git",
299299
"repoUrl": "https://github.com/BasisVR/BasisOpenXR",
300300
"unity": "6000.0",
@@ -318,7 +318,7 @@
318318
"vr",
319319
"assets"
320320
],
321-
"source": "curated",
321+
"source": "official",
322322
"gitUrl": "https://github.com/BasisVR/BasisVisualTrackers.git",
323323
"repoUrl": "https://github.com/BasisVR/BasisVisualTrackers",
324324
"unity": "6000.0",
@@ -343,7 +343,7 @@
343343
"openvr",
344344
"steamvr"
345345
],
346-
"source": "curated",
346+
"source": "official",
347347
"gitUrl": "https://github.com/BasisVR/BasisOpenVR.git",
348348
"repoUrl": "https://github.com/BasisVR/BasisOpenVR",
349349
"unity": "6000.0",
@@ -368,7 +368,7 @@
368368
"steamvr",
369369
"dependency"
370370
],
371-
"source": "curated",
371+
"source": "official",
372372
"gitUrl": "https://github.com/BasisVR/BasisSteamVR.git",
373373
"repoUrl": "https://github.com/BasisVR/BasisSteamVR",
374374
"unity": "6000.0",
@@ -420,7 +420,7 @@
420420
"interpreter",
421421
"dependency"
422422
],
423-
"source": "curated",
423+
"source": "official",
424424
"gitUrl": "https://github.com/BasisVR/BasisCilbox.git",
425425
"repoUrl": "https://github.com/BasisVR/BasisCilbox",
426426
"unity": "6000.0",
@@ -446,7 +446,7 @@
446446
"urp",
447447
"dependency"
448448
],
449-
"source": "curated",
449+
"source": "official",
450450
"gitUrl": "https://github.com/BasisVR/BasisVolumetricFog.git",
451451
"repoUrl": "https://github.com/BasisVR/BasisVolumetricFog",
452452
"unity": "6000.0",

0 commit comments

Comments
 (0)