Skip to content

Commit

Permalink
Update urls to community components (#5567)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin authored Aug 23, 2024
1 parent c590f85 commit 4872bdc
Show file tree
Hide file tree
Showing 24 changed files with 34 additions and 40 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ objects straight from HTML:
<html>
<head>
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-particle-system-component@1.0.x/dist/aframe-particle-system-component.min.js"></script>
<script src="https://unpkg.com/@c-frame/aframe-particle-system-component@1.1.x/dist/aframe-particle-system-component.min.js"></script>
<script src="https://unpkg.com/aframe-extras.ocean@%5E3.5.x/dist/aframe-extras.ocean.min.js"></script>
<script src="https://unpkg.com/aframe-gradient-sky@1.5.0/dist/gradientsky.min.js"></script>
<script src="https://unpkg.com/aframe-gradient-sky@1.0.4/dist/gradientsky.min.js"></script>
</head>
<body>
<a-scene>
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/building-a-360-image-gallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ need to know the component's npm package name and the path:
<title>360° Image Browser</title>
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-template-component.min.js"></script>
<script src="https://unpkg.com/aframe-layout-component@4.x.x/dist/aframe-layout-component.min.js"></script>
<script src="https://unpkg.com/aframe-layout-component@5.x.x/dist/aframe-layout-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-proxy-event-component.min.jss"></script>

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/building-a-basic-scene.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ First, include the environment component using a script tag after A-Frame:
```html
<head>
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-environment-component/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/aframe-environment-component@1.3.x/dist/aframe-environment-component.min.js"></script>
</head>
```

Expand Down
10 changes: 5 additions & 5 deletions docs/introduction/entity-component-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ For the particle system component, the CDN link we found earlier (at time of
writing) was:

```
https://unpkg.com/aframe-particle-system-component@1.0.9/dist/aframe-particle-system-component.min.js
https://unpkg.com/@c-frame/aframe-particle-system-component@1.1.x/dist/aframe-particle-system-component.min.js
```

Now we can include it into our HTML:
Expand All @@ -420,7 +420,7 @@ Now we can include it into our HTML:
<html>
<head>
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-particle-system-component@1.0.9/dist/aframe-particle-system-component.min.js"></script>
<script src="https://unpkg.com/@c-frame/aframe-particle-system-component@1.1.x/dist/aframe-particle-system-component.min.js"></script>
</head>
<body>
<a-scene>
Expand All @@ -441,7 +441,7 @@ Now we can include it into our HTML:
<html>
<head>
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-particle-system-component@1.0.9/dist/aframe-particle-system-component.min.js"></script>
<script src="https://unpkg.com/@c-frame/aframe-particle-system-component@1.1.x/dist/aframe-particle-system-component.min.js"></script>
</head>
<body>
<a-scene>
Expand Down Expand Up @@ -476,9 +476,9 @@ Registry and using the JSDELIVR CDN. This example can also be viewed in the [A-
<title>Community Components Example</title>
<meta name="description" content="Community Components Example">
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-particle-system-component@a5a8449/dist/aframe-particle-system-component.js"></script>
<script src="https://unpkg.com/@c-frame/aframe-particle-system-component@1.1.x/dist/aframe-particle-system-component.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/aframe-simple-sun-sky@^1.2.2/simple-sun-sky.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@d5f3f8/dist/aframe-extras.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@7.5.0/dist/aframe-extras.min.js"></script>
</head>
<body>
<a-scene>
Expand Down
10 changes: 2 additions & 8 deletions docs/introduction/html-and-primitives.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,14 @@ components.

Let's attach community physics components to primitives. We include the source
for [Don McCurdy's
`aframe-physics-system`](https://github.com/n5ro/aframe-physics-system) and attach
`aframe-physics-system`](https://github.com/c-frame/aframe-physics-system) and attach
the physics components via HTML attributes:

> :warning: **If you are using A-Frame 1.6.0 or later**: [`aframe-physics-system`](https://github.com/donmccurdy/aframe-physics-system)
> and you're having issues, make sure you're using THREE.BufferGeometry, not the
> [now-deprecated THREE.Geometry](https://discourse.threejs.org/t/three-geometry-will-be-removed-from-core-with-r125/22401).
> Recent versions of three.js rename generators such as PlaneBufferGeometry to just [PlaneGeometry](https://threejs.org/docs/#api/en/geometries/PlaneGeometry),
> but support the old name as an alias. More info on [this GitHub issue](https://github.com/n5ro/aframe-physics-system/issues/187).
```html
<html>
<head>
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-physics-system@1.6.0/dist/aframe-physics-system.min.js"></script>
<script src="https://unpkg.com/@c-frame/aframe-physics-system@4.2.2/dist/aframe-physics-system.min.js"></script>
</head>
<body>
<a-scene physics>
Expand Down
6 changes: 3 additions & 3 deletions docs/introduction/interactions-and-controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ hovering:

```html
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@3.0.3/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
<body>
<a-scene>
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"
Expand All @@ -158,7 +158,7 @@ over:

```html
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@3.0.3/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
<body>
<a-scene>
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"
Expand All @@ -181,7 +181,7 @@ properties using A-Frame component dot syntax (i.e.,

```html
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@3.0.3/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
<body>
<a-scene>
<a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4"
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/aframe-logo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>A-Frame Logo</title>
<meta name="description" content="A-Frame Logo - A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@4.2.1/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene xr-mode-ui="enabled: false;"
Expand Down
2 changes: 1 addition & 1 deletion examples/boilerplate/webxr-ar-lighting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script src="../../../dist/aframe-master.js"></script>
<script src="ar-shadow-helper.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<title>AFRame Total WebXR AR Demo</title>
<style>
body {
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/360-gallery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-->
<script src="../../../dist/aframe-master.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-template-component.min.js"></script>
<script src="https://unpkg.com/aframe-layout-component@4.x.x/dist/aframe-layout-component.min.js"></script>
<script src="https://unpkg.com/aframe-layout-component@5.x.x/dist/aframe-layout-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-proxy-event-component.min.jss"></script>

Expand Down
6 changes: 3 additions & 3 deletions examples/docs/community-components/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<script src="https://aframe.io/releases/<release_number>/aframe.min.js"></script>
-->
<script src="../../../dist/aframe-master.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-particle-system-component@a5a8449/dist/aframe-particle-system-component.js"></script>
<script src="https://cdn.jsdelivr.net/npm/aframe-simple-sun-sky@^1.2.2/simple-sun-sky.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@d5f3f8/dist/aframe-extras.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-particle-system-component@1.1.4/dist/aframe-particle-system-component.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/simple-sun-sky.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@7.5.0/dist/aframe-extras.min.js"></script>
</head>
<body>
<a-scene>
Expand Down
2 changes: 1 addition & 1 deletion examples/mixed-reality/watch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="description" content="Hand Menu (Mixed Reality) • A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="../../js/info-message.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="time.js"></script>
<script src="button.js"></script>
<script src="hand-menu.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/anime-UI/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Anime UI</title>
<meta name="description" content="Anime UI — A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@4.2.1/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene renderer="colorManagement: true;" xr-mode-ui="XRMode: xr">
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/dynamic-lights/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="description" content="Dynamic Lights - A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-randomizer-components.min.js"></script>
<script src="https://unpkg.com/[email protected].1/dist/aframe-entity-generator-component.min.js"></script>
<script src="https://unpkg.com/[email protected].2/dist/aframe-entity-generator-component.min.js"></script>
<script>
AFRAME.registerComponent('random-material', {
init: function () {
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/hand-tracking-grab-controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="../../js/spatial-ui/spatial-modal.js"></script>
<script src="../../js/spatial-ui/spatial-hero-image.js"></script>
<script src="../../js/info-message.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="hover.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/hand-tracking/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="description" content="Hand Tracking! • A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="../../js/info-message.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="pinchable.js"></script>
<script src="color-change.js"></script>
<script src="slider.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/link-traversal/egypt.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script src="js/components/aframe-tooltip-component.js"></script>
<script src="js/components/camera-position.js"></script>
<script src="js/components/link-controls.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="../../js/info-message.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/link-traversal/forest.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script src="js/components/aframe-tooltip-component.js"></script>
<script src="js/components/camera-position.js"></script>
<script src="js/components/link-controls.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="../../js/info-message.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/link-traversal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script src="js/components/aframe-tooltip-component.js"></script>
<script src="js/components/camera-position.js"></script>
<script src="js/components/link-controls.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="../../js/info-message.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/link-traversal/japan.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script src="js/components/aframe-tooltip-component.js"></script>
<script src="js/components/camera-position.js"></script>
<script src="js/components/link-controls.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="../../js/info-message.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/tracked-controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="components/grab.js"></script>
<script src="components/ground.js"></script>
<script src="shaders/skyGradient.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@4.0.1/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Laser input UI</title>
<meta name="description" content="Laser input UI • A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="../../js/info-message.js"></script>
<script src="highlight.js"></script>
<script src="info-panel.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion examples/test/cursor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Cursor</title>
<meta name="description" content="Cursor - A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@4.1.2/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene background="color: #FBE0D8">
Expand Down
2 changes: 1 addition & 1 deletion examples/test/embedded-cursor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Embedded Cursor</title>
<meta name="description" content="Embedded Cursor - A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@4.1.2/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
<style type="text/css">
a-scene{
width: 50vw;
Expand Down
2 changes: 1 addition & 1 deletion examples/test/layer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Compositor Layer Example • A-Frame</title>
<meta name="description" content="Hello, World! • A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/[email protected].x/dist/aframe-environment-component.min.js"></script>
<script src="page-turn.js"></script>
<script src="toggle-layer.js"></script>
<script src="button.js"></script>
Expand Down

0 comments on commit 4872bdc

Please sign in to comment.