Skip to content

Commit dd43a6c

Browse files
style: format App.vue with prettier
1 parent 4237531 commit dd43a6c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

js/App.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
v-model="inputs.value"
5555
/>
5656
<div class="mt-4" v-if="inputs.type === 'both'">
57-
Enter Chess.com username:
57+
Enter Chess.com username:
5858
<input
5959
type="text"
6060
class="block w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 rounded transition ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none"
@@ -171,7 +171,7 @@
171171

172172
<div class="mb-1">
173173
on
174-
<strong>{{ inputs.type === 'both' ? 'both platforms' : (inputs.type === 'lichess' ? 'Lichess' : 'Chess.com') }}</strong>
174+
<strong>{{ inputs.type === 'both' ? 'both platforms' : inputs.type === 'lichess' ? 'Lichess' : 'Chess.com' }}</strong>
175175
and has completed
176176
<strong> {{ totalAccomplishmentsCompletedPercentage }}%</strong>
177177
of the goals ({{ totalAccomplishmentsCompleted }}
@@ -793,7 +793,7 @@ export default {
793793
inputs: {
794794
type: <ReportSource | 'both'>'lichess',
795795
value: '',
796-
valueChesscom:'',
796+
valueChesscom: '',
797797
filters: {
798798
sinceHoursAgo: 0,
799799
},
@@ -931,11 +931,11 @@ export default {
931931
932932
// 1. Build an array of URLs to fetch
933933
let urls: string[] = []
934-
934+
935935
if (this.inputs.type === 'lichess' || this.inputs.type === 'both') {
936936
urls.push(`https://lichess.org/@/${this.username}`)
937937
}
938-
938+
939939
if (this.inputs.type === 'chesscom') {
940940
urls.push(`https://www.chess.com/member/${this.username}`)
941941
} else if (this.inputs.type === 'both') {
@@ -949,13 +949,13 @@ export default {
949949
player(url)
950950
.then(async (player: Profile) => {
951951
this.player = player
952-
952+
953953
// Format display names with their respective platforms
954954
if (this.inputs.type === 'both') {
955955
if (this.username !== this.usernameChesscom) {
956956
// Different usernames: Ghost(Lichess) & Ghost2(Chess.com)
957957
this.player.username = `${this.inputs.value} (Lichess) & ${this.inputs.valueChesscom} (Chess.com)`
958-
this.player.title = ''
958+
this.player.title = ''
959959
} else {
960960
// Same username on both
961961
this.player.username = `${this.inputs.value} (Both Platforms)`

0 commit comments

Comments
 (0)