1.1.1 • Published 6 years ago
GMana Firebase Snippets for VS Code
Usage
Type part of a snippet, press enter
, and the snippet unfolds.
Firestore Snippets
Snippet | Purpose |
---|
fs-ctor | constructor |
Firestore Rule Snippets
Snippet | Purpose |
---|
fsr-open-rules | Firestore test open rules |
fsr-close-rules | Firestore test close rules |
fsr-init | Initial the cloud firestore rule |
fsr-is-signed-in | checked the user is signed in or not |
fsr-get-roles | return the current users entry in the roles collection |
fsr-get-role-para-rsc | return the current users entry in the roles collection |
fsr-has-role | check if the current user has a specific role |
fsr-has-any-role | check if the current user has any of the the given roles (list) |
fsr-is-one-of-roles | check if the current user has any of the the given roles (list) |
ReactJs Snippets
Snippet | Purpose |
---|
r-afc | React - Arrow Function Component |
r-afci | React - Arrow Function Component With Import |
r-cc | React - Class Component |
r-cci | React - Class Component With Import |
ReactJs With Typescript Snippets
Snippet | Purpose |
---|
r-im | import m from 'module'; |
r-imd | import {m} from 'module'; |
r-em | export default moduleName; |
r-emd | export { m } from 'module'; |
r-i | import React from 'react'; |
r-ic | import React, { Component } from 'react'; |
r-afc | React - Arrow Function Component |
r-afci | React - Arrow Function Component With Import |