BioDrop icon indicating copy to clipboard operation
BioDrop copied to clipboard

[FEATURE] Imports to have an index file

Open eddiejaoude opened this issue 3 years ago • 22 comments

Description

We now have aliases for imports, for example...

import ModelA from "@models/..."
import ModelB from "@models/..."
import ModelC from "@models/..."

but we need to have a line for each imported model file.

It would be cleaner to have an index.js file in each alias import folder, so we can do...

import { ModelA, ModelB, ModelC } from "@models/..."

Screenshots

No response

Additional information

No response

eddiejaoude avatar Mar 25 '23 16:03 eddiejaoude

It's great having you contribute to this project

Welcome to the community :nerd_face:

If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.

github-actions[bot] avatar Mar 25 '23 16:03 github-actions[bot]

@eddiejaoude Sir can i work on this issue?

Bharadwajshivam28 avatar Mar 25 '23 19:03 Bharadwajshivam28

Sure, I have assigned it to you

eddiejaoude avatar Mar 26 '23 02:03 eddiejaoude

Sure, I have assigned it to you

Thanks sir

Bharadwajshivam28 avatar Mar 26 '23 07:03 Bharadwajshivam28

Sure, I have assigned it to you

If you can then please elaborate this issue sir

Bharadwajshivam28 avatar Mar 26 '23 07:03 Bharadwajshivam28

I think we need to add a index.js file in the model directory from where we can get all the models from just using that index.js file and not using import statement for all the models. I don't known completely i am making assumption here but importing all models to the index.js file and than exporting them all can do the job. Again i am not sure about it so i have check first.

Akhilbisht798 avatar Mar 26 '23 10:03 Akhilbisht798

Hey are we looking for something like this? import {Profile, ProfileStats, Link, LinkStats} from "@models/index";

Akhilbisht798 avatar Mar 26 '23 14:03 Akhilbisht798

Sure @Bharadwajshivam28, I will update the issue description (please note it is better to ask these questions before asking to have the issue assigned to you)

@Akhilbisht798 you are correct, thank you 💯

eddiejaoude avatar Mar 26 '23 23:03 eddiejaoude

@Bharadwajshivam28 if you find this difficult then I would love to work on this please let me know :)

MahendraBishnoi29 avatar Mar 27 '23 02:03 MahendraBishnoi29

Sure @Bharadwajshivam28, I will update the issue description (please note it is better to ask these questions before asking to have the issue assigned to you)

@Akhilbisht798 you are correct, thank you 💯

Okay sir thanks 👍

Bharadwajshivam28 avatar Mar 27 '23 06:03 Bharadwajshivam28

Sure @Bharadwajshivam28, I will update the issue description (please note it is better to ask these questions before asking to have the issue assigned to you)

@Akhilbisht798 you are correct, thank you 💯

I will work on this now sir please thanks for suggesting

Bharadwajshivam28 avatar Mar 27 '23 06:03 Bharadwajshivam28

@Bharadwajshivam28 if you find this difficult then I would love to work on this please let me know :) Let me give it. A try 🙂

Bharadwajshivam28 avatar Mar 27 '23 06:03 Bharadwajshivam28

@Bharadwajshivam28 if you find this difficult then I would love to work on this please let me know :) Let me give it. A try 🙂

any update @Bharadwajshivam28

MahendraBishnoi29 avatar Mar 30 '23 02:03 MahendraBishnoi29

is this issue open yet

@khanahmar yes this issue is open and ready for dev as you can see by the labels, but it is already assigned

any update @Bharadwajshivam28

@MahendraBishnoi29 please be patient is has only been a few days, people have work/school etc

After 2 weeks if there is no progress we can look to re-assign the issue

eddiejaoude avatar Mar 30 '23 03:03 eddiejaoude

alright 👍🏻

MahendraBishnoi29 avatar Mar 30 '23 05:03 MahendraBishnoi29

Due to lack of activity I will be unassigning this Issue.

SaraJaoude avatar Apr 13 '23 05:04 SaraJaoude

I would like to work on this issue, please assign the issue to me @SaraJaoude

Shaikh-Danish avatar Apr 13 '23 08:04 Shaikh-Danish

@eddiejaoude Is it the case that we need to create a new file called index.js in the models folder where we import all the schemas and export them at the same time? Screenshot (4)

SuperGrut avatar Apr 13 '23 20:04 SuperGrut

I would like to work on this issue, please assign the issue to me @SaraJaoude

@Shaikh-Danish I will assign it to you

SaraJaoude avatar Apr 14 '23 03:04 SaraJaoude

Is this issue still open? If yes i'll like to contribute!

ZEUS-03 avatar Apr 20 '23 14:04 ZEUS-03