Skip to content

Commit

Permalink
Nuxt initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Lakatos committed May 26, 2018
1 parent 4efd61b commit 8515246
Show file tree
Hide file tree
Showing 421 changed files with 13,444 additions and 36,071 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: 'babel-eslint',
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
],
// required to lint *.vue files
plugins: ['vue'],
// add your custom rules here
rules: {},
};
38 changes: 10 additions & 28 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,32 +1,14 @@
.DS_Store
# dependencies
node_modules

# Logs
logs
*.log
# logs
npm-debug.log

# Runtime data
pids
*.pid
*.seed
# Nuxt build
.nuxt

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Nuxt generate
dist

# Coverage directory used by tools like istanbul
coverage

# node-waf configuration
.lock-wscript

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules/

# env
.env

# client files
client/docs/build/

# BFG
bfg.jar
# Environment variables
.env
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: node server.js
web: npm run start
44 changes: 13 additions & 31 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,40 +1,22 @@
# node-js-getting-started
# {{ name }}

A barebones Node.js app using [Express 4](http://expressjs.com/).
> {{ description }}
This application supports the [Getting Started with Node on Heroku](https://devcenter.heroku.com/articles/getting-started-with-nodejs) article - check it out.
## Build Setup

## Running Locally
``` bash
# install dependencies
$ npm install # Or yarn install

Make sure you have [Node.js](http://nodejs.org/) and the [Heroku CLI](https://cli.heroku.com/) installed.
# serve with hot reload at localhost:3000
$ npm run dev

```sh
$ git clone [email protected]:heroku/node-js-getting-started.git # or clone your own fork
$ cd node-js-getting-started
$ npm install
# build for production and launch server
$ npm run build
$ npm start
```

Your app should now be running on [localhost:3000](http://localhost:3000/).

## Deploying to Heroku

```
$ heroku create
$ git push heroku master
$ heroku open
# generate static project
$ npm run generate
```

or

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

## Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

* [Getting Started with Node.js on Heroku](https://devcenter.heroku.com/articles/getting-started-with-nodejs)
* [Heroku Node.js Support](https://devcenter.heroku.com/articles/nodejs-support)
* [Node.js on Heroku](https://devcenter.heroku.com/categories/nodejs)
* [Best Practices for Node.js Development](https://devcenter.heroku.com/articles/node-best-practices)
* [Using WebSockets on Heroku with Node.js](https://devcenter.heroku.com/articles/node-websockets)
For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).
8 changes: 0 additions & 8 deletions app.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
96 changes: 96 additions & 0 deletions assets/js/data/marketing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
export default {
features: [
{
title: 'Overworld',
description:
"Keep tabs on places you've been, places you're going and what was found when you got there!",
content: [
{
title: '50+ Map Markers',
list: [
'Dungeons, chests, NPCs, entrances and landmarks',
'Entrances are linked together; hovering shows both points',
'Dungeon markers indentify their accessibility based on your current items',
],
},
{
title:
'Multiple overlays including entrances and collectibles',
},
{
title: 'Use different map images to ease your navigation',
},
],
},
{
title: 'Items',
description:
'Just activate an item or event and forget about pulling up your menu to check again!',
content: [
{
title:
'Different layout modes to expand on what you want to track',
list: [
'Required Items & Dungeons',
'Collectibles & Keys',
'Pieces of Heart, Songs & Events',
],
},
{
title:
'Track the amount of potential unique chests in dungeons',
},
],
},
{
title: 'Timer',
description: 'Track your current run with just a click!',
content: [
{
title: 'Timer can start and stop whenever you like',
},
{
title: 'Save your best time to compare against later',
},
{
title:
'"Light Splitting" will show when you exceed your last best record',
},
],
},
{
title: 'Broadcast',
description: 'Options for Streamers and Re-Streamers',
content: [
{
title: 'Integrate with Twitch.tv chat',
list: [
'Chat can activate anything in the Items tracker',
'A bot at your control - joins and parts your channel at will',
'Whitelisting features to prevent spam',
'Virtually ZERO permissions required and no personal data needed',
],
},
{
title: 'Create a session with your friends',
list: [
'Sessioning allows multi people to control the same tracker in real-time',
'Broadcast your window and let someone across the world update it',
],
},
],
},
{
title: 'Misc',
description: 'Let the Windfish work for you!',
content: [
{
title: 'Visual customizations',
},
{
title: 'Persistent settings',
},
],
},
],
};
File renamed without changes.
File renamed without changes.
11 changes: 5 additions & 6 deletions twitch-bot.js → assets/js/twitch-bot.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const TMI = require('tmi.js');
const { colors } = require('./utils');

// TODO: Event Queue that is Promise based on the client say method

class Bot {
class TwitchBot {
constructor(options) {
this.debug = false;
this.socket = null;
Expand All @@ -28,12 +27,12 @@ class Bot {

enqueue(userData) {
if (userData) {
console.log('Data added to the queue.'.warn);
console.log('Data added to the queue.');
this.eventQueue = [...this.eventQueue, userData];
}

if (!this.awaitEventQueueUpdate && this.eventQueue.length > 0) {
console.log('Enqueuing next item.'.warn);
console.log('Enqueuing next item.');
this.socket.emit('update tracker data', this.eventQueue[0]);
this.awaitEventQueueUpdate = true;
}
Expand All @@ -50,7 +49,7 @@ class Bot {

this.awaitEventQueueUpdate = false;

console.log('Event finished.'.warn);
console.log('Event finished.');
this.enqueue();
}

Expand Down Expand Up @@ -344,4 +343,4 @@ class Bot {
}
}

module.exports = Bot;
module.exports = TwitchBot;
Loading

0 comments on commit 8515246

Please sign in to comment.