This file contains hidden or 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 { Logging } = require('@google-cloud/logging'); | |
| const logging = new Logging(); | |
| const log = logging.log('publishToBigQuery'); | |
| const { PubSub } = require('@google-cloud/pubsub'); | |
| const pubsub = new PubSub(); | |
| const protobuf = require('protobufjs'); | |
| const Firestore = require('@google-cloud/firestore'); |
This file contains hidden or 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
| export default { | |
| name: 'productAnnotation', | |
| type: 'object', | |
| title: 'Reference to Product', | |
| fields: [ | |
| { | |
| title: 'Product', | |
| name: 'productReference', | |
| type: 'reference', | |
| to: [ |
This file contains hidden or 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
| name: petsproject | |
| description: A new Flutter project. | |
| # The following line prevents the package from being accidentally published to | |
| # pub.dev using `flutter pub publish`. This is preferred for private packages. | |
| publish_to: 'none' # Remove this line if you wish to publish to pub.dev | |
| # The following defines the version and build number for your application. | |
| # A version number is three numbers separated by dots, like 1.2.43 | |
| # followed by an optional build number separated by a +. |
This file contains hidden or 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 'dart:convert'; | |
| import 'package:flutter/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| import 'package:json_annotation/json_annotation.dart'; | |
| part 'main.g.dart'; | |
| void main() { |
This file contains hidden or 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 {JsonView} from '../components/views/JsonView' | |
| import {DocumentIcon, EyeOpenIcon, StarIcon, PackageIcon} from '@sanity/icons' | |
| import S from '@sanity/desk-tool/structure-builder' | |
| import {PetPreview} from '../components/views/PetPreview' | |
| import {RangeInput} from '../components/inputs/RangeInput' | |
| import {CharacterCount} from '../components/inputs/CharacterCount' | |
| import petIcon from '../components/icons/petIcon' | |
| import ProductRenderer from "./components/ProductRenderer" | |
| export default { |
This file contains hidden or 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
| of: [ | |
| { | |
| type: 'block', | |
| marks: { | |
| annotations: [ | |
| { | |
| name: 'product', | |
| type: 'reference', | |
| to: [ | |
| { |
This file contains hidden or 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, { useEffect, useState } from 'react' | |
| import PropTypes from 'prop-types' | |
| import sanityClient from 'part:@sanity/base/client' | |
| const apiVersion = `2021-05-19` | |
| const client = sanityClient.withConfig({ apiVersion }) | |
| let count = 0; | |
| const ProductRenderer = props => { | |
| const [product, setProduct] = useState({}); |