This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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", |
NewerOlder