Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion scripts/separate-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ function processSnippet(
`// This snippet file was generated by processing the source file:`,
`// ${sourceFile}`,
`//`,
`// To make edits to the snippets in this file, please edit the source`,
`// To update the snippets in this file, edit the source and then run`,
`// 'npm run snippets'.`,
``,
];
const content = [...preambleLines, ...outputLines].join("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_add_cart_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_checkout_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_items_modular]
// A pair of jeggings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_payment_info_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_promotions_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_purchase_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_refund_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_remove_cart_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_select_item_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_shipping_info_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_view_cart_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_view_item_details_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/ecommerce.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_ecommerce_view_item_list_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
3 changes: 2 additions & 1 deletion snippets/analytics-next/index/analytics_initialize.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_initialize_modular]
import { getAnalytics } from "firebase/analytics";
Expand Down
3 changes: 2 additions & 1 deletion snippets/analytics-next/index/analytics_log_event.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_log_event_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_log_event_custom_params_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
3 changes: 2 additions & 1 deletion snippets/analytics-next/index/analytics_log_event_params.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_log_event_params_modular]
import { getAnalytics, logEvent } from "firebase/analytics";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./analytics-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START analytics_set_user_properties_modular]
import { getAnalytics, setUserProperties } from "firebase/analytics";
Expand Down
3 changes: 2 additions & 1 deletion snippets/appcheck-next/index/appcheck_custom_provider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./appcheck-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START appcheck_custom_provider_modular]
import { CustomProvider } from "firebase/app-check";
Expand Down
3 changes: 2 additions & 1 deletion snippets/appcheck-next/index/appcheck_initialize.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./appcheck-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START appcheck_initialize_modular]
import { initializeApp } from "firebase/app";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./appcheck-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START appcheck_initialize_custom_provider_modular]
import { initializeApp } from "firebase/app";
Expand Down
3 changes: 2 additions & 1 deletion snippets/appcheck-next/index/appcheck_nonfirebase.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./appcheck-next/index.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START appcheck_nonfirebase_modular]
import { initializeAppCheck, getToken } from 'firebase/app-check';
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/anonymous/auth_anon_sign_in.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/anonymous.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_anon_sign_in_modular]
import { getAuth, signInAnonymously } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_link_facebook.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_link_facebook_modular]
import { getAuth, linkWithPopup, FacebookAuthProvider } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_nonce_node.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_nonce_node_modular]
const crypto = require("crypto");
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_provider_create.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_provider_create_modular]
import { OAuthProvider } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_provider_params.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_provider_params_modular]
provider.setCustomParameters({
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_provider_scopes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_provider_scopes_modular]
provider.addScope('email');
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_reauthenticate_popup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_reauthenticate_popup_modular]
import { getAuth, reauthenticateWithPopup, OAuthProvider } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_signin_nonce.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_signin_nonce_modular]
import { getAuth, signInWithCredential, OAuthProvider } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_signin_popup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_signin_popup_modular]
import { getAuth, signInWithPopup, OAuthProvider } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/apple/auth_apple_signin_redirect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_signin_redirect_modular]
import { getAuth, signInWithRedirect } from "firebase/auth";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/apple.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_apple_signin_redirect_result_modular]
import { getAuth, getRedirectResult, OAuthProvider } from "firebase/auth";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/auth-state-persistence.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_set_persistence_none_modular]
import { getAuth, setPersistence, signInWithRedirect, inMemoryPersistence, GoogleAuthProvider } from "firebase/auth";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/auth-state-persistence.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_set_persistence_session_modular]
import { getAuth, setPersistence, signInWithEmailAndPassword, browserSessionPersistence } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/cordova/auth_cordova_redirect_result.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/cordova.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_cordova_redirect_result_modular]
import { getAuth, getRedirectResult, GoogleAuthProvider } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/cordova/auth_cordova_sign_in_redirect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/cordova.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_cordova_sign_in_redirect_modular]
import { getAuth, signInWithRedirect, getRedirectResult, GoogleAuthProvider } from "firebase/auth";
Expand Down
3 changes: 2 additions & 1 deletion snippets/auth-next/cordova/auth_create_google_provider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/cordova.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_create_google_provider_modular]
import { GoogleAuthProvider } from "firebase/auth";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This snippet file was generated by processing the source file:
// ./auth-next/custom-email-handler.js
//
// To make edits to the snippets in this file, please edit the source
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.

// [START auth_handle_mgmt_query_params_modular]
import { initializeApp } from "firebase/app";
Expand Down
Loading