This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cli": { | |
"version": ">= 3.8.1" | |
}, | |
"build": { | |
"development": { | |
"channel": "development", | |
"developmentClient": true, | |
"distribution": "internal", | |
"android": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## First open up terminal in https://console.cloud.google.com. Click button in right hand corner to open the terminal. | |
## Add to `cors-config.json` | |
echo '[{"origin": ["[YOUR-DOMAIN]"],"responseHeader": ["Content-Type"],"method": ["GET", "HEAD"],"maxAgeSeconds": 3600}]' > cors-config.json | |
## Set with gsutil | |
gsutil cors set cors-config.json gs://[YOUR-PROJECT-ID].appspot.com | |
## Checkout your input | |
gsutil cors get gs://wecount-2023.appspot.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '../utils/firebase_config.dart'; | |
abstract class IQueryService { | |
Future<List<T>> getWhereInQueryList<T>({ | |
required List<Object> whereInList, | |
required CollectionReference<Map<String, dynamic>> reference, | |
int size, | |
startAfter, | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flat_list/flat_list.dart'; | |
import 'package:flat_list_example/common_views.dart'; | |
import 'package:flat_list_example/data.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
class FlatListEx1 extends HookWidget { | |
static const name = '/flat-list-ex1'; | |
const FlatListEx1({super.key}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://gist.github.com/parmentf/035de27d6ed1dce0b36a#gistcomment-3664222 | |
Chore ⚙️ :gear: | |
CI 🚀 :rocket: | |
Documentation 📝 :memo: | |
Feature ⭐ :star: | |
Fix / Bug 🐞 :beetle: | |
Performance ⚡️ :zap: | |
Release 🔖 :bookmark: | |
Tests 🧪 :test_tube: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Button, EditText} from 'dooboo-ui'; | |
import React, {FC, useState} from 'react'; | |
import {RootStackNavigationProps} from '../navigations/RootStack'; | |
import styled from '@emotion/native'; | |
const Container = styled.View` | |
flex: 1; | |
background-color: transparent; | |
padding: 0 40px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {FC, useState} from 'react'; | |
import {IEnvironment} from 'relay-runtime'; | |
import {RelayEnvironmentProvider} from 'react-relay/hooks'; | |
import createCtx from '../utils/createCtx'; | |
interface Context { | |
/** | |
* Current Relay environment. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fileName = uri.split('/').pop(); | |
const fileType = mime.getType(uri); | |
const data: FormData = new FormData(); | |
if (Platform.OS === 'web') { | |
const byteString = atob(uri.split(',')[1]); | |
const ab = new ArrayBuffer(byteString.length); | |
const arr = new Uint8Array(ab); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {FC, useState} from 'react'; | |
import {IEnvironment} from 'relay-runtime'; | |
import {RelayEnvironmentProvider} from 'react-relay/hooks'; | |
import createCtx from '../utils/createCtx'; | |
interface Context { | |
/** | |
* Current Relay environment. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { init } from 'fbt'; | |
import intl from '../../assets/translatedFbts.json'; | |
const DEFAULT_LOCALE = 'en'; | |
export const viewerContext = { | |
locale: DEFAULT_LOCALE, | |
}; | |
export const initFbt = (): void => { |
NewerOlder