From ccd6e860cf9e9b0ddbcb39e05953e981229de8eb Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 23 Mar 2018 21:33:19 +0100 Subject: [PATCH] Removed ajax class (not required anymore) --- layout/sidebar/audioplayer.pixy | 4 ++-- layout/sidebar/sidebar.pixy | 8 ++++---- mixins/AnimeGrid.pixy | 2 +- mixins/AnimeList.pixy | 4 ++-- mixins/Avatar.pixy | 2 +- mixins/Postable.pixy | 2 +- mixins/Quote.pixy | 4 ++-- mixins/SoundTrack.pixy | 8 ++++---- mixins/ThreadLink.pixy | 2 +- pages/admin/admin.pixy | 2 +- pages/admin/purchases.pixy | 2 +- pages/anime/anime.pixy | 14 +++++++------- pages/anime/character.pixy | 4 ++-- pages/anime/episodes.pixy | 2 +- pages/anime/tracks.pixy | 2 +- pages/animelistitem/animelistitem.pixy | 4 ++-- pages/calendar/calendar.pixy | 2 +- pages/character/character.pixy | 2 +- pages/companies/all.pixy | 4 ++-- pages/companies/popular.pixy | 2 +- pages/company/company.pixy | 2 +- pages/compare/animelist.pixy | 4 ++-- pages/dashboard/dashboard.pixy | 8 ++++---- pages/editanime/editanime.pixy | 2 +- pages/episode/episode.pixy | 2 +- pages/explore/explore.pixy | 4 ++-- pages/genre/genre.pixy | 2 +- pages/genres/genres.pixy | 2 +- pages/groups/groups.pixy | 4 ++-- pages/listimport/listimport.pixy | 6 +++--- pages/notifications/notifications.pixy | 2 +- pages/paypal/success.pixy | 2 +- pages/posts/posts.pixy | 2 +- pages/profile/profile.pixy | 10 +++++----- pages/quote/quote.pixy | 6 +++--- pages/quotes/quotes.pixy | 2 +- pages/search/search.pixy | 12 ++++++------ pages/settings/settings.pixy | 4 ++-- pages/soundtrack/soundtrack.pixy | 4 ++-- pages/soundtracks/soundtracks.pixy | 2 +- pages/support/support.pixy | 10 +++++----- pages/terms/terms.pixy | 4 ++-- pages/users/editors.pixy | 2 +- pages/users/osu.pixy | 2 +- pages/users/overwatch.pixy | 2 +- pages/users/users.pixy | 2 +- 46 files changed, 90 insertions(+), 90 deletions(-) diff --git a/layout/sidebar/audioplayer.pixy b/layout/sidebar/audioplayer.pixy index c2e1bcb8..65d5667e 100644 --- a/layout/sidebar/audioplayer.pixy +++ b/layout/sidebar/audioplayer.pixy @@ -1,10 +1,10 @@ component AudioPlayer #audio-player #audio-player-anime-info.hidden - a#audio-player-anime-link.ajax(href="", title="") + a#audio-player-anime-link(href="", title="") img#audio-player-anime-image.lazy.hidden(data-src="", data-webp="true", alt="Anime cover") - a#audio-player-track-title.ajax(href="") + a#audio-player-track-title(href="") #audio-player-controls button#audio-player-prev.audio-player-side-button.action(data-action="playPreviousTrack", data-trigger="click") diff --git a/layout/sidebar/sidebar.pixy b/layout/sidebar/sidebar.pixy index 7d3590fc..c0ed98d5 100644 --- a/layout/sidebar/sidebar.pixy +++ b/layout/sidebar/sidebar.pixy @@ -8,13 +8,13 @@ component Sidebar(user *arn.User) img.user-image.lazy(src=utils.EmptyImage(), data-src="/images/brand/64.png", data-webp="true", alt="Anime Notifier") if user != nil - a.badge.left-badge.ajax(href="/settings", title="Settings") + a.badge.left-badge(href="/settings", title="Settings") RawIcon("cog") - a#notification-icon.badge.right-badge.ajax(href="/notifications", title="Notifications") + a#notification-icon.badge.right-badge(href="/notifications", title="Notifications") RawIcon("bell") - a#notification-count.badge.right-badge.ajax.badge-important.hidden(href="/notifications", title="Notifications") 0 + a#notification-count.badge.right-badge.badge-important.hidden(href="/notifications", title="Notifications") 0 //- Sidebar buttons if user != nil @@ -78,7 +78,7 @@ component Sidebar(user *arn.User) SocialMediaButtons component SidebarButton(name string, target string, icon string) - a.sidebar-link.ajax(href=target, aria-label=name, data-bubble="true") + a.sidebar-link(href=target, aria-label=name, data-bubble="true") .sidebar-button Icon(icon) span.sidebar-text= name diff --git a/mixins/AnimeGrid.pixy b/mixins/AnimeGrid.pixy index f47b8e83..a47a9736 100644 --- a/mixins/AnimeGrid.pixy +++ b/mixins/AnimeGrid.pixy @@ -5,7 +5,7 @@ component AnimeGrid(animes []*arn.Anime, user *arn.User) component AnimeGridScrollable(animes []*arn.Anime, user *arn.User) each anime in animes .anime-grid-cell(data-added=(user != nil && user.AnimeList().Contains(anime.ID))) - a.ajax(href="/anime/" + toString(anime.ID)) + a(href="/anime/" + toString(anime.ID)) img.anime-grid-image.lazy(data-src=anime.ImageLink("medium"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.Romaji) .anime-grid-title .anime-grid-title-text= anime.Title.ByUser(user) diff --git a/mixins/AnimeList.pixy b/mixins/AnimeList.pixy index da1a7bbb..4958897a 100644 --- a/mixins/AnimeList.pixy +++ b/mixins/AnimeList.pixy @@ -10,11 +10,11 @@ component AnimeListScrollable(animeListItems []*arn.AnimeListItem, viewUser *arn each item in animeListItems .anime-list-item.mountable(title=item.Notes, data-api="/api/animelist/" + viewUser.ID + "/field/Items[AnimeID=\"" + item.AnimeID + "\"]") .anime-list-item-image-container - a.anime-list-item-image-link.ajax(href=item.Anime().Link()) + a.anime-list-item-image-link(href=item.Anime().Link()) img.anime-list-item-image.lazy(data-src=item.Anime().ImageLink("small"), data-webp="true", data-color=item.Anime().AverageColor(), alt=item.Anime().Title.ByUser(user)) .anime-list-item-name - a.ajax(href=item.Link(viewUser.Nick))= item.Anime().Title.ByUser(user) + a(href=item.Link(viewUser.Nick))= item.Anime().Title.ByUser(user) .anime-list-item-actions if user != nil && item.Status == arn.AnimeListStatusWatching diff --git a/mixins/Avatar.pixy b/mixins/Avatar.pixy index 0d5a5273..36d9d069 100644 --- a/mixins/Avatar.pixy +++ b/mixins/Avatar.pixy @@ -2,7 +2,7 @@ component Avatar(user *arn.User) CustomAvatar(user, user.Link(), user.Nick) component CustomAvatar(user *arn.User, link string, title string) - a.user.ajax(href=link, title=title) + a.user(href=link, title=title) AvatarNoLink(user) component AvatarNoLink(user *arn.User) diff --git a/mixins/Postable.pixy b/mixins/Postable.pixy index 5d5a6588..7da54759 100644 --- a/mixins/Postable.pixy +++ b/mixins/Postable.pixy @@ -47,7 +47,7 @@ component Postable(post arn.Postable, user *arn.User, highlightAuthorID string) a.post-tool.post-delete.action(data-action="deletePost", data-trigger="click", data-id=post.ID(), title="Delete") Icon("trash") - a.post-tool.post-permalink.ajax(href=post.Link(), title="Permalink") + a.post-tool.post-permalink(href=post.Link(), title="Permalink") Icon("link") //- if type === "Messages" && user && (user.ID === post.authorId || user.ID === post.recipientId) diff --git a/mixins/Quote.pixy b/mixins/Quote.pixy index 41fd341b..b3c572d8 100644 --- a/mixins/Quote.pixy +++ b/mixins/Quote.pixy @@ -5,7 +5,7 @@ component Quote(quote *arn.Quote) component QuoteContent(quote *arn.Quote) .quote-content - a.quotation.ajax(href=quote.Link()) + a.quotation(href=quote.Link()) blockquote!= markdown.Render(quote.Text.English) if quote.CharacterID != "" && quote.Character() != nil @@ -17,4 +17,4 @@ component QuoteFooter(quote *arn.Quote) span posted span.utc-date(data-date=quote.Created) span by - a.ajax(href=quote.Creator().Link())= quote.Creator().Nick + a(href=quote.Creator().Link())= quote.Creator().Nick diff --git a/mixins/SoundTrack.pixy b/mixins/SoundTrack.pixy index 6573c866..6c9ac86b 100644 --- a/mixins/SoundTrack.pixy +++ b/mixins/SoundTrack.pixy @@ -6,7 +6,7 @@ component SoundTrack(track *arn.SoundTrack) component SoundTrackContent(track *arn.SoundTrack) .soundtrack-content if track.MainAnime() != nil - a.soundtrack-anime-link.ajax(href="/anime/" + track.MainAnime().ID) + a.soundtrack-anime-link(href="/anime/" + track.MainAnime().ID) img.soundtrack-anime-image.lazy(data-src=track.MainAnime().ImageLink("medium"), data-webp="true", data-color=track.MainAnime().AverageColor(), alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical) SoundTrackMedia(track) @@ -29,13 +29,13 @@ component SoundTrackMedia(track *arn.SoundTrack) component SoundTrackFooter(track *arn.SoundTrack) .soundtrack-footer if track.Title == "" - a.ajax(href=track.Link() + "/edit") untitled + a(href=track.Link() + "/edit") untitled else - a.ajax(href=track.Link())= track.Title + a(href=track.Link())= track.Title span posted span.utc-date(data-date=track.Created) span by - a.ajax(href=track.Creator().Link())= track.Creator().Nick + " " + a(href=track.Creator().Link())= track.Creator().Nick + " " component ExternalMedia(media *arn.ExternalMedia) iframe.lazy(data-src=media.EmbedLink(), allowfullscreen="allowfullscreen") \ No newline at end of file diff --git a/mixins/ThreadLink.pixy b/mixins/ThreadLink.pixy index 564f7787..cd9ba9b0 100644 --- a/mixins/ThreadLink.pixy +++ b/mixins/ThreadLink.pixy @@ -6,7 +6,7 @@ component ThreadLink(thread *arn.Thread) .thread-content if thread.Sticky != 0 Icon("thumb-tack") - a.thread-link-title.ajax(href="/thread/" + thread.ID)= thread.Title + a.thread-link-title(href="/thread/" + thread.ID)= thread.Title .spacer .thread-reply-count= len(thread.Posts) .thread-icons diff --git a/pages/admin/admin.pixy b/pages/admin/admin.pixy index 5438a46b..f274e0b2 100644 --- a/pages/admin/admin.pixy +++ b/pages/admin/admin.pixy @@ -5,7 +5,7 @@ component AdminTabs Tab("Purchases", "shopping-cart", "/admin/purchases") .corner-buttons - a.button.ajax(href="/editor", aria-label="Editor") + a.button(href="/editor", aria-label="Editor") Icon("pencil") span.tab-text Editor diff --git a/pages/admin/purchases.pixy b/pages/admin/purchases.pixy index e66e02b6..2f4402e7 100644 --- a/pages/admin/purchases.pixy +++ b/pages/admin/purchases.pixy @@ -16,5 +16,5 @@ component GlobalPurchaseHistory(purchases []*arn.Purchase) each purchase in purchases tr.shop-history-item.mountable(data-item-id=purchase.ItemID) td - a.ajax(href=purchase.User().Link())= purchase.User().Nick + a(href=purchase.User().Link())= purchase.User().Nick PurchaseInfo(purchase) \ No newline at end of file diff --git a/pages/anime/anime.pixy b/pages/anime/anime.pixy index 50597592..aef8d619 100644 --- a/pages/anime/anime.pixy +++ b/pages/anime/anime.pixy @@ -42,12 +42,12 @@ component AnimeActions(anime *arn.Anime, listItem *arn.AnimeListItem, user *arn. if user != nil .buttons.anime-actions if user.Role == "editor" || user.Role == "admin" - a.button.mountable.ajax(href=anime.Link() + "/edit", data-mountable-type="footer") + a.button.mountable(href=anime.Link() + "/edit", data-mountable-type="footer") Icon("pencil-square-o") span Edit anime if listItem != nil - a.button.mountable.ajax(href="/+" + user.Nick + "/animelist/anime/" + anime.ID, data-mountable-type="footer") + a.button.mountable(href="/+" + user.Nick + "/animelist/anime/" + anime.ID, data-mountable-type="footer") Icon("pencil") span= listItem.StatusHumanReadable() else @@ -139,7 +139,7 @@ component AnimeLinks(anime *arn.Anime) component AnimeGenres(anime *arn.Anime) .anime-genres each genre in anime.Genres - a.anime-genre.mountable.ajax(href="/genre/" + strings.ToLower(genre), data-mountable-type="footer") + a.anime-genre.mountable(href="/genre/" + strings.ToLower(genre), data-mountable-type="footer") span= genre component AnimeRelations(anime *arn.Anime, user *arn.User) @@ -149,7 +149,7 @@ component AnimeRelations(anime *arn.Anime, user *arn.User) .anime-relations each relation in anime.Relations().Items if relation.Anime() != nil - a.anime-relation.mountable.ajax(href=relation.Anime().Link(), title=relation.Anime().Title.ByUser(user), data-mountable-type="relation") + a.anime-relation.mountable(href=relation.Anime().Link(), title=relation.Anime().Title.ByUser(user), data-mountable-type="relation") img.anime-relation-image.lazy(data-src=relation.Anime().ImageLink("small"), data-webp="true", data-color=relation.Anime().AverageColor(), alt=relation.Anime().Title.ByUser(user)) .anime-relation-type= relation.HumanReadableType() .anime-relation-year @@ -231,7 +231,7 @@ component AnimeInformation(anime *arn.Anime) tr.mountable(data-mountable-type="info") td.anime-info-key Studio: td.anime-info-value - a.ajax(href=company.Link())= company.Name.English + a(href=company.Link())= company.Name.English //- section.anime-section.mountable //- h3.anime-section-name Companies @@ -240,13 +240,13 @@ component AnimeInformation(anime *arn.Anime) //- tr.mountable(data-mountable-type="info") //- td.anime-info-key Producer: //- td.anime-info-value - //- a.ajax(href=company.Link())= company.Name.English + //- a(href=company.Link())= company.Name.English //- each company in anime.Licensors() //- tr.mountable(data-mountable-type="info") //- td.anime-info-key Licensor: //- td.anime-info-value - //- a.ajax(href=company.Link())= company.Name.English + //- a(href=company.Link())= company.Name.English component FriendEntry(friend *arn.User, listItems map[*arn.User]*arn.AnimeListItem) CustomAvatar(friend, friend.Link(), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating") diff --git a/pages/anime/character.pixy b/pages/anime/character.pixy index 7a784fc4..4cd81216 100644 --- a/pages/anime/character.pixy +++ b/pages/anime/character.pixy @@ -1,7 +1,7 @@ component Character(character *arn.Character) - a.character.ajax(href="/character/" + character.ID) + a.character(href="/character/" + character.ID) img.character-image.lazy(data-src=character.Image, alt=character.Name, title=character.Name) component CharacterSmall(character *arn.Character) - a.character.ajax(href="/character/" + character.ID) + a.character(href="/character/" + character.ID) img.character-image.character-image-small.lazy(data-src=character.Image, alt=character.Name, title=character.Name) \ No newline at end of file diff --git a/pages/anime/episodes.pixy b/pages/anime/episodes.pixy index 52f3a0e3..123bf09b 100644 --- a/pages/anime/episodes.pixy +++ b/pages/anime/episodes.pixy @@ -4,7 +4,7 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.AnimeEpisode, user *ar h3.anime-section-name Episodes .episodes each episode in episodes - a.episode.ajax.mountable(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number), data-mountable-type="episode", data-available=episode.Available()) + a.episode.mountable(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number), data-mountable-type="episode", data-available=episode.Available()) .episode-number if episode.Number != -1 span= episode.Number diff --git a/pages/anime/tracks.pixy b/pages/anime/tracks.pixy index aa107bc5..4a6ae1d3 100644 --- a/pages/anime/tracks.pixy +++ b/pages/anime/tracks.pixy @@ -14,4 +14,4 @@ component AnimeTracks(anime *arn.Anime, tracks []*arn.SoundTrack) //- .anime-soundtrack.mountable(data-mountable-type="track") //- .video-container //- iframe.video.lazy(data-src=track.Media[0].EmbedLink(), allowfullscreen="allowfullscreen") - //- a.soundtrack-footer.ajax(href=track.Link())= track.Title \ No newline at end of file + //- a.soundtrack-footer(href=track.Link())= track.Title \ No newline at end of file diff --git a/pages/animelistitem/animelistitem.pixy b/pages/animelistitem/animelistitem.pixy index 125b9692..652c4963 100644 --- a/pages/animelistitem/animelistitem.pixy +++ b/pages/animelistitem/animelistitem.pixy @@ -27,10 +27,10 @@ component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn. InputTextArea("Notes", item.Notes, "Notes", "Your notes") .buttons.mountable - a.ajax.button(href="/+" + viewUser.Nick + "/animelist/" + item.Status) + a.button(href="/+" + viewUser.Nick + "/animelist/" + item.Status) Icon("list") span View collection - a.ajax.button(href=anime.Link()) + a.button(href=anime.Link()) Icon("search-plus") span View anime button.action(data-action="removeAnimeFromCollection", data-trigger="click", data-api="/api/animelist/" + viewUser.ID, data-anime-id=anime.ID, data-nick=viewUser.Nick) diff --git a/pages/calendar/calendar.pixy b/pages/calendar/calendar.pixy index 8acf7afe..e04749af 100644 --- a/pages/calendar/calendar.pixy +++ b/pages/calendar/calendar.pixy @@ -11,7 +11,7 @@ component Calendar(days []*utils.CalendarDay, user *arn.User) h3.weekday-name.mountable(data-mountable-type=day.Name)= day.Name .calendar-entries each entry in day.Entries - a.calendar-entry.mountable.ajax(href=entry.Anime.Link(), data-mountable-type=day.Name, data-added=entry.Added) + a.calendar-entry.mountable(href=entry.Anime.Link(), data-mountable-type=day.Name, data-added=entry.Added) img.calendar-entry-image.lazy(data-src=entry.Anime.ImageLink("small"), data-webp="true", data-color=entry.Anime.AverageColor(), alt=entry.Anime.Title.ByUser(user)) .calendar-entry-info .calendar-entry-title= entry.Anime.Title.ByUser(user) diff --git a/pages/character/character.pixy b/pages/character/character.pixy index a271a304..62356fa4 100644 --- a/pages/character/character.pixy +++ b/pages/character/character.pixy @@ -13,7 +13,7 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime h3 Anime .character-anime each anime in characterAnime - a.character-anime-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user)) + a.character-anime-item(href=anime.Link(), title=anime.Title.ByUser(user)) img.character-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user)) if len(quotes) >0 diff --git a/pages/companies/all.pixy b/pages/companies/all.pixy index b554b4c3..29096f5f 100644 --- a/pages/companies/all.pixy +++ b/pages/companies/all.pixy @@ -11,7 +11,7 @@ component CompaniesIndex(groups [][]*arn.Company, user *arn.User) ul each company in group li - a.ajax(href=company.Link())= company.Name.English + a(href=company.Link())= company.Name.English component CompaniesTabs(user *arn.User) .tabs @@ -25,6 +25,6 @@ component CompaniesTabs(user *arn.User) Icon("plus") span Add company else - a.button.ajax(href="/company/" + user.DraftIndex().CompanyID + "/edit") + a.button(href="/company/" + user.DraftIndex().CompanyID + "/edit") Icon("pencil") span Edit draft \ No newline at end of file diff --git a/pages/companies/popular.pixy b/pages/companies/popular.pixy index 00c2a04d..8ad35d26 100644 --- a/pages/companies/popular.pixy +++ b/pages/companies/popular.pixy @@ -13,7 +13,7 @@ component PopularCompanies(companies []*arn.Company, companyToAnime map[string][ component PopularCompaniesScrollable(companies []*arn.Company, companyToAnime map[string][]*arn.Anime, user *arn.User) each company in companies li.popular-company.mountable - a.popular-company-header.ajax(href=company.Link()) + a.popular-company-header(href=company.Link()) Icon("building") span.popular-company-name= company.Name.English diff --git a/pages/company/company.pixy b/pages/company/company.pixy index 49ff9378..814f2eab 100644 --- a/pages/company/company.pixy +++ b/pages/company/company.pixy @@ -46,7 +46,7 @@ component CompanyAnimes(label string, animes []*arn.Anime, user *arn.User) CompanyAnime(anime, user) component CompanyAnime(anime *arn.Anime, user *arn.User) - a.company-anime-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user)) + a.company-anime-item(href=anime.Link(), title=anime.Title.ByUser(user)) img.company-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user)) component CompanyTabs(company *arn.Company, user *arn.User) diff --git a/pages/compare/animelist.pixy b/pages/compare/animelist.pixy index dffbfef0..96c4639b 100644 --- a/pages/compare/animelist.pixy +++ b/pages/compare/animelist.pixy @@ -19,11 +19,11 @@ component CompareAnimeList(a *arn.User, b *arn.User, countA int, countB int, com each comparison in comparisons tr.anime-list-item.mountable td.anime-list-item-image-container - a.ajax(href=comparison.Anime.Link()) + a(href=comparison.Anime.Link()) img.anime-list-item-image.lazy(data-src=comparison.Anime.ImageLink("small"), data-webp="true", data-color=comparison.Anime.AverageColor(), alt=comparison.Anime.Title.ByUser(user)) td.anime-list-item-name - a.ajax(href=comparison.Anime.Link())= comparison.Anime.Title.ByUser(user) + a(href=comparison.Anime.Link())= comparison.Anime.Title.ByUser(user) td.comparison if comparison.ItemA != nil diff --git a/pages/dashboard/dashboard.pixy b/pages/dashboard/dashboard.pixy index a40b6bd8..db1b10af 100644 --- a/pages/dashboard/dashboard.pixy +++ b/pages/dashboard/dashboard.pixy @@ -9,7 +9,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound if i < len(schedule) .widget-ui-element .widget-ui-element-text - a.schedule-item-link.ajax(href=schedule[i].Anime.Link()) + a.schedule-item-link(href=schedule[i].Anime.Link()) Icon("calendar-o") .schedule-item-title= schedule[i].Anime.Title.ByUser(user) .spacer @@ -24,7 +24,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound h3.widget-title Forums each post in posts - a.widget-ui-element.ajax(href=post.Thread().Link()) + a.widget-ui-element(href=post.Thread().Link()) .widget-ui-element-text Icon(arn.GetForumIcon(post.Thread().Tags[0])) span= post.Thread().Title @@ -43,7 +43,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound for i := 0; i <= 4; i++ if i < len(soundTracks) - a.widget-ui-element.ajax(href=soundTracks[i].Link()) + a.widget-ui-element(href=soundTracks[i].Link()) .widget-ui-element-text Icon("music") if soundTracks[i].Title == "" @@ -88,7 +88,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound for i := 0; i <= 4; i++ if i < len(following) - a.widget-ui-element.ajax(href="/+" + following[i].Nick) + a.widget-ui-element(href="/+" + following[i].Nick) .widget-ui-element-text Icon("address-card") span= following[i].Nick diff --git a/pages/editanime/editanime.pixy b/pages/editanime/editanime.pixy index b1749754..8272bba9 100644 --- a/pages/editanime/editanime.pixy +++ b/pages/editanime/editanime.pixy @@ -1,6 +1,6 @@ component EditAnimeTabs(anime *arn.Anime) .tabs - a.tab.ajax(href=anime.Link()) + a.tab(href=anime.Link()) Icon("tv") span Anime diff --git a/pages/episode/episode.pixy b/pages/episode/episode.pixy index e8695163..1b13b6ee 100644 --- a/pages/episode/episode.pixy +++ b/pages/episode/episode.pixy @@ -2,7 +2,7 @@ component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.Us h1= anime.Title.ByUser(user) .episode-view-image-container - a.ajax(href=anime.Link(), title=anime.Title.ByUser(user)) + a(href=anime.Link(), title=anime.Title.ByUser(user)) img.anime-cover-image.lazy(data-src=anime.ImageLink("large"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user)) h3.episode-view-number= "Episode " + strconv.Itoa(episode.Number) diff --git a/pages/explore/explore.pixy b/pages/explore/explore.pixy index 3067c426..9cc87552 100644 --- a/pages/explore/explore.pixy +++ b/pages/explore/explore.pixy @@ -7,10 +7,10 @@ component ExploreAnime(animeList []*arn.Anime, year string, status string, typ s button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection") RawIcon("eye-slash") - a.button.ajax(href="/explore/color/any/anime", title="View colors") + a.button(href="/explore/color/any/anime", title="View colors") RawIcon("paint-brush") - a.button.ajax(href="/genres", title="View genres") + a.button(href="/genres", title="View genres") RawIcon("clone") h1.page-title Explore diff --git a/pages/genre/genre.pixy b/pages/genre/genre.pixy index f38ce720..ec869c94 100644 --- a/pages/genre/genre.pixy +++ b/pages/genre/genre.pixy @@ -6,7 +6,7 @@ component Genre(genre string, animes []*arn.Anime, user *arn.User) button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection") RawIcon("eye-slash") - a.button.ajax(href="/genres", title="View genres") + a.button(href="/genres", title="View genres") RawIcon("clone") AnimeGrid(animes, user) \ No newline at end of file diff --git a/pages/genres/genres.pixy b/pages/genres/genres.pixy index 647040ab..c976f438 100644 --- a/pages/genres/genres.pixy +++ b/pages/genres/genres.pixy @@ -3,7 +3,7 @@ component Genres(genres []string, genreToAnime map[string]*arn.Anime, user *arn. .genres each genre in genres - a.genre.genre-squared.mountable.ajax(href="/genre/" + strings.ToLower(genre)) + a.genre.genre-squared.mountable(href="/genre/" + strings.ToLower(genre)) .genre-text.front .genre-icon RawIcon(arn.GetGenreIcon(genre)) diff --git a/pages/groups/groups.pixy b/pages/groups/groups.pixy index 90604074..1ba34a1b 100644 --- a/pages/groups/groups.pixy +++ b/pages/groups/groups.pixy @@ -11,13 +11,13 @@ component Groups(groups []*arn.Group, groupsPerPage int, user *arn.User) Icon("plus") span New group else - a.button.ajax(href="/group/" + user.DraftIndex().GroupID + "/edit") + a.button(href="/group/" + user.DraftIndex().GroupID + "/edit") Icon("pencil") span Edit draft #load-more-target.groups each group in groups - a.group.mountable.ajax(href=group.Link()) + a.group.mountable(href=group.Link()) img.group-image.lazy(data-src=group.ImageURL(), alt=group.Name) .group-info diff --git a/pages/listimport/listimport.pixy b/pages/listimport/listimport.pixy index 869e1e2a..e1119d40 100644 --- a/pages/listimport/listimport.pixy +++ b/pages/listimport/listimport.pixy @@ -6,20 +6,20 @@ component ImportLists(user *arn.User) label AniList: .widget-section - a.button.mountable.ajax(href="/import/anilist/animelist") + a.button.mountable(href="/import/anilist/animelist") Icon("download") span Import AniList if user.Accounts.Kitsu.Nick != "" label Kitsu: .widget-section - a.button.mountable.ajax(href="/import/kitsu/animelist") + a.button.mountable(href="/import/kitsu/animelist") Icon("download") span Import Kitsu if user.Accounts.MyAnimeList.Nick != "" label MyAnimeList: .widget-section - a.button.mountable.ajax(href="/import/myanimelist/animelist") + a.button.mountable(href="/import/myanimelist/animelist") Icon("download") span Import MyAnimeList \ No newline at end of file diff --git a/pages/notifications/notifications.pixy b/pages/notifications/notifications.pixy index c3b1f9a2..f981421a 100644 --- a/pages/notifications/notifications.pixy +++ b/pages/notifications/notifications.pixy @@ -21,7 +21,7 @@ component AllNotifications(notifications []*arn.Notification) Notification(notification) .notification-user - a.ajax(href=notification.User().Link())= notification.User().Nick + a(href=notification.User().Link())= notification.User().Nick component Notification(notification *arn.Notification) a.notification(href=notification.Link, target="_blank", data-seen=notification.Seen) diff --git a/pages/paypal/success.pixy b/pages/paypal/success.pixy index 3b20c271..28d119d6 100644 --- a/pages/paypal/success.pixy +++ b/pages/paypal/success.pixy @@ -11,6 +11,6 @@ component PayPalSuccess(payment *arn.PayPalPayment) img.new-payment-thank-you-image(src="/images/elements/thank-you.jpg", alt="Thank you!") .buttons - a.button.ajax(href="/shop") + a.button(href="/shop") Icon("shopping-cart") span Return to the shop \ No newline at end of file diff --git a/pages/posts/posts.pixy b/pages/posts/posts.pixy index 2de3e8b1..9ba16eb3 100644 --- a/pages/posts/posts.pixy +++ b/pages/posts/posts.pixy @@ -2,4 +2,4 @@ component Post(post *arn.Post, user *arn.User) Postable(post.ToPostable(), user, "") .side-note - a.ajax(href=post.Thread().Link())= post.Thread().Title + a(href=post.Thread().Link())= post.Thread().Title diff --git a/pages/profile/profile.pixy b/pages/profile/profile.pixy index e1e44311..3d2b55f0 100644 --- a/pages/profile/profile.pixy +++ b/pages/profile/profile.pixy @@ -7,7 +7,7 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, .profile-watching-list.mountable each item in animeList.Items if item.Status == arn.AnimeListStatusWatching || item.Status == arn.AnimeListStatusCompleted - a.profile-watching-list-item.ajax(href=item.Anime().Link(), title=item.Anime().Title.ByUser(user) + " (" + toString(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")") + a.profile-watching-list-item(href=item.Anime().Link(), title=item.Anime().Title.ByUser(user) + " (" + toString(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")") img.profile-watching-list-item-image.lazy(data-src=item.Anime().ImageLink("small"), data-webp="true", data-color=item.Anime().AverageColor(), alt=item.Anime().Title.ByUser(user)) .footer @@ -97,7 +97,7 @@ component ProfileHead(viewUser *arn.User, user *arn.User, uri string) if viewUser.IsPro() p.profile-field.profile-pro-status - a.ajax(href="/shop", title="PRO user") + a(href="/shop", title="PRO user") Icon("star") span.profile-pro-status-text PRO @@ -113,16 +113,16 @@ component ProfileHead(viewUser *arn.User, user *arn.User, uri string) Icon("user-times") span Unfollow - a.button.profile-action.ajax(href="/+" + viewUser.Nick + "/animelist/watching") + a.button.profile-action(href="/+" + viewUser.Nick + "/animelist/watching") Icon("list") span Anime list if user != nil && user.ID != viewUser.ID - a.button.profile-action.ajax(href="/compare/animelist/" + user.Nick + "/" + viewUser.Nick) + a.button.profile-action(href="/compare/animelist/" + user.Nick + "/" + viewUser.Nick) Icon("exchange") span Compare - a.button.profile-action.ajax(href="/+" + viewUser.Nick + "/recommended/anime") + a.button.profile-action(href="/+" + viewUser.Nick + "/recommended/anime") Icon("archive") span Recomms \ No newline at end of file diff --git a/pages/quote/quote.pixy b/pages/quote/quote.pixy index 899659ee..a78b3f1f 100644 --- a/pages/quote/quote.pixy +++ b/pages/quote/quote.pixy @@ -16,12 +16,12 @@ component QuoteMainColumn(quote *arn.Quote, user *arn.User) span Edited span.utc-date(data-date=quote.Edited) span by - a.ajax(href=quote.EditedByUser().Link())= quote.EditedByUser().Nick + a(href=quote.EditedByUser().Link())= quote.EditedByUser().Nick else span Posted span.utc-date(data-date=quote.Created) span by - a.ajax(href=quote.Creator().Link())= quote.Creator().Nick + a(href=quote.Creator().Link())= quote.Creator().Nick span . component QuoteSideColumn(quote *arn.Quote, user *arn.User) @@ -57,5 +57,5 @@ component QuoteTabs(quote *arn.Quote, user *arn.User) Tab("History", "history", quote.Link() + "/history") component QuoteAnime(anime *arn.Anime, user *arn.User) - a.quote-anime-list-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user)) + a.quote-anime-list-item(href=anime.Link(), title=anime.Title.ByUser(user)) img.quote-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user)) \ No newline at end of file diff --git a/pages/quotes/quotes.pixy b/pages/quotes/quotes.pixy index 4c017c23..cc3d80c8 100644 --- a/pages/quotes/quotes.pixy +++ b/pages/quotes/quotes.pixy @@ -10,7 +10,7 @@ component Quotes(quotes []*arn.Quote, nextIndex int, user *arn.User) Icon("plus") span Add quote else - a.button.ajax(href="/quote/" + user.DraftIndex().QuoteID + "/edit") + a.button(href="/quote/" + user.DraftIndex().QuoteID + "/edit") Icon("pencil") span Edit draft diff --git a/pages/search/search.pixy b/pages/search/search.pixy index df1ebd13..9d03edec 100644 --- a/pages/search/search.pixy +++ b/pages/search/search.pixy @@ -64,7 +64,7 @@ component AnimeSearchResults(animes []*arn.Anime) else .profile-watching-list.anime-search each anime in animes - a.profile-watching-list-item.mountable.ajax(href=anime.Link(), title=anime.Title.Canonical, data-mountable-type="anime") + a.profile-watching-list-item.mountable(href=anime.Link(), title=anime.Title.Canonical, data-mountable-type="anime") img.anime-cover-image.anime-search-result.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.Canonical) component CharacterSearchResults(characters []*arn.Character) @@ -84,7 +84,7 @@ component ForumSearchResults(posts []*arn.Post, threads []*arn.Thread) each thread in threads .forum-search-result.mountable(data-mountable-type="forum") .forum-search-result-header - a.forum-search-result-title.ajax(href=thread.Link())= thread.Title + a.forum-search-result-title(href=thread.Link())= thread.Title if thread.Author().HasNick() .forum-search-result-author= thread.Author().Nick .forum-search-result-sample= thread.Text @@ -92,7 +92,7 @@ component ForumSearchResults(posts []*arn.Post, threads []*arn.Thread) each post in posts .forum-search-result.mountable(data-mountable-type="forum") .forum-search-result-header - a.forum-search-result-title.ajax(href=post.Link(), data-mountable-type="forum")= post.Thread().Title + a.forum-search-result-title(href=post.Link(), data-mountable-type="forum")= post.Thread().Title if post.Author().HasNick() .forum-search-result-author= post.Author().Nick .forum-search-result-sample= post.Text @@ -104,7 +104,7 @@ component SoundTrackSearchResults(tracks []*arn.SoundTrack) ul.soundtrack-search each track in tracks li.mountable(data-mountable-type="track") - a.ajax(href=track.Link())= track.Title + a(href=track.Link())= track.Title span.soundtrack-search-anime= " - " + track.MainAnime().Title.Canonical component CompanySearchResults(companies []*arn.Company) @@ -114,7 +114,7 @@ component CompanySearchResults(companies []*arn.Company) ul.company-search each company in companies li.mountable(data-mountable-type="company") - a.ajax(href=company.Link())= company.Name.English + a(href=company.Link())= company.Name.English component QuoteSearchResults(quotes []*arn.Quote) if len(quotes) == 0 @@ -123,7 +123,7 @@ component QuoteSearchResults(quotes []*arn.Quote) ul.quote-search each quote in quotes li.mountable(data-mountable-type="quote") - a.ajax(href=quote.Link())= quote.Text.English + a(href=quote.Link())= quote.Text.English component UserSearchResults(users []*arn.User) if len(users) == 0 diff --git a/pages/settings/settings.pixy b/pages/settings/settings.pixy index 5b488fec..84041f1f 100644 --- a/pages/settings/settings.pixy +++ b/pages/settings/settings.pixy @@ -210,13 +210,13 @@ component SettingsPro(user *arn.User) span Your PRO account expires in span.utc-date(data-date=user.ProExpires) span . - a.button.ajax(href="/shop") + a.button(href="/shop") Icon("star") span Extend PRO account duration else .widget-section label Would you like to support the site development? - a.button.ajax(href="/support") + a.button(href="/support") Icon("star") span Go PRO diff --git a/pages/soundtrack/soundtrack.pixy b/pages/soundtrack/soundtrack.pixy index 8355bf90..f851366c 100644 --- a/pages/soundtrack/soundtrack.pixy +++ b/pages/soundtrack/soundtrack.pixy @@ -25,7 +25,7 @@ component SoundTrackPage(track *arn.SoundTrack, user *arn.User) .soundtrack-anime-list each anime in track.Anime() - a.soundtrack-anime-list-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user)) + a.soundtrack-anime-list-item(href=anime.Link(), title=anime.Title.ByUser(user)) img.soundtrack-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user)) if len(track.Links) > 0 @@ -54,7 +54,7 @@ component SoundTrackPage(track *arn.SoundTrack, user *arn.User) .tags each tag in track.Tags - a.tag.ajax(href="/soundtracks/tag/" + tag)= tag + a.tag(href="/soundtracks/tag/" + tag)= tag .footer.mountable if track.EditedBy != "" diff --git a/pages/soundtracks/soundtracks.pixy b/pages/soundtracks/soundtracks.pixy index 033b7953..bd2cd10f 100644 --- a/pages/soundtracks/soundtracks.pixy +++ b/pages/soundtracks/soundtracks.pixy @@ -10,7 +10,7 @@ component SoundTracks(tracks []*arn.SoundTrack, nextIndex int, tag string, user Icon("plus") span Add soundtrack else - a.button.ajax(href="/soundtrack/" + user.DraftIndex().SoundTrackID + "/edit") + a.button(href="/soundtrack/" + user.DraftIndex().SoundTrackID + "/edit") Icon("pencil") span Edit draft diff --git a/pages/support/support.pixy b/pages/support/support.pixy index 9d5abba5..5af2d109 100644 --- a/pages/support/support.pixy +++ b/pages/support/support.pixy @@ -61,25 +61,25 @@ component Support(profileLink string, user *arn.User) h1.mountable How does it work? .feature-cards.feature-cards-alternative-color - a.feature-card.mountable.ajax(href="/charge") + a.feature-card.mountable(href="/charge") .feature-card-icon RawIcon("diamond") p.feature-card-text First, you need to charge up the balance on your account. - a.feature-card.mountable.ajax(href="/shop") + a.feature-card.mountable(href="/shop") .feature-card-icon RawIcon("shopping-cart") p.feature-card-text Afterwards, go to the shop and buy the item you like. - a.feature-card.mountable.ajax(href="/inventory") + a.feature-card.mountable(href="/inventory") .feature-card-icon RawIcon("briefcase") p.feature-card-text Lastly, activate the freshly bought item in your inventory. - a.feature-card.mountable.ajax(href=profileLink) + a.feature-card.mountable(href=profileLink) .feature-card-icon RawIcon("user-circle") @@ -88,7 +88,7 @@ component Support(profileLink string, user *arn.User) h1.mountable Let's get down to business! .buttons.support-button-container - a.button.support-button.mountable.ajax(href="/charge") + a.button.support-button.mountable(href="/charge") Icon("heart") span Support us! diff --git a/pages/terms/terms.pixy b/pages/terms/terms.pixy index 0d5a54cd..1c95a425 100644 --- a/pages/terms/terms.pixy +++ b/pages/terms/terms.pixy @@ -22,9 +22,9 @@ component TermsOfService h3.mountable Web crawlers p.mountable span HTML scraping of content is not allowed as we have a public - a.ajax(href="/api") API + a(href="/api") API span covering nearly all the data on the site. Please use the - a.ajax(href="/api") API + a(href="/api") API span instead as this will ensure that only the minimum of required bandwidth will be used. h2.mountable Links to Third-Party Websites diff --git a/pages/users/editors.pixy b/pages/users/editors.pixy index 78652c44..428d18d4 100644 --- a/pages/users/editors.pixy +++ b/pages/users/editors.pixy @@ -14,7 +14,7 @@ component EditorRankingList(users []*arn.User, idToScore map[string]int, url str td= toString(index + 1) + "." td.ranking-user Avatar(user) - a.ajax(href=user.Link())= user.Nick + a(href=user.Link())= user.Nick td.ranking-score= idToScore[user.ID] .footer.mountable diff --git a/pages/users/osu.pixy b/pages/users/osu.pixy index 933eb6d9..e2710e28 100644 --- a/pages/users/osu.pixy +++ b/pages/users/osu.pixy @@ -15,7 +15,7 @@ component OsuRankingList(users []*arn.User, url string) td= toString(index + 1) + "." td.ranking-user Avatar(user) - a.ajax(href=user.Link())= user.Nick + a(href=user.Link())= user.Nick td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp" td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%" \ No newline at end of file diff --git a/pages/users/overwatch.pixy b/pages/users/overwatch.pixy index 9aafaf6e..ab257885 100644 --- a/pages/users/overwatch.pixy +++ b/pages/users/overwatch.pixy @@ -15,7 +15,7 @@ component OverwatchRankingList(users []*arn.User, url string) td= toString(index + 1) + "." td.ranking-user Avatar(user) - a.ajax(href=user.Link())= user.Nick + a(href=user.Link())= user.Nick td.ranking-tier= strings.Title(user.Accounts.Overwatch.Tier) td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR" \ No newline at end of file diff --git a/pages/users/users.pixy b/pages/users/users.pixy index 8d6e462c..bdbb947e 100644 --- a/pages/users/users.pixy +++ b/pages/users/users.pixy @@ -13,7 +13,7 @@ component ProUsers(users []*arn.User, url string) .pro-avatars each user in users - a.profile-image-container.mountable.ajax(href=user.Link()) + a.profile-image-container.mountable(href=user.Link()) ProfileImage(user) .anime-grid-title .anime-grid-title-text= user.Nick