오프라인 표시 테마 컴포넌트

Hello :wave: This theme component is a simple offline indicator which appears when user have internet connection problems.

On desktop the indicator shows on bottom right.

There are some settings which you can customize the indicator.

offline indicator icon
You can use FontAwesome icons. This icon appear before Oops…You’re offline title.

offline indicator width
This width is only affect on desktop view. On mobile it use width: calc(100% - 20px);

offline indicator rounding
This is the indicator border radius. You can make the corners rounded if increase the value.

And translations…

27개의 좋아요

Hi, does this work upon forum rebuilds (meaning the 5-6 minutes it usually takes)?

1개의 좋아요

This is a theme component, so you can add it from the /admin/customize/themes page with no need for a rebuild. :+1:

1개의 좋아요

I think he’s asking if the message is shown during a rebuild.

3개의 좋아요

Doh. :man_facepalming: Yes. That does indeed make much more sense. :slightly_smiling_face: My bad.

4개의 좋아요

Hello,

This one will not shown during rebuild. I used to create an offline indicator with offline.js that is always checks favicon, makes requests so that shown during rebuild too. But that seems to unnecessary to this feature for me and also can confuse users where is the problem? Server side or with their internet connection.

I believe you can do this with global notice too. Just add a notice before rebuild. :slightly_smiling_face:

3개의 좋아요

Thank you so much for this great component! :grinning:

1개의 좋아요

참고:

[관리자 알림] 'Offline Indicator Theme Component' 테마에는 업데이트가 필요한 코드가 포함되어 있습니다. (id:discourse.hbs-extension)
2개의 좋아요

업데이트 내용입니다: Merge pull request #2 from davidkingham/convert-hbs-connector-to-gjs · VaperinaDEV/discourse-offline-indicator@29bde62 · GitHub

PR을 올려 주셔서 감사합니다 @davidkingham :heart:

3개의 좋아요