Skip to content

Commit

Permalink
Merge pull request #18 from slakkala/dev/locale-timezone
Browse files Browse the repository at this point in the history
Locale and timezone setting support
  • Loading branch information
mbssrc authored Oct 3, 2024
2 parents 3344005 + e2ceb07 commit 68079de
Show file tree
Hide file tree
Showing 38 changed files with 1,364 additions and 324 deletions.
20 changes: 11 additions & 9 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ console = "0.15"
http = "0.2"
http-body = "0.4.2"
hyper = "0.14"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros"]}
prost = "0.12"
regex = "1.11"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs"]}
tokio-stream = "0.1"
tokio-vsock = "0.5"
tonic = {version="0.12.2", features = ["tls"]}
Expand Down
385 changes: 261 additions & 124 deletions api/admin/admin.pb.go

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion api/admin/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ message RegistryRequest {
}

message RegistryResponse {
string CmdStatus = 1;
optional string Error = 1;
}

message ApplicationRequest {
Expand Down Expand Up @@ -65,12 +65,22 @@ message WatchItem {
}
}

message LocaleRequest {
string Locale = 1;
}

message TimezoneRequest {
string Timezone = 1;
}

service AdminService {
rpc RegisterService(RegistryRequest) returns (RegistryResponse) {}
rpc StartApplication(ApplicationRequest) returns (ApplicationResponse) {}
rpc PauseApplication(ApplicationRequest) returns (ApplicationResponse) {}
rpc ResumeApplication(ApplicationRequest) returns (ApplicationResponse) {}
rpc StopApplication(ApplicationRequest) returns (ApplicationResponse) {}
rpc SetLocale(LocaleRequest) returns (Empty) {}
rpc SetTimezone(TimezoneRequest) returns (Empty) {}
rpc Poweroff(Empty) returns (Empty) {}
rpc Reboot(Empty) returns (Empty) {}
rpc Suspend(Empty) returns (Empty) {}
Expand Down
76 changes: 75 additions & 1 deletion api/admin/admin_grpc.pb.go

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

10 changes: 5 additions & 5 deletions api/hwid/hwid.pb.go

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

2 changes: 1 addition & 1 deletion api/hwid/hwid_grpc.pb.go

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

Loading

0 comments on commit 68079de

Please sign in to comment.