Initial PHP rebuild of the app
This commit is contained in:
690 files changed
+33944
-12046
No files matched your search
@@ -1,19 +0,0 @@
|
||||
import type { PushProvider, PushSendResult, SendPushParams } from "./push-provider";
|
||||
|
||||
/** Dev-only — see console-email-provider.ts for the same pattern and reasoning. */
|
||||
export class ConsolePushProvider implements PushProvider {
|
||||
readonly name = "console";
|
||||
|
||||
async sendPush(params: SendPushParams): Promise<PushSendResult> {
|
||||
console.log(
|
||||
[
|
||||
"──── [ConsolePushProvider] would send a push (not actually sent) ────",
|
||||
`Endpoint: ${params.subscription.endpoint.slice(0, 60)}...`,
|
||||
`Title: ${params.title}`,
|
||||
`Body: ${params.body}`,
|
||||
"────────────────────────────────────────────────────────────────────",
|
||||
].join("\n"),
|
||||
);
|
||||
return { status: "sent" };
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user