[Update Package] Update material-ui v1.0.0-beta.34

This commit is contained in:
Qolzam
2018-02-21 08:58:04 +07:00
parent be1b6f29c8
commit c81cfa9c44
4 changed files with 497 additions and 16707 deletions

16425
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,6 @@
"build": "npm-run-all build-css build-js", "build": "npm-run-all build-css build-js",
"test": "react-scripts-ts test --env=jsdom", "test": "react-scripts-ts test --env=jsdom",
"eject": "react-scripts-ts eject", "eject": "react-scripts-ts eject",
"watch": "webpack -w",
"deploy:firebase": "npm run build && firebase deploy" "deploy:firebase": "npm run build && firebase deploy"
}, },
"author": "Amir Movahedi", "author": "Amir Movahedi",
@@ -31,7 +30,7 @@
"inversify": "^4.6.0", "inversify": "^4.6.0",
"keycode": "^2.1.9", "keycode": "^2.1.9",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"material-ui": "^1.0.0-beta.33", "material-ui": "^1.0.0-beta.34",
"material-ui-icons": "^1.0.0-beta.17", "material-ui-icons": "^1.0.0-beta.17",
"moment": "^2.18.1", "moment": "^2.18.1",
"morgan": "^1.8.1", "morgan": "^1.8.1",

View File

@@ -5,6 +5,7 @@ import { SocialError } from 'core/domain/common'
import { Vote } from 'core/domain/votes' import { Vote } from 'core/domain/votes'
import { IVoteService } from 'core/services/votes' import { IVoteService } from 'core/services/votes'
import { injectable } from 'inversify' import { injectable } from 'inversify'
import { Post } from 'core/domain/posts/post'
/** /**
* Firbase vote service * Firbase vote service
@@ -30,7 +31,7 @@ export class VoteService implements IVoteService {
db.runTransaction((transaction) => { db.runTransaction((transaction) => {
return transaction.get(postRef).then((postDoc) => { return transaction.get(postRef).then((postDoc) => {
if (postDoc.exists) { if (postDoc.exists) {
const post = postDoc.data() const post = postDoc.data() as Post
let {votes, score} = post let {votes, score} = post
if (!votes) { if (!votes) {
votes = {} votes = {}
@@ -84,7 +85,7 @@ export class VoteService implements IVoteService {
db.runTransaction((transaction) => { db.runTransaction((transaction) => {
return transaction.get(postRef).then((postDoc) => { return transaction.get(postRef).then((postDoc) => {
if (postDoc.exists) { if (postDoc.exists) {
const post = postDoc.data() const post = postDoc.data() as Post
let {votes, score} = post let {votes, score} = post
if (!votes) { if (!votes) {
votes = {} votes = {}

771
yarn.lock

File diff suppressed because it is too large Load Diff