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 lang="ts"> | |
| import { onUnmounted, watch } from 'vue' | |
| import { useEventListener } from '@vueuse/core' | |
| const opened = defineModel<boolean>({ default: false }) | |
| const props = defineProps<{ | |
| fullscreen?: boolean | |
| side?: 'left' | 'right' | 'top' | 'bottom' | |
| }>() |
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\Console\Commands\Utils; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\Date; | |
| use Illuminate\Support\Facades\DB; | |
| class JobsStatus extends Command | |
| { |
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
| #!/bin/bash | |
| # Скрипт для сжатия изображений с помощью ImageMagick | |
| # Учитывает контекст и назначение изображений для оптимального сжатия | |
| # Использование: ./compress_images.sh | |
| echo "🚀 Начинаем сжатие изображений с учетом контекста..." | |
| # Создаем папку для сжатых изображений | |
| mkdir -p images/compressed |
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
| import fetch from 'node-fetch' | |
| import {RECAPTCHA_SECRET_KEY} from './settings' | |
| const RECAPTCHA_VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify' | |
| const RECAPTCHA_VERSION_NUM = 3 | |
| export async function verifyRecaptchaToken(token) { | |
| const body = { | |
| secret: RECAPTCHA_SECRET_KEY, |
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\Utils; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Support\Facades\Storage; | |
| class ExcelHelper | |
| { | |
| static function downloadCollectionAsExcel(Collection $collection, $fileName = 'export.xls') |
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> | |
| export default { | |
| name: 'UtilsDropzone', | |
| data() { | |
| return { | |
| active: false, | |
| visible: false, | |
| } | |
| }, | |
| render() { |
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
| <template> | |
| <div class="ui-switcher" :class="{ | |
| 'ui-switcher--relative': !isExternalRelative, | |
| 'ui-switcher--small': isSmall, | |
| }"> | |
| <input class="ui-switcher__input" type="checkbox" v-model="checked" @change="onChange"/> | |
| <span class="ui-switcher__display"></span> | |
| </div> | |
| </template> |
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\Http\Middleware; | |
| use Carbon\Carbon; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Facades\Cache; | |
| class Online |
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\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Illuminate\Support\Facades\Cache; | |
| use Carbon\Carbon; |
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
| <template> | |
| <div | |
| class="ui-bottom-sheet" | |
| :class="{ | |
| opened: opened, | |
| closed: opened === false, | |
| moving: moving | |
| }" | |
| v-on="handlers" | |
| ref="bottomSheet" |
NewerOlder