diff --git a/.env.example b/.env.example index 01b5178..094f55f 100644 --- a/.env.example +++ b/.env.example @@ -20,6 +20,9 @@ NUXT_PORT=3000 VIDEO_BITRATE=1200 AUDIO_BITRATE=128 +# Optional: link to local Borealis repository for @cryb/borealis development. Not recommended—disabled in production +# BOREALIS_REPOSITORY= + # Optional: Branding # BRAND_NAME= # BRAND_LANDING_VIDEO_ID= diff --git a/.eslintrc.json b/.eslintrc.json index afbc9d8..0c18f86 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,6 +15,7 @@ "parser": "babel-eslint" }, "rules": { + "curly": ["error", "multi"], "linebreak-style": ["error", "unix"], "no-cond-assign": "error", @@ -24,8 +25,16 @@ }], "semi": "off", "vue/html-indent": ["warn", 4], - "vue/max-attributes-per-line": ["warn", { - "singleline": 2 - }] + "vue/max-attributes-per-line": ["off"], + "vue/html-self-closing": ["off", { + "html": { + "void": "never", + "normal": "always", + "component": "always" + }, + "svg": "always", + "math": "always" + }], + "vue/html-quotes": ["off", "double"] } } diff --git a/brand/pages.js b/brand/pages.js new file mode 100644 index 0000000..c80932d --- /dev/null +++ b/brand/pages.js @@ -0,0 +1,18 @@ +export default [ + { + name: 'Terms of Service', + link: 'https://www.notion.so/cryb/Terms-of-Service-513af510c55140c1adef76b7c06eb595' + }, + { + name: 'Privacy Policy', + link: 'https://www.notion.so/cryb/Privacy-Policy-9580cfd1c52340ddad17f9d28b41012b' + }, + { + name: 'Community Guidelines', + link: 'https://www.notion.so/cryb/Community-Guidelines-758b0b8e89eb4854a925b6f1c6730738' + }, + { + name: 'Support', + link: 'https://www.notion.so/cryb/Support-ed7db95eb31c4f2d8b4a290988c67b97' + } +] \ No newline at end of file diff --git a/components/Button/index.vue b/components/Button/index.vue index e768074..3703eba 100644 --- a/components/Button/index.vue +++ b/components/Button/index.vue @@ -1,31 +1,23 @@ - diff --git a/components/Chat/GroupedMessage.vue b/components/Chat/GroupedChatMessage.vue similarity index 56% rename from components/Chat/GroupedMessage.vue rename to components/Chat/GroupedChatMessage.vue index 6ac739b..f71ff4d 100644 --- a/components/Chat/GroupedMessage.vue +++ b/components/Chat/GroupedChatMessage.vue @@ -1,29 +1,13 @@ @@ -52,26 +36,26 @@ return this.users[this.group.author] }, messages() { - if(!this.isAuthorSelf || !this.isLastGroup) return this.group.messages + if (!this.isAuthorSelf || !this.isLastGroup) return this.group.messages return [...this.group.messages, ...this.sendingMessages] }, userIcon() { - if(!this.author) return null + if (!this.author) return null - if(this.hover) return this.author.icon + if (this.hover) return this.author.icon return this.author.icon.replace('.gif', '.png') }, isAuthorSelf() { - if(!this.author) return + if (!this.author) return return this.group.author === this.userId }, hasController() { - if(!this.author) return false + if (!this.author) return false return this.author.id === this.controllerId } diff --git a/components/Chat/InputBar.vue b/components/Chat/InputBar.vue index c2a2432..e9065e4 100644 --- a/components/Chat/InputBar.vue +++ b/components/Chat/InputBar.vue @@ -1,21 +1,7 @@