feat(Mail template & Membership relationship)
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
const CreateNotificationTemplate = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: CreateNotificationTemplate.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
CreateNotificationTemplate.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/admin/notification-templates/create',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
CreateNotificationTemplate.url = (options?: RouteQueryOptions) => {
|
||||
return CreateNotificationTemplate.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
CreateNotificationTemplate.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: CreateNotificationTemplate.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
CreateNotificationTemplate.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: CreateNotificationTemplate.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
const CreateNotificationTemplateForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: CreateNotificationTemplate.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
CreateNotificationTemplateForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: CreateNotificationTemplate.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
CreateNotificationTemplateForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: CreateNotificationTemplate.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
CreateNotificationTemplate.form = CreateNotificationTemplateForm
|
||||
|
||||
export default CreateNotificationTemplate
|
||||
@@ -0,0 +1,101 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
const EditNotificationTemplate = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: EditNotificationTemplate.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
EditNotificationTemplate.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/admin/notification-templates/{record}/edit',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
EditNotificationTemplate.url = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions) => {
|
||||
if (typeof args === 'string' || typeof args === 'number') {
|
||||
args = { record: args }
|
||||
}
|
||||
|
||||
if (Array.isArray(args)) {
|
||||
args = {
|
||||
record: args[0],
|
||||
}
|
||||
}
|
||||
|
||||
args = applyUrlDefaults(args)
|
||||
|
||||
const parsedArgs = {
|
||||
record: args.record,
|
||||
}
|
||||
|
||||
return EditNotificationTemplate.definition.url
|
||||
.replace('{record}', parsedArgs.record.toString())
|
||||
.replace(/\/+$/, '') + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
EditNotificationTemplate.get = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: EditNotificationTemplate.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
EditNotificationTemplate.head = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: EditNotificationTemplate.url(args, options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
const EditNotificationTemplateForm = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: EditNotificationTemplate.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
EditNotificationTemplateForm.get = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: EditNotificationTemplate.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
EditNotificationTemplateForm.head = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: EditNotificationTemplate.url(args, {
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
EditNotificationTemplate.form = EditNotificationTemplateForm
|
||||
|
||||
export default EditNotificationTemplate
|
||||
@@ -0,0 +1,83 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
const ListNotificationTemplates = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: ListNotificationTemplates.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
ListNotificationTemplates.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/admin/notification-templates',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
ListNotificationTemplates.url = (options?: RouteQueryOptions) => {
|
||||
return ListNotificationTemplates.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
ListNotificationTemplates.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: ListNotificationTemplates.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
ListNotificationTemplates.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: ListNotificationTemplates.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
const ListNotificationTemplatesForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: ListNotificationTemplates.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
ListNotificationTemplatesForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: ListNotificationTemplates.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
ListNotificationTemplatesForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: ListNotificationTemplates.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
ListNotificationTemplates.form = ListNotificationTemplatesForm
|
||||
|
||||
export default ListNotificationTemplates
|
||||
@@ -0,0 +1,11 @@
|
||||
import ListNotificationTemplates from './ListNotificationTemplates'
|
||||
import CreateNotificationTemplate from './CreateNotificationTemplate'
|
||||
import EditNotificationTemplate from './EditNotificationTemplate'
|
||||
|
||||
const Pages = {
|
||||
ListNotificationTemplates: Object.assign(ListNotificationTemplates, ListNotificationTemplates),
|
||||
CreateNotificationTemplate: Object.assign(CreateNotificationTemplate, CreateNotificationTemplate),
|
||||
EditNotificationTemplate: Object.assign(EditNotificationTemplate, EditNotificationTemplate),
|
||||
}
|
||||
|
||||
export default Pages
|
||||
@@ -0,0 +1,7 @@
|
||||
import Pages from './Pages'
|
||||
|
||||
const NotificationTemplates = {
|
||||
Pages: Object.assign(Pages, Pages),
|
||||
}
|
||||
|
||||
export default NotificationTemplates
|
||||
@@ -1,6 +1,7 @@
|
||||
import MemberGroups from './MemberGroups'
|
||||
import Members from './Members'
|
||||
import Memberships from './Memberships'
|
||||
import NotificationTemplates from './NotificationTemplates'
|
||||
import Packages from './Packages'
|
||||
import Services from './Services'
|
||||
import Users from './Users'
|
||||
@@ -9,6 +10,7 @@ const Resources = {
|
||||
MemberGroups: Object.assign(MemberGroups, MemberGroups),
|
||||
Members: Object.assign(Members, Members),
|
||||
Memberships: Object.assign(Memberships, Memberships),
|
||||
NotificationTemplates: Object.assign(NotificationTemplates, NotificationTemplates),
|
||||
Packages: Object.assign(Packages, Packages),
|
||||
Services: Object.assign(Services, Services),
|
||||
Users: Object.assign(Users, Users),
|
||||
|
||||
57
resources/js/routes/boost/index.ts
Normal file
57
resources/js/routes/boost/index.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../wayfinder'
|
||||
/**
|
||||
* @see vendor/laravel/boost/src/BoostServiceProvider.php:117
|
||||
* @route '/_boost/browser-logs'
|
||||
*/
|
||||
export const browserLogs = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: browserLogs.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
browserLogs.definition = {
|
||||
methods: ["post"],
|
||||
url: '/_boost/browser-logs',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see vendor/laravel/boost/src/BoostServiceProvider.php:117
|
||||
* @route '/_boost/browser-logs'
|
||||
*/
|
||||
browserLogs.url = (options?: RouteQueryOptions) => {
|
||||
return browserLogs.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see vendor/laravel/boost/src/BoostServiceProvider.php:117
|
||||
* @route '/_boost/browser-logs'
|
||||
*/
|
||||
browserLogs.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: browserLogs.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see vendor/laravel/boost/src/BoostServiceProvider.php:117
|
||||
* @route '/_boost/browser-logs'
|
||||
*/
|
||||
const browserLogsForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: browserLogs.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see vendor/laravel/boost/src/BoostServiceProvider.php:117
|
||||
* @route '/_boost/browser-logs'
|
||||
*/
|
||||
browserLogsForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: browserLogs.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
browserLogs.form = browserLogsForm
|
||||
|
||||
const boost = {
|
||||
browserLogs: Object.assign(browserLogs, browserLogs),
|
||||
}
|
||||
|
||||
export default boost
|
||||
@@ -1,6 +1,7 @@
|
||||
import memberGroups from './member-groups'
|
||||
import members from './members'
|
||||
import memberships from './memberships'
|
||||
import notificationTemplates from './notification-templates'
|
||||
import packages from './packages'
|
||||
import services from './services'
|
||||
import users from './users'
|
||||
@@ -10,6 +11,7 @@ const resources = {
|
||||
memberGroups: Object.assign(memberGroups, memberGroups),
|
||||
members: Object.assign(members, members),
|
||||
memberships: Object.assign(memberships, memberships),
|
||||
notificationTemplates: Object.assign(notificationTemplates, notificationTemplates),
|
||||
packages: Object.assign(packages, packages),
|
||||
services: Object.assign(services, services),
|
||||
users: Object.assign(users, users),
|
||||
|
||||
@@ -0,0 +1,269 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: index.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
index.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/admin/notification-templates',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
index.url = (options?: RouteQueryOptions) => {
|
||||
return index.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: index.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: index.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: index.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: index.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\ListNotificationTemplates::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/ListNotificationTemplates.php:7
|
||||
* @route '/admin/notification-templates'
|
||||
*/
|
||||
indexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: index.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
index.form = indexForm
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/admin/notification-templates/create',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
create.url = (options?: RouteQueryOptions) => {
|
||||
return create.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: create.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\CreateNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/CreateNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/create'
|
||||
*/
|
||||
createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.form = createForm
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
export const edit = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: edit.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
edit.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/admin/notification-templates/{record}/edit',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
edit.url = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions) => {
|
||||
if (typeof args === 'string' || typeof args === 'number') {
|
||||
args = { record: args }
|
||||
}
|
||||
|
||||
if (Array.isArray(args)) {
|
||||
args = {
|
||||
record: args[0],
|
||||
}
|
||||
}
|
||||
|
||||
args = applyUrlDefaults(args)
|
||||
|
||||
const parsedArgs = {
|
||||
record: args.record,
|
||||
}
|
||||
|
||||
return edit.definition.url
|
||||
.replace('{record}', parsedArgs.record.toString())
|
||||
.replace(/\/+$/, '') + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
edit.get = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: edit.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
edit.head = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: edit.url(args, options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
const editForm = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
editForm.get = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Filament\Resources\NotificationTemplates\Pages\EditNotificationTemplate::__invoke
|
||||
* @see app/Filament/Resources/NotificationTemplates/Pages/EditNotificationTemplate.php:7
|
||||
* @route '/admin/notification-templates/{record}/edit'
|
||||
*/
|
||||
editForm.head = (args: { record: string | number } | [record: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url(args, {
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
edit.form = editForm
|
||||
|
||||
const notificationTemplates = {
|
||||
index: Object.assign(index, index),
|
||||
create: Object.assign(create, create),
|
||||
edit: Object.assign(edit, edit),
|
||||
}
|
||||
|
||||
export default notificationTemplates
|
||||
3
resources/views/notifications/mail-template.blade.php
Normal file
3
resources/views/notifications/mail-template.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<x-mail::message>
|
||||
{!! $body !!}
|
||||
</x-mail::message>
|
||||
Reference in New Issue
Block a user