mesqueeb

mesqueeb

Just your red-haired kid from the block. Hanging in the streets of Tokyo. Sprouted on Belgian soil.

Member Since 9 years ago

https://cycraft.co, Tokyo

Experience Points
124
follower
Lessons Completed
27
follow
Lessons Completed
284
stars
Best Reply Awards
132
repos

5348 contributions in the last year

Pinned
⚡ An awesome icon pack of retro icons for your apps and websites.
⚡ Generate Vue Forms and Data-tables fast with a simple JSON-like syntax ⚡
⚡ A framework-agnostic syncing solution that auto-connects any DB/API with your local data store and has optimistic-UI built in 🌟
⚡ JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.
⚡ Merge objects & other types recursively. A simple & small integration.
⚡ camelCase, kebab-case, PascalCase... a simple integration with nano package size. (SMALL footprint!)
Activity
May
22
2 days ago
started
started time in 2 days ago
May
20
4 days ago
started
started time in 3 days ago
May
19
5 days ago
Activity icon
issue

mesqueeb issue comment ionic-team/capacitor

mesqueeb
mesqueeb

Support blob/large data

Investigate passing blobs from native to JS and vice versa.

mesqueeb
mesqueeb

@mlynch @jcesarmobile any chance this could be added to the 4.0 Milestone? 😍

Activity icon
created tag

mesqueeb in CyCraft/blitzar create tag v1.1.25

createdAt 5 days ago
Activity icon
created tag

mesqueeb in CyCraft/blitzar create tag v1.1.24

createdAt 5 days ago
Activity icon
created tag

mesqueeb in CyCraft/blitzar create tag v1.1.23

createdAt 5 days ago
Activity icon
created tag

mesqueeb in CyCraft/blitzar create tag v1.1.22

createdAt 5 days ago
push

mesqueeb push CyCraft/blitzar

mesqueeb
mesqueeb

feat(table): add ._no-data-found class

commit sha: 10031292790844003224a282b837ea4cbf5ed541

push time in 5 days ago
May
17
1 week ago
Activity icon
issue

mesqueeb issue comment CyCraft/magnetar

mesqueeb
mesqueeb

Collection Query by Firestore timestamp

Hi there Luca, thank you for your Magnetar, it is a wonderful state management for my firestore project.

Recently notice some problem/bug (not sure about it) If I would like to fetch some collection with time/date query, -> magnetar.collection(doc).where('date', '>', new Date('1 May 2021')).fetch()

it will return nothing even the document date is in range of the query.

Thank you

mesqueeb
mesqueeb

@loverziyu thanks for your patience. Fixed in latest version [email protected]

--
Magnetar was made with 💜 by Luca Ban.
You cannot sponsor every project, but next time you do, think of this one for its prolonged maintenance.

Activity icon
issue

mesqueeb issue CyCraft/magnetar

mesqueeb
mesqueeb

Collection Query by Firestore timestamp

Hi there Luca, thank you for your Magnetar, it is a wonderful state management for my firestore project.

Recently notice some problem/bug (not sure about it) If I would like to fetch some collection with time/date query, -> magnetar.collection(doc).where('date', '>', new Date('1 May 2021')).fetch()

it will return nothing even the document date is in range of the query.

Thank you

May
11
1 week ago
Activity icon
issue

mesqueeb issue comment egoist/tooling.one

mesqueeb
mesqueeb

Sass variables to CSS variables

$c-brand: $c-gray-1;
--c-brand: var(--c-gray-1);
mesqueeb
mesqueeb

I'd love a full blown sass converter.

sassmeister seems to crash when selecting sass. maybe it only works with scss now... : (

May
4
2 weeks ago
Activity icon
issue

mesqueeb issue comment firebase/firebase-js-sdk

mesqueeb
mesqueeb

CORS Firebase Auth Cannot fetch to Auth url Capacitor 3

[REQUIRED] Describe your environment

  • Operating System version: IOS 14
  • Browser version: Capacitor 3
  • Firebase SDK version: json api
  • Firebase Product: auth

[REQUIRED] Describe the problem

Since I wasn't able to use auth sdk in capacitor i tried to do it by json API using : https://github.com/samuelgozi/firebase-auth-lite/blob/d4ed969c9d7a9181910b14f05a6e1140b33448d0/src/main.js#L118

This work perfectly on web but not in Mobile app because of the capacitor origin .

[Error] Failed to load resource: Origin capacitor://localhost is not allowed by Access-Control-Allow-Origin. (token, line 0) https://securetoken.googleapis.com/v1/token?key=****

Steps to reproduce:

Create a starter capacitor app with the code below

Relevant Code:


const signUp = () => {
    const apiKey ="***"
    const url = `https://securetoken.googleapis.com/v1/token?key=${apiKey}`;
    return fetch(url, {
        method: 'POST',
        body: JSON.stringify({returnSecureToken: true})
    }).then(async response => {
        let data = await response.json();
        // If the response returned an error, try to get a Firebase error code/message.
        // Sometimes the error codes are joined with an explanation, we don't need that(its a bug).
        // So we remove the unnecessary part.
        if (!response.ok) {
            const code = data.error.message.replace(/ ?: [\w ,.'"()]+$/, '');
            throw Error(code);
        }
        return data;
    });
}
signUp()
mesqueeb
mesqueeb

@wmadden can you please make a PR to fix this ?

Activity icon
issue

mesqueeb issue comment robingenz/capacitor-firebase

mesqueeb
mesqueeb

feat: support Firebase Cloud Messaging

Is your feature request related to a problem? Please describe:

Firebase Cloud Messaging is not currently supported.

Describe the solution you'd like:

Add a Firebase Cloud Messaging plugin.

Describe alternatives you've considered:

Additional context:

mesqueeb
mesqueeb

Does the plugin work completely standalone or do we also need @capacitor/push-notifications installed as peer dependency?

Apr
30
3 weeks ago
started
started time in 3 weeks ago
Apr
29
3 weeks ago
Activity icon
issue

mesqueeb issue comment Rabbitzzc/tiny-replace-files

mesqueeb
mesqueeb

types file is not released on NPM

the types file you are pointing at is nowhere to be found on the NPM release: Screenshot 2022-03-28 at 19 39 21

mesqueeb
mesqueeb

@Rabbitzzc is it possible to re-open this issue? 😅

we love the idea of this package, only it's not compatible with TS currently because it ships with a types file at the wrong location.

The package is so close to becoming something great, but now it's un-usable for any TS project...

Activity icon
issue

mesqueeb issue comment mesqueeb/merge-anything

mesqueeb
mesqueeb

Arrays don't merge unless within an object.

example:

import { mergeAndConcat } from "merge-anything";

console.log(mergeAndConcat([{ one: "two" }], [{ three: "four" }])) 
// output: [ { three: 'four' } ]

a simple workaround is this

import { mergeAndConcat } from "merge-anything";

console.log(mergeAndConcat({ temp: [{ one: "two" }] }, { temp: [{ three: "four" }] }).temp) 
// output: [ { one: 'two' }, { three: 'four' } ]

I went to check if the deepmerge package supports this and it does it would be nice if merge-anything was to support this as well as I enjoy the suite of libs more

lol I realize this is the concat variant which is supposed to do this though it would be interesting to do like reverse depth

Apr
23
1 month ago
Activity icon
delete
deleted time in 1 month ago
Activity icon
issue

mesqueeb issue robingenz/capacitor-firebase

mesqueeb
mesqueeb

bug: Error: There was an error while trying to get your package certificate hash

Plugin(s):

"@capacitor-firebase/authentication": "^0.2.1",

Platform(s):

android

Current behavior:

I have been using Twitter Auth on Android via "skipNativeAuth": true, I had temporarily disabled this today: "skipNativeAuth": false, and it broke some signin methods. So I had re-enabled it again.

Ever since then I cannot use twitter auth on android any more:

Error: There was an error while trying to get your package certificate hash. at Object.cap.fromNative (VM3:411:32) at :1:18

I have cleaned the build folder. Double checked the certificate hash is registered on Firebase, double checked all Twitter requirements, but cannot seem to find the cause for this issue. : S

It won't go to the auth page even.

Steps to reproduce:

I can provide aab if required.

Related code:

  async function signinWithTwitter(): Promise<void> {
    if (platform === 'android') {
      // 1. Create credentials on the native layer
      const result: SignInResult = await FirebaseAuthentication.signInWithTwitter()

      const { accessToken, secret } = result.credential || {}
      if (!accessToken || !secret) {
        throw new Error('twitter error')
      }

      // 2. Create credentials on the web layer
      const credential = TwitterAuthProvider.credential(accessToken, secret)
      // 3. Sign in on the web layer using the id token
      await signInWithCredential(firebaseAuth, credential)
    }

Other information:

image

Capacitor doctor:

npx cap doctor
💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 3.4.3
  @capacitor/core: 3.4.3
  @capacitor/android: 3.4.3
  @capacitor/ios: 3.4.3

Installed Dependencies:

  @capacitor/cli: 3.4.3
  @capacitor/core: 3.4.3
  @capacitor/android: 3.4.3
  @capacitor/ios: 3.4.3

[success] iOS looking great! 👌
[success] Android looking great! 👌
Activity icon
issue

mesqueeb issue comment robingenz/capacitor-firebase

mesqueeb
mesqueeb

bug: Error: There was an error while trying to get your package certificate hash

Plugin(s):

"@capacitor-firebase/authentication": "^0.2.1",

Platform(s):

android

Current behavior:

I have been using Twitter Auth on Android via "skipNativeAuth": true, I had temporarily disabled this today: "skipNativeAuth": false, and it broke some signin methods. So I had re-enabled it again.

Ever since then I cannot use twitter auth on android any more:

Error: There was an error while trying to get your package certificate hash. at Object.cap.fromNative (VM3:411:32) at :1:18

I have cleaned the build folder. Double checked the certificate hash is registered on Firebase, double checked all Twitter requirements, but cannot seem to find the cause for this issue. : S

It won't go to the auth page even.

Steps to reproduce:

I can provide aab if required.

Related code:

  async function signinWithTwitter(): Promise<void> {
    if (platform === 'android') {
      // 1. Create credentials on the native layer
      const result: SignInResult = await FirebaseAuthentication.signInWithTwitter()

      const { accessToken, secret } = result.credential || {}
      if (!accessToken || !secret) {
        throw new Error('twitter error')
      }

      // 2. Create credentials on the web layer
      const credential = TwitterAuthProvider.credential(accessToken, secret)
      // 3. Sign in on the web layer using the id token
      await signInWithCredential(firebaseAuth, credential)
    }

Other information:

image

Capacitor doctor:

npx cap doctor
💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 3.4.3
  @capacitor/core: 3.4.3
  @capacitor/android: 3.4.3
  @capacitor/ios: 3.4.3

Installed Dependencies:

  @capacitor/cli: 3.4.3
  @capacitor/core: 3.4.3
  @capacitor/android: 3.4.3
  @capacitor/ios: 3.4.3

[success] iOS looking great! 👌
[success] Android looking great! 👌
mesqueeb
mesqueeb

@robingenz thank you for the reply!! I ended up doing these checks and finding the cause:

  • double check my 2 related firebase apps > settings > android app > look at the SHA-1 and SHA-256 that were registered
  • for both related projects make sure that all these keys were registered:
    • both SHA-1 and SHA-256 keys of my android keystore for uploading
    • both SHA-1 and SHA-256 keys of the app signing which are found on the Google Play console
    • both SHA-1 and SHA-256 keys of the Android Studio debug key that comes with the app (see SO here)

After registering these 6 keys in the Firebase console it worked again. 🎉 (I had some of these missing)

Activity icon
issue

mesqueeb issue comment robingenz/capacitor-firebase

mesqueeb
mesqueeb

fix(docs): spacing

mesqueeb
mesqueeb

@robingenz It is? :O

This is what my actual PodFile looks like image

This is what the markdown looks currently: image

This is what the PR looks like:

image

Do you think it's better without the indentation?

Apr
22
1 month ago
Previous