草庐IT

firebase-ui-auth

全部标签

javascript - jQuery 工具提示 UI - x 秒后触发工具提示

这是我目前所拥有的:TooltipTestingsbody{margin:60pxauto;}p{padding:0;margin:4pxauto;text-align:center;}$(function(){$(document).tooltip({items:'.tooltip',show:100,hide:500,position:{my:'centerbottom',at:'centertop'},content:function(callback){varmsgid=this.id.split('_')[1];$.ajax({type:'post',url:'/toolti

javascript - 动态更改 jquery UI 对话框的大小

我有一个jquery对话框。我在对话框中显示一个asp.netgridview。我希望对话框的大小根据GridView的大小而改变。有一个按钮,点击它会显示对话框。我想设置对话框的大小,使gridview完全适合它。Ihavemyjavascriptcodebelow:$("#ViewModalPopup").dialog({height:800px,scrollable:true,width:800,modal:true});这里的#ViewModalPopup是包含模态弹出窗口的div。我尝试实现以下逻辑以根据div的大小调整对话框的高度:varmaxHeight=600;varc

javascript - Angular-UI-Router - 获取动态模板的内容

我正在使用angular-ui-router构建一个Angular应用程序。后端有一个RESTapi,它根据工单ID为我提供表单的url。在app.js中,我想根据对此REST服务的查询动态设置模板。示例:$stateProvider.state('form',{url:'/form/:id',templateProvider:function($resource,formResolver,$stateParams){//formResolvercallstheRESTAPIwiththeformidandgetsbackaURL.returnformResolver.resolve(

javascript - 语义 UI 边栏和下拉菜单

我正在尝试使用语义ui创建一个简单的webui。我想要一个带有菜单的侧边栏,在某些项目中会有子项目......应该不会那么难吧?http://jsfiddle.net/ycm8ctfx/ExampleMessages如何让子项目在正常页面内容上“飞出”侧边栏?如果您在示例中单击“消息”,将出现菜单(观察底部出现的滚动条),但由于它们是侧边栏的子项,因此它们显示在侧边栏中。但我希望它们漂浮在正常内容上!我没有通过摆弄z-index来让它工作。 最佳答案 如果侧边栏被配置为使用overlay过渡,它可以通过指定来修复.ui.sideba

javascript - 如何从其他 Controller 关闭 Angular-ui 模式

我正在使用Angular-ui弹出一个带有表单的模式。我的代码是:app.controller('NewCaseModalCtrl',['$http','$scope','$modal',function($http,$scope,$modal,$log){$scope.items=['item1','item2','item3'];$scope.open=function(size){varmodalInstance=$modal.open({templateUrl:'modal-new-case.html',controller:'ModalInstanceCtrl',size:s

javascript - Firebase:连接表

假设数据是这样的post:{authorId:'123AA',title:'firstPost',body:'yay'}author:{uid:'123AA',displayName:'Richard'email:'im@richard.com'}我想渲染一个带有作者姓名的帖子:{post.title}{post.body}{post.author.displayName}//problem获取的帖子项目仅包含作者的uid,但我需要作者的displayName。检索帖子时如何填充作者字段?这是我现在用来获取帖子的方法:constpostsRef=firebase.database().

javascript - Firebase .then 与 .on ('value' )

我试图让.then()与.on()一起工作,但它只与.once()一起工作.我得到playersRef.on(...).thenisnotafunction,当用on()尝试它时所以我现在拥有的是:letnodesRef=Firebase.database().ref('players')letanswers={}playersRef.on('value',(playersSnapshot)=>{playersRef.once('value').then((playersSnapshot)=>{playersSnapshot.forEach((playerSnapshot)=>{let

javascript - Angular 2 - Firebase 在页面刷新时保持登录状态

所以我真的很接近解决这个问题了。基本上,我有登录工作,我有代码设置来监视onAuthStateChanged,但问题是当我刷新页面时,即使用户当前已登录,它仍然重定向到/login页面因为我已经设置了authguard,检查用户是否登录。我有一个身份验证服务设置,可以执行所有身份验证检查。在我的auth服务构造函数中,这是我设置onAuthStateChanged代码的地方:constructor(privateauth:AngularFireAuth,privaterouter:Router,privatedb:AngularFireDatabase,){firebase.auth(

javascript - 如何从 Firebase Cloud Function 在 Google Pub/Sub 中发布消息?

我编写了一个函数来接收http请求并发送电子邮件。但是,我想接收一个http请求并发送一个pub消息。问题是文档不清楚。我该怎么做?这是我的实际代码。exports.weeklyEmail=functions.https.onRequest((req,res)=>{constemail='****@gmail.com'console.log('Sendinge-mail')constmailOptions={to:email,from:'****@alunos.utfpr.edu.br',subject:'Teste',text:'Conteudodoemail'}mailTransp

javascript - 抛出新功能。Firebase 云功能上的 https.HttpsError 被客户端拒绝为内部错误

我将以下CloudFunction部署到我的Firebase项目中:exports.createCredentials=functions.https.onCall((data,context)=>{if(!context.auth)thrownewfunctions.https.HttpsError('failed-auth','Youmustbeauthenticatedtocallthisfunction')const{email,password}=data;if(!(typeofemail==='string'))thrownewfunctions.https.HttpsEr