A Pen by Ramsay Lanier on CodePen.
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
{ | |
"manifest_version": 2, | |
"name": "PushQuotes", | |
"description": "Authenticate to PushQuotes and sync with Slides.com", | |
"version": "1.0", | |
"permissions": [ | |
"declarativeContent", | |
"tabs", |
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
$(function() { | |
chrome.runtime.sendMessage({}, function(response){ | |
console.log(response.started); | |
if (response.started){ | |
hideForm(); | |
} | |
}); |
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
//loctaed in 'server' folder. | |
Meteor.methods({ | |
loginFromExtension: function(username, password){ | |
try { | |
if (ApiPassword.isPasswordValid(username, password)) { | |
console.log('password is valid for this user'); | |
return true; | |
} else { | |
return 'Password is not valid.' | |
} |
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
chrome.runtime.onInstalled.addListener(function() { | |
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() { | |
chrome.declarativeContent.onPageChanged.addRules([ | |
{ | |
conditions: [ | |
new chrome.declarativeContent.PageStateMatcher({ | |
pageUrl: { urlContains: 'slides.com' }, | |
}) | |
], | |
actions: [ |
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 headingsArray = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']; | |
const headingsStyles = { | |
base: { | |
textRendering: "optimizeLegibility", | |
lineHeight: 1, | |
marginTop: 0, | |
color: "#222", | |
fontFamily: Fonts.serif, | |
}, |
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
<div class="application"> | |
<img id="image" src="/commnity.gif"/> | |
<div id="section-1" class="page-section"></div> | |
<div id="section-2" class="page-section"></div> | |
<div id="section-3" class="page-section"></div> | |
<div id="section-4" class="page-section"></div> | |
</div> | |
<script type="text/javascript"> |
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
'use strict'; | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var WriteFilePlugin = require('write-file-webpack-plugin'); | |
const devServer = { | |
contentBase: path.resolve(__dirname, './app'), |
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
/* eslint no-console: 0 */ | |
import express from 'express'; | |
import webpack from 'webpack'; | |
import WebpackDevServer from 'webpack-dev-server'; | |
import webpackMiddleware from 'webpack-dev-middleware'; | |
import webpackHotMiddleware from 'webpack-hot-middleware'; | |
import config from './webpack.config.js'; | |
import { apolloServer } from 'apollo-server'; | |
import Schema from './schema/typeDefinitions'; | |
import Resolvers from './schema/resolveFunctions'; |
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
import Connectors from './connectors'; | |
import { publicSettings, privateSettings } from '../settings/settings'; | |
const resolveFunctions = { | |
Query: { | |
settings(){ | |
return publicSettings | |
}, | |
posts(_, args){ | |
return Connectors.getPosts(args).then( res=> { |
OlderNewer