From a503778e6bb6fff0281845c22fca563f0924bd5f Mon Sep 17 00:00:00 2001 From: cagataycali Date: Wed, 13 Sep 2017 04:43:01 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=20V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hn.md | 1 + index.html | 16 +- ph.md | 1 + server/index.js | 1 - src/app.vue | 108 ++++++++----- src/components/Chat.vue | 2 +- src/components/GroupChat.vue | 100 +++++++++++++ src/components/Inbox.vue | 47 +++++- src/components/Map.vue | 9 ++ src/main.js | 7 +- src/routes.js | 14 +- src/store.js | 283 ++++++++++++++++++++--------------- static/hashtag.png | Bin 0 -> 8443 bytes 13 files changed, 397 insertions(+), 192 deletions(-) create mode 100644 hn.md create mode 100644 src/components/GroupChat.vue create mode 100644 static/hashtag.png diff --git a/hn.md b/hn.md new file mode 100644 index 0000000..fc4fefc --- /dev/null +++ b/hn.md @@ -0,0 +1 @@ +# HackerNews diff --git a/index.html b/index.html index cddb525..893fa9a 100644 --- a/index.html +++ b/index.html @@ -24,19 +24,19 @@ - + - - + + - + @@ -57,13 +57,7 @@ enable: false /* Set to false to hide */ }, safari_web_id: 'web.onesignal.auto.3437296f-1581-4c9c-99a7-ef947df2b18c' - }]); - OneSignal.push(function() { - OneSignal.getUserId(function(userId) { - console.log("User ID:", userId); - }); - }); @@ -77,7 +71,7 @@
diff --git a/ph.md b/ph.md index e69de29..69741e4 100644 --- a/ph.md +++ b/ph.md @@ -0,0 +1 @@ +# ProductHunt diff --git a/server/index.js b/server/index.js index 2b320a8..9e67898 100644 --- a/server/index.js +++ b/server/index.js @@ -63,4 +63,3 @@ io.on('connection', (socket) => { }); io.listen(process.env.PORT || 3000); - diff --git a/src/app.vue b/src/app.vue index 3963d10..52110c9 100644 --- a/src/app.vue +++ b/src/app.vue @@ -6,38 +6,37 @@ - - + + - - + + + - - - Status & Settings - - - Close - - + Announcement -

Share your ideas whole world!

+ Announce idea, ask a question, feel free be polite. - + + + + + + -

Publication settings

+ Settings @@ -48,30 +47,50 @@ - Theme - - - - - - - - - Location blur? + Blur? * - + + FAQ + + + + + + What is blur + +

Tick, by default, share your location in privacy. Your exact location is blurred.

+

If you disable blur option, your current location will be published as exactly.

+
+
+ + + Privacy + +

* Only the necessary logs and debug information are kept

+

* Developed features are made available under a Free Software license

+

* Tick.chat can block your access any time for any reason

+

* Changes can happen any time, sometimes without notice

+

* The app, can share your current location with other parties in real time.

+
+
+
+
+ + + Tick.chat is open-source, contributions are welcome! + +
-
- + @@ -89,17 +108,26 @@ export default { 'sendWithEnter' ]) }, + data() { + return { + isDisabled: true + }; + }, methods: { - ideas: _.debounce(function (value) { - this.user.data = value; - let me = this.$store.state.users.find(user => user.id === this.$store.state.user.id); - me.data = value; - this.spread(me) - }, 3000), - spread: _.debounce(function (me) { - let {id, data, username} = me; - this.$socket.emit('spread', {id, data, username}); - }, 50), + getRandom: function() { + let messages = ['happiness must spread to the world.', 'ask a quick solution of making money!', 'ask for help!', 'discuss your idea']; + return messages[Math.floor(Math.random()*messages.length)]; + }, + ideas: function (value) { + this.isDisabled = false; + }, + spread: function () { + // let me = this.$store.state.users.find(user => user.id === this.$store.state.user.id); + let me = this.$store.state.user; + me.data = this.user.data; // This for map info box. + this.$socket.emit('spread', me); + this.isDisabled = true; + }, onChange: function(type, event) { let input = event.target; if (type === 'theme') { @@ -118,7 +146,7 @@ export default { Splash }, created() { - window.f7 = this.$f7 + // window.f7 = this.$f7 window.addEventListener('beforeinstallprompt', function(e) { e.preventDefault(); return false; diff --git a/src/components/Chat.vue b/src/components/Chat.vue index c68181a..f4f9c10 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -53,6 +53,7 @@ }; this.$store.dispatch('sendMessage', message); message.to = this.$store.state.currentConversation.id + message.isTrend = false this.$socket.emit('message', message) clear(); }, @@ -86,7 +87,6 @@ } finally { console.log('Chat created'); } - } } diff --git a/src/components/GroupChat.vue b/src/components/GroupChat.vue new file mode 100644 index 0000000..1a9068c --- /dev/null +++ b/src/components/GroupChat.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/components/Inbox.vue b/src/components/Inbox.vue index e57e624..f40f7a1 100644 --- a/src/components/Inbox.vue +++ b/src/components/Inbox.vue @@ -1,22 +1,45 @@