Skip to content

Commit

Permalink
Merge pull request #13 from honjio/feature/appContents
Browse files Browse the repository at this point in the history
【メインページ】予定を画面に追加していく機能の作成。その他多数の変更と修正。
  • Loading branch information
yuki153 authored Feb 6, 2019
2 parents ab297a9 + a986f59 commit df691eb
Show file tree
Hide file tree
Showing 17 changed files with 594 additions and 124 deletions.
92 changes: 38 additions & 54 deletions functions/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -720,15 +720,15 @@
resolved "https://registry.yarnpkg.com/@firebase/firestore-types/-/firestore-types-1.0.1.tgz#33e107e036ed25fde07adee355cec1a7afa5699a"
integrity sha512-BVwEJ9SySLyRyBykZ+WRszeF11k2ytUfsm+nT6cVu69SKVxEgYTJ8Mx0oYhiIhGdht+hxcIBBzdOJWhTi1CH0Q==

"@firebase/[email protected].1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-1.0.1.tgz#f8f228e2d3c7c1234252a6481bf0c5cf0d4fa804"
integrity sha512-q+AzLkorfo8xVL+V4FuyayLgvMyXkvqR8ZyVVuXI8Z+IpIERpYFu3sAz1tf9LMrVYr5nqGxLSPNXA5GSd7U5tw==
"@firebase/[email protected].2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-1.0.2.tgz#340228602d17e81ad8a4c763bebe544d822999b2"
integrity sha512-j1fpjE4xcxUJivR1af6vqCNTci7Wnc220EiNnES38HakBIrurqVtqWMx9+ESjOwe5gMBInTx3BygHtATVbzV2Q==
dependencies:
"@firebase/firestore-types" "1.0.1"
"@firebase/logger" "0.1.5"
"@firebase/webchannel-wrapper" "0.2.12"
grpc "1.17.0"
grpc "1.18.0"
tslib "1.9.0"

"@firebase/[email protected]":
Expand Down Expand Up @@ -872,9 +872,9 @@
xdg-basedir "^3.0.0"

"@grpc/grpc-js@^0.3.0":
version "0.3.4"
resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-0.3.4.tgz#b53a90405063e2fc62a15267172d4f60c129cf1b"
integrity sha512-rIqAYD/Dg7SoR3SD3A9EDEkpb/m7RZ4+1silMN3PjXj2Dz/BeJUHrIl99DYmaZRCDfNGzKrIOPqfjczk8FKlyA==
version "0.3.5"
resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-0.3.5.tgz#849235a60e961672232111cb221021242252206a"
integrity sha512-LAzNgWYr5FHIkn1XPVTOO5qt6an6sBz0dPSKGOjoBwm6eUgHCVGvyxc72DGXgRHwT8hBfT1VwBmhwGHwfdtjeA==
dependencies:
semver "^5.5.0"

Expand Down Expand Up @@ -1278,9 +1278,9 @@
integrity sha512-A2TAGbTFdBw9azHbpVd+/FkdW2T6msN1uct1O9bH3vTerEHKZhTXJUQXy+hNq1B0RagfU8U+KBdqiZpxjhOUQA==

"@types/node@*", "@types/node@^10.1.0":
version "10.12.20"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.20.tgz#f79f959acd3422d0889bd1ead1664bd2d17cd367"
integrity sha512-9spv6SklidqxevvZyOUGjZVz4QRXGu2dNaLyXIFzFYZW0AGDykzPRIUFJXTlQXyfzAucddwTcGtJNim8zqSOPA==
version "10.12.19"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.19.tgz#ca1018c26be01f07e66ac7fefbeb6407e4490c61"
integrity sha512-2NVovndCjJQj6fUUn9jCgpP4WSqr+u1SoUZMZyJkhGeBFsm6dE46l31S7lPUYt9uQ28XI+ibrJA1f5XyH5HNtA==

"@types/node@^8.0.53":
version "8.10.39"
Expand Down Expand Up @@ -1390,19 +1390,19 @@
camelcase "^5.0.0"

"@vue/component-compiler-utils@^2.5.1":
version "2.5.1"
resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-2.5.1.tgz#bd9cf68d728324d7dcede80462c2c0e8fe090acb"
integrity sha512-4mLLh8LYDciX4BO6FVfPbuG3QNYOI70dfsNcdCzHDnN/QYiJ9KWWrf9crSDa9D/aon+QME39Lj+XDHiy9t3sRQ==
version "2.5.2"
resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-2.5.2.tgz#a8d57e773354ab10e4742c7d6a8dd86184d4d7be"
integrity sha512-3exq9O89GXo9E+CGKzgURCbasG15FtFMs8QRrCUVWGaKue4Egpw41MHb3Avtikv1VykKfBq3FvAnf9Nx3sdVJg==
dependencies:
consolidate "^0.15.1"
hash-sum "^1.0.2"
lru-cache "^4.1.2"
merge-source-map "^1.1.0"
postcss "^7.0.7"
postcss "^7.0.14"
postcss-selector-parser "^5.0.0"
prettier "1.16.0"
source-map "^0.7.3"
vue-template-es2015-compiler "^1.6.0"
prettier "1.16.3"
source-map "~0.6.1"
vue-template-es2015-compiler "^1.8.2"

"@webassemblyjs/[email protected]":
version "1.7.11"
Expand Down Expand Up @@ -3337,9 +3337,9 @@ ejs@^2.6.1:
integrity sha512-0xy4A/twfrRCnkhfk8ErDi5DqdAsAqeGxht4xkCUrsvhhbQNs7E+4jV0CN7+NKIY0aHE72+XvqtBIXzD31ZbXQ==

electron-to-chromium@^1.3.103:
version "1.3.109"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.109.tgz#ee04a55a5157a5580a5ea88e526b02c84a3a7bc8"
integrity sha512-1qhgVZD9KIULMyeBkbjU/dWmm30zpPUfdWZfVO3nPhbtqMHJqHr4Ua5wBcWtAymVFrUCuAJxjMF1OhG+bR21Ow==
version "1.3.111"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.111.tgz#9bde11c953425c1756f85c66e61de2b74ced75d0"
integrity sha512-I2QjmmxWULp89fEHlFwRpKXSw4Y/Igo3u41py4MkzJTrgDOf/S4oq/IMuTUHze/5TTPpwem74oQiPMEgFtuDRA==

elliptic@^6.0.0:
version "6.4.1"
Expand Down Expand Up @@ -3801,9 +3801,9 @@ firebase-admin@^6.5.0:
"@types/google-cloud__storage" "^1.7.1"

firebase-functions@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/firebase-functions/-/firebase-functions-2.1.0.tgz#10973f9055092aaa8ed5bd26410426a9790a99ea"
integrity sha512-gvWjfIu/q0jXSE/4JY+6XZyJWVzk0TeGLJAfKE4Y7W/cUxkycogc7EIBJSEMdHnxFAD3GE6VgCrhtTTmUud6Sw==
version "2.2.0"
resolved "https://registry.yarnpkg.com/firebase-functions/-/firebase-functions-2.2.0.tgz#499d4703f97b15cd59420b0fb4f0e5e5014484cc"
integrity sha512-83rJvXreTH98q1XEEUZ4G9nFZ0sUVaqkxPC+v25L9FuXsWgAFpW7G28K0MJ9DBPNo/RaeNNw0zvZVtDw11CEbQ==
dependencies:
"@types/cors" "^2.8.1"
"@types/express" "^4.11.1"
Expand All @@ -3815,14 +3815,14 @@ firebase-functions@^2.1.0:
lodash "^4.6.1"

firebase@^5.8.1:
version "5.8.1"
resolved "https://registry.yarnpkg.com/firebase/-/firebase-5.8.1.tgz#d802c29bc3a8a30fd4dd518d4f1586889dd5dc59"
integrity sha512-CbpYqQB5Ez44C14TIc2903VRHd4RrRdw/9O2b7aWMvyA78pTT6NiMvKbBnu8dsPtztcSz2e3CeP3L0qBVGKmpw==
version "5.8.2"
resolved "https://registry.yarnpkg.com/firebase/-/firebase-5.8.2.tgz#4fc6acb1d41e9aa18fa712ca68b7826b355b541a"
integrity sha512-8sdN33WIO8+Ic8wqJ9luhAPsb6M+m4v30wm/nP265GJ25MK2u8SpDNNxqKSu87SVEuUUWe9Hp7zbistIhWppGg==
dependencies:
"@firebase/app" "0.3.8"
"@firebase/auth" "0.9.2"
"@firebase/database" "0.3.11"
"@firebase/firestore" "1.0.1"
"@firebase/firestore" "1.0.2"
"@firebase/functions" "0.3.6"
"@firebase/messaging" "0.3.10"
"@firebase/polyfill" "0.3.5"
Expand Down Expand Up @@ -4205,18 +4205,7 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00"
integrity sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==

[email protected]:
version "1.17.0"
resolved "https://registry.yarnpkg.com/grpc/-/grpc-1.17.0.tgz#d7971dd39bd4eec90c69a048f7727795ab504876"
integrity sha512-5zb5ilwHlsiWfE2Abq/IN5SkHQ2zi4QF/u9Gewcw5DO3y+hGTtzZUiMK52MX3YZHAIRjqxDcO3fx0jLhPjT8Zw==
dependencies:
lodash.camelcase "^4.3.0"
lodash.clone "^4.5.0"
nan "^2.0.0"
node-pre-gyp "^0.12.0"
protobufjs "^5.0.3"

grpc@^1.16.0:
[email protected], grpc@^1.16.0:
version "1.18.0"
resolved "https://registry.yarnpkg.com/grpc/-/grpc-1.18.0.tgz#a550a464f787073f305c0a136ecc4b74fffbf94c"
integrity sha512-M0K67Zhv2ZzCjrTbQvjWgYFPB929L+qAVnbNgXepbfO5kJxUYc30dP8m8vb+o8QdahLHAeYfIqRoIzZRcCB98Q==
Expand Down Expand Up @@ -7078,7 +7067,7 @@ postcss-values-parser@^2.0.0:
indexes-of "^1.0.1"
uniq "^1.0.1"

postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.5, postcss@^7.0.6, postcss@^7.0.7:
postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.5, postcss@^7.0.6:
version "7.0.14"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.14.tgz#4527ed6b1ca0d82c53ce5ec1a2041c2346bbd6e5"
integrity sha512-NsbD6XUUMZvBxtQAJuWDJeeC4QFsmWsfozWxCJPWf3M55K9iu2iMDaKqyoOdTJ1R4usBXuxlVFAIo8rZPQD4Bg==
Expand All @@ -7092,10 +7081,10 @@ prepend-http@^1.0.1:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=

[email protected].0:
version "1.16.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.0.tgz#104dd25f5ee3d0c9d0a6ce4bb40ced8481d51219"
integrity sha512-MCBCYeAuZfejUPdEpkleLWvpRBwLii/Sp5jQs0eb8Ul/drGIDjkL6tAU24tk6yCGf0KPV5rhPPPlczfBmN2pWQ==
[email protected].3:
version "1.16.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.3.tgz#8c62168453badef702f34b45b6ee899574a6a65d"
integrity sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw==

pretty-bytes@^5.1.0:
version "5.1.0"
Expand Down Expand Up @@ -7992,11 +7981,6 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1:
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==

source-map@^0.7.3:
version "0.7.3"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==

spdx-correct@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4"
Expand Down Expand Up @@ -8571,9 +8555,9 @@ typedarray@^0.0.6:
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^3.2.2:
version "3.2.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.4.tgz#c585cb952912263d915b462726ce244ba510ef3d"
integrity sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg==
version "3.3.1"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.1.tgz#6de14e1db4b8a006ac535e482c8ba018c55f750b"
integrity sha512-cTmIDFW7O0IHbn1DPYjkiebHxwtCMU+eTy30ZtJNBPF9j2O1ITu5XH2YnBeVRKWHqF+3JQwWJv0Q0aUgX8W7IA==

ua-parser-js@^0.7.19:
version "0.7.19"
Expand Down Expand Up @@ -8901,7 +8885,7 @@ vue-template-compiler@^2.5.22:
de-indent "^1.0.2"
he "^1.1.0"

vue-template-es2015-compiler@^1.6.0:
vue-template-es2015-compiler@^1.8.2:
version "1.8.2"
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.8.2.tgz#dd73e80ba58bb65dd7a8aa2aeef6089cf6116f2a"
integrity sha512-cliV19VHLJqFUYbz/XeWXe5CO6guzwd0yrrqqp0bmjlMP3ZZULY7fu8RTC4+3lmHwo6ESVDHFDsvjB15hcR5IA==
Expand Down
72 changes: 72 additions & 0 deletions src/components/mix/mix-action-button.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<template>
<div class="actionButton">
<div :class="`actionContent${isHide ? ' isHide': ''}`">
<ul class="actionContent__list">
<li class="actionContent__item">新規作成</li>
<li class="actionContent__item" @click="showModal">予定の追加</li>
<li class="actionContent__item">予定の削除</li>
</ul>
</div>
<add-button :isActive="isButtonState" @click.native="toggleState"/>
</div>
</template>

<script>
import AddButton from "~/components/simple/add-button";
export default {
components: {
AddButton,
},
data() {
return {
isButtonState: false,
isHide: true,
};
},
methods: {
toggleState: function() {
this.isHide = !this.isHide;
this.isButtonState = this.isHide === false;
},
showModal: function() {
this.toggleState();
this.$store.commit('changeModalState');
}
},
};
</script>

<style lang="scss">
.actionContent {
position: fixed;
bottom: 0;
left: 0;
z-index: 80;
width: 100%;
height: $app-footer-height;
background-color: $app-color;
transform: translate(0, 0);
transition: .3s;
&.isHide {
transform: translate(0, $app-footer-height);
}
&__list {
display: flex;
flex: 1;
height: 100%;
list-style: none;
}
&__item {
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-size: 14px;
width: 100%;
height: 100%;
}
}
</style>
85 changes: 85 additions & 0 deletions src/components/mix/mix-modal-screen.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<template>
<modal-screen :isShow="getModalState">
<div class="iconList">
<p class="iconList__title">アイコンを選択してください</p>
<ul class="iconList__items">
<li v-for="(hexCode, index) of hexCodes" :key="index" class="iconList__item">
<circle-icon :color="hexCode" :size="48" @click.native="clickHandler(hexCode)"/>
</li>
</ul>
</div>
</modal-screen>
</template>

<script>
import ModalScreen from '~/components/simple/modal-screen';
import CircleIcon from '~/components/simple/circle-icon';
export default {
components: {
ModalScreen,
CircleIcon
},
data() {
return {
hexCodes: [
'#81B468',
'#4f9b4e',
'#889BFF',
'#B588FF',
'#73BABE',
'#90D2E0',
'#F1D691',
'#F1C591',
'#FFA488',
'#FF8888',
'#92BFF4',
'#C587E2'
]
}
},
computed: {
getModalState: function() {
return this.$store.state.isShowModal;
}
},
methods: {
clickHandler: function(hex, path = '') {
this.$store.commit('setTodoItem', {
hexCode: hex,
svgPath: path,
});
this.$store.commit('changeModalState');
}
}
}
</script>
<style lang="scss" scoped>
.iconList {
text-align: center;
color: #fff;
&__title {
margin-bottom: 24px;
}
&__items {
width: 240px;
height: 180px;
list-style: none;
}
&__item {
margin: 0 16px 16px 0;
float: left;
&:nth-child(4n) {
margin-right: 0;
}
&:nth-last-child(-n+4) {
margin-bottom: 0;
}
}
}
</style>

Loading

0 comments on commit df691eb

Please sign in to comment.