Skip to content

Commit

Permalink
refactor: finish wip
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Dec 19, 2024
1 parent a92d52d commit 704ed72
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,6 @@ type UserBackupInfo {
last_update: String
last_update_size: String
total_size_saved: String!
slots: Float!
}

type UserGhostInfo {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/client/src/graphql/queries/getAmbossUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const GET_AMBOSS_USER = gql`
last_update
last_update_size
total_size_saved
slots
}
ghost {
username
Expand Down
1 change: 0 additions & 1 deletion src/client/src/graphql/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,6 @@ export type UserBackupInfo = {
last_update?: Maybe<Scalars['String']['output']>;
last_update_size?: Maybe<Scalars['String']['output']>;
total_size_saved: Scalars['String']['output'];
slots: Scalars['Float']['output'];
};

export type UserGhostInfo = {
Expand Down
12 changes: 1 addition & 11 deletions src/client/src/views/amboss/Backups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,10 @@ export const AmbossBackupsView = () => {
if (!user) return null;

const {
backups: {
remaining_size,
total_size_saved,
last_update,
last_update_size,
},
backups: { total_size_saved, last_update, last_update_size },
} = user;

const total = Number(total_size_saved) / 1e6;
const remaining = Number(remaining_size) / 1e6;

return (
<>
Expand All @@ -74,10 +68,6 @@ export const AmbossBackupsView = () => {
'Total Size Saved',
`${numeral(total).format('0.[0000]')} MB`
)}
{renderLine(
'Remaining Size Available',
`${numeral(remaining).format('0.[0000]')} MB`
)}
<Separation />
</>
);
Expand Down
1 change: 0 additions & 1 deletion src/server/modules/api/amboss/amboss.gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const getUserQuery = gql`
last_update
last_update_size
total_size_saved
slots
}
ghost {
username
Expand Down
3 changes: 0 additions & 3 deletions src/server/modules/api/amboss/amboss.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ export class UserBackupInfo {

@Field()
total_size_saved: string;

@Field()
slots: number;
}

@ObjectType()
Expand Down

0 comments on commit 704ed72

Please sign in to comment.