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

31 code refactoring #32

Merged
merged 12 commits into from
Oct 10, 2023
Merged

31 code refactoring #32

merged 12 commits into from
Oct 10, 2023

Conversation

g0dm0d
Copy link
Owner

@g0dm0d g0dm0d commented Oct 6, 2023

  1. Added errors from the rust side for easier error output.
#[tauri::command]
fn my_custom_command() -> Result<String, String> {
  // If something fails
  Err("This failed!".into())
  // If it worked
  Ok("This worked!".into())
}
invoke('my_custom_command')
  .then((message) => console.log(message))
  .catch((error) => console.error(error))
  1. Migration of users from toml to json. Because it is more convenient.
[
  {
    "uuid": "000",
    "username": "STEVE",
    "refresh_token": "secret",
    "access_token": "secret",
    "access_exp": 1696633450,
    "minecraft_token": "secret",
    "minecraft_exp": 1696633450
  }
]

@g0dm0d g0dm0d linked an issue Oct 6, 2023 that may be closed by this pull request
@g0dm0d g0dm0d temporarily deployed to build October 6, 2023 23:01 — with GitHub Actions Inactive
@g0dm0d g0dm0d temporarily deployed to build October 6, 2023 23:01 — with GitHub Actions Inactive
@g0dm0d g0dm0d temporarily deployed to build October 7, 2023 19:57 — with GitHub Actions Inactive
@g0dm0d g0dm0d temporarily deployed to build October 7, 2023 20:39 — with GitHub Actions Inactive
@g0dm0d g0dm0d temporarily deployed to build October 7, 2023 20:39 — with GitHub Actions Inactive
@g0dm0d g0dm0d temporarily deployed to build October 8, 2023 00:07 — with GitHub Actions Inactive
@g0dm0d g0dm0d temporarily deployed to build October 8, 2023 00:07 — with GitHub Actions Inactive
@g0dm0d g0dm0d merged commit 086f0dd into master Oct 10, 2023
6 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.

code refactoring
1 participant