some db changes, frontend changes
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class WishController extends Controller
|
||||||
|
{
|
||||||
|
public function getOpenWishes(int $page) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
||||||
|
|
||||||
class Wishes extends Model
|
class Wish extends Model
|
||||||
{
|
{
|
||||||
use HasUuids;
|
use HasUuids;
|
||||||
use HasFactory;
|
use HasFactory;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Model;
|
use App\Models\Wish;
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -19,7 +19,7 @@ class WishFactory extends Factory
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'title' => fake()->sentence(),
|
'title' => fake()->sentence(),
|
||||||
'decription' => fake()->paragraph(),
|
'description' => fake()->paragraph(),
|
||||||
'reward' => fake()->word(),
|
'reward' => fake()->word(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('wishes', function (Blueprint $table) {
|
Schema::create('wishes', function (Blueprint $table) {
|
||||||
$table->uuid()->primary();
|
$table->uuid('id')->primary();
|
||||||
$table->string('title');
|
$table->string('title');
|
||||||
$table->text('description');
|
$table->text('description');
|
||||||
$table->string('reward')->nullable();
|
$table->string('reward')->nullable();
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -4,7 +4,10 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="wish-main">
|
<div class="wish-main">
|
||||||
<img class="wish-filter" :src="'/skonk/quest_backdrop_' + type + '.png'">
|
<img :src="'/skonk/quest_backdrop_' + type + '.png'">
|
||||||
|
<div class="wish-sub" v-if="type <= 2">
|
||||||
|
<img :src="'/skonk/quest_backdrop_' + type + '_filter.png'" :style="'filter: hue-rotate(' + color + 'deg);'">
|
||||||
|
</div>
|
||||||
<div class="wish-sub" v-if="type <= 2">
|
<div class="wish-sub" v-if="type <= 2">
|
||||||
<img :src="'/skonk/quest_rune_' + rune + '.png'">
|
<img :src="'/skonk/quest_rune_' + rune + '.png'">
|
||||||
</div>
|
</div>
|
||||||
@@ -22,7 +25,11 @@
|
|||||||
},
|
},
|
||||||
rune: {
|
rune: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 3,
|
default: 1,
|
||||||
|
},
|
||||||
|
color: {
|
||||||
|
type: Number,
|
||||||
|
default: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
@@ -40,7 +47,4 @@
|
|||||||
.wish-sub {
|
.wish-sub {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
.wish-filter {
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<body>
|
<body>
|
||||||
<Wish/>
|
<Wish rune="1" color="200"/>
|
||||||
|
<Wish type="1" rune="1"/>
|
||||||
</body>
|
</body>
|
||||||
</template>
|
</template>
|
||||||
Reference in New Issue
Block a user