Skip to content

Accxui cycle count#1389

Open
Banibrata-Manna wants to merge 16 commits intomainfrom
accxui-cycle-count
Open

Accxui cycle count#1389
Banibrata-Manna wants to merge 16 commits intomainfrom
accxui-cycle-count

Conversation

@Banibrata-Manna
Copy link
Copy Markdown
Contributor

Short Description and Why It's Useful

This PR introduces changes regarding accxui migration of Cycle Count PWA.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the project from Vue CLI to Vite, updates environment variable prefixes from VUE_APP_ to VITE_, and refactors authentication and API handling by introducing a shared @common module. Additionally, it includes a critical fix for a typo in the login endpoint URL and removes a debugging console log statement in the Login view.

async function loginWithCredentials(username: string, password: string) {
try {
const resp = await api({
url: "amdin/login",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

There is a typo in the login URL. amdin/login should be admin/login.

Suggested change
url: "amdin/login",
url: "admin/login",

Comment thread src/views/Login.vue
const basicLogin = async () => {
try {
const { oms, token, expirationTime, omsRedirectionUrl } = route.query as any;
console.log("is this empty", omsRedirectionUrl)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

This console.log statement appears to be for debugging and should be removed from production code.

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