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 { pipe, fromValue, concat, map, subscribe } from 'wonka'; | |
import { DocumentNode } from 'graphql'; | |
import { request$, Request$ } from './request'; | |
import { context$, Context$ } from './context'; | |
import { source$ } from './source'; | |
import { writable, derived, Writable, Readable } from 'svelte/store'; | |
import { OperationContext, RequestPolicy } from '@urql/core'; | |
export interface QueryArgs { |
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' | |
if (process.env.DEBUG == 'development') { | |
setTimeout(() => { console.log("ENV", process.env) }, 1000); | |
} | |
import sirv from 'sirv'; | |
import express from 'express'; | |
import { Store } from 'svelte/store.js'; | |
import session from './DynamoDBSession.js'; | |
import * as sapper from '../__sapper__/server.js'; | |
import fetch from 'node-fetch'; |
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' | |
process.env.SAPPER_DEST = __dirname + "/__sapper__/build"; | |
import app from './__sapper__/build/server/server.js'; | |
import awsServerlessExpress from 'aws-serverless-express'; | |
exports.handler = (event, context) => { | |
console.log(event); |
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
{ | |
"page": { | |
"pattern": {}, | |
"parts": [null, { | |
"name": "blog_$slug", | |
"component": { | |
"filename": "/home/richard/TestCognito/Project/Server/Cognito/routes/blog/[slug].html", | |
"css": { | |
"code": ".content.svelte-gnxal1 h2{font-size:1.4em;font-weight:500}.content.svelte-gnxal1 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0,0,0,0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-gnxal1 pre code{background-color:transparent;padding:0}.content.svelte-gnxal1 ul{line-height:1.5}.content.svelte-gnxal1 li{margin:0 0 0.5em 0}", | |
"map": "{\"version\":3,\"file\":\"[slug].html\",\"sources\":[\"[slug].html\"],\"sourcesContent\":[\"<svelte:head>\\n\\t<title>{post.title}</title>\\n</svelte:head>\\n\\n<h1>{post.title}</h1>\\n\\n<div class='content'>\\n\\t{@html post.html}\\n</div>\\n\\n<style>\\n\\t/*\\n\\t\\tBy default, CSS is locally scoped to the component,\\n\\t\\tand any unused styles are dead-code-eliminated.\\n\\t\\tIn this page, Svelte can't know which elements |
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
{ | |
"page": { | |
"pattern": {}, | |
"parts": [null, { | |
"name": "blog_$slug", | |
"component": { | |
"filename": "/home/richard/TestCognito/Project/Server/Cognito/routes/blog/[slug].html", | |
"css": { | |
"code": ".content.svelte-gnxal1 h2{font-size:1.4em;font-weight:500}.content.svelte-gnxal1 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0,0,0,0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-gnxal1 pre code{background-color:transparent;padding:0}.content.svelte-gnxal1 ul{line-height:1.5}.content.svelte-gnxal1 li{margin:0 0 0.5em 0}", | |
"map": "{\"version\":3,\"file\":\"[slug].html\",\"sources\":[\"[slug].html\"],\"sourcesContent\":[\"<svelte:head>\\n\\t<title>{post.title}</title>\\n</svelte:head>\\n\\n<h1>{post.title}</h1>\\n\\n<div class='content'>\\n\\t{@html post.html}\\n</div>\\n\\n<style>\\n\\t/*\\n\\t\\tBy default, CSS is locally scoped to the component,\\n\\t\\tand any unused styles are dead-code-eliminated.\\n\\t\\tIn this page, Svelte can't know which elements |
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
{ | |
"page": { | |
"pattern": {}, | |
"parts": [null, { | |
"name": "blog_$slug", | |
"component": { | |
"filename": "/home/richard/TestCognito/Project/Server/Cognito/routes/blog/[slug].html", | |
"css": { | |
"code": ".content.svelte-gnxal1 h2{font-size:1.4em;font-weight:500}.content.svelte-gnxal1 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0,0,0,0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-gnxal1 pre code{background-color:transparent;padding:0}.content.svelte-gnxal1 ul{line-height:1.5}.content.svelte-gnxal1 li{margin:0 0 0.5em 0}", | |
"map": "{\"version\":3,\"file\":\"[slug].html\",\"sources\":[\"[slug].html\"],\"sourcesContent\":[\"<svelte:head>\\n\\t<title>{post.title}</title>\\n</svelte:head>\\n\\n<h1>{post.title}</h1>\\n\\n<div class='content'>\\n\\t{@html post.html}\\n</div>\\n\\n<style>\\n\\t/*\\n\\t\\tBy default, CSS is locally scoped to the component,\\n\\t\\tand any unused styles are dead-code-eliminated.\\n\\t\\tIn this page, Svelte can't know which elements |
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
--- | |
AWSTemplateFormatVersion: "2010-09-09" | |
Description: "Create a Lambda function that will take a comma seperated list of key=value pairs and return an array of key value pairs that can then be used in cloudformation tags resource parameter" | |
Resources: | |
LambdaExecutionRole: | |
Type: AWS::IAM::Role | |
Properties: | |
ManagedPolicyArns: | |
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole |
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
<!-- App.html --> | |
<h1>Hello {{$name}}!</h1> | |
<Foo/> | |
<script> | |
import Foo from './Foo.html'; | |
export default { | |
components: { NameInput } | |
}; |
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
.DS_Store | |
node_modules |
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 sharedClass from 'sharedClass'; | |
import childComponent from 'childComponent'; | |
import serviceClass from 'serviceClass'; | |
@Component({ | |
selector: 'comp1', | |
providers: [sharedClass,childComponent,serviceClass], | |
template: '<h1>{title}</h1>' | |
}) | |
NewerOlder