<img src="/default/avatar.webp" alt="Avatar image" id="avatar">
<form method="post" enctype="multipart/form-data" onsubmit="getData(event)">
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // First example | |
| export default class Singleton { | |
| number = 0; | |
| constructor() { | |
| if (!!Singleton.instance) { | |
| return Singleton.instance; | |
| } | |
| Singleton.instance = this; | |
| // return this; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script setup> | |
| import editIcon from '@/assets/svg/edit-svgrepo-com.svg?raw'; | |
| </script> | |
| <template> | |
| <div class="svg-icon" v-html="editIcon"></div> | |
| </template> | |
| <style> | |
| .svg-icon { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script setup> | |
| import { useAttrs, ref } from 'vue'; | |
| const emits = defineEmits(['update:modelValue', 'valid', 'invalid']); | |
| const props = defineProps({ | |
| modelValue: [String, Number], | |
| name: { type: String }, | |
| label: { type: String }, | |
| placeholder: { type: String }, |
Product Attribute Management in Laravel, storing Product attributes such as Size, Color, Weight. See: https://github.com/atomjoy/laravel-products/tree/main
Products (id, name, desc, visible)
# 1, Shirt, Description, true
# 2, Laptop, Description, true
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Concerns\HasUuids; | |
| use Illuminate\Support\Str; | |
| /** | |
| * Uuid class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; */ | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); | |
| @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); | |
| @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap'); | |
| :root { | |
| --color-gray-50: #fafafa; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; */ | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); | |
| @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); | |
| @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap'); | |
| :root { | |
| --bw-text-1: #0f0f0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script setup> | |
| import { ref } from 'vue'; | |
| function htmlEntities(str) { | |
| return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"'); | |
| } | |
| let code = ref(` | |
| <span style="color: red;">Hello</span> | |
| <?php |