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

refactor: separate SimpleSwitch component using Vue SFC (#1033) #1054

Merged

Conversation

Map1en
Copy link
Contributor

@Map1en Map1en commented Dec 27, 2024

  1. Separate SimpleSwitch Component Using Vue SFC
  • Separate the SimpleSwitch component from the existing Pug mixin.
  • The Pug mixin was difficult to use and could not handle complex parameters or cover various possibilities, thus the switch to Vue SFC.
  1. Separate Default Theme Styles
  • Separate the default theme styles into the component file.
  • Other themes will continue to use CSS for overrides.
  • This approach ensures that app.scss can be split without issues.
  1. Root Component Assignment Operations
  • Currently, there is only one root component, so various assignment operations still need to be placed in the root component's methods.
  • If the overall setting component is separated in the future, some data might also be separated.
  1. Added Required Packages
  • Added vue-loader and vue-template-compiler, which are necessary packages for using SFC.

#1033

# Conflicts:
#	html/src/mixins/tabs/settings.pug
#	html/src/theme.material3.scss
@Map1en Map1en mentioned this pull request Dec 27, 2024
Map1en added a commit to Map1en/VRCX that referenced this pull request Dec 27, 2024
Natsumi-sama pushed a commit that referenced this pull request Dec 30, 2024
* fix: issues caused by PR(#1034). (#1033)

* Manually merge to ensure compatibility with (#1054) PR
Natsumi-sama pushed a commit to Natsumi-sama/VRCX that referenced this pull request Dec 30, 2024
…#1047)

* fix: issues caused by PR(vrcx-team#1034). (vrcx-team#1033)

* Manually merge to ensure compatibility with (vrcx-team#1054) PR
@Natsumi-sama Natsumi-sama merged commit 4751bd5 into vrcx-team:master Jan 8, 2025
Natsumi-sama pushed a commit to Natsumi-sama/VRCX that referenced this pull request Jan 9, 2025
…) (vrcx-team#1054)

* refactor: separate SimpleSwitch component using Vue SFC

* fix
@Map1en Map1en deleted the separate-simpleswitch-component branch January 14, 2025 01:06
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.

2 participants