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

Separate Zip extraction function from Profile Import Ui component #1450

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

VilppeRiskidev
Copy link
Collaborator

No description provided.

@VilppeRiskidev VilppeRiskidev self-assigned this Sep 19, 2024
Copy link
Collaborator

@anttimaki anttimaki left a comment

Choose a reason for hiding this comment

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

Approved with comments that can be taken into account in the next PR.

@@ -26,6 +26,7 @@ import ThunderstoreVersion from "../../model/ThunderstoreVersion";
import ManagerInformation from "../../_managerinf/ManagerInformation";
import OnlineModList from "../views/OnlineModList.vue";
import * as PackageDb from '../../r2mm/manager/PackageDexieStore';
import { extractZippedProfileFile } from "../../utils/ProfileUtils";
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is fine now but we'll likely end up importing all the stuff from ProfileUtils, so this would be cleaner as import * as ProfileUtils. This can be changed in the next PR.

@@ -0,0 +1,29 @@
import ZipProvider from "../providers/generic/zip/ZipProvider";
Copy link
Collaborator

Choose a reason for hiding this comment

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

The imports in this project generally is a mess as there's no linting to autosort them. Regardless I personally like to at least try to get them right when creating new files. By "right" I mean "what I'm used to", which is the Python way, i.e. "standard library imports" (e.g. path) separated by a blank line from 3rd party imports (e.g. yaml) separated by a blank line from local imports. Each section should be sorted alphabetically based on the import path, e.g. the part after "from".

That's my personal preference, so this won't be a blocker now or later. If you choose, this can be fixed in the next PR.

@anttimaki anttimaki merged commit 968b792 into develop Sep 19, 2024
5 of 7 checks passed
@anttimaki anttimaki deleted the separate-zip-extraction-from-ui-component branch September 19, 2024 11:10
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