npm install
Durante o desenvolvimento, rode o seguinte comando com a configuração do template dentro de webpack.config.js:
| const mongoose = require("mongoose"); | |
| const { Schema } = mongoose; | |
| const url = "mongodb://localhost:27017/goji"; | |
| mongoose.connect(url, { useNewUrlParser: true, useUnifiedTopology: true }); | |
| function connect() { | |
| return new Promise((resolve, reject) => { | |
| const db = mongoose.connection; | 
| const nodemailer = require("nodemailer"); | |
| const fs = require("fs"); | |
| const readFile = (path, opts = "utf8") => { | |
| return new Promise((resolve, reject) => { | |
| fs.readFile(path, opts, (err, data) => { | |
| if (err) reject(err); | |
| else resolve(data); | |
| }); | |
| }); | 
| const NAME = "network"; | |
| const types = { | |
| NAME, | |
| SET: `${NAME}/SET`, | |
| RESET: `${NAME}/RESET`, | |
| CREATE: `${NAME}/CREATE`, | |
| UPDATE: `${NAME}/UPDATE`, | |
| DELETE: `${NAME}/DELETE` | |
| }; | 
| :root { | |
| --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); | |
| --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); | |
| --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); | |
| --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); | |
| --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035); | |
| --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335); | |
| --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); | |
| --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1); | 
| /** | |
| Property Formats: | |
| - label_text | |
| - label_number | |
| - label-set_number | |
| - textline | |
| Displays: | |
| - number | |
| - numbercard | 
| function onScroll(callbackDown, callbackUp) { | |
| let lastScrollTop = 0; | |
| let scrollDownLock = false; | |
| let scrollUpLock = false; | |
| let lockProcess = false; | |
| let isScrolling = null; | |
| let tl; | |
| return function () { | |
| window.clearTimeout(isScrolling); | 
| character: Beatriz | |
| player: Bia | |
| classe: Ranger | |
| level: 1 | |
| background: Herói do Povo | |
| attributes: | |
| strength: 15 | |
| dexterity: 15 | |
| constitution: 12 | |
| intelligence: 9 | 
| // Easings | |
| // -------------- | |
| // Sine | |
| $easeInSine: cubic-bezier(0.47, 0, 0.745, 0.715); | |
| $easeOutSine: cubic-bezier(0.39, 0.575, 0.565, 1); | |
| $easeInOutSine: cubic-bezier(0.445, 0.05, 0.55, 0.95); | |
| // Cubic | |
| $easeInCubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); |