diff --git a/.blueprint b/.blueprint index 5e074684..f6ade3d1 100644 --- a/.blueprint +++ b/.blueprint @@ -8,16 +8,16 @@ created: - database/factories/VenueFactory.php - database/factories/EventFactory.php - database/factories/RegistrationFactory.php - - database/migrations/2022_12_01_100450_create_countries_table.php - - database/migrations/2022_12_01_100451_create_cities_table.php - - database/migrations/2022_12_01_100452_create_lecturers_table.php - - database/migrations/2022_12_01_100453_create_participants_table.php - - database/migrations/2022_12_01_100454_create_categories_table.php - - database/migrations/2022_12_01_100455_create_courses_table.php - - database/migrations/2022_12_01_100456_create_venues_table.php - - database/migrations/2022_12_01_100457_create_events_table.php - - database/migrations/2022_12_01_100458_create_registrations_table.php - - database/migrations/2022_12_01_100459_create_category_course_table.php + - database/migrations/2022_12_01_145948_create_countries_table.php + - database/migrations/2022_12_01_145949_create_cities_table.php + - database/migrations/2022_12_01_145950_create_lecturers_table.php + - database/migrations/2022_12_01_145951_create_participants_table.php + - database/migrations/2022_12_01_145952_create_categories_table.php + - database/migrations/2022_12_01_145953_create_courses_table.php + - database/migrations/2022_12_01_145954_create_venues_table.php + - database/migrations/2022_12_01_145955_create_events_table.php + - database/migrations/2022_12_01_145956_create_registrations_table.php + - database/migrations/2022_12_01_145957_create_category_course_table.php - app/Models/Country.php - app/Models/City.php - app/Models/Lecturer.php @@ -40,9 +40,9 @@ models: Membership: { team_id: biginteger, user_id: biginteger, role: 'string nullable' } Team: { user_id: biginteger, name: string, personal_team: boolean } TeamInvitation: { team_id: biginteger, email: string, role: 'string nullable' } - User: { name: string, email: string, email_verified_at: 'datetime nullable', password: string, remember_token: 'string:100 nullable', current_team_id: 'biginteger nullable', profile_photo_path: 'string:2048 nullable', two_factor_secret: 'text nullable', two_factor_recovery_codes: 'text nullable', two_factor_confirmed_at: 'datetime nullable' } + User: { name: string, email: string, email_verified_at: 'datetime nullable', password: string, remember_token: 'string:100 nullable', current_team_id: 'biginteger nullable', profile_photo_path: 'string:2048 nullable', is_lecturer: 'boolean default:', two_factor_secret: 'text nullable', two_factor_recovery_codes: 'text nullable', two_factor_confirmed_at: 'datetime nullable' } Country: { name: string, code: string, relationships: { hasMany: City } } - City: { country_id: 'id foreign', name: string } + City: { country_id: 'id foreign', name: string, slug: 'string unique' } Lecturer: { team_id: 'id foreign', name: string, slug: 'string unique', active: 'boolean default:true' } Participant: { first_name: string, last_name: string } Category: { name: string, slug: 'string unique', relationships: { belongsToMany: Course } } diff --git a/app/Models/Category.php b/app/Models/Category.php index a494578c..35cccd4f 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -10,14 +10,11 @@ class Category extends Model use HasFactory; /** - * The attributes that are mass assignable. + * The attributes that aren't mass assignable. * * @var array */ - protected $fillable = [ - 'name', - 'slug', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. diff --git a/app/Models/City.php b/app/Models/City.php index ce843017..dc146327 100644 --- a/app/Models/City.php +++ b/app/Models/City.php @@ -4,31 +4,40 @@ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; +use Spatie\Sluggable\HasSlug; +use Spatie\Sluggable\SlugOptions; class City extends Model { use HasFactory; + use HasSlug; /** - * The attributes that are mass assignable. - * + * The attributes that aren't mass assignable. * @var array */ - protected $fillable = [ - 'country_id', - 'name', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. - * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'country_id' => 'integer', ]; + /** + * Get the options for generating the slug. + */ + public function getSlugOptions(): SlugOptions + { + return SlugOptions::create() + ->generateSlugsFrom('name') + ->saveSlugsTo('slug') + ->usingLanguage('de'); + } + public function country(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Country::class); diff --git a/app/Models/Country.php b/app/Models/Country.php index aad394cd..115129b3 100644 --- a/app/Models/Country.php +++ b/app/Models/Country.php @@ -10,14 +10,11 @@ class Country extends Model use HasFactory; /** - * The attributes that are mass assignable. + * The attributes that aren't mass assignable. * * @var array */ - protected $fillable = [ - 'name', - 'code', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. diff --git a/app/Models/Course.php b/app/Models/Course.php index fd0cbbcf..0e857d8a 100644 --- a/app/Models/Course.php +++ b/app/Models/Course.php @@ -10,14 +10,11 @@ class Course extends Model use HasFactory; /** - * The attributes that are mass assignable. + * The attributes that aren't mass assignable. * * @var array */ - protected $fillable = [ - 'lecturer_id', - 'name', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. diff --git a/app/Models/Event.php b/app/Models/Event.php index eaf417d8..0778a259 100644 --- a/app/Models/Event.php +++ b/app/Models/Event.php @@ -10,16 +10,11 @@ class Event extends Model use HasFactory; /** - * The attributes that are mass assignable. + * The attributes that aren't mass assignable. * * @var array */ - protected $fillable = [ - 'course_id', - 'venue_id', - 'from', - 'to', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. diff --git a/app/Models/Lecturer.php b/app/Models/Lecturer.php index 83e0df4b..97ba95f3 100644 --- a/app/Models/Lecturer.php +++ b/app/Models/Lecturer.php @@ -10,16 +10,11 @@ class Lecturer extends Model use HasFactory; /** - * The attributes that are mass assignable. + * The attributes that aren't mass assignable. * * @var array */ - protected $fillable = [ - 'team_id', - 'name', - 'slug', - 'active', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. diff --git a/app/Models/Participant.php b/app/Models/Participant.php index 6395859c..05a79af9 100644 --- a/app/Models/Participant.php +++ b/app/Models/Participant.php @@ -10,14 +10,11 @@ class Participant extends Model use HasFactory; /** - * The attributes that are mass assignable. + * The attributes that aren't mass assignable. * * @var array */ - protected $fillable = [ - 'first_name', - 'last_name', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. diff --git a/app/Models/Registration.php b/app/Models/Registration.php index 514cd716..9b57027a 100644 --- a/app/Models/Registration.php +++ b/app/Models/Registration.php @@ -10,15 +10,11 @@ class Registration extends Model use HasFactory; /** - * The attributes that are mass assignable. + * The attributes that aren't mass assignable. * * @var array */ - protected $fillable = [ - 'event_id', - 'participant_id', - 'active', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. diff --git a/app/Models/Venue.php b/app/Models/Venue.php index d2bd6dc6..c7ffbfd2 100644 --- a/app/Models/Venue.php +++ b/app/Models/Venue.php @@ -10,16 +10,11 @@ class Venue extends Model use HasFactory; /** - * The attributes that are mass assignable. + * The attributes that aren't mass assignable. * * @var array */ - protected $fillable = [ - 'city_id', - 'name', - 'slug', - 'street', - ]; + protected $guarded = []; /** * The attributes that should be cast to native types. diff --git a/app/Nova/Category.php b/app/Nova/Category.php index aa8dce19..f72a67c4 100644 --- a/app/Nova/Category.php +++ b/app/Nova/Category.php @@ -9,8 +9,6 @@ use Laravel\Nova\Fields\BelongsToMany; class Category extends Resource { - - /** * The model the resource corresponds to. * @@ -34,11 +32,6 @@ class Category extends Resource 'id', ]; - public static function label() - { - return __('Categories'); - } - /** * Get the fields displayed by the resource. * diff --git a/app/Nova/City.php b/app/Nova/City.php index 09e4a49b..4b611ff4 100644 --- a/app/Nova/City.php +++ b/app/Nova/City.php @@ -2,52 +2,53 @@ namespace App\Nova; -use Illuminate\Http\Request; -use Laravel\Nova\Fields\BelongsTo; use Laravel\Nova\Fields\ID; +use Illuminate\Http\Request; use Laravel\Nova\Fields\Text; +use Laravel\Nova\Fields\BelongsTo; class City extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\City::class; + /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'id'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ 'id', ]; - public static function label() - { - return __('Cities'); - } - /** * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) { return [ - ID::make() - ->sortable(), + ID::make()->sortable(), Text::make('Name') ->rules('required', 'string'), + Text::make('Slug') + ->rules('required', 'string', 'unique:cities,slug'), + BelongsTo::make('Country'), @@ -58,7 +59,6 @@ class City extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -70,7 +70,6 @@ class City extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -82,7 +81,6 @@ class City extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -94,7 +92,6 @@ class City extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Country.php b/app/Nova/Country.php index 95c6d78c..fd9457fd 100644 --- a/app/Nova/Country.php +++ b/app/Nova/Country.php @@ -9,8 +9,6 @@ use Laravel\Nova\Fields\HasMany; class Country extends Resource { - - /** * The model the resource corresponds to. * @@ -34,11 +32,6 @@ class Country extends Resource 'id', ]; - public static function label() - { - return __('Countries'); - } - /** * Get the fields displayed by the resource. * diff --git a/app/Nova/Course.php b/app/Nova/Course.php index 7ad267e9..c98a6ebd 100644 --- a/app/Nova/Course.php +++ b/app/Nova/Course.php @@ -10,8 +10,6 @@ use Laravel\Nova\Fields\BelongsToMany; class Course extends Resource { - - /** * The model the resource corresponds to. * @@ -35,11 +33,6 @@ class Course extends Resource 'id', ]; - public static function label() - { - return __('Courses'); - } - /** * Get the fields displayed by the resource. * diff --git a/app/Nova/Event.php b/app/Nova/Event.php index 449f65e8..46cef740 100644 --- a/app/Nova/Event.php +++ b/app/Nova/Event.php @@ -9,8 +9,6 @@ use Laravel\Nova\Fields\BelongsTo; class Event extends Resource { - - /** * The model the resource corresponds to. * @@ -34,11 +32,6 @@ class Event extends Resource 'id', ]; - public static function label() - { - return __('Events'); - } - /** * Get the fields displayed by the resource. * diff --git a/app/Nova/Lecturer.php b/app/Nova/Lecturer.php index 5f361604..dc6bbc9a 100644 --- a/app/Nova/Lecturer.php +++ b/app/Nova/Lecturer.php @@ -10,8 +10,6 @@ use Laravel\Nova\Fields\BelongsTo; class Lecturer extends Resource { - - /** * The model the resource corresponds to. * @@ -35,11 +33,6 @@ class Lecturer extends Resource 'id', ]; - public static function label() - { - return __('Lecturers'); - } - /** * Get the fields displayed by the resource. * diff --git a/app/Nova/Participant.php b/app/Nova/Participant.php index f9d99acd..1d588412 100644 --- a/app/Nova/Participant.php +++ b/app/Nova/Participant.php @@ -8,8 +8,6 @@ use Laravel\Nova\Fields\Text; class Participant extends Resource { - - /** * The model the resource corresponds to. * @@ -33,11 +31,6 @@ class Participant extends Resource 'id', ]; - public static function label() - { - return __('Participants'); - } - /** * Get the fields displayed by the resource. * diff --git a/app/Nova/Registration.php b/app/Nova/Registration.php index cdc87142..5c5d8b93 100644 --- a/app/Nova/Registration.php +++ b/app/Nova/Registration.php @@ -9,8 +9,6 @@ use Laravel\Nova\Fields\BelongsTo; class Registration extends Resource { - - /** * The model the resource corresponds to. * @@ -34,11 +32,6 @@ class Registration extends Resource 'id', ]; - public static function label() - { - return __('Registrations'); - } - /** * Get the fields displayed by the resource. * diff --git a/app/Nova/Venue.php b/app/Nova/Venue.php index 130eca23..07f88ac7 100644 --- a/app/Nova/Venue.php +++ b/app/Nova/Venue.php @@ -9,8 +9,6 @@ use Laravel\Nova\Fields\BelongsTo; class Venue extends Resource { - - /** * The model the resource corresponds to. * @@ -34,11 +32,6 @@ class Venue extends Resource 'id', ]; - public static function label() - { - return __('Venues'); - } - /** * Get the fields displayed by the resource. * diff --git a/app/Policies/TeamPolicy.php b/app/Policies/TeamPolicy.php index 277163c9..f8c91956 100644 --- a/app/Policies/TeamPolicy.php +++ b/app/Policies/TeamPolicy.php @@ -14,6 +14,7 @@ class TeamPolicy * Determine whether the user can view any models. * * @param \App\Models\User $user + * * @return mixed */ public function viewAny(User $user) @@ -26,6 +27,7 @@ class TeamPolicy * * @param \App\Models\User $user * @param \App\Models\Team $team + * * @return mixed */ public function view(User $user, Team $team) @@ -37,11 +39,12 @@ class TeamPolicy * Determine whether the user can create models. * * @param \App\Models\User $user + * * @return mixed */ public function create(User $user) { - return true; + return false; } /** @@ -49,6 +52,7 @@ class TeamPolicy * * @param \App\Models\User $user * @param \App\Models\Team $team + * * @return mixed */ public function update(User $user, Team $team) @@ -61,6 +65,7 @@ class TeamPolicy * * @param \App\Models\User $user * @param \App\Models\Team $team + * * @return mixed */ public function addTeamMember(User $user, Team $team) @@ -73,6 +78,7 @@ class TeamPolicy * * @param \App\Models\User $user * @param \App\Models\Team $team + * * @return mixed */ public function updateTeamMember(User $user, Team $team) @@ -85,6 +91,7 @@ class TeamPolicy * * @param \App\Models\User $user * @param \App\Models\Team $team + * * @return mixed */ public function removeTeamMember(User $user, Team $team) @@ -97,10 +104,12 @@ class TeamPolicy * * @param \App\Models\User $user * @param \App\Models\Team $team + * * @return mixed */ public function delete(User $user, Team $team) { - return $user->ownsTeam($team); + // return $user->ownsTeam($team); + return false; } } diff --git a/config/blueprint.php b/config/blueprint.php index 04db276b..298e045e 100644 --- a/config/blueprint.php +++ b/config/blueprint.php @@ -112,7 +112,7 @@ return [ | generated "unguarded" models. | */ - 'use_guarded' => false, + 'use_guarded' => true, /* |-------------------------------------------------------------------------- diff --git a/config/nova.php b/config/nova.php index f2743e3a..f30d68b5 100644 --- a/config/nova.php +++ b/config/nova.php @@ -104,6 +104,7 @@ return [ DispatchServingNovaEvent::class, BootTools::class, \Itsmejoshua\Novaspatiepermissions\ForgetCachedPermissions::class, + 'verified' ], 'api_middleware' => [ diff --git a/database/factories/CityFactory.php b/database/factories/CityFactory.php index 10f0e6cc..591528df 100644 --- a/database/factories/CityFactory.php +++ b/database/factories/CityFactory.php @@ -26,6 +26,7 @@ class CityFactory extends Factory return [ 'country_id' => Country::factory(), 'name' => $this->faker->name, + 'slug' => $this->faker->slug, ]; } } diff --git a/database/migrations/2022_12_01_100450_create_countries_table.php b/database/migrations/2022_12_01_145948_create_countries_table.php similarity index 100% rename from database/migrations/2022_12_01_100450_create_countries_table.php rename to database/migrations/2022_12_01_145948_create_countries_table.php diff --git a/database/migrations/2022_12_01_100451_create_cities_table.php b/database/migrations/2022_12_01_145949_create_cities_table.php similarity index 94% rename from database/migrations/2022_12_01_100451_create_cities_table.php rename to database/migrations/2022_12_01_145949_create_cities_table.php index 4a9a0b66..4d803725 100644 --- a/database/migrations/2022_12_01_100451_create_cities_table.php +++ b/database/migrations/2022_12_01_145949_create_cities_table.php @@ -19,6 +19,7 @@ class CreateCitiesTable extends Migration $table->id(); $table->foreignId('country_id')->constrained()->cascadeOnDelete()->cascadeOnUpdate(); $table->string('name'); + $table->string('slug')->unique(); $table->timestamps(); }); diff --git a/database/migrations/2022_12_01_100452_create_lecturers_table.php b/database/migrations/2022_12_01_145950_create_lecturers_table.php similarity index 100% rename from database/migrations/2022_12_01_100452_create_lecturers_table.php rename to database/migrations/2022_12_01_145950_create_lecturers_table.php diff --git a/database/migrations/2022_12_01_100453_create_participants_table.php b/database/migrations/2022_12_01_145951_create_participants_table.php similarity index 100% rename from database/migrations/2022_12_01_100453_create_participants_table.php rename to database/migrations/2022_12_01_145951_create_participants_table.php diff --git a/database/migrations/2022_12_01_100454_create_categories_table.php b/database/migrations/2022_12_01_145952_create_categories_table.php similarity index 100% rename from database/migrations/2022_12_01_100454_create_categories_table.php rename to database/migrations/2022_12_01_145952_create_categories_table.php diff --git a/database/migrations/2022_12_01_100455_create_courses_table.php b/database/migrations/2022_12_01_145953_create_courses_table.php similarity index 100% rename from database/migrations/2022_12_01_100455_create_courses_table.php rename to database/migrations/2022_12_01_145953_create_courses_table.php diff --git a/database/migrations/2022_12_01_100456_create_venues_table.php b/database/migrations/2022_12_01_145954_create_venues_table.php similarity index 100% rename from database/migrations/2022_12_01_100456_create_venues_table.php rename to database/migrations/2022_12_01_145954_create_venues_table.php diff --git a/database/migrations/2022_12_01_100457_create_events_table.php b/database/migrations/2022_12_01_145955_create_events_table.php similarity index 100% rename from database/migrations/2022_12_01_100457_create_events_table.php rename to database/migrations/2022_12_01_145955_create_events_table.php diff --git a/database/migrations/2022_12_01_100458_create_registrations_table.php b/database/migrations/2022_12_01_145956_create_registrations_table.php similarity index 100% rename from database/migrations/2022_12_01_100458_create_registrations_table.php rename to database/migrations/2022_12_01_145956_create_registrations_table.php diff --git a/database/migrations/2022_12_01_100459_create_category_course_table.php b/database/migrations/2022_12_01_145957_create_category_course_table.php similarity index 100% rename from database/migrations/2022_12_01_100459_create_category_course_table.php rename to database/migrations/2022_12_01_145957_create_category_course_table.php diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index ac1fd035..4296384f 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -59,14 +59,17 @@ class DatabaseSeeder extends Seeder City::create([ 'country_id' => 1, 'name' => 'Füssen', + 'slug' => str('Füssen')->slug('-', 'de'), ]); City::create([ 'country_id' => 2, 'name' => 'Wien', + 'slug' => str('Wien')->slug('-', 'de'), ]); City::create([ 'country_id' => 3, 'name' => 'Zürich', + 'slug' => str('Zürich')->slug('-', 'de'), ]); Venue::create([ 'city_id' => 1, diff --git a/draft.yaml b/draft.yaml index 704cc44e..93e20b85 100644 --- a/draft.yaml +++ b/draft.yaml @@ -7,6 +7,7 @@ models: City: country_id: id foreign name: string + slug: string unique Lecturer: team_id: id foreign name: string diff --git a/nova-components/Start/dist/js/card.js b/nova-components/Start/dist/js/card.js index 612a536a..ea9080e2 100644 --- a/nova-components/Start/dist/js/card.js +++ b/nova-components/Start/dist/js/card.js @@ -19,32 +19,24 @@ __webpack_require__.r(__webpack_exports__); }, methods: { link: function link(path) { - return "https://nova.laravel.com/docs/".concat(this.version, "/").concat(path); + return "/nova/".concat(path); } }, computed: { - resources: function resources() { - return this.link('resources'); + cities: function cities() { + return this.link('resources/cities'); }, - actions: function actions() { - return this.link('actions/defining-actions.html'); + venues: function venues() { + return this.link('resources/venues'); }, - filters: function filters() { - return this.link('filters/defining-filters.html'); + lecturers: function lecturers() { + return this.link('resources/lecturers'); }, - lenses: function lenses() { - return this.link('lenses/defining-lenses.html'); + courses: function courses() { + return this.link('resources/courses'); }, - metrics: function metrics() { - return this.link('metrics/defining-metrics.html'); - }, - cards: function cards() { - return this.link('customization/cards.html'); - }, - version: function version() { - var parts = Nova.config('version').split('.'); - parts.splice(-2); - return "".concat(parts, ".0"); + events: function events() { + return this.link('resources/events'); } } }); @@ -142,7 +134,10 @@ var _hoisted_25 = { var _hoisted_26 = { "class": "md:border-b-0 border-b border-gray-200 dark:border-gray-700" }; -var _hoisted_27 = ["href"]; +var _hoisted_27 = { + href: "#", + "class": "no-underline flex p-6" +}; var _hoisted_28 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { "class": "flex justify-center w-11 flex-shrink-0 mr-6" }, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { @@ -165,7 +160,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, { "default": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(function () { return [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", { - href: $options.resources, + target: "_blank", + href: $options.cities, "class": "no-underline flex p-6" }, [_hoisted_8, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Heading, { level: 3 @@ -176,7 +172,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { _: 1 /* STABLE */ }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_9, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.__('Gehe auf die Seite "Städte" und suche nach der Stadt, in der du die Items anlegen möchtest. Wenn du die Stadt nicht findest, kannst du sie anlegen.')), 1 /* TEXT */)])], 8 /* PROPS */, _hoisted_7)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_10, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", { - href: $options.actions, + target: "_blank", + href: $options.venues, "class": "no-underline flex p-6" }, [_hoisted_12, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Heading, { level: 3 @@ -187,7 +184,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { _: 1 /* STABLE */ }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_13, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.__('Gehe auf die Seite "Veranstaltungs-Orte" und suche nach dem Ort, an dem du die Items anlegen möchtest. Wenn du den Ort nicht findest, kannst du ihn anlegen.')), 1 /* TEXT */)])], 8 /* PROPS */, _hoisted_11)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_14, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", { - href: $options.filters, + target: "_blank", + href: $options.lecturers, "class": "no-underline flex p-6" }, [_hoisted_16, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Heading, { level: 3 @@ -198,7 +196,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { _: 1 /* STABLE */ }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_17, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.__('Gehe auf die Seite "Dozenten" und suche nach deinem Dozenten-Profil. Wenn du es nicht findest, kannst du es anlegen.')), 1 /* TEXT */)])], 8 /* PROPS */, _hoisted_15)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_18, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", { - href: $options.lenses, + target: "_blank", + href: $options.courses, "class": "no-underline flex p-6" }, [_hoisted_20, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Heading, { level: 3 @@ -209,7 +208,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { _: 1 /* STABLE */ }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_21, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.__('Gehe auf die Seite "Kurse" und suche nach dem Kurs, den du editieren möchtest. Wenn du den Kurs nicht findest, kannst du ihn anlegen.')), 1 /* TEXT */)])], 8 /* PROPS */, _hoisted_19)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_22, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", { - href: $options.metrics, + target: "_blank", + href: $options.events, "class": "no-underline flex p-6" }, [_hoisted_24, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Heading, { level: 3 @@ -219,10 +219,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }), _: 1 /* STABLE */ - }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_25, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.__('Gehe auf die Seite "Termine" und suche nach dem Termin, den du editieren möchtest. Wenn du den Termin nicht findest, kannst du ihn anlegen.')), 1 /* TEXT */)])], 8 /* PROPS */, _hoisted_23)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_26, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", { - href: $options.cards, - "class": "no-underline flex p-6" - }, [_hoisted_28, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Heading, { + }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_25, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.__('Gehe auf die Seite "Termine" und suche nach dem Termin, den du editieren möchtest. Wenn du den Termin nicht findest, kannst du ihn anlegen.')), 1 /* TEXT */)])], 8 /* PROPS */, _hoisted_23)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_26, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", _hoisted_27, [_hoisted_28, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Heading, { level: 3 }, { "default": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(function () { @@ -230,8 +227,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }), _: 1 /* STABLE */ - }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_29, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.__('Wenn Buttons zur Bearbeitung fehlen, dann hast du nicht die nötigen Berechtigungen. Melde dich bei einem der Admins.')), 1 /* TEXT */)])], 8 /* PROPS */, _hoisted_27)])])]; + }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_29, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.__('Wenn Buttons zur Bearbeitung fehlen, dann hast du nicht die nötigen Berechtigungen. Melde dich bei einem der Admins.')), 1 /* TEXT */)])])])])]; }), + _: 1 /* STABLE */ })])]); } diff --git a/nova-components/Start/resources/js/components/Card.vue b/nova-components/Start/resources/js/components/Card.vue index 3feb32b5..e5966faf 100644 --- a/nova-components/Start/resources/js/components/Card.vue +++ b/nova-components/Start/resources/js/components/Card.vue @@ -12,7 +12,7 @@