How to use the quasar.Loading.show function in quasar

To help you get started, we’ve selected a few quasar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rmetcalf9 / dockJob / webfrontend / src / pages / Login.vue View on Github external
creationHandler () {
      var TTT = this
      globalStore.commit('SET_APIFN', TTT.$callDockjobAPI)
      if (globalStore.getters.datastoreState === 'INITIAL') {
        Loading.show()
        var callback = {
          ok: function (response) {
            Loading.hide()
            if (globalStore.getters.datastoreState === 'INITIAL') {
              console.log('Error state STILL initial - stopping infinite loop')
            } else {
              // TTT.$router.replace(TTT.$route.query.redirect || '/')
              TTT.creationHandler()
            }
          },
          error: function (response) {
            Loading.hide()
            console.log('Error frontend connection data state: ' + response.message)
            Notify.create(response.message)
          }
        }
github rmetcalf9 / dockJob / webfrontend_old / src / components / Login.vue View on Github external
creationHandler () {
      var TTT = this
      if (globalStore.getters.datastoreState === 'INITIAL') {
        Loading.show()
        var callback = {
          ok: function (response) {
            Loading.hide()
            if (globalStore.getters.datastoreState === 'INITIAL') {
              console.log('Error state STILL initial - stopping infinite loop')
            }
            else {
              // TTT.$router.replace(TTT.$route.query.redirect || '/')
              TTT.creationHandler()
            }
          },
          error: function (response) {
            Loading.hide()
            console.log('Error frontend connection data state: ' + response.message)
            Toast.create(response.message)
          }
github aws-samples / aws-serverless-airline-booking / src / frontend / store / bookings / actions.js View on Github external
async function processBooking({ chargeToken, outboundFlight }) {
  const processBookingInput = {
    input: {
      paymentToken: chargeToken,
      bookingOutboundFlightId: outboundFlight.id
    }
  };

  try {
    Loading.show({
      message: "Creating a new booking..."
    });

    const {
      // @ts-ignore
      data: {
        processBooking: { id: bookingProcessId }
      }
    } = await API.graphql(
      graphqlOperation(processBookingMutation, processBookingInput)
    );

    return bookingProcessId;
  } catch (err) {
    console.error(err);
    throw err;
github patrickmonteiro / quasar-speech-api / src / boot / speech.js View on Github external
speech.addEventListener('start', () => {
        Loading.show({
          delay: 0,
          spinner: QSpinnerAudio, // ms,
          backgroundColor: 'primary'
        })
      })
github XristMisyris / quasar-starter-frontend / src / main.js View on Github external
axios.interceptors.request.use(function (config) {
  Loading.show()
  return config
}, function (error) {
  Loading.hide()
github aws-samples / aws-serverless-airline-booking / src / frontend / store / bookings / actions.js View on Github external
async function processPayment({
  endpoint,
  paymentToken,
  outboundFlight,
  customerEmail
}) {
  Loading.show({
    message: "Charging a pre-authorization..."
  });

  if (!paymentToken) throw "Invalid payment token";

  const chargeData = {
    amount: outboundFlight.ticketPrice,
    currency: outboundFlight.ticketCurrency,
    stripeToken: paymentToken.details.id,
    description: `Payment by ${customerEmail}`,
    email: customerEmail
  };

  try {
    const data = await axios.post(endpoint, chargeData);
    const {
github laqul / laqul / client / src / session / logout.js View on Github external
export default (logoutType) => {
  Loading.show()
  deleteFcmToken()
    .then(success => firebaseLogout())
    .then(success => apiLogout(logoutType))
    .then(success => backendLogout())
    .then(success => clear())
    .then(success => {
      Loading.hide()
    }).catch(error => {
      Loading.hide()
      errorHandler(this, error)
    })
}
github quasarframework / quasar / ui / dev / components / global / loading.vue View on Github external
function show (options, timeout = 3000) {
  Loading.show(options)

  setTimeout(() => {
    Loading.hide()
  }, timeout)
}
github trajano / app-ms / quasar-ms / src / components / SignIn.vue View on Github external
async signInWithGoogle() {
      Loading.show()
      const state = base64url.encode(
        this.$store.getters['oauthToken/requestedPath']
      )

      const acceptJson = new Headers()
      acceptJson.set('Accept', 'application/json')
      acceptJson.set('Authorization', 'Basic b2lkY19pZDphcHBfc2VjcmV0')
      let response = await fetch(
        process.env.GATEWAY_URI + '/oidc/auth-info/google?state=' + state,
        { headers: acceptJson }
      )
      let data = await response.json()
      this.oidcUri = data.uri
      window.location.href = this.oidcUri
    },
    noop() {}