Adicione /users à navegação superior

Location

repo: GitHub - discourse/discourse-users-nav: Add users nav for Discourse (theme component)

Preview

About

This theme component adds the full nav bar on both mobile and desktop on the users page:


Install guide

How to install a theme or theme component

24 curtidas

this theme gives an error for Persian locale, removing this line helps:

I18n.translations.en.js.filters.users = { title: "Users", help: "User leaderboard" };

but then the string becomes something like this:

image

3 curtidas

The theme appears to cause an issue with the /u or /users page preventing it from loading.

This can be reproduced using the preview link provided in the initial post on this topic. Open the link, when prompted select “View Theme” then follow the link for users either on the top nav bar or from the hamburger menu.

1 curtida

Yes, the error that I’m getting when I try to visit the users route is Assertion Failed: [ember-route-action-helper] Unable to find action createTopic.

3 curtidas

I recently installed this, and it caused my /users page to stop loading entirely. There was a background XHR request that was taking a very long time. Upon removing the component, it worked again. Just thought I would let you know.

EDIT: Same error as reported above.

That’s why this theme component is still in the #theme:broken-theme category.

Do not use this component until it remains in this category.

We will fix it when we have time but we have no ETA.

PRs are welcome!

5 curtidas

This component is now fixed per

https://github.com/discourse/discourse-users-nav/commit/109d705d6ef0115862a08e21dc6a04caa0d1c846

The PR also adds translatable strings which should solve your issue @Pad_Pors

11 curtidas

Oi. Fiz um pull request há cerca de um mês para corrigir a forma como a barra de navegação do quadro de líderes do FreeCodeCamp é exibida. Sem um flex box, os elementos ficam completamente desalinhados. Eu quero consertar isso. Infelizmente para mim, colocar um atributo display:flex em uma classe que está sendo usada em outros lugares resultará em consequências inesperadas.

Você pode revisar meu PR?

1 curtida

Este é o seu componente antes das minhas alterações.

Antes

Este é o componente após as alterações que desejo adicionar.

Depois

1 curtida

Um link para o PR poderia ajudar?

1 curtida

Eu não descrevi adequadamente no PR o problema que estava tentando corrigir nem o que pretendia fazer. Isso foi um pouco um erro da minha parte.

2 curtidas