89 lines
2.7 KiB
Plaintext
Raw Normal View History

2018-10-26 02:13:03 +00:00
component SettingsAccounts(user *arn.User)
SettingsTabs
h1.page-title Accounts settings
.settings
.widget.mountable(data-api="/api/user/" + user.ID)
h3.widget-title
Icon("cubes")
span Accounts
2019-08-31 07:52:42 +00:00
InputText("Accounts.AniList.Nick", user.Accounts.AniList.Nick, "AniList", "Your username on anilist.co", 30)
InputText("Accounts.Kitsu.Nick", user.Accounts.Kitsu.Nick, "Kitsu", "Your username on kitsu.io", 30)
InputText("Accounts.MyAnimeList.Nick", user.Accounts.MyAnimeList.Nick, "MyAnimeList", "Your username on myanimelist.net", 30)
InputText("Accounts.Discord.Nick", user.Accounts.Discord.Nick, "Discord", "Your username on Discord", 30)
2018-10-26 02:42:28 +00:00
.widget.mountable(data-api="/api/user/" + user.ID)
h3.widget-title
Icon("gamepad")
span Games
2019-08-31 07:52:42 +00:00
InputText("Accounts.FinalFantasyXIV.Nick", user.Accounts.FinalFantasyXIV.Nick, "Final Fantasy XIV", "Your character name on FFXIV", 30)
2018-10-26 02:42:28 +00:00
InputSelection("Accounts.FinalFantasyXIV.Server", user.Accounts.FinalFantasyXIV.Server, "Final Fantasy XIV - World", "Your server/world on FFXIV", arn.DataLists["ffxiv-servers"])
2019-08-31 07:52:42 +00:00
InputText("Accounts.Osu.Nick", user.Accounts.Osu.Nick, "Osu", "Your username on osu.ppy.sh", 30)
InputText("Accounts.Overwatch.BattleTag", user.Accounts.Overwatch.BattleTag, "Overwatch", "Your battletag on Overwatch", 30)
2018-10-26 02:42:28 +00:00
2018-10-26 02:13:03 +00:00
.widget.mountable
h3.widget-title
Icon("user-plus")
span Connect
.widget-section.social-account
label(for="google") Google:
a#google.button.social-account-button(href="/auth/google", data-ajax="false")
if user.Accounts.Google.ID != ""
Icon("check")
span Connected
else
Icon("circle-o")
span Not connected
.widget-section.social-account
label(for="facebook") Facebook:
a#facebook.button.social-account-button(href="/auth/facebook", data-ajax="false")
if user.Accounts.Facebook.ID != ""
Icon("check")
span Connected
else
Icon("circle-o")
span Not connected
2019-02-08 20:31:59 +00:00
2019-03-05 06:44:48 +00:00
.widget-section.social-account
label(for="twitter") Twitter:
2019-02-08 20:31:59 +00:00
2019-03-05 06:44:48 +00:00
a#twitter.button.social-account-button(href="/auth/twitter", data-ajax="false")
if user.Accounts.Twitter.ID != ""
Icon("check")
span Connected
else
Icon("circle-o")
span Not connected
2018-10-26 02:13:03 +00:00
.widget.mountable
h3.widget-title
Icon("download")
span Import
ImportLists(user)
if len(user.AnimeList().Items) > 0
.widget.mountable
h3.widget-title
Icon("upload")
span Export
.widget-section
label JSON:
a.button(href="/api/animelist/" + user.ID, target="_blank")
Icon("upload")
2018-10-26 02:42:28 +00:00
span Export anime list as JSON
.widget.mountable
h3.widget-title
Icon("refresh")
span Sync
2019-09-01 07:39:17 +00:00
footer.footer Reserved for upcoming features.