Skip to content

Commit

Permalink
maintenance: Switch from unpkg.com to jsdelivr.net
Browse files Browse the repository at this point in the history
  • Loading branch information
mrxz committed Mar 28, 2024
1 parent af79ffe commit ded6e31
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion 3dof/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Checkout the example: [Online Demo](https://aframe-components.fern.solutions/3do
## Usage
Load the script from [npm](https://www.npmjs.com/package/@fern-solutions/aframe-3dof) or add the following script tag:
```HTML
<script src="https://unpkg.com/@fern-solutions/aframe-3dof/dist/3dof.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-3dof/dist/3dof.umd.min.js"></script>
```

The `3dof` component can be added to any `a-scene` element as follows:
Expand Down
2 changes: 1 addition & 1 deletion 3dof/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Fern A-Frame Components | 3DoF</title>
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
<script type='text/javascript' src='https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js?ver=6.3.1' id='aframe-event-js'></script>
<script type='text/javascript' src='https://cdn.jsdelivr.net/npm/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js?ver=6.3.1' id='aframe-event-js'></script>
<script src="/js/3dof.umd.min.js"></script>
<script>
// System to ensure any tracked controls uses the viewer references space
Expand Down
2 changes: 1 addition & 1 deletion effekseer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The setup requires a couple of libraries to be loaded before the component is lo
<!-- (Optional) Zip.js for loading .efkpkg files, without this you will only be able to load .efk files -->
<script src="https://cdn.jsdelivr.net/npm/@zip.js/zip.js/dist/zip.min.js"></script>
<!-- This effekseer component -->
<script src="https://unpkg.com/@fern-solutions/aframe-effekseer/dist/aframe-effekseer.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-effekseer/dist/aframe-effekseer.umd.min.js"></script>
```

The `effekseer` system needs to be configured on the `<a-scene>` to load the effekseer wasm:
Expand Down
2 changes: 1 addition & 1 deletion extra-stats/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Checkout the example: [Online Demo](https://aframe-components.fern.solutions/ext
## Usage
Load the script from [npm](https://www.npmjs.com/package/@fern-solutions/aframe-extra-stats) or add the following script tag:
```HTML
<script src="https://unpkg.com/@fern-solutions/aframe-extra-stats/dist/extra-stats.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-extra-stats/dist/extra-stats.umd.min.js"></script>
```

The `extra-stats` component should be added to an `<a-scene>` and is intended to **_replace_** the `stats` component. Make sure to only add one or the other to the `<a-scene>`. Example:
Expand Down
2 changes: 1 addition & 1 deletion fix-fog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Checkout the example: [Online Demo](https://aframe-components.fern.solutions/fix
## Usage
Load the script from [npm](https://www.npmjs.com/package/@fern-solutions/aframe-fix-fog) or add the following script tag:
```HTML
<script src="https://unpkg.com/@fern-solutions/aframe-fix-fog/dist/fix-fog.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-fix-fog/dist/fix-fog.umd.min.js"></script>
```

That's all, it will automatically update the shader chunks :-)
2 changes: 1 addition & 1 deletion highlight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Checkout the example: [Online Demo](https://aframe-components.fern.solutions/hig
## Usage
Load the script from [npm](https://www.npmjs.com/package/@fern-solutions/aframe-highlight) or add the following script tag:
```HTML
<script src="https://unpkg.com/@fern-solutions/aframe-highlight/dist/highlight.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-highlight/dist/highlight.umd.min.js"></script>
```

The `highlight` component can be attached to any object:
Expand Down
2 changes: 1 addition & 1 deletion hud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Checkout the example: [Online Demo](https://aframe-components.fern.solutions/hud
## Usage
Load the script from [npm](https://www.npmjs.com/package/@fern-solutions/aframe-hud) or add the following script tag:
```HTML
<script src="https://unpkg.com/@fern-solutions/aframe-hud/dist/hud.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-hud/dist/hud.umd.min.js"></script>
```

The `a-hud` and `a-hud-element` primitives can be used as children of `<a-camera>` as follows:
Expand Down
2 changes: 1 addition & 1 deletion mirror/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Checkout the example: [Online Demo](https://aframe-components.fern.solutions/mir
## Usage
Load the script from [npm](https://www.npmjs.com/package/@fern-solutions/aframe-mirror) or add the following script tag:
```HTML
<script src="https://unpkg.com/@fern-solutions/aframe-mirror/dist/mirror.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-mirror/dist/mirror.umd.min.js"></script>
```

The `a-mirror` primitive can be added to your scene as follows:
Expand Down
4 changes: 2 additions & 2 deletions mirror/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<title>Fern A-Frame Components | Mirror</title>
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-locomotion@0.2.0/dist/aframe-locomotion.umd.min.js"></script>
<script src="https://unpkg.com/aframe-environment-component@1.3.4/dist/aframe-environment-component.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/aframe-locomotion@0.2.0/dist/aframe-locomotion.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/aframe-environment-component@1.3.4/dist/aframe-environment-component.min.js"></script>
<script src="/js/mirror.umd.min.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion screen-fade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Checkout the example: [Online Demo](https://aframe-components.fern.solutions/scr
## Usage
Load the script from [npm](https://www.npmjs.com/package/@fern-solutions/aframe-screen-fade) or add the following script tag:
```HTML
<script src="https://unpkg.com/@fern-solutions/aframe-screen-fade/dist/screen-fade.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-screen-fade/dist/screen-fade.umd.min.js"></script>
```

The `screen-fade` component can be attached to the `<a-camera>` as follows:
Expand Down
2 changes: 1 addition & 1 deletion sky-background/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Checkout the example: [Online Demo](https://aframe-components.fern.solutions/sky
## Usage
Load the script from [npm](https://www.npmjs.com/package/@fern-solutions/aframe-sky-background) or add the following script tag:
```HTML
<script src="https://unpkg.com/@fern-solutions/aframe-sky-background/dist/sky-background.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fern-solutions/aframe-sky-background/dist/sky-background.umd.min.js"></script>
```

The `<a-sky-background>` primitive can be used as follows:
Expand Down

0 comments on commit ded6e31

Please sign in to comment.