+
{{
$t('signin.register')
}}
diff --git a/plugins/firebase.js b/plugins/firebase.js
index 0a5dc8d6..5a562275 100644
--- a/plugins/firebase.js
+++ b/plugins/firebase.js
@@ -8,7 +8,7 @@ if (!process.env.firebase.config?.apiKey) {
}
// eslint-disable-next-line import/no-mutable-exports
-let track = function(...params) {
+let track = function (...params) {
if (process.env.firebase.analyticsDebug) {
console.log('[track]', ...params)
}
diff --git a/tailwind.config.js b/tailwind.config.js
index 90664e45..f1d51b94 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -31,6 +31,8 @@ module.exports = {
},
},
plugins: [
+ require('@tailwindcss/typography'),
// require('@tailwindcss/forms')
+ require('prettier-plugin-tailwindcss'),
],
}
diff --git a/use/app.js b/use/app.js
index db3df348..85c42f1f 100644
--- a/use/app.js
+++ b/use/app.js
@@ -55,13 +55,10 @@ export async function warmup() {
'location',
])
- await db
- .collection('app')
- .doc('v2')
- .set({
- profiles,
- cities,
- })
+ await db.collection('app').doc('v2').set({
+ profiles,
+ cities,
+ })
}
export async function cacheCity(placeId, data) {
diff --git a/use/auth.js b/use/auth.js
index 3d592ea2..b8ceab0e 100644
--- a/use/auth.js
+++ b/use/auth.js
@@ -175,10 +175,7 @@ export const useAuth = () => {
zone: Intl.DateTimeFormat().resolvedOptions().timeZone,
}
- await firestore
- .collection('accounts')
- .doc(state.uid)
- .set(newAccount)
+ await firestore.collection('accounts').doc(state.uid).set(newAccount)
await loadAccount()
}
@@ -228,10 +225,7 @@ export const useAuth = () => {
async function loadAccount() {
state.loading = true
- const doc = await firestore
- .collection('accounts')
- .doc(state.uid)
- .get()
+ const doc = await firestore.collection('accounts').doc(state.uid).get()
if (!doc.exists) {
return false
@@ -251,10 +245,7 @@ export const useAuth = () => {
state.loading = true
- const doc = await firestore
- .collection('profiles')
- .doc(state.uid)
- .get()
+ const doc = await firestore.collection('profiles').doc(state.uid).get()
if (!doc.exists) {
const profile = {
@@ -269,10 +260,7 @@ export const useAuth = () => {
name: ls('username'),
}
- await firestore
- .collection('profiles')
- .doc(state.uid)
- .set(profile)
+ await firestore.collection('profiles').doc(state.uid).set(profile)
ls.remove('username')
@@ -301,10 +289,7 @@ export const useAuth = () => {
...data,
}
- await firestore
- .collection('profiles')
- .doc(state.uid)
- .update(changes)
+ await firestore.collection('profiles').doc(state.uid).update(changes)
await loadProfile()
}
@@ -331,10 +316,7 @@ export const useAuth = () => {
...data,
}
- await firestore
- .collection('accounts')
- .doc(state.uid)
- .update(changes)
+ await firestore.collection('accounts').doc(state.uid).update(changes)
await loadAccount()
}
diff --git a/use/styles.js b/use/styles.js
index 2e3aa14f..f976a4c6 100644
--- a/use/styles.js
+++ b/use/styles.js
@@ -10,9 +10,7 @@ export const useStyles = () => {
const { $content } = useContext()
const load = async () => {
- state.collection = await $content('styles')
- .sortBy('id')
- .fetch()
+ state.collection = await $content('styles').sortBy('id').fetch()
}
if (!state.collection.length) {
diff --git a/use/upload.js b/use/upload.js
index c273d915..d7c3d0f5 100644
--- a/use/upload.js
+++ b/use/upload.js
@@ -15,11 +15,7 @@ export const useUpload = () => {
return new Promise((resolve) => {
const ref = `media/${uid.value}/${id}`
- const uploadTask = firebase
- .storage()
- .ref()
- .child(ref)
- .put(file, metadata)
+ const uploadTask = firebase.storage().ref().child(ref).put(file, metadata)
uploadTask.on(
'state_changed',
diff --git a/utils.js b/utils.js
index ee3d51c7..e1d0abad 100644
--- a/utils.js
+++ b/utils.js
@@ -148,7 +148,7 @@ export const getId = (text) => {
export const camelize = (str) => {
return str
- .replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
+ .replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) {
return index === 0 ? word.toLowerCase() : word.toUpperCase()
})
.replace(/\s+/g, '')
@@ -202,10 +202,7 @@ export const getOptions = (items, label) => {
}
function getLang(languageString) {
- const [language] = languageString
- .replace('-', '_')
- .toLowerCase()
- .split('_')
+ const [language] = languageString.replace('-', '_').toLowerCase().split('_')
return language
}
@@ -532,7 +529,8 @@ export const getUrlFromText = (text) => {
}
export const getYoutubeId = (url) => {
- const regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/
+ const regExp =
+ /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/
const match = url.match(regExp)
const videoId = match && match[7].length === 11 ? match[7] : ''
diff --git a/yarn.lock b/yarn.lock
index 8002059f..220ee6a9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2495,6 +2495,15 @@
dependencies:
mini-svg-data-uri "^1.2.3"
+"@tailwindcss/typography@^0.5.1":
+ version "0.5.1"
+ resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.5.1.tgz#486248a9426501f11a9b0295f7cfc0eb29659c46"
+ integrity sha512-AmSzZSgLhHKlILKduU+PKBTHL6c+al82syZlRid1xgmlWwXagLigO+O++B4C0scpMfzW//f/3YCRcwwEHWoU3w==
+ dependencies:
+ lodash.castarray "^4.4.0"
+ lodash.isplainobject "^4.0.6"
+ lodash.merge "^4.6.2"
+
"@types/anymatch@*":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
@@ -9519,6 +9528,11 @@ lodash.camelcase@^4.3.0:
resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY=
+lodash.castarray@^4.4.0:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz#c02513515e309daddd4c24c60cfddcf5976d9115"
+ integrity sha1-wCUTUV4wna3dTCTGDP3c9ZdtkRU=
+
lodash.clonedeep@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
@@ -9569,6 +9583,11 @@ lodash.isequal@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA=
+lodash.isplainobject@^4.0.6:
+ version "4.0.6"
+ resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"
+ integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=
+
lodash.kebabcase@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36"
@@ -12210,7 +12229,17 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"
-prettier@^1.18.2, prettier@^1.19.1:
+prettier-plugin-tailwindcss@^0.1.6:
+ version "0.1.6"
+ resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.1.6.tgz#a086682c16ba51629d068a3eb153662be5987e52"
+ integrity sha512-7OcFAv6d41KV61cDdn+mZycddAXQhv/B2yfA7ooK/yXPnBJf51Lx7iODOOQwOoMzSJQ/MJNqlK3BxqT9gDKVLA==
+
+prettier@2.5.1:
+ version "2.5.1"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
+ integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
+
+prettier@^1.18.2:
version "1.19.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==