diff --git a/api/api.pb.go b/api/api.pb.go index f3d80fb0..dad455ce 100644 --- a/api/api.pb.go +++ b/api/api.pb.go @@ -944,87 +944,88 @@ func init() { func init() { proto.RegisterFile("api/api.proto", fileDescriptor_1b40cafcd4234784) } var fileDescriptor_1b40cafcd4234784 = []byte{ - // 1275 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x41, 0x6f, 0x13, 0xc7, - 0x17, 0x67, 0x1d, 0x27, 0x24, 0x0f, 0x62, 0x3b, 0x93, 0x25, 0x71, 0x96, 0xe0, 0x84, 0x81, 0xff, - 0x1f, 0x42, 0x85, 0xad, 0xc2, 0x05, 0x71, 0x4b, 0x21, 0x95, 0x22, 0x4a, 0xa1, 0x06, 0x8a, 0xca, - 0x25, 0xda, 0x78, 0x27, 0xeb, 0xc5, 0xbb, 0x33, 0xcb, 0xec, 0x2c, 0x91, 0x8b, 0x72, 0xe9, 0xb9, - 0x52, 0x2b, 0xf5, 0xd8, 0x6f, 0xd1, 0x0f, 0xd0, 0x73, 0x8f, 0xa8, 0xbd, 0xf4, 0x58, 0x41, 0x3f, - 0x48, 0x35, 0x33, 0xbb, 0x3b, 0xce, 0xda, 0x0b, 0xea, 0xa1, 0x97, 0xe8, 0xbd, 0x37, 0xbf, 0xf9, - 0xfd, 0xde, 0xce, 0x3c, 0xcf, 0x7b, 0x81, 0x65, 0x37, 0x0e, 0x7a, 0x6e, 0x1c, 0x74, 0x63, 0xce, - 0x04, 0x43, 0x8d, 0x81, 0x1b, 0x0e, 0x0e, 0x83, 0x6f, 0xbb, 0x09, 0xe1, 0xaf, 0x09, 0x77, 0x36, - 0x7d, 0xc6, 0xfc, 0x90, 0xf4, 0x14, 0x8a, 0x52, 0x26, 0x5c, 0x11, 0x30, 0x9a, 0x68, 0xb4, 0x73, - 0xd3, 0x0f, 0xc4, 0x30, 0x3d, 0xec, 0x0e, 0x58, 0xd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dd, 0xcf, - 0x9b, 0x5f, 0x05, 0x97, 0x53, 0x44, 0x4d, 0x9b, 0x94, 0x0f, 0x78, 0x40, 0x12, 0xbc, 0xa6, 0x18, - 0x5b, 0xa8, 0xa1, 0x18, 0x8b, 0x75, 0x74, 0x0f, 0xea, 0xf7, 0x38, 0x39, 0xae, 0x60, 0x44, 0x45, - 0x54, 0xb5, 0x64, 0x89, 0x2c, 0xe5, 0x26, 0xe3, 0xe8, 0x15, 0x80, 0xe9, 0x29, 0xd3, 0x27, 0x59, - 0x6a, 0x66, 0xd3, 0x27, 0x59, 0x6e, 0x48, 0x78, 0x5b, 0x69, 0x38, 0xa8, 0xad, 0x34, 0x68, 0xb1, - 0xdc, 0x7b, 0xa3, 0xed, 0x13, 0x34, 0x04, 0x30, 0x95, 0x3e, 0x2d, 0x59, 0x7a, 0x6a, 0xa7, 0x25, - 0xcb, 0x0f, 0x03, 0x5e, 0x57, 0x92, 0x2b, 0xa8, 0xa9, 0x24, 0xb9, 0xe1, 0x7e, 0x0e, 0x8b, 0x79, - 0x43, 0xab, 0x38, 0xa5, 0x4e, 0x39, 0x7a, 0xba, 0x01, 0xe2, 0x0b, 0x8a, 0xba, 0x89, 0x96, 0x15, - 0x75, 0x94, 0x93, 0x25, 0xb0, 0x32, 0xd5, 0xb4, 0x2a, 0x14, 0xae, 0x95, 0xa3, 0x55, 0xdd, 0x2e, - 0x2b, 0x7a, 0xb4, 0xae, 0xa4, 0x12, 0x83, 0xea, 0x71, 0xcd, 0xff, 0x12, 0x1a, 0xa7, 0xdb, 0x61, - 0x85, 0xe2, 0xd5, 0x0f, 0x28, 0x9a, 0x26, 0xba, 0xa9, 0xe4, 0xd6, 0x90, 0x3d, 0x25, 0xe7, 0x86, - 0x21, 0x7a, 0x00, 0x75, 0xd9, 0xe2, 0x3f, 0x5a, 0xad, 0x59, 0xd4, 0x8c, 0x03, 0xa5, 0x1a, 0x3b, - 0x96, 0x24, 0x3e, 0x2c, 0x9f, 0x9a, 0x06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, 0x14, 0x9c, - 0x74, 0x23, 0xd2, 0xcb, 0x74, 0x24, 0xd9, 0xe1, 0x82, 0xfa, 0x3f, 0xe5, 0xf6, 0x3f, 0x01, 0x00, - 0x00, 0xff, 0xff, 0xad, 0xf7, 0x4b, 0xe9, 0x6a, 0x0d, 0x00, 0x00, + // 1292 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x41, 0x6f, 0x13, 0x47, + 0x14, 0x66, 0x1d, 0x3b, 0x24, 0x0f, 0x62, 0x3b, 0x93, 0x25, 0x71, 0x96, 0xe0, 0x84, 0x81, 0x16, + 0x42, 0x85, 0xad, 0xc2, 0x05, 0x71, 0x4b, 0x21, 0x55, 0x23, 0x4a, 0xa1, 0x06, 0x8a, 0xca, 0x25, + 0xda, 0x78, 0x27, 0xeb, 0xc5, 0xbb, 0x33, 0xcb, 0xec, 0x2c, 0x91, 0x41, 0xb9, 0xf4, 0xdc, 0xaa, + 0x95, 0x7a, 0xec, 0xbf, 0xe8, 0xaf, 0xe8, 0x11, 0xb5, 0x97, 0x1e, 0x2b, 0xe8, 0x0f, 0xa9, 0x66, + 0x66, 0xbd, 0xe3, 0xac, 0xbd, 0xa0, 0x56, 0xea, 0x25, 0x7a, 0xef, 0xcd, 0x37, 0xdf, 0xf7, 0x3c, + 0xf3, 0x76, 0xde, 0x0b, 0x2c, 0xb9, 0x71, 0xd0, 0x75, 0xe3, 0xa0, 0x13, 0x73, 0x26, 0x18, 0xaa, + 0xf7, 0xdd, 0xb0, 0x7f, 0x10, 0xbc, 0xea, 0x24, 0x84, 0xbf, 0x24, 0xdc, 0xd9, 0xf0, 0x19, 0xf3, + 0x43, 0xd2, 0x55, 0x28, 0x4a, 0x99, 0x70, 0x45, 0xc0, 0x68, 0xa2, 0xd1, 0xce, 0x75, 0x3f, 0x10, + 0x83, 0xf4, 0xa0, 0xd3, 0x67, 0x51, 0xd7, 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d6, 0x9b, 0xb7, 0x6d, 0xeb, 0xaf, 0xb7, 0x6d, 0xeb, + 0xa7, 0x77, 0xed, 0x53, 0x6f, 0xde, 0xb5, 0x4f, 0xfd, 0xf9, 0xae, 0x7d, 0xea, 0x99, 0x9d, 0x86, + 0x82, 0x93, 0x4e, 0x44, 0xba, 0x99, 0x8e, 0x24, 0x3b, 0x98, 0x57, 0xff, 0xf6, 0xdc, 0xfc, 0x27, + 0x00, 0x00, 0xff, 0xff, 0x85, 0x12, 0x1c, 0x22, 0xb9, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1044,6 +1045,7 @@ type ServerClient interface { TpyoEnocde(ctx context.Context, in *TpyoEnocdeIpunt, opts ...grpc.CallOption) (*TpyoEnocdeOuptut, error) Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Pong, error) Dashboard(ctx context.Context, in *Void, opts ...grpc.CallOption) (*dashboard.Entries, error) + Hackz(ctx context.Context, in *Void, opts ...grpc.CallOption) (*dashboard.Entries, error) Crew(ctx context.Context, in *Void, opts ...grpc.CallOption) (*crew.Crew, error) Numberinfo(ctx context.Context, in *NumberinfoInput, opts ...grpc.CallOption) (*NumberinfoOutput, error) Recettator(ctx context.Context, in *RecettatorInput, opts ...grpc.CallOption) (*RecettatorOutput, error) @@ -1112,6 +1114,15 @@ func (c *serverClient) Dashboard(ctx context.Context, in *Void, opts ...grpc.Cal return out, nil } +func (c *serverClient) Hackz(ctx context.Context, in *Void, opts ...grpc.CallOption) (*dashboard.Entries, error) { + out := new(dashboard.Entries) + err := c.cc.Invoke(ctx, "/calcbiz.server.Server/Hackz", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *serverClient) Crew(ctx context.Context, in *Void, opts ...grpc.CallOption) (*crew.Crew, error) { out := new(crew.Crew) err := c.cc.Invoke(ctx, "/calcbiz.server.Server/Crew", in, out, opts...) @@ -1236,6 +1247,7 @@ type ServerServer interface { TpyoEnocde(context.Context, *TpyoEnocdeIpunt) (*TpyoEnocdeOuptut, error) Ping(context.Context, *Void) (*Pong, error) Dashboard(context.Context, *Void) (*dashboard.Entries, error) + Hackz(context.Context, *Void) (*dashboard.Entries, error) Crew(context.Context, *Void) (*crew.Crew, error) Numberinfo(context.Context, *NumberinfoInput) (*NumberinfoOutput, error) Recettator(context.Context, *RecettatorInput) (*RecettatorOutput, error) @@ -1345,6 +1357,24 @@ func _Server_Dashboard_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _Server_Hackz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Void) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServer).Hackz(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/calcbiz.server.Server/Hackz", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServer).Hackz(ctx, req.(*Void)) + } + return interceptor(ctx, in, info, handler) +} + func _Server_Crew_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Void) if err := dec(in); err != nil { @@ -1603,6 +1633,10 @@ var _Server_serviceDesc = grpc.ServiceDesc{ MethodName: "Dashboard", Handler: _Server_Dashboard_Handler, }, + { + MethodName: "Hackz", + Handler: _Server_Hackz_Handler, + }, { MethodName: "Crew", Handler: _Server_Crew_Handler, diff --git a/api/api.pb.gw.go b/api/api.pb.gw.go index 6484df88..903248c0 100644 --- a/api/api.pb.gw.go +++ b/api/api.pb.gw.go @@ -97,6 +97,15 @@ func request_Server_Dashboard_0(ctx context.Context, marshaler runtime.Marshaler } +func request_Server_Hackz_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq Void + var metadata runtime.ServerMetadata + + msg, err := client.Hackz(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + func request_Server_Crew_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq Void var metadata runtime.ServerMetadata @@ -414,6 +423,26 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli }) + mux.Handle("GET", pattern_Server_Hackz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Server_Hackz_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Server_Hackz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Server_Crew_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -688,6 +717,8 @@ var ( pattern_Server_Dashboard_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "dashboard"}, "")) + pattern_Server_Hackz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "hackz"}, "")) + pattern_Server_Crew_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "crew"}, "")) pattern_Server_Numberinfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "numberinfo", "number"}, "")) @@ -726,6 +757,8 @@ var ( forward_Server_Dashboard_0 = runtime.ForwardResponseMessage + forward_Server_Hackz_0 = runtime.ForwardResponseMessage + forward_Server_Crew_0 = runtime.ForwardResponseMessage forward_Server_Numberinfo_0 = runtime.ForwardResponseMessage diff --git a/api/api.proto b/api/api.proto index 45d28866..aa41cfe1 100644 --- a/api/api.proto +++ b/api/api.proto @@ -35,6 +35,7 @@ service Server { rpc Ping(Void) returns (Pong) { option (google.api.http) = { get: "/api/ping" }; }; rpc Dashboard(Void) returns (calcbiz.dashboard.Entries) { option (google.api.http) = {get: "/api/dashboard"}; } + rpc Hackz(Void) returns (calcbiz.dashboard.Entries) { option (google.api.http) = {get: "/api/hackz"}; } rpc Crew(Void) returns (calcbiz.crew.Crew) { option (google.api.http) = {get: "/api/crew"}; } rpc Numberinfo(NumberinfoInput) returns (NumberinfoOutput) { option (google.api.http) = {get: "/api/numberinfo/{number}"}; } rpc Recettator(RecettatorInput) returns (RecettatorOutput) { option (google.api.http) = {get: "/api/recettator"}; } diff --git a/main.go b/main.go index d58749ca..6e4ec8b8 100644 --- a/main.go +++ b/main.go @@ -116,6 +116,9 @@ type serverOptions struct { } func serverOptionsFromCliContext(c *cli.Context) serverOptions { + if c.Int("soundcloud-user-id") == 0 || c.String("soundcloud-client-id") == "" { + zap.L().Warn("SoundCloud is not configured") + } return serverOptions{ GRPCBind: c.String("grpc-bind"), HTTPBind: c.String("http-bind"), diff --git a/pkg/dashboard/dashboard.go b/pkg/dashboard/dashboard.go index 7a093df1..2b281123 100644 --- a/pkg/dashboard/dashboard.go +++ b/pkg/dashboard/dashboard.go @@ -74,7 +74,7 @@ func (d *Dashboard) hackEntries(limit int) (*Entries, error) { entries.append(NewManualEntry( "Calculatrice.exe", "hackz/calculatrice.exe", - "/img/hackz/calculatrice.exe/logo.jpg", + "/img/hackz/calculatrice/logo.jpg", "Pour faire des mathématiques ou d'autres sciences", Entry_Hack, false, @@ -98,7 +98,7 @@ func (d *Dashboard) hackEntries(limit int) (*Entries, error) { entries.append(NewManualEntry( "Ultreme Tetris", "hackz/ultreme-tetris", - "/img/hackz/ultreme-tetris/logo.jpg", + "/img/hackz/tetris/logo.jpg", "Pour les balèzes", Entry_Hack, false, @@ -182,6 +182,10 @@ func (d *Dashboard) merchEntries(limit int) (Entries, error) { return entries, nil } +func (d *Dashboard) Hackz() (*Entries, error) { + return d.hackEntries(100) +} + func (d *Dashboard) Random() (*Entries, error) { entries := newEntries() diff --git a/svc/svc.go b/svc/svc.go index 85c2d289..b2ee2f61 100644 --- a/svc/svc.go +++ b/svc/svc.go @@ -69,6 +69,10 @@ func (svc *svc) Dashboard(_ context.Context, input *api.Void) (*dashboard.Entrie return svc.dashboard.Random() } +func (svc *svc) Hackz(_ context.Context, input *api.Void) (*dashboard.Entries, error) { + return svc.dashboard.Hackz() +} + func (svc *svc) Crew(_ context.Context, input *api.Void) (*crew.Crew, error) { return &crew.CALC, nil } diff --git a/swagger.yaml b/swagger.yaml index 5e83c515..dbe3e72c 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -63,6 +63,22 @@ ] } }, + "/api/hackz": { + "get": { + "operationId": "Hackz", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/dashboardEntries" + } + } + }, + "tags": [ + "Server" + ] + } + }, "/api/kryptos/decrypt": { "post": { "operationId": "KryptosDecrypt", diff --git a/templates/hackz.tmpl b/templates/hackz.tmpl index b9d72ab1..bda196d3 100644 --- a/templates/hackz.tmpl +++ b/templates/hackz.tmpl @@ -1,5 +1,75 @@ {{define "title"}}Hackz{{end}} +{{/* +{% block title %}Des hackz{% endblock %} +{% block subtitle %}à l'unité{% endblock %} +*/}} + {{define "content"}} -Hackzzzz +{{ $columns := 3 }} +{{ $grid_size := div 12 $columns }} +{{ $square_size := 250 }} + + +
Et plein d'autres..
{{end}} + + +{{/* +{% block main_column %} +