diff --git a/.env.dev b/.env.dev index 5594f0fd0..5f9b7ff2e 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ NODE_ENV=development -VITE_APP_SITE="http://localhost:4200" -VITE_APP_API="http://localhost:3100/v3" -VITE_APP_API_GQL="http://localhost:3000/v3/gql" -VITE_APP_API_EVENTS="ws://localhost:3700/v3" -VITE_APP_API_EGVAULT="http://localhost:3444/v1" -VITE_APP_HOST="http://localhost:8080" +VITE_APP_SITE="https://7tv.app" +VITE_APP_API="https://7tv.io/v3" +VITE_APP_API_GQL="https://7tv.io/v3/gql" +VITE_APP_API_EVENTS="wss://events.7tv.io/v3" +VITE_APP_API_EGVAULT="https://egvault.7tv.io/v1" +VITE_APP_HOST="https://extension.7tv.gg" diff --git a/.old.env.dev b/.old.env.dev new file mode 100644 index 000000000..5594f0fd0 --- /dev/null +++ b/.old.env.dev @@ -0,0 +1,7 @@ +NODE_ENV=development +VITE_APP_SITE="http://localhost:4200" +VITE_APP_API="http://localhost:3100/v3" +VITE_APP_API_GQL="http://localhost:3000/v3/gql" +VITE_APP_API_EVENTS="ws://localhost:3700/v3" +VITE_APP_API_EGVAULT="http://localhost:3444/v1" +VITE_APP_HOST="http://localhost:8080" diff --git a/CHANGELOG-nightly.md b/CHANGELOG-nightly.md index 69341cea7..7aa9b7611 100644 --- a/CHANGELOG-nightly.md +++ b/CHANGELOG-nightly.md @@ -1,3 +1,55 @@ +### 3.1.2.4000 + +- Fixed a bug that could cause issues when clicking an emoji in chat +- Fixed an issue with emote sets not switching on channel switch +- Fixed an issue with making users unable to chat +- Fixed an issue with certain settings not saving + +### 3.1.2.3000 + +- Added an option to expand sidebar on twitch when hovering +- Fixed mentions not being clickable when colored mentions are turned off +- Added link to creators 7TV profile to emote cards of 7TV emotes + +### 3.1.2.2000 + +- Fixed some settings on kick +- Added more drop shadow settings + +### 3.1.2.1000 + +- **Implement support for the new Kick site:** + - Chat emotes + - Emote menu + - Emote auto-completion + - Cosmetics +- Added option to settings to hide Stories from the sidebar +- Fixed settings to hide recommended channels and viewers also watch channels +- Fixed an issue where history navigation is accidentally triggered during IME composition +- Added option to highlight messages of specific usernames +- Added option to highlight messages based on badges +- Added button to user card to toggle highlighting for a users messages +- Added mod icon for warning users to chat mod icons and user card +- Added an option to limit the drop shadows on paints + +### 3.1.1.3000 + +- Added support for animated FFZ emotes +- Added option to hide whispers +- Added tooltip to error messages in /search + +### 3.1.1.2100 + +- Fixed an issue where certain hooks would not work properly + +### 3.1.1.2000 + +- Added option to hide 7TV badges from chat +- Added option to hide bits from community button +- Fixed an issue where twitch emotes were displayed larger after hovering over them +- Fixed an issue causing VOD messages to display two timestamps +- Fixed an issue where the chat would keep rendering emotes of the previous channel + ### 3.1.0.3000 - Fixed video player stats not showing diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bfd7b22b..5e117ec31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +### 3.1.2 + +- **Implement support for the new Kick site:** + - Chat emotes + - Emote menu + - Emote auto-completion + - Cosmetics + - Settings +- Added option to settings to hide Stories from the sidebar +- Fixed settings to hide recommended channels and viewers also watch channels +- Fixed an issue where history navigation is accidentally triggered during IME composition +- Added option to highlight messages of specific usernames +- Added option to highlight messages based on badges +- Added button to user card to toggle highlighting for a users messages +- Added mod icon for warning users to chat mod icons and user card +- Added an option to limit the drop shadows on paints +- Added more drop shadow settings +- Added link to creators 7TV profile to emote cards of 7TV emotes +- Fixed a bug that could cause issues when clicking an emoji in chat +- Fixed an issue with emote sets not switching on channel switch +- Fixed an issue with making users unable to chat +- Added an option to expand sidebar on twitch when hovering + ### 3.1.1 - Fixed video player stats not showing diff --git a/locale/en_US.yaml b/locale/en_US.yaml index 1fcb38e61..344e9f0ab 100644 --- a/locale/en_US.yaml +++ b/locale/en_US.yaml @@ -21,7 +21,10 @@ user_card: previously_subscription_length: Previously subscribed for {length} months hidden_subscription_status: Status hidden native: Open Native User Card + highlight: Highlight messages of this user + stop_highlight: Stop highlighting of this user no_messages: "{user} has not chatted here" + no_warnings: "{user} has not been warned before" no_timeouts: "{user} hasn't been timed out before" no_bans: "{user} hasn't been banned before" no_comments: "No mod comments have been written for {user}" @@ -30,6 +33,7 @@ user_card: unban_button: Unban mod_button: Mod unmod_button: Unmod + warn_button: Warn # Emote Menu # This interface allows the user to pick from available emotes diff --git a/package.json b/package.json index 44e5446e0..2c9fa7186 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "displayName": "7TV", "description": "Improve your viewing experience on Twitch & YouTube with new features, emotes, vanity and performance.", "private": true, - "version": "3.1.1", - "dev_version": "1.0", + "version": "3.1.2", + "dev_version": "4.0", "scripts": { "start": "NODE_ENV=dev yarn build:dev && NODE_ENV=dev vite --mode dev", "build:section:app": "vite build --config vite.config.mts", diff --git a/src/app/chat/Badge.vue b/src/app/chat/Badge.vue index 21923ade2..a3c6c037a 100644 --- a/src/app/chat/Badge.vue +++ b/src/app/chat/Badge.vue @@ -6,6 +6,7 @@ :alt="alt" :style="{ backgroundColor, + borderRadius, }" @mouseenter="show(imgRef)" @mouseleave="hide()" @@ -20,16 +21,19 @@ import BadgeTooltip from "./BadgeTooltip.vue"; const props = defineProps<{ alt: string; - type: "twitch" | "app"; - badge: Twitch.ChatBadge | SevenTV.Cosmetic<"BADGE">; + type: "twitch" | "picture" | "app"; + badge: Twitch.ChatBadge | Twitch.SharedChat | SevenTV.Cosmetic<"BADGE">; }>(); const backgroundColor = ref(""); +const borderRadius = ref(""); const srcset = { twitch: (badge: Twitch.ChatBadge) => `${badge.image1x} 1x, ${badge.image2x} 2x, ${badge.image4x} 4x`, + picture: (badge: Twitch.SharedChat) => + `${badge.profileImageURL.slice(0, -9)}28x28.png 1.6x, ${badge.profileImageURL.slice(0, -9)}70x70.png 3.8x`, app: (badge: SevenTV.Cosmetic<"BADGE">) => badge.data.host.files.map((fi, i) => `https:${badge.data.host.url}/${fi.name} ${i + 1}x`).join(", "), -}[props.type](props.badge as SevenTV.Cosmetic<"BADGE"> & Twitch.ChatBadge); +}[props.type](props.badge as SevenTV.Cosmetic<"BADGE"> & Twitch.SharedChat & Twitch.ChatBadge); const imgRef = ref(); @@ -44,6 +48,10 @@ function isApp(badge: typeof props.badge): badge is SevenTV.Cosmetic<"BADGE"> { if (isApp(props.badge)) { backgroundColor.value = props.badge.data.backgroundColor ?? ""; } + +if (typeof props.badge == "string") { + borderRadius.value = "25%"; +} diff --git a/src/app/chat/UserCardTabs.vue b/src/app/chat/UserCardTabs.vue index 23b2e4435..01850eb2d 100644 --- a/src/app/chat/UserCardTabs.vue +++ b/src/app/chat/UserCardTabs.vue @@ -15,11 +15,12 @@ diff --git a/src/site/kick.com/modules/chat-input/ChatInputModule.vue b/src/site/kick.com/modules/chat-input/ChatInputModule.vue new file mode 100644 index 000000000..2977fb71d --- /dev/null +++ b/src/site/kick.com/modules/chat-input/ChatInputModule.vue @@ -0,0 +1,97 @@ + + + diff --git a/src/site/kick.com/modules/chat/ChatAutocomplete.vue b/src/site/kick.com/modules/chat/ChatAutocomplete.vue deleted file mode 100644 index 3f2f4832b..000000000 --- a/src/site/kick.com/modules/chat/ChatAutocomplete.vue +++ /dev/null @@ -1,328 +0,0 @@ - - - - - diff --git a/src/site/kick.com/modules/chat/ChatController.vue b/src/site/kick.com/modules/chat/ChatController.vue index d63a00bdd..e21a259b5 100644 --- a/src/site/kick.com/modules/chat/ChatController.vue +++ b/src/site/kick.com/modules/chat/ChatController.vue @@ -1,70 +1,35 @@ diff --git a/src/site/kick.com/modules/chat/ChatMessage.vue b/src/site/kick.com/modules/chat/ChatMessage.vue index 237c3738a..44d3c48b1 100644 --- a/src/site/kick.com/modules/chat/ChatMessage.vue +++ b/src/site/kick.com/modules/chat/ChatMessage.vue @@ -2,7 +2,14 @@