如何在流星中更改 "configure google" 或 "configure github" 布局的弹出 window?

How can the pop up window for "configure google" or "configure github" layout be changed in meteor?

我想在 Google 的配置弹出 window 中添加一个名为 "Configure another service" 的按钮以及现有按钮 "Save Configuration" 和 "I'll do this later" / Github 流星中的 OAuth 提供程序。

对于上述文件布局,可以更改哪个文件或服务配置参数或文件?

要更改弹出窗口的内容,您需要修改生成弹出窗口的 HTML 模板。

在本例中,模板名为 _configureLoginServiceDialog,可在文件 login_buttons_dialogs.html 中找到 accounts-ui-unstyled 包的。当您添加任何 accounts-ui 包变体时,accounts-ui-unstyled 将添加为依赖项。

但由于模板在包中,不能直接修改。

你要做的就是在你的项目中创建你自己版本的accounts-ui-unstyled package(原文在这里:https://github.com/meteor/meteor/tree/devel/packages/accounts-ui-unstyled),然后meteor remove accounts-ui-unstyled,和 meteor add my-own:accounts-ui-unstyled.