Dtorage docs https://laravel.com/docs/12.x/filesystem#sftp-driver-configuration
composer require league/flysystem-ftp "^3.0"Dtorage docs https://laravel.com/docs/12.x/filesystem#sftp-driver-configuration
composer require league/flysystem-ftp "^3.0"| <?php | |
| namespace App\Http\Resources; | |
| use App\Models\Admin; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Resources\Json\JsonResource; | |
| class ArticleResource extends JsonResource | |
| { |
| <script setup> | |
| import svg from '@/assets/svg/edit-svgrepo-com.svg?raw'; | |
| </script> | |
| <template> | |
| <div class="input-wrapper__icon" v-html="svg"></div> | |
| </template> |
| <script setup> | |
| import { codeToHtml } from 'https://esm.sh/[email protected]'; | |
| import { onMounted } from 'vue'; | |
| onMounted(() => { | |
| const all = document.querySelectorAll('code'); | |
| all.forEach(async (f) => { | |
| const theme = ['github-light', 'slack-ochin', 'vitesse-light', 'everforest-light', 'everforest-dark', 'vitesse-dark', 'one-dark-pro', 'synthwave-84', 'gruvbox-dark-medium', 'gruvbox-dark-soft', 'gruvbox-light-soft', 'rose-pine', 'rose-pine-moon', 'rose-pine-dawn', 'plastic', 'laserwave', 'kanagawa-dragon', 'kanagawa-wave', 'material-theme', 'material-theme-darker']; | |
| let code = f.innerText; |
| <template></template> | |
| <script setup> | |
| import { watch } from 'vue'; | |
| const props = defineProps({ | |
| json: { | |
| type: [Array, Object], | |
| default: [], | |
| }, | |
| }); |
| <template></template> | |
| <script setup> | |
| import { watch } from 'vue'; | |
| import { useI18n } from 'vue-i18n'; | |
| const { t, locale } = useI18n({ useScope: 'global' }); | |
| const props = defineProps({ | |
| json: { | |
| type: [Array, Object], |
| <template> | |
| <div class="change_locale"> | |
| <select v-model="locale" class="locale_select"> | |
| <option | |
| v-for="lang in availableLocales" | |
| :key="`locale-${lang}`" | |
| :value="lang" | |
| > | |
| {{ t(lang) }} | |
| </option> |