78 lines
2.4 KiB
Plaintext
78 lines
2.4 KiB
Plaintext
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
|
|
|
|
InputText("Accounts.AniList.Nick", user.Accounts.AniList.Nick, "AniList", "Your username on anilist.co")
|
|
InputText("Accounts.Kitsu.Nick", user.Accounts.Kitsu.Nick, "Kitsu", "Your username on kitsu.io")
|
|
InputText("Accounts.MyAnimeList.Nick", user.Accounts.MyAnimeList.Nick, "MyAnimeList", "Your username on myanimelist.net")
|
|
InputText("Accounts.Discord.Nick", user.Accounts.Discord.Nick, "Discord", "Your username on Discord")
|
|
|
|
.widget.mountable(data-api="/api/user/" + user.ID)
|
|
h3.widget-title
|
|
Icon("gamepad")
|
|
span Games
|
|
|
|
InputText("Accounts.FinalFantasyXIV.Nick", user.Accounts.FinalFantasyXIV.Nick, "Final Fantasy XIV", "Your character name on FFXIV")
|
|
InputSelection("Accounts.FinalFantasyXIV.Server", user.Accounts.FinalFantasyXIV.Server, "Final Fantasy XIV - World", "Your server/world on FFXIV", arn.DataLists["ffxiv-servers"])
|
|
InputText("Accounts.Osu.Nick", user.Accounts.Osu.Nick, "Osu", "Your username on osu.ppy.sh")
|
|
InputText("Accounts.Overwatch.BattleTag", user.Accounts.Overwatch.BattleTag, "Overwatch", "Your battletag on Overwatch")
|
|
|
|
.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
|
|
|
|
.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")
|
|
span Export anime list as JSON
|
|
|
|
.widget.mountable
|
|
h3.widget-title
|
|
Icon("refresh")
|
|
span Sync
|
|
|
|
.footer Reserved for upcoming features. |