Skip to content

Commit

Permalink
Rename swapi.dev to swapi.tech
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Mar 12, 2024
1 parent 560440a commit fce860e
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/repl/public/samples/remote-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { on } from '@ember/modifier';
import { RemoteData } from 'reactiveweb/remote-data';
const urlFor = (id) => `https://swapi.dev/api/people/${id}`;
const urlFor = (id) => `https://swapi.tech/api/people/${id}`;
const Person = <template>
{{#let (RemoteData (urlFor @id)) as |request|}}
Expand Down Expand Up @@ -56,4 +56,4 @@ Information about how Resources fit in to the next edition of Ember can be [foun
[mdn-AbortController]: https://developer.mozilla.org/en-US/docs/Web/API/AbortController
[docs-remote-data]: https://ember-resources.pages.dev/modules/util_remote_data
[polaris-reactivity]: https://wycats.github.io/polaris-sketchwork/reactivity.html
[swapi]: https://swapi.dev/
[swapi]: https://swapi.tech/
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { on } from '@ember/modifier';

import { RemoteData } from 'reactiveweb/remote-data';

const urlFor = (id) => `https://swapi.dev/api/people/${id}`;
const urlFor = (id) => `https://swapi.tech/api/people/${id}`;

const Person = <template>
{{#let (RemoteData (urlFor @id)) as |request|}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { on } from '@ember/modifier';

import { RemoteData } from 'reactiveweb/remote-data';

const urlFor = (id) => `https://swapi.dev/api/people/${id}`;
const urlFor = (id) => `https://swapi.tech/api/people/${id}`;

const Person = <template>
{{! Use remote data here }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ Information about how Resources fit in to the next edition of Ember can be [foun
[mdn-AbortController]: https://developer.mozilla.org/en-US/docs/Web/API/AbortController
[docs-remote-data]: https://ember-resources.pages.dev/modules/util_remote_data
[polaris-reactivity]: https://wycats.github.io/polaris-sketchwork/reactivity.html
[swapi]: https://swapi.dev/
[swapi]: https://swapi.tech/
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { RemoteData, remoteData } from 'reactiveweb/remote-data';
import { keepLatest } from 'reactiveweb/keep-latest';

const isEmpty = (x) => !x || x?.length === 0;
const urlFor = (id) => `https://swapi.dev/api/people/${id}`;
const urlFor = (id) => `https://swapi.tech/api/people/${id}`;

const PersonInfo = <template>
<fieldset class="border px-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { RemoteData, remoteData } from 'reactiveweb/remote-data';
import { keepLatest } from 'reactiveweb/keep-latest';

const isEmpty = (x) => !x || x?.length === 0;
const urlFor = (id) => `https://swapi.dev/api/people/${id}`;
const urlFor = (id) => `https://swapi.tech/api/people/${id}`;

const PersonInfo = <template>
<fieldset class="border px-4">
Expand Down
2 changes: 1 addition & 1 deletion apps/tutorial/public/docs/4-logic/5-each-blocks/answer.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let planets = [
<ul>
{{#each planets as |planet|}}
<li>
<a href="https://swapi.dev/api/planets/{{planet.id}}/" target="_blank" rel="noopener noreferrer">
<a href="https://swapi.tech/api/planets/{{planet.id}}/" target="_blank" rel="noopener noreferrer">
{{planet.name}}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion apps/tutorial/public/docs/4-logic/5-each-blocks/prompt.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let planets = [
<ul>
{{! open each block }}
<li>
<a href="https://swapi.dev/api/planets/{{planet.id}}/" target="_blank" rel="noopener noreferrer">
<a href="https://swapi.tech/api/planets/{{planet.id}}/" target="_blank" rel="noopener noreferrer">
{{planet.name}}
</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions apps/tutorial/public/docs/4-logic/5-each-blocks/prose.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Looping over lists of data can be done with an `each` block:
<ul>
{{#each planets as |planet|}}
<li>
<a href='https://swapi.dev/api/planets/{{planet.id}}/' target='_blank'>
<a href='https://swapi.tech/api/planets/{{planet.id}}/' target='_blank'>
{{planet.name}}
</a>
</li>
Expand All @@ -18,7 +18,7 @@ You can get the current index as a second argument as well:
<ul>
{{#each planets as |planet i|}}
<li>
<a href='https://swapi.dev/api/planets/{{planet.id}}/' target='_blank'>
<a href='https://swapi.tech/api/planets/{{planet.id}}/' target='_blank'>
{{i}}
{{planet.name}}
</a>
Expand Down

0 comments on commit fce860e

Please sign in to comment.