Advertisement
Guest User

Code Felgo

a guest
Jan 27th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. import QtQuick 2.0
  2. import Felgo 3.0
  3. import QtQuick.Layouts 1.12
  4. import "pages"
  5. import "model"
  6. Page {
  7. id: loginPage
  8.  
  9. Column {
  10. anchors.verticalCenterOffset: -180
  11. anchors.centerIn: parent
  12. /* AppText {
  13. id: adamTextId
  14. font.pixelSize: sp(80)
  15. text: "ADAM"
  16. AppText {
  17. font.pixelSize: sp(14)
  18. text: "Außendienst Auftragsmanagement"
  19. } */
  20. AppButton {
  21. text: "Log in with Google"
  22. onClicked: loginUser()
  23. }
  24. }
  25. FirebaseAuth {
  26. id: firebaseAuth
  27. onLoggedIn: {
  28. console.log("logged in: "+success+" "+message)
  29. }
  30.  
  31. config: FirebaseConfig {
  32. id: firebaseConfigId
  33. projectId: "adam-264015"
  34.  
  35. apiKey: Qt.platform.os === "android"
  36. ? "AIzaSyDkT1ZRvJkbhx48tq8jnDe6mDc7HTkXltg"
  37. : "AIzaSyBfpLnGzRd0AafqceK5sBiF_9uMDEcyHPo"
  38.  
  39. applicationId: Qt.platform.os === "android"
  40. ? "1:1023274683037:android:15d634847280a93bee6274"
  41. : "1:1023274683037:ios:2cf43615764a23eeee6274"
  42.  
  43.  
  44. }
  45. }
  46. function loginUser() {
  47. firebaseAuth.loginUserWithGoogle("1023274683037-ebgju4ptbrnu818debbijv0kkvsql40d.apps.googleusercontent.com")
  48. console.log("login")
  49. }
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement