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

Standardize and normalize code, standardize variable function naming #1

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

SunWuyuan
Copy link
Collaborator

@SunWuyuan SunWuyuan commented Nov 9, 2024

Standardize and normalize code by renaming variables and functions for consistency and clarity.

  • src/axios/axios.js

    • Rename instance to axiosInstance, config to requestConfig, and data to responseData.
  • src/components/AddTolist.vue

    • Rename lists to projectLists, NewProjectListDialog to newProjectListDialog, ProjectlistAdd to addProjectToList, and ProjectlistDelete to deleteProjectFromList.
  • src/components/AppHeader.vue

    • Rename userinfo to userInfo, islogin to isLogin, clicklogout to clickLogout, and logoutbutton to logoutButton.
  • src/components/Comment.vue

    • Rename comments to commentList, userinfo to userInfo, morecommnets to moreComments, and replyid to replyId.
  • src/components/EditProjectListConfig.vue

    • Rename listinfo to listInfo, newlistinfo to newListInfo, and liststates to listStates.
  • src/components/NewProjectList.vue

    • Rename projectinfo to projectInfo, newid to newId, and isVisible to isVisibleDialog.
  • src/pages/account/index.vue

    • Rename UserInfo to userInfo, userinfo to userInfo, UserCardLoading to userCardLoading, oldpassword to oldPassword, and newpassword to newPassword.
  • src/pages/projects/my.vue

    • Rename userinfo to userInfo, nowProject to currentProject, oldProject to previousProject, and abouttags to aboutTags.

For more details, open the Copilot Workspace session.

Standardize and normalize code by renaming variables and functions for consistency and clarity.

* **src/axios/axios.js**
  - Rename `instance` to `axiosInstance`, `config` to `requestConfig`, and `data` to `responseData`.

* **src/components/AddTolist.vue**
  - Rename `lists` to `projectLists`, `NewProjectListDialog` to `newProjectListDialog`, `ProjectlistAdd` to `addProjectToList`, and `ProjectlistDelete` to `deleteProjectFromList`.

* **src/components/AppHeader.vue**
  - Rename `userinfo` to `userInfo`, `islogin` to `isLogin`, `clicklogout` to `clickLogout`, and `logoutbutton` to `logoutButton`.

* **src/components/Comment.vue**
  - Rename `comments` to `commentList`, `userinfo` to `userInfo`, `morecommnets` to `moreComments`, and `replyid` to `replyId`.

* **src/components/EditProjectListConfig.vue**
  - Rename `listinfo` to `listInfo`, `newlistinfo` to `newListInfo`, and `liststates` to `listStates`.

* **src/components/NewProjectList.vue**
  - Rename `projectinfo` to `projectInfo`, `newid` to `newId`, and `isVisible` to `isVisibleDialog`.

* **src/pages/account/index.vue**
  - Rename `UserInfo` to `userInfo`, `userinfo` to `userInfo`, `UserCardLoading` to `userCardLoading`, `oldpassword` to `oldPassword`, and `newpassword` to `newPassword`.

* **src/pages/projects/my.vue**
  - Rename `userinfo` to `userInfo`, `nowProject` to `currentProject`, `oldProject` to `previousProject`, and `abouttags` to `aboutTags`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ZeroCatDev/ZeroCatNext?shareId=XXXX-XXXX-XXXX-XXXX).
@SunWuyuan SunWuyuan merged commit ecd14b7 into main Nov 9, 2024
2 of 3 checks passed
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.

1 participant