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

feat(Neko-sama): new presence #6740

Merged
merged 7 commits into from
Sep 11, 2022
Merged

feat(Neko-sama): new presence #6740

merged 7 commits into from
Sep 11, 2022

Conversation

Mokocchibi
Copy link
Contributor

@Mokocchibi Mokocchibi commented Sep 1, 2022

Description

Adding presence for neko-sama.fr website.

Acknowledgements

Screenshots

Proof showing the creation/modification is working as expected

Viewing an anime page
Browsing Neko-sama
Searching VF anime
Searching VOSTFR anime
Watching an episode play
Watching an episode pause

Copy link
Contributor

@RisingSunLight42 RisingSunLight42 left a comment

Choose a reason for hiding this comment

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

Apply those first changes.
Other will come, since there's a lot of things related to the structure to changes, but I prefer to not review everything in one time for a better readability for you.
Also, don't forget to run prettier and use const when you're setting a variable that will not be changed. var is quite useless most of the time, so use let instead when you want to change the value inside a variable.
Don't hesitate to ask for help on Discord, in the presence-dev channel

websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/iframe.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
@RisingSunLight42
Copy link
Contributor

Also, this needs a lang review in French. I'm french myself, but I'm not sure if I'm qualified enough to review the lang.

@Mokocchibi
Copy link
Contributor Author

Also, this needs a lang review in French. I'm french myself, but I'm not sure if I'm qualified enough to review the lang.

Do I have to ask someone in particular for the French revision?

@RisingSunLight42
Copy link
Contributor

Also, this needs a lang review in French. I'm french myself, but I'm not sure if I'm qualified enough to review the lang.

Do I have to ask someone in particular for the French revision?

@Kozou4ever can review it, if he has the time ^^

@Mokocchibi
Copy link
Contributor Author

Also, this needs a lang review in French. I'm french myself, but I'm not sure if I'm qualified enough to review the lang.

Do I have to ask someone in particular for the French revision?

@Kozou4ever can review it, if he has the time ^^

Okay, thank you :)
I made all changes so did I have to make another PR ?

@theusaf
Copy link
Member

theusaf commented Sep 2, 2022

Okay, thank you :) I made all changes so did I have to make another PR ?

If you make changes, just push your changes to your repository (Mokocchibi/Presences:main) and it will automatically appear in this PR.

@Mokocchibi
Copy link
Contributor Author

Okay, thank you :) I made all changes so did I have to make another PR ?

If you make changes, just push your changes to your repository (Mokocchibi/Presences:main) and it will automatically appear in this PR.

Okay, thanks!

@Mokocchibi Mokocchibi requested a review from a team September 2, 2022 21:46
@Mokocchibi Mokocchibi requested a review from a team as a code owner September 2, 2022 21:46
@Mokocchibi
Copy link
Contributor Author

Maybe remove the changes to yarn lock file?

How can I do that ?

Signed-off-by: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>
@EncryptedDev
Copy link
Contributor

Maybe remove the changes to yarn lock file?

How can I do that ?

Easiest is to delete the file and redownload it from here: https://github.com/PreMiD/Presences/blob/main/yarn.lock

Done it myself

@itsmelouis
Copy link
Contributor

Also, this needs a lang review in French. I'm french myself, but I'm not sure if I'm qualified enough to review the lang.

Tu peux tenter ta chance :)

@Mokocchibi
Copy link
Contributor Author

Mokocchibi commented Sep 3, 2022

Also, this needs a lang review in French. I'm french myself, but I'm not sure if I'm qualified enough to review the lang.

Tu peux tenter ta chance :)

J'ai demandé à un pote qui est super bon en grammaire, vocabulaire etc.. Et il a pas vu de problèmes

Copy link
Contributor

@RisingSunLight42 RisingSunLight42 left a comment

Choose a reason for hiding this comment

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

I have some more suggestions for you !

  • Maybe convert your if/else if/else statements to a switch. You can see some examples on the repo, like here : https://github.com/PreMiD/Presences/blob/main/websites/T/Tellingtone/presence.ts
  • Also, when you're checking if the file is the default thumbnail. I can propose you to juste get the image, and at the end of the file, make a check like that :
    if (presenceData.largeImageKey === "https://neko-sama.fr/images/default_thumbnail.png") presenceData.largeImageKey = "nekosama-icon"
    It will be more readable and less repetitive ! ^^

websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
@RisingSunLight42
Copy link
Contributor

Also, this needs a lang review in French. I'm french myself, but I'm not sure if I'm qualified enough to review the lang.

Tu peux tenter ta chance :)

J'ai demandé à un pote qui est super bon en grammaire, vocabulaire etc.. Et il a pas vu de problèmes

Ça me semble nickel pour moi !

@Mokocchibi
Copy link
Contributor Author

I made all the changes, is there something to review?

@EncryptedDev EncryptedDev removed request for a team and Bas950 September 4, 2022 23:53
@Mokocchibi
Copy link
Contributor Author

What I have to do to finish this PR ?

@RisingSunLight42
Copy link
Contributor

What I have to do to finish this PR ?

Wait for reviewers to approve it.

@EncryptedDev
Copy link
Contributor

Resolve conversations as you deal with them, can't approve until I see things have been dealt with properly.

@Mokocchibi
Copy link
Contributor Author

Resolve conversations as you deal with them, can't approve until I see things have been dealt with properly.

I made all suggered changes and reply to all so yes, I guess I have to wait as RisingSunLight42 said.

@EncryptedDev
Copy link
Contributor

Resolve conversations as you deal with them, can't approve until I see things have been dealt with properly.

I made all suggered changes and reply to all so yes, I guess I have to wait as RisingSunLight42 said.

You have not pressed the "Resolve conversation" button on the conversations...

@Mokocchibi
Copy link
Contributor Author

Resolve conversations as you deal with them, can't approve until I see things have been dealt with properly.

I made all suggered changes and reply to all so yes, I guess I have to wait as RisingSunLight42 said.

You have not pressed the "Resolve conversation" button on the conversations...

Hoo.. I'm sorry, didn't notice that.

websites/N/Neko-sama.fr/iframe.ts Outdated Show resolved Hide resolved
@Mokocchibi
Copy link
Contributor Author

Infact, video playback no longer works with this modification :/

websites/N/Neko-sama.fr/iframe.ts Outdated Show resolved Hide resolved
websites/N/Neko-sama.fr/presence.ts Outdated Show resolved Hide resolved
@Mokocchibi
Copy link
Contributor Author

I made the changes but noticed that when the video wasn't playing the presence disappeared so I added an if to handle that and it worked at first but then the presence got stuck on an anime page and I don't know why :(

Copy link
Contributor

@EncryptedDev EncryptedDev left a comment

Choose a reason for hiding this comment

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

LGTM

@EncryptedDev EncryptedDev enabled auto-merge (squash) September 10, 2022 23:02
@EncryptedDev EncryptedDev requested a review from Bas950 September 10, 2022 23:06
@EncryptedDev EncryptedDev merged commit 15cde60 into PreMiD:main Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

7 participants