From 4f63addde5ea5c6cdefdc0223ca6bc329cd6c656 Mon Sep 17 00:00:00 2001 From: francesco Date: Fri, 19 Jun 2020 12:27:31 +0200 Subject: [PATCH] Fixed example dependency link --- README.md | 2 +- example/package.json | 2 +- .../src/custom_field/CustomLargeTextField.tsx | 2 +- example/src/index.tsx | 2 +- example/src/index_simple.tsx | 2 +- example/yarn.lock | 112 +++++++++++++++++- example_backend/functions/src/index.ts | 4 +- 7 files changed, 115 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a221234..c1a18bb 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ firebaseConfig specification, since it gets picked up automatically. import React from "react"; import ReactDOM from "react-dom"; -import { CMSApp, EntitySchema, EnumValues, Authenticator, EntityCollectionView } from "firecms"; +import { CMSApp, EntitySchema, EnumValues, Authenticator, EntityCollectionView } from "@camberi/firecms"; import firebase from "firebase"; const status = { diff --git a/example/package.json b/example/package.json index b0a6659..0d24904 100644 --- a/example/package.json +++ b/example/package.json @@ -3,12 +3,12 @@ "version": "0.1.0", "private": true, "dependencies": { + "@camberi/firecms": "link:..", "@material-ui/core": "link:../node_modules/@material-ui/core", "@material-ui/icons": "link:../node_modules/@material-ui/icons", "@material-ui/pickers": "link:../node_modules/firebase", "algoliasearch": "link:../node_modules/algoliasearch", "firebase": "link:../node_modules/firebase", - "firecms": "link:..", "react": "link:../node_modules/react", "react-dom": "link:../node_modules/react-dom", "react-scripts": "link:../node_modules/react-scripts" diff --git a/example/src/custom_field/CustomLargeTextField.tsx b/example/src/custom_field/CustomLargeTextField.tsx index e0cf6b3..225f531 100644 --- a/example/src/custom_field/CustomLargeTextField.tsx +++ b/example/src/custom_field/CustomLargeTextField.tsx @@ -6,7 +6,7 @@ import { InputLabel } from "@material-ui/core"; import React, { ReactElement } from "react"; -import { CMSFieldProps } from "firecms"; +import { CMSFieldProps } from "@camberi/firecms"; interface CustomLargeTextFieldProps extends CMSFieldProps { rows: number diff --git a/example/src/index.tsx b/example/src/index.tsx index dcc528c..d2d0155 100644 --- a/example/src/index.tsx +++ b/example/src/index.tsx @@ -16,7 +16,7 @@ import { EntityCollectionView, EntitySchema, EnumValues -} from "firecms"; +} from "@camberi/firecms"; import { firebaseConfig } from "./firebase_config"; import CustomLargeTextField from "./custom_field/CustomLargeTextField"; diff --git a/example/src/index_simple.tsx b/example/src/index_simple.tsx index ab8bc8c..317db3c 100644 --- a/example/src/index_simple.tsx +++ b/example/src/index_simple.tsx @@ -7,7 +7,7 @@ import { EntityCollectionView, EntitySchema, EnumValues -} from "firecms"; +} from "@camberi/firecms"; import firebase from "firebase"; const status = { diff --git a/example/yarn.lock b/example/yarn.lock index 410c79d..0f78e83 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -2,6 +2,110 @@ # yarn lockfile v1 +"@algolia/cache-browser-local-storage@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.2.0.tgz#45cc4be4c8fcd69cb98ebaa2e78a459a1cf6ba64" + integrity sha512-uji5zxBxwNu8qKtyqghg9lUsN0OOZ58NfRKk0Il4IZCcCo78E0KfT3Uxr7XiYCJMRnqIsvbKWf0xA67tYNBSbA== + dependencies: + "@algolia/cache-common" "4.2.0" + +"@algolia/cache-common@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/cache-common/-/cache-common-4.2.0.tgz#ada18e559f205a63eaf60c21a035b3d41f0f8d7d" + integrity sha512-ATBQCBBLt4hPNKIKn06y5zqZPWQmI+PBF0287rFVj8BGmEr82BzoKMa5XIkvgpjtxwx6c5nSKxZaYkEFqtrxtQ== + +"@algolia/cache-in-memory@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/cache-in-memory/-/cache-in-memory-4.2.0.tgz#82f07cc99aee9e20a96bdd69c635bdd2dc4288f1" + integrity sha512-NsVOR6ixK6jvurLW+1+h80/9N18QjU/AXdAZJoVeu4JXb2NPuej4Ld1zXFYvz/ypCFQE+dU8haaQnJIuTbD4vg== + dependencies: + "@algolia/cache-common" "4.2.0" + +"@algolia/client-account@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/client-account/-/client-account-4.2.0.tgz#7abf3dd8922fde1735b1e0d19e8b0bdbf64a1435" + integrity sha512-xz5OXU9DQ9pegABAgmTPV23f9tXmbUPO3w5J/b2QcP6jzfNnNfW3CkTwywgNLr16jIKLxmmClN5yqyJp6XmHBA== + dependencies: + "@algolia/client-common" "4.2.0" + "@algolia/client-search" "4.2.0" + "@algolia/transporter" "4.2.0" + +"@algolia/client-analytics@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/client-analytics/-/client-analytics-4.2.0.tgz#11e9331fed5bbaa6668d71c890dff60c4af1c741" + integrity sha512-UNuZQOYuKPYl5fCgm1HZzoZ6Ewxtqrc4Cv5Dhdy5VatIV6lYEWOtdn+g+5qvWFGb6fv6688dg5EVJnXZNvVVZQ== + dependencies: + "@algolia/client-common" "4.2.0" + "@algolia/client-search" "4.2.0" + "@algolia/requester-common" "4.2.0" + "@algolia/transporter" "4.2.0" + +"@algolia/client-common@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/client-common/-/client-common-4.2.0.tgz#bf8a550dc51927bb103de9aab7e6ac4d90a9cf0d" + integrity sha512-KxZTWXf9FSl188iTAz9rhTMeBtbF/uaJcxw99jbWHxyK9KR87obZzTlTFYnIWLEBaTG1MmlgPSsDogAE4CHLOQ== + dependencies: + "@algolia/requester-common" "4.2.0" + "@algolia/transporter" "4.2.0" + +"@algolia/client-recommendation@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/client-recommendation/-/client-recommendation-4.2.0.tgz#bd49b5b9601fe4220ba6db0fc397d816584ee4ec" + integrity sha512-5QwvUJ5hpZVDz99o+EPgMg+z7maLWOZGUrUt5z8s+esl+taTb2h1PtyLpikAvC2d/BjYCEKyObTiRDYdzhqcoA== + dependencies: + "@algolia/client-common" "4.2.0" + "@algolia/requester-common" "4.2.0" + "@algolia/transporter" "4.2.0" + +"@algolia/client-search@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/client-search/-/client-search-4.2.0.tgz#4917499cac66a5cca7f2ca9d1334bffc96a79b17" + integrity sha512-2SAz1/undr+RM7FNj3G0taWFG+8QEMQcYHxUhoOJKMIY9sPQN7UNCJRHYsulM+/g45oF67tXX09NSt14ewen0Q== + dependencies: + "@algolia/client-common" "4.2.0" + "@algolia/requester-common" "4.2.0" + "@algolia/transporter" "4.2.0" + +"@algolia/logger-common@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/logger-common/-/logger-common-4.2.0.tgz#dd373b267594656d72a1563f6621ab7f727c4373" + integrity sha512-VQcJE5lr78oc+lbcGfPonCDTRwLNSxwtPrUP6Tj+CoDedsVHZhODAlHzLHhxc4vuyrU7xomvKJLqTUgfDNxzXQ== + +"@algolia/logger-console@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/logger-console/-/logger-console-4.2.0.tgz#10e18ab75f60fd0f2e2b16cb9a1b0bcc947087f2" + integrity sha512-/1GE43jY0xKfJUi5ZGtEqq+oTyOzs+EgGKj7/zEHIpUc5NyxokIPWTqt3q6pzGSWFEkNbaA1gAVgXM1zCMVWYw== + dependencies: + "@algolia/logger-common" "4.2.0" + +"@algolia/requester-browser-xhr@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.2.0.tgz#c2a7982bef940e1749f2ba2aa04e3f8a971b6a78" + integrity sha512-+PZKOe+UBdZYQg/h/8AbKQ2Ha4uDeoLnpZFv00IMr/elym0m2hl76xAeIBiIqGYsLCmGybGBFUF9n1imsKJUJQ== + dependencies: + "@algolia/requester-common" "4.2.0" + +"@algolia/requester-common@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/requester-common/-/requester-common-4.2.0.tgz#df67a940516d5a313bbf79bcbceddadfff9f8ce2" + integrity sha512-SSKPRM/7UP54/dxyK6EYt4p6nTeJxYb1P6xVh/Ic6noBTCfqg5vBEKDa1DZD5MBtCvABoODd97UOfAo3ECG/jg== + +"@algolia/requester-node-http@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/requester-node-http/-/requester-node-http-4.2.0.tgz#e26efd3d630b7c988bcc9cda3a8ee68ab4a168dd" + integrity sha512-mRQgSM8qrMfjXaBnMjTmymR0NKwbr82Qwh1a5TgYyzMOBuRO5nRikawvTVgpNaEnQS0uesIiwd2ohOJ2gNu6oA== + dependencies: + "@algolia/requester-common" "4.2.0" + +"@algolia/transporter@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@algolia/transporter/-/transporter-4.2.0.tgz#9e6bea3304f1e6f4a64a3d7c1f9de047ba89056f" + integrity sha512-7CiwMYsEhrHySA8q70euIYOyhGtz/wz+MEC3nwGONBC82nGI6ntVqTFhCkpLIJqqbGbNlFgnCpwnLmSqLhRP3A== + dependencies: + "@algolia/cache-common" "4.2.0" + "@algolia/logger-common" "4.2.0" + "@algolia/requester-common" "4.2.0" + "@babel/code-frame@7.8.3", "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" @@ -1006,6 +1110,10 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@camberi/firecms@link:..": + version "0.0.0" + uid "" + "@cnakazawa/watch@^1.0.3": version "1.0.4" resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a" @@ -4986,10 +5094,6 @@ find-up@^3.0.0: version "0.0.0" uid "" -"firecms@link:..": - version "0.0.0" - uid "" - flat-cache@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" diff --git a/example_backend/functions/src/index.ts b/example_backend/functions/src/index.ts index d92abc8..c06d07c 100644 --- a/example_backend/functions/src/index.ts +++ b/example_backend/functions/src/index.ts @@ -1,7 +1,7 @@ import * as functions from "firebase-functions"; import { DocumentSnapshot } from "firebase-functions/lib/providers/firestore"; import { deleteInAlgolia, indexInAlgolia } from "./algolia"; -import { eraseDatabase, importDatabaseBackup } from "./util"; +import { importDatabaseBackup } from "./util"; function updateIndex(snap: functions.Change, indexName: string) { @@ -45,6 +45,6 @@ export const scheduledFirestoreImport = functions .pubsub .schedule("every 24 hours") .onRun((context) => { - eraseDatabase().then(() => importDatabaseBackup()); + return importDatabaseBackup(); });