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
Show hidden characters
{ | |
"root": true, | |
"ignorePatterns": ["projects/**/*"], | |
"overrides": [ | |
{ | |
"files": ["*.ts"], | |
"parserOptions": { | |
"project": ["tsconfig.json"], | |
"createDefaultProgram": true | |
}, |
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
<!DOCTYPE html> | |
<html ng-app="nortec.fusionMulti"> | |
<head profile="http://www.w3.org/2005/10/profile"> | |
<!--base href="/FusionMulti/" /--> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!--<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />--> | |
<meta charset="utf-8" /> | |
<meta http-equiv="Content-Security-Policy" content="default-src * data: gap: https://ssl.gstatic.com http://212.199.231.125 http://52.17.101.205/FusionService/api/Assets/PostPointAsset http://52.17.101.205/FusionService/api/Assets/PostLineAsset https://learn.its-training.com http://oblms.me 'unsafe-eval'; script-src 'self' https://maps.googleapis.com https://maps.google.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://onboard-lms-public.s3.amazonaws.com/styles/onboardlms.master.small.css; media-src *; font-src 'self' https://fonts.gstatic.com; img-src 'self' http://52.17.101.205 https://*.base.maps.cit.api.here.com https://*.aerial.maps.cit.api.here.com data: https://csi.gst |
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
module.exports = { | |
context: __dirname + '/scripts', | |
entry: "./app.ts", | |
output: { | |
filename: "./www/scripts/appBundle.js", | |
}, | |
resolve: { | |
extensions: [".tsx", ".ts", ".js"] | |
}, | |
devServer: { |
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
const $ = cheerio.load(body), | |
cards = $("div[class*=card__product___apps]") | |
cards.each((i, card) => { | |
console.log(card.children("div[class*=author__product___apps]").text); | |
console.log(card.children("a").attribs.href); | |
}); |
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
(conversocial)vagrant@precise64:~/conversocial/frontend$ node_modules/.bin/cram static/app/run.js build-options.json --output static/app/run.js | |
warning: grokking "static/app/run.js": Did not inspect code inside `.then()` callback(s). | |
`appRoot` is inferred to be "static/app" | |
`baseUrl` resolved to "/home/vagrant/conversocial/frontend/static/app/static" | |
`output` resolved to "/home/vagrant/conversocial/frontend/static/app/run.js" | |
Compiling preloads | |
cram failed: Cannot use 'in' operator to search for 'poly/array' in undefined | |
TypeError: Cannot use 'in' operator to search for 'poly/array' in undefined | |
at /home/vagrant/conversocial/frontend/node_modules/cram/cram.js:358:43 | |
at Array.some (native) |
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
window.WebApp.factory('loginService', ['$rootScope', 'OAuth', '$location', 'cookies', ($rootScope, OAuth, $location, cookies) -> | |
@refresh_token = cookies.get('refresh_token') | |
@user_id = cookies.get('user_id') | |
# No user cradentials, redirect to login | |
if (@refresh_token == null or @user_id == null) | |
$location.path('/login') | |
User = {} |