简体   繁体   English

我在哪里可以找到 firebaseui css 样式表?

[英]Where can I find the firebaseui css stylesheet?

I installed Firebase in my react.js app, installed FirebaseUI, and got Google sign-in to work properly.我在 react.js 应用程序中安装了 Firebase,安装了 FirebaseUI,并让 Google 登录正常工作。 However, there is absolutely no css stylesheet being applied to the Google signin button.但是,绝对没有将 css 样式表应用于 Google 登录按钮。 I looked at the docs here https://firebase.google.com/docs/auth/web/firebaseui and visited the cdn link for the firebaseui.css file here https://cdn.firebase.com/libs/firebaseui/4.6.1/firebaseui.css but it just returns page not found.我在这里查看了文档https://firebase.google.com/docs/auth/web/firebaseui并在此处访问了 firebaseui.css 文件的 cdn 链接https://cdn.firebase.com/libs/firebaseui/4.6 .1/firebaseui.css但它只返回未找到的页面。 Where would I be able to find the firebase UI css stylesheet to apply to my firebaseui installation?我在哪里可以找到适用于我的 firebaseui 安装的 firebase UI css 样式表?

Also, I had to slightly edit the docs' (same doc page link as above) instruction code and instead of writing另外,我不得不稍微编辑文档(与上面相同的文档页面链接)指令代码,而不是编写

ui.start('#firebaseui-auth-container', {
  signInOptions: [
    {
      provider: firebase.auth.EmailAuthProvider.PROVIDER_ID,
      requireDisplayName: false
    }
  ]
});

I had to change it to我不得不把它改成

ui.start('#firebaseui-auth-container', {
  signInOptions: [
    {
      provider: firebase.firebase_.auth.EmailAuthProvider.PROVIDER_ID,
      requireDisplayName: false
    }
  ]
});

to get to the correct firebase .PROVDER_ID variable.获得正确的 firebase .PROVDER_ID 变量。 Is this because the firebase documentation is out of date?这是因为 firebase 文档已经过时了吗? Has anyone else experienced a similar issue while using firebase and firebaseUI?有没有其他人在使用 firebase 和 firebaseUI 时遇到过类似的问题?

The link in the documentation is stale.文档中的链接是陈旧的。 When you come across things like this, you can use the "send feedback" button at the top of any page in the Firebase docs to let the team know.当您遇到此类情况时,您可以使用 Firebase 文档中任何页面顶部的“发送反馈”按钮让团队知道。

You will want to use the links in the documentation on the Firebase UI GitHub repo instead.您将需要使用Firebase UI GitHub 存储库上文档中的链接。 They start with "https://www.gstatic.com".它们以“https://www.gstatic.com”开头。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM