From b43c214fcc8637060245e7aef8203818da2c9058 Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Thu, 6 Jun 2024 08:36:51 -0700 Subject: [PATCH] about and music routes now load with spinners, as well as the components they load --- .../{gh-commits.hbs => gh-commits/index.hbs} | 16 ++++++++-------- .../{gh-commits.js => gh-commits/index.js} | 0 app/components/gh-commits/loading.hbs | 8 ++++++++ .../{song-list.hbs => song-list/index.hbs} | 2 +- .../{song-list.js => song-list/index.js} | 0 app/components/song-list/loading.hbs | 1 + app/routes/about.js | 5 ----- app/templates/about-loading.hbs | 5 ++++- app/templates/about.hbs | 5 +++-- app/templates/music-loading.hbs | 5 ++++- app/templates/music.hbs | 2 +- config/icons.js | 1 + 12 files changed, 31 insertions(+), 19 deletions(-) rename app/components/{gh-commits.hbs => gh-commits/index.hbs} (52%) rename app/components/{gh-commits.js => gh-commits/index.js} (100%) create mode 100644 app/components/gh-commits/loading.hbs rename app/components/{song-list.hbs => song-list/index.hbs} (95%) rename app/components/{song-list.js => song-list/index.js} (100%) create mode 100644 app/components/song-list/loading.hbs diff --git a/app/components/gh-commits.hbs b/app/components/gh-commits/index.hbs similarity index 52% rename from app/components/gh-commits.hbs rename to app/components/gh-commits/index.hbs index 6364cd1..bf28dad 100644 --- a/app/components/gh-commits.hbs +++ b/app/components/gh-commits/index.hbs @@ -3,15 +3,15 @@ {{#if @commits}} -{{else}} + {{else}}

{{t "general.noneFound" items="commits"}}

-{{/if}} + {{/if}} \ No newline at end of file diff --git a/app/components/gh-commits.js b/app/components/gh-commits/index.js similarity index 100% rename from app/components/gh-commits.js rename to app/components/gh-commits/index.js diff --git a/app/components/gh-commits/loading.hbs b/app/components/gh-commits/loading.hbs new file mode 100644 index 0000000..edaa439 --- /dev/null +++ b/app/components/gh-commits/loading.hbs @@ -0,0 +1,8 @@ +
+

{{if @title @title (t "components.headGhCommits")}}

+ {{#if @commits}} +

{{t "general.loading" items="commits"}}

+ {{else}} +

{{t "general.noneFound" items="commits"}}

+ {{/if}} +
\ No newline at end of file diff --git a/app/components/song-list.hbs b/app/components/song-list/index.hbs similarity index 95% rename from app/components/song-list.hbs rename to app/components/song-list/index.hbs index a62d76e..1496291 100644 --- a/app/components/song-list.hbs +++ b/app/components/song-list/index.hbs @@ -1,5 +1,5 @@ {{#if this.currentlyLoading}} - {{t "general.loading"}} + {{t "general.loading" items="songs"}} {{else}} {{#if @songs}}