Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show version info on webui #205

Merged
merged 12 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions graphql/queries/SystemQuery.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
query SystemQuery {
system {
version
}
}
5 changes: 5 additions & 0 deletions graphql/schema/query.graphqls
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type Query {
torrent: TorrentQuery!
torrentContent: TorrentContentQuery!
system: SystemQuery!
}

type TorrentQuery {
Expand All @@ -27,3 +28,7 @@ type TorrentContentQuery {
facets: TorrentContentFacetsInput
): TorrentContentSearchResult!
}

type SystemQuery {
version: String!
}
mgdigital marked this conversation as resolved.
Show resolved Hide resolved
182 changes: 182 additions & 0 deletions internal/gql/gql.gen.go

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

4 changes: 4 additions & 0 deletions internal/gql/gqlmodel/gen/model.gen.go

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

9 changes: 9 additions & 0 deletions internal/gql/resolvers/query.resolvers.go

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

3 changes: 3 additions & 0 deletions webui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
2 changes: 1 addition & 1 deletion webui/dist/bitmagnet/index.html

Large diffs are not rendered by default.

235 changes: 235 additions & 0 deletions webui/dist/bitmagnet/main.0cbae436e7150f26.js

Large diffs are not rendered by default.

229 changes: 0 additions & 229 deletions webui/dist/bitmagnet/main.ba58c65d0e5908a3.js

This file was deleted.

1 change: 1 addition & 0 deletions webui/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<mat-toolbar color="primary">
<mat-icon style="position: relative; top: 1px" svgIcon="magnet"></mat-icon>
<span style="margin-left: 10px">bitmagnet</span>
<app-version />
<span class="spacer"></span>
<button mat-icon-button aria-label="Menu" [matMenuTriggerFor]="menu">
<mat-icon>menu</mat-icon>
Expand Down
2 changes: 2 additions & 0 deletions webui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { AppComponent } from "./app.component";
import { GraphQLModule } from "./graphql/graphql.module";
import { SearchModule } from "./search/search.module";
import { AppErrorsService } from "./app-errors.service";
import { StatusModule } from "./status/status.module";

@NgModule({
declarations: [AppComponent],
Expand All @@ -28,6 +29,7 @@ import { AppErrorsService } from "./app-errors.service";
MatMenuModule,
MatToolbarModule,
SearchModule,
StatusModule,
],
providers: [AppErrorsService],
bootstrap: [AppComponent],
Expand Down
Loading
Loading