Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aquabox improvements #99

Merged
merged 12 commits into from
Jan 5, 2025
Merged

aquabox improvements #99

merged 12 commits into from
Jan 5, 2025

Conversation

raymonable
Copy link
Contributor

@raymonable raymonable commented Jan 3, 2025

new:

  • added option to show nameplate & avatar on chuni user pages
  • fixed the avatar to be more accurate to how it appears in-game
  • finally fixed server urls
  • changed some strings

but:

  • the translations file needs to be compared side by side. i'm so sorry.

Summary by Sourcery

新功能:

  • 在Chunithm用户资料中显示用户铭牌和头像。
Original summary in English

Summary by Sourcery

New Features:

  • Display user nameplates and avatars on Chunithm user profiles.

Summary by Sourcery

为用户框资源添加自定义基础 URL 支持,允许用户指定获取资源的 URL。更新匹配服务器设置界面,使用户能够从匹配服务器列表中选择或指定自定义 URL。

新功能:

  • 允许用户为用户框资源指定自定义基础 URL。

测试:

  • 更新测试以反映新功能。
Original summary in English

Summary by Sourcery

Add support for custom base URLs for userbox assets, allowing users to specify a URL to fetch assets from. Update the matching server settings UI to allow users to select from a list of matching servers or specify a custom URL.

New Features:

  • Allow users to specify a custom base URL for userbox assets.

Tests:

  • Update tests to reflect new features.

新功能:

  • 在Chunithm用户页面上显示用户铭牌和头像。

测试:

  • 更新测试以反映新功能。
Original summary in English

Summary by Sourcery

为用户框资源添加自定义基础 URL 支持,允许用户指定获取资源的 URL。更新匹配服务器设置界面,使用户能够从匹配服务器列表中选择或指定自定义 URL。

新功能:

  • 允许用户为用户框资源指定自定义基础 URL。

测试:

  • 更新测试以反映新功能。
Original summary in English

Summary by Sourcery

Add support for custom base URLs for userbox assets, allowing users to specify a URL to fetch assets from. Update the matching server settings UI to allow users to select from a list of matching servers or specify a custom URL.

New Features:

  • Allow users to specify a custom base URL for userbox assets.

Tests:

  • Update tests to reflect new features.

Copy link
Contributor

sourcery-ai bot commented Jan 3, 2025

审阅者指南 by Sourcery

这个拉取请求引入了一个新功能,允许用户在其Chunithm用户页面上显示其铭牌和头像。它还包括修复头像显示以更准确地呈现游戏内外观、修复服务器URL、更改一些字符串并更新翻译。

AquaBox组件的类图

classDiagram
  class ChuniPenguinComponent {
    +chuniWear: number
    +chuniHead: number
    +chuniBack: number
    +chuniFront: number
    +chuniFace: number
    +chuniItem: number
    +chuniSkin: number
    +classPassthrough: string
  }

  class ChuniUserplateComponent {
    +chuniLevel: string
    +chuniName: string
    +chuniRating: number
    +chuniNameplate: number
    +chuniCharacter: number
    +chuniTrophyName: string
    +chuniIsUserbox: boolean
  }

  class DDSCache {
    -db: IDBDatabase
    -urlCache: array
    +userboxURL: string
    +getFromDatabase(path: string): Promise
  }

  note for DDSCache "添加URL模式支持"
  note for ChuniPenguinComponent "更新手臂定位"
  note for ChuniUserplateComponent "添加个人资料显示支持"
Loading

文件级别变更

变更 详情 文件
添加在Chunithm用户资料上显示铭牌和头像的选项。
  • 添加新的复选框以启用/禁用UserBox功能及其在个人资料页面上的显示。
  • 在用户主页上集成UserBox显示。
  • 更新ChuniPenguin组件以处理物品显示和手臂定位。
  • 更新ChuniUserplate组件以处理点击事件和显示格式。
  • 添加对自定义匹配服务器和反射器的支持。
AquaNet/src/components/settings/ChuniSettings.svelte
AquaNet/src/pages/UserHome.svelte
AquaNet/src/components/settings/userbox/ChuniPenguin.svelte
AquaNet/src/components/settings/userbox/ChuniUserplate.svelte
修复头像显示以更准确地呈现游戏内外观。
  • 修正头像元素的定位和缩放,包括手臂、穿戴、头部和脚部。
  • 为企鹅身体和手臂添加动画。
AquaNet/src/components/settings/userbox/ChuniPenguin.svelte
修复服务器URL并更新翻译。
  • 更新匹配和反射器的服务器URL。
  • 为匹配服务器选择和自定义URL输入添加新字符串。
  • 更新翻译以反映新功能和修复。
  • 添加对自定义匹配服务器URL的支持。
  • 更新ddsCache以从提供的自定义URL获取资源。
  • 为匹配服务器选项添加新类型。
  • 添加一个函数以检索用于UserBox显示的用户资料。
  • 更新userboxFileProcess函数,在从本地文件更新时重置自定义URL。
AquaNet/src/libs/i18n/en_ref.ts
AquaNet/src/libs/config.ts
AquaNet/src/libs/userbox/ddsCache.ts
AquaNet/src/libs/generalTypes.ts
AquaNet/src/libs/sdk.ts
AquaNet/src/libs/userbox/userbox.ts
添加对自定义匹配服务器和反射器的支持。
  • 创建一个用于管理自定义匹配服务器设置的新组件。
  • 添加选择预定义匹配服务器或输入自定义URL的选项。
  • 实现设置和检索自定义服务器URL的逻辑。
AquaNet/src/components/settings/ChuniMatchingSettings.svelte

提示和命令

与Sourcery交互

  • 触发新审阅: 在拉取请求中评论 @sourcery-ai review
  • 继续讨论: 直接回复Sourcery的审阅评论。
  • 从审阅评论生成GitHub问题: 通过回复评论,要求Sourcery创建一个问题。
  • 生成拉取请求标题: 在拉取请求标题的任何位置写 @sourcery-ai 以随时生成标题。
  • 生成拉取请求摘要: 在拉取请求正文的任何位置写 @sourcery-ai summary 以随时生成PR摘要。您还可以使用此命令指定摘要应插入的位置。

自定义您的体验

访问您的仪表板以:

  • 启用或禁用审阅功能,如Sourcery生成的拉取请求摘要、审阅者指南等。
  • 更改审阅语言。
  • 添加、删除或编辑自定义审阅说明。
  • 调整其他审阅设置。

获取帮助

Original review guide in English

Reviewer's Guide by Sourcery

This pull request introduces a new feature that allows users to display their nameplate and avatar on their Chunithm user pages. It also includes a fix for the avatar display to be more accurate to the in-game appearance, fixes server URLs, changes some strings, and updates translations.

Class diagram for AquaBox components

classDiagram
  class ChuniPenguinComponent {
    +chuniWear: number
    +chuniHead: number
    +chuniBack: number
    +chuniFront: number
    +chuniFace: number
    +chuniItem: number
    +chuniSkin: number
    +classPassthrough: string
  }

  class ChuniUserplateComponent {
    +chuniLevel: string
    +chuniName: string
    +chuniRating: number
    +chuniNameplate: number
    +chuniCharacter: number
    +chuniTrophyName: string
    +chuniIsUserbox: boolean
  }

  class DDSCache {
    -db: IDBDatabase
    -urlCache: array
    +userboxURL: string
    +getFromDatabase(path: string): Promise
  }

  note for DDSCache "Added URL mode support"
  note for ChuniPenguinComponent "Updated arm positioning"
  note for ChuniUserplateComponent "Added profile display support"
Loading

File-Level Changes

Change Details Files
Added the option to display nameplates and avatars on Chunithm user profiles.
  • Added new checkboxes to enable/disable the UserBox feature and its display on profile pages.
  • Integrated UserBox display on user home pages.
  • Updated ChuniPenguin component to handle item display and arm positioning.
  • Updated ChuniUserplate component to handle click events and display formatting.
  • Added support for custom matching servers and reflectors.
AquaNet/src/components/settings/ChuniSettings.svelte
AquaNet/src/pages/UserHome.svelte
AquaNet/src/components/settings/userbox/ChuniPenguin.svelte
AquaNet/src/components/settings/userbox/ChuniUserplate.svelte
Fixed the avatar display to be more accurate to the in-game appearance.
  • Corrected the positioning and scaling of avatar elements, including arms, wear, head, and feet.
  • Added animation to the penguin body and arms.
AquaNet/src/components/settings/userbox/ChuniPenguin.svelte
Fixed server URLs and updated translations.
  • Updated server URLs for matching and reflectors.
  • Added new strings for matching server selection and custom URL input.
  • Updated translations to reflect the new features and fixes.
  • Added support for custom matching server URLs.
  • Updated the ddsCache to fetch assets from a custom URL if provided.
  • Added new types for matching server options.
  • Added a function to retrieve user profiles for UserBox display.
  • Updated the userboxFileProcess function to reset the custom URL when updating from local files.
AquaNet/src/libs/i18n/en_ref.ts
AquaNet/src/libs/config.ts
AquaNet/src/libs/userbox/ddsCache.ts
AquaNet/src/libs/generalTypes.ts
AquaNet/src/libs/sdk.ts
AquaNet/src/libs/userbox/userbox.ts
Added support for custom matching servers and reflectors.
  • Created a new component for managing custom matching server settings.
  • Added options for selecting pre-defined matching servers or entering a custom URL.
  • Implemented logic for setting and retrieving custom server URLs.
AquaNet/src/components/settings/ChuniMatchingSettings.svelte

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raymonable - 我已经审查了你的更改,看起来非常棒!

以下是我在审查期间关注的内容
  • 🟢 一般性问题:一切看起来都很好
  • 🟢 安全性:一切看起来都很好
  • 🟢 测试:一切看起来都很好
  • 🟢 复杂性:一切看起来都很好
  • 🟢 文档:一切看起来都很好

Sourcery 对开源项目是免费的 - 如果你喜欢我们的评论,请考虑分享 ✨
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我将使用这些反馈来改进你的评论。
Original comment in English

Hey @raymonable - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@raymonable
Copy link
Contributor Author

working on primary aqua server, just awaiting review

(helpful for when it's longer than the box has)
@raymonable raymonable marked this pull request as draft January 4, 2025 21:43
@raymonable raymonable changed the title aquabox on profiles + avatar fixes aquabox improvements (WIP) Jan 4, 2025
@raymonable
Copy link
Contributor Author

converted to draft because we need to properly re-implement the server url stuff (and i will write proper documentation and scripts for extracting the files)

@raymonable
Copy link
Contributor Author

sorry some of the commits are a little messy-- i'm still not very great with git but hopefully the other 2 merge conflicts are easy to solve

@raymonable raymonable changed the title aquabox improvements (WIP) aquabox improvements Jan 5, 2025
@raymonable raymonable marked this pull request as ready for review January 5, 2025 03:05
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raymonable - 我已经审查了你的更改,它们看起来很棒!

这是我在审查期间查看的内容
  • 🟡 一般问题:发现2个问题
  • 🟢 安全性:一切看起来都很好
  • 🟢 测试:一切看起来都很好
  • 🟢 复杂性:一切看起来都很好
  • 🟢 文档:一切看起来都很好

Sourcery对开源项目免费 - 如果你喜欢我们的审查,请考虑分享它们 ✨
帮助我变得更有用!请在每条评论上点击👍或👎,我将使用反馈来改进你的审查。
Original comment in English

Hey @raymonable - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.


1. Extract your Chunithm Luminous game files.

It is recommend you have the latest version of the game and all of the options your users may use.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (typo): 拼写错误:“recommend”应为“recommended”。

Suggested change
It is recommend you have the latest version of the game and all of the options your users may use.
It is recommended you have the latest version of the game and all of the options your users may use.
Original comment in English

issue (typo): Typo: "recommend" should be "recommended".

Suggested change
It is recommend you have the latest version of the game and all of the options your users may use.
It is recommended you have the latest version of the game and all of the options your users may use.


It is recommend you have the latest version of the game and all of the options your users may use.

The script to generate the proper paths can be found in [/tools/chusan-extractor.js](/tools/chusan-extractor.js). Node.js or Bun is required.<br>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): 路径错误:脚本位于tools/extract-chusan.js,而不是/tools/chusan-extractor.js

Original comment in English

issue (bug_risk): Incorrect path: The script is at tools/extract-chusan.js, not /tools/chusan-extractor.js.

@raymonable raymonable marked this pull request as draft January 5, 2025 03:12
@raymonable raymonable marked this pull request as ready for review January 5, 2025 03:31
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raymonable - 我已经审查了你的更改 - 这里有一些反馈:

总体评论

  • 考虑为资产加载功能添加更全面的URL验证和速率限制,以防止恶意URL带来的潜在安全问题。
这是我在审查期间查看的内容
  • 🟡 一般问题:发现1个问题
  • 🟢 安全性:一切看起来都很好
  • 🟢 测试:一切看起来都很好
  • 🟢 复杂性:一切看起来都很好
  • 🟢 文档:一切看起来都很好

Sourcery对开源是免费的 - 如果你喜欢我们的评论,请考虑分享它们 ✨
帮助我变得更有用!请点击每条评论上的👍或👎,我将使用反馈来改进你的评论。
Original comment in English

Hey @raymonable - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider adding more thorough URL validation and rate limiting for the asset loading functionality to prevent potential security issues with malicious URLs.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

> :warning: Assets are already not hosted on AquaDX for legal reasons.<br>
> Hosting SEGA's assets may put you at higher risk of DMCA.

1. Extract your Chunithm Luminous game files.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

问题(错字): 错字:“Luminous” 应为 “SUN”

将“Chunithm Luminous 游戏文件”更改为“Chunithm SUN 游戏文件”。Luminous 指的是机柜,而 SUN 是游戏本身。

Suggested change
1. Extract your Chunithm Luminous game files.
1. 提取你的 Chunithm SUN 游戏文件。
Original comment in English

issue (typo): Typo: "Luminous" should be "SUN"

Change "Chunithm Luminous game files" to "Chunithm SUN game files". Luminous refers to the cabinet, while SUN is the game itself.

Suggested change
1. Extract your Chunithm Luminous game files.
1. Extract your Chunithm SUN game files.

@raymonable
Copy link
Contributor Author

it's actually ready now

@thewiilover
Copy link
Contributor

It’s showing merge conflicts for me lol

@raymonable
Copy link
Contributor Author

It’s showing merge conflicts for me lol

yeah it's because git is stupid, they're really easy to fix (i just can't be bothered to do so)

@thewiilover
Copy link
Contributor

It’s showing merge conflicts for me lol

yeah it's because git is stupid, they're really easy to fix (i just can't be bothered to do so)

😔

@hykilpikonna hykilpikonna merged commit 574e885 into MewoLab:v1-dev Jan 5, 2025
@hykilpikonna
Copy link
Collaborator

Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants