chore: remove the greetings demo
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
a4fcd98e4a
commit
059f33ef80
1 changed files with 12 additions and 606 deletions
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _ida;
|
||||
import 'package:halkyon_learn_client/src/protocol/greetings/greeting.dart'
|
||||
as _ili0bmg9;
|
||||
import 'package:http/http.dart' as _i85jenna;
|
||||
import 'package:serverpod_auth_core_client/serverpod_auth_core_client.dart'
|
||||
as _iacc;
|
||||
|
|
@ -246,24 +244,6 @@ class EndpointJwtRefresh extends _iacc.EndpointRefreshJwtTokens {
|
|||
);
|
||||
}
|
||||
|
||||
/// This is an example endpoint that returns a greeting message through
|
||||
/// its [hello] method.
|
||||
/// {@category Endpoint}
|
||||
class EndpointGreeting extends _isc.EndpointRef {
|
||||
EndpointGreeting(_isc.EndpointCaller caller) : super(caller);
|
||||
|
||||
@override
|
||||
String get name => 'greeting';
|
||||
|
||||
/// Returns a personalized greeting message: "Hello {name}".
|
||||
_ida.Future<_ili0bmg9.Greeting> hello(String name) =>
|
||||
caller.callServerEndpoint<_ili0bmg9.Greeting>(
|
||||
'greeting',
|
||||
'hello',
|
||||
{'name': name},
|
||||
);
|
||||
}
|
||||
|
||||
class Modules {
|
||||
Modules(Client client) {
|
||||
serverpod_auth_idp = _iaic.Caller(client);
|
||||
|
|
@ -304,7 +284,6 @@ class Client extends _isc.ServerpodClientShared {
|
|||
) {
|
||||
emailIdp = EndpointEmailIdp(this);
|
||||
jwtRefresh = EndpointJwtRefresh(this);
|
||||
greeting = EndpointGreeting(this);
|
||||
modules = Modules(this);
|
||||
}
|
||||
|
||||
|
|
@ -312,15 +291,12 @@ class Client extends _isc.ServerpodClientShared {
|
|||
|
||||
late final EndpointJwtRefresh jwtRefresh;
|
||||
|
||||
late final EndpointGreeting greeting;
|
||||
|
||||
late final Modules modules;
|
||||
|
||||
@override
|
||||
Map<String, _isc.EndpointRef> get endpointRefLookup => {
|
||||
'emailIdp': emailIdp,
|
||||
'jwtRefresh': jwtRefresh,
|
||||
'greeting': greeting,
|
||||
};
|
||||
|
||||
@override
|
||||
|
|
|
|||
Loading…
Reference in a new issue