Skip to content

Instantly share code, notes, and snippets.

@fessacchiotto
fessacchiotto / cors-policy.xml
Created November 22, 2022 16:56
Cloudflare R2 CORS policy XML file
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration
xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedOrigin>*</AllowedOrigin>
<AllowedHeaders>*</AllowedHeaders>
@fessacchiotto
fessacchiotto / beta15.vue
Created October 27, 2022 20:32
beta15.vue
<v-card-text class="mt-5">
<v-row>
<v-col>
<!-- ++{{ baseUrl}} -->
<v-text-field
autocomplete="username"
:label="t('message.email')"
hide-details="auto"
@fessacchiotto
fessacchiotto / warnings Vuetify beta15
Created October 27, 2022 20:21
warnings Vuetify beta15
runtime-core.esm-bundler.js:38 [Vue warn]: Maximum recursive updates exceeded in component <VCol>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.
at <InputIcon key="append-icon" name="appendInner" >
at <VField ref=Ref< undefined > onMousedown=fn<onMousedown> onClick:control=fn<onControlClick> ... >
at <VInput ref=Ref< undefined > modelValue="frescone" onUpdate:modelValue=fn<onUpdate:modelValue> ... >
at <VTextField autocomplete="current-password" append-inner-icon="mdi-eye-off" type="password" ... >
at <VCol>
at <VRow>
at <VCardText class="mt-5" >
at <VCard variant="text" width=794 >
at <VCol>
@fessacchiotto
fessacchiotto / Vuetify beta 15
Created October 27, 2022 20:18
Vuetify beta 15
vuetify.ts:28 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'en')
at vuetify.ts:28:53
at InputIcon (InputIcon.tsx:31:9)
at renderComponentRoot (runtime-core.esm-bundler.js:923:19)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5615:57)
at ReactiveEffect.run (reactivity.esm-bundler.js:187:25)
at instance.update (runtime-core.esm-bundler.js:5729:56)
at setupRenderEffect (runtime-core.esm-bundler.js:5743:9)
at mountComponent (runtime-core.esm-bundler.js:5525:9)
at processComponent (runtime-core.esm-bundler.js:5483:17)
TypeError: o is not a function. (In 'o(l,M$(e,n,a,l,s,r))', 'o' is undefined)
gp — vue-i18n.runtime.esm-bundler.js:1
Rf — vue-i18n.runtime.esm-bundler.js:1
K — vue-router.esm-bundler.js:1
(anonymous function) — main.js:18
l — runtime-core.esm-bundler.js:3649
default — VBottomNavigation.mjs:109
Du — runtime-dom.esm-bundler.js:1159
la — runtime-dom.esm-bundler.js:1030
Rs — runtime-core.esm-bundler.js:3727
@fessacchiotto
fessacchiotto / vite.config.js
Last active April 26, 2022 08:01
in project root
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vuetify from "@vuetify/vite-plugin";
import vueI18n from '@intlify/vite-plugin-vue-i18n'
import fs from 'fs';
import path from "path";
export default defineConfig({
plugins: [
vue(),
import "vuetify/styles"; // Global CSS has to be imported
import { createApp } from "vue";
import {vuetify, i18n} from "./plugins/vuetify";
import { loadFonts } from "./plugins/webfontloader";
import App from "./App.vue";
import { interceptorsSetup } from "../../common/interceptors.js";
import { router } from "./router";
loadFonts();
@fessacchiotto
fessacchiotto / Vuetify.js
Created April 26, 2022 07:57
in /src/plugins
// Styles
import "@mdi/font/css/materialdesignicons.css";
import "vuetify/styles";
// Vuetify
import { createVuetify } from "vuetify";
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
import { createVueI18nAdapter } from "vuetify/locale/adapters/vue-i18n";
import { createI18n, useI18n } from "vue-i18n";