mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
nostr added to lecturer form
This commit is contained in:
@@ -22,30 +22,31 @@ class ContentCreatorForm extends Component
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'image' => [Rule::requiredIf(! $this->lecturer->id), 'nullable', 'mimes:jpeg,png,jpg,gif', 'max:10240'],
|
'image' => [Rule::requiredIf(!$this->lecturer->id), 'nullable', 'mimes:jpeg,png,jpg,gif', 'max:10240'],
|
||||||
|
|
||||||
'lecturer.name' => 'required',
|
'lecturer.name' => 'required',
|
||||||
'lecturer.active' => 'boolean',
|
'lecturer.active' => 'boolean',
|
||||||
'lecturer.subtitle' => 'required',
|
'lecturer.subtitle' => 'required',
|
||||||
'lecturer.intro' => 'required',
|
'lecturer.intro' => 'required',
|
||||||
'lecturer.twitter_username' => 'nullable|string',
|
'lecturer.nostr' => 'nullable|string',
|
||||||
'lecturer.website' => 'nullable|url',
|
'lecturer.twitter_username' => 'nullable|string',
|
||||||
|
'lecturer.website' => 'nullable|url',
|
||||||
'lecturer.lightning_address' => 'nullable|string',
|
'lecturer.lightning_address' => 'nullable|string',
|
||||||
'lecturer.lnurl' => 'nullable|string',
|
'lecturer.lnurl' => 'nullable|string',
|
||||||
'lecturer.node_id' => 'nullable|string',
|
'lecturer.node_id' => 'nullable|string',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
if (! $this->lecturer) {
|
if (!$this->lecturer) {
|
||||||
$this->lecturer = new Lecturer([
|
$this->lecturer = new Lecturer([
|
||||||
'intro' => '',
|
'intro' => '',
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'team_id' => true,
|
'team_id' => true,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
if (! $this->fromUrl) {
|
if (!$this->fromUrl) {
|
||||||
$this->fromUrl = url()->previous();
|
$this->fromUrl = url()->previous();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"relays": {
|
"relays": {
|
||||||
"wss://nostr.einundzwanzig.space": {
|
"wss://nostr.easify.de": {
|
||||||
"read": true,
|
"read": true,
|
||||||
"write": true
|
"write": true
|
||||||
},
|
},
|
||||||
@@ -8,45 +8,9 @@
|
|||||||
"read": true,
|
"read": true,
|
||||||
"write": true
|
"write": true
|
||||||
},
|
},
|
||||||
"wss://nostr.fmt.wiz.biz": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
},
|
|
||||||
"wss://relay.damus.io": {
|
"wss://relay.damus.io": {
|
||||||
"read": true,
|
"read": true,
|
||||||
"write": true
|
"write": true
|
||||||
},
|
|
||||||
"wss://nostr-pub.wellorder.net": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
},
|
|
||||||
"wss://relay.nostr.info": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
},
|
|
||||||
"wss://offchain.pub": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
},
|
|
||||||
"wss://nos.lol": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
},
|
|
||||||
"wss://brb.io": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
},
|
|
||||||
"wss://relay.snort.social": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
},
|
|
||||||
"wss://relay.current.fyi": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
},
|
|
||||||
"wss://nostr.relayer.se": {
|
|
||||||
"read": true,
|
|
||||||
"write": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"following": null,
|
"following": null,
|
||||||
|
|||||||
@@ -49,6 +49,11 @@
|
|||||||
<span class="text-gray-400 text-xs py-2">{{ __('This is the introduction text that is shown on the landing page.') }}</span>
|
<span class="text-gray-400 text-xs py-2">{{ __('This is the introduction text that is shown on the landing page.') }}</span>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
|
<x-input.group :for="md5('lecturer.nostr')" :label="__('Nostr public key')">
|
||||||
|
<x-input autocomplete="off" wire:model.debounce="lecturer.nostr"
|
||||||
|
:placeholder="__('Nostr public key')" :hint="__('starts with npub...')"/>
|
||||||
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('lecturer.twitter_username')" :label="__('Twitter Username')">
|
<x-input.group :for="md5('lecturer.twitter_username')" :label="__('Twitter Username')">
|
||||||
<x-input autocomplete="off" wire:model.debounce="lecturer.twitter_username"
|
<x-input autocomplete="off" wire:model.debounce="lecturer.twitter_username"
|
||||||
:placeholder="__('Twitter Username')" :hint="__('Without @')"/>
|
:placeholder="__('Twitter Username')" :hint="__('Without @')"/>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<div>
|
<div>
|
||||||
{{ __('Author') }}
|
{{ __('Author') }}
|
||||||
</div>
|
</div>
|
||||||
<x-button xs href="/nova/resources/lecturers/new" target="_blank">
|
<x-button xs href="{{ route('contentCreator.form', ['country' => 'de']) }}">
|
||||||
<i class="fa fa-thin fa-plus"></i>
|
<i class="fa fa-thin fa-plus"></i>
|
||||||
{{ __('Create new author') }}
|
{{ __('Create new author') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user