forked from open-roboclub/roboclub-vue
-
Notifications
You must be signed in to change notification settings - Fork 6
chore : Migrate Robocon section to firestore #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
HashirGJ8842
merged 9 commits into
HashirGJ8842:migrate
from
Apoorve73:robocon-db-migrate
Mar 6, 2021
Merged
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
56ff66e
Add vuexfire library v3.2.5
Apoorve73 266de20
Add firestore db variable
Apoorve73 0ca67ca
Add vuexfireMutations
Apoorve73 e2f18dc
Update queries
Apoorve73 a550571
Add firebaseMutations
Apoorve73 28db1b1
Change 'firestoreDb
Apoorve73 cd4957c
Change 'firestoreDb' to 'DB'
Apoorve73 8c30253
Resolve conflicts in plugins/firebase.js
Apoorve73 8b099ab
Merge remote-tracking branch 'upstream/migrate' into robocon-db-migrate
Apoorve73 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| import { firebaseAction } from 'vuexfire' | ||
| import { db } from '@/plugins/firebase' | ||
| import { firestoreAction } from 'vuexfire' | ||
| import { firestoreDb } from '@/plugins/firebase' | ||
|
|
||
| const roboconRef = db.ref('robocon/current') | ||
| const roboconRef = firestoreDb.collection('robocon').doc('current') | ||
|
|
||
| export const state = () => ({ | ||
| robocon: {} | ||
| }) | ||
|
|
||
| export const actions = { | ||
| setRoboconRef: firebaseAction(({ bindFirebaseRef }) => { | ||
| return bindFirebaseRef('robocon', roboconRef) | ||
| setRoboconRef: firestoreAction(({ bindFirestoreRef }) => { | ||
| return bindFirestoreRef('robocon', roboconRef) | ||
| }) | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2393,6 +2393,11 @@ | |
| resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.8.2.tgz#1fd24b99e417176566f8ada718fd16dbc7ef2b7a" | ||
| integrity sha512-7PRna6st1As9DBTXO3Lf1lYw7bi+b/6kE2OPjvvdWHLfBxTI01FW1HSqt4akYzKe1Cta3bmhuwct4OAF2EVemA== | ||
|
|
||
| "@posva/vuefire-core@^2.3.4": | ||
| version "2.3.4" | ||
| resolved "https://registry.yarnpkg.com/@posva/vuefire-core/-/vuefire-core-2.3.4.tgz#58a2561c957c982a9dea26a559c018756e30f035" | ||
| integrity sha512-jumUMMDBMDRtx9reIKCkC92TRwxJ/vG0+7iX2gQNXbS9cIVh4iI78PQm8e9ztCiBmdlALuBvfbcvDoD60cvJuw== | ||
|
|
||
| "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": | ||
| version "1.1.2" | ||
| resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" | ||
|
|
@@ -17222,10 +17227,12 @@ vuex@^3.6.2: | |
| resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71" | ||
| integrity sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw== | ||
|
|
||
| [email protected]: | ||
| version "2.3.1" | ||
| resolved "https://registry.yarnpkg.com/vuexfire/-/vuexfire-2.3.1.tgz#9a3bd6cab06183f48dd864c401073688898643c2" | ||
| integrity sha512-DLlpCew+uDIhHpVKGHbpgOUBSJT6loK2EZmKWiVvz/m0hzw8hNPFLnx/MZwtitfX5zVaq59hD8b72/YA03oSsA== | ||
| vuexfire@^3.2.5: | ||
| version "3.2.5" | ||
| resolved "https://registry.yarnpkg.com/vuexfire/-/vuexfire-3.2.5.tgz#d176b655d6a103b5bcee19bdeeb8b3ec6eeff48b" | ||
| integrity sha512-fztRzKljqTjNmNexAzKkk7b9h/xrNu3e2hI05VZAT6/hRljRUJavxO5ATXZCXG4rQE3kNHODpMJG6BiR2T8u0g== | ||
| dependencies: | ||
| "@posva/vuefire-core" "^2.3.4" | ||
|
|
||
| w3c-hr-time@^1.0.2: | ||
| version "1.0.2" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this variable as
DB, this would be the name everyone will proceed withThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!