This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.user = { | |
blizzId: m.prop(""), | |
steamId: m.prop(""), | |
skype: m.prop(""), | |
vk: m.prop(""), | |
userName: m.prop("") | |
}; | |
m.request({ | |
method: "GET", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var InputComponent = { | |
view: function(ctrl, args) { | |
return m(".pure-control-group", { | |
class: !!args.error && args.error() != null ? "has-error" : "" | |
},[ | |
m("label", { | |
for: args.id | |
}, args.label), | |
m("input.pure-input-1", { | |
id: args.id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wvyrm : Na kakoy slojnosti on igraet? | |
khadesru : я ебу чтоли | |
Wvyrm : nu ti moderator ebat' | |
khadesru : да, могу забанить в канале, хочешь? | |
Wvyrm : rofl submode 24/7 kakoe mne delo | |
Wvyrm : a moderi to u meda dauni okazivaetsya | |
Wvyrm : sagrilsya insta na prostoi vopros | |
khadesru : подпишись и в чате такие вопросики задавай |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var m = require("mithril") | |
var Auth = require("../utils/Auth") | |
var BodyComponent = require("./BodyComponent") | |
var AuthBodyComponent = { | |
controller: function() { | |
if (Auth.check() == false) { | |
m.route("/login") | |
} | |
}, | |
view: function(ctrl, args, content) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var m = require("mithril") | |
var Auth = { | |
request: function(config) { | |
return m.request(config).then(function (data) { | |
return data | |
}, function (error) { | |
if (error.status == 401) { | |
localStorage.setItem("redirect", m.route.getPath()); | |
window.location = "/oauth/initiateAuth" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var bro = require('gulp-bro'); | |
var babelify = require('babelify') | |
var uglify = require('gulp-uglify'); | |
var sourceFile = 'js/mithril-app/app.js', | |
destFolder = './js/', | |
destFile = 'app.js'; | |
gulp.task('build-js', function () { | |
gulp.src('./js/mithril-app/app.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Auth = { | |
route: function(component) { | |
return { | |
controller: function() { | |
/* eslint consistent-return: 0 */ | |
var info = ProfileInfoModel | |
var redirect = function() { | |
if (ProfileInfoModel.profile.auth == false) { | |
Auth.redirectTo = m.route() | |
console.log(Auth.redirectTo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.headerContent | |
max-width: 980px | |
margin: auto | |
min-height: 2.85em | |
.nav-right | |
text-align: right | |
float: right | |
.nav-left | |
text-align: left | |
float: left |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var m = require("mithril") | |
var pikaday = require('pikaday') | |
module.exports = { | |
oninit(vnode) { | |
console.log("Init-Setting datepicker") | |
}, | |
oncreate(vnode) { | |
console.log("Setting datepicker") | |
vnode.state.picker = new pikaday({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var notifications = { | |
notifications: ["TEST"], | |
addNotification(text) { | |
this.notifications.push(text) | |
} | |
} | |
module.exports = notifications |
OlderNewer