【问题标题】:How can the pop up window for "configure google" or "configure github" layout be changed in meteor?如何在流星中更改“配置 google”或“配置 github”布局的弹出窗口?
【发布时间】:2016-06-17 16:08:53
【问题描述】:

我想在流星中的 Google/Github OAuth 提供程序的配置弹出窗口中添加一个名为“配置另一个服务”的附加按钮以及现有的按钮“保存配置”和“我稍后再做”。

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

【问题讨论】:

    标签: meteor packages user-accounts


    【解决方案1】:

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

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

    但是由于模板在一个包中,所以不能直接修改。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多