Skip to content

Commit

Permalink
vinvoor: change to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Jun 22, 2024
1 parent 506895d commit d7e9ec4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion vingo/database/cards.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "time"

type Card struct {
Serial string `json:"serial"`
CreatedAt time.Time `json:"created_at"`
CreatedAt time.Time `json:"createdAt"`
}

var (
Expand Down
4 changes: 2 additions & 2 deletions vingo/database/scans.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package database
import "time"

type Scan struct {
ScanTime time.Time `json:"scan_time"`
ScanTime time.Time `json:"scanTime"`
Card string `json:"card"`
}

Expand All @@ -16,7 +16,7 @@ type Present struct {
type LeaderboardItem struct {
Position int `json:"position"`
Username string `json:"username"`
TotalDays int `json:"total_days"`
TotalDays int `json:"totalDays"`
}

var (
Expand Down
2 changes: 1 addition & 1 deletion vingo/database/settings.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package database

type Settings struct {
ScanInOut bool `json:"scan_in_out"`
ScanInOut bool `json:"scanInOut"`
Leaderboard bool `json:"leaderboard"`
Public bool `json:"public"`
}
Expand Down
2 changes: 1 addition & 1 deletion vingo/database/users.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package database

type User struct {
Id int `json:"id"`
Username string `json:"username"`
Admin bool `json:"admin"`
Settings Settings `json:"settings"`
Id int `json:"id"`
}

var (
Expand Down
10 changes: 10 additions & 0 deletions vinvoor/src/types/table.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export type TableOrder = "asc" | "desc";

type TableAlignOptions = "right" | "left" | "center";

export interface TableHeadCell<T> {
id: keyof T;
label: string;
align: TableAlignOptions;
disablePadding: boolean;
}
2 changes: 1 addition & 1 deletion vinvoor/src/types/User.ts → vinvoor/src/types/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface User {
}

export interface Settings {
scan_in_out: boolean;
scanInOut: boolean;
leaderboard: boolean;
public: boolean;
}

0 comments on commit d7e9ec4

Please sign in to comment.