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

[Request] 内网环境无法使用组件 #199

Open
Lnncoco opened this issue Aug 21, 2024 · 3 comments
Open

[Request] 内网环境无法使用组件 #199

Lnncoco opened this issue Aug 21, 2024 · 3 comments
Labels
🌠 Feature Request New feature or request | 特性与建议 Inactive No response in 30 days | 超过 30 天未活跃

Comments

@Lnncoco
Copy link

Lnncoco commented Aug 21, 2024

🥰 需求描述 | Feature Description

webfont-mono webfont-harmony-sans webfont-harmony-sans-sc katex.min.css
会联网请求, 在无互联网环境下无法使用(比如无法正常展示公式),

🧐 解决方案 | Proposed Solution

官网没看到有相关配介绍, 目前手动安装了包引入css处理

📝 补充信息 | Additional Information

No response

@Lnncoco Lnncoco added the 🌠 Feature Request New feature or request | 特性与建议 label Aug 21, 2024
@lobehubbot
Copy link
Member

👀 @Lnncoco
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot lobehubbot added the Inactive No response in 30 days | 超过 30 天未活跃 label Oct 1, 2024
@psacher
Copy link

psacher commented Oct 1, 2024

I too, would really appreciate if no external resources would be used.

  1. The use of the npmmirror is not "trustworthy" for most people because they get "scared" why they have to contact a Chinese Website (sorry, guys :( )
  2. to reduce the footstep of the app and reduce data-protection problems, there should be no external webfonts used. Everything should be delivered by the server you are calling
  3. additional to the files mentioned above, sometimes https://www.gstatic.com/draco/versioned/decoders/1.5.2/draco_decoder.wasm is called. I dont know if its from the ui or lobechat. But this also is not good.

It would be great if everything could be bundled during build, so that no external request have to be made.

Thanks!

@arvinxx
Copy link
Contributor

arvinxx commented Dec 5, 2024

@Lnncoco

Lobe UI is aimed for lobehub ecosystem and not for all user cases. We won't promise for common wide usage scenarios.

As for totally offline usage, we won't do it until we meet this scenario.

A better way for you to use is just fork the project and change it by yourself. 🙂


@psacher

The use of the npmmirror is not "trustworthy" for most people because they get "scared" why they have to contact a Chinese Website

if you don't like npmmirror,you can set the cdn to unpkg by:

import { ConfigProvider, Logo } from '@lobehub/ui';

export default () => {
  return (
    <ConfigProvider config={{ proxy: 'unpkg' }}>
      <Logo />
    </ConfigProvider>
  );
};

additional to the files mentioned above, sometimes https://www.gstatic.com/draco/versioned/decoders/1.5.2/draco_decoder.wasm is called. I dont know if its from the ui or lobechat. But this also is not good.

I think it may from the spline package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 Inactive No response in 30 days | 超过 30 天未活跃
Projects
None yet
Development

No branches or pull requests

4 participants