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 axios = require("axios"); | |
var x = '44.7152718'; | |
var y = '-92.7368987'; | |
const getMnDnrInfo = async (x,y) => { | |
console.log("In getMnDnrInfo()") | |
var url = 'http://maps1.dnr.state.mn.us/cgi-bin/where.cgi?layers=state+county+lake+management_units+pls+elevation+other_public_land+conservation_officers&version=2'; | |
console.log("URL: " + url) | |
try { |
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
type Todo @model @searchable @auth(rules: [{ allow: owner }]) { | |
id: ID! | |
name: String! | |
owner: String | |
date: AWSDate | |
description: String | |
completed: Boolean! | |
} |
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 Amplify, * as AmplifyModules from 'aws-amplify' | |
import { | |
AmplifyPlugin, | |
AmplifyEventBus | |
} from 'aws-amplify-vue' | |
import AwsExports from '../aws-exports' | |
Amplify.configure(AwsExports) | |
export default async ({ | |
router, |
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 something here | |
import Vue from 'vue' | |
import VueApollo from 'vue-apollo' | |
import AWSAppSyncClient from 'aws-appsync' | |
import awsmobile from '../aws-exports' | |
const config = { | |
url: awsmobile.aws_appsync_graphqlEndpoint, | |
region: awsmobile.aws_appsync_region, | |
auth: { |
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
<template> | |
<q-layout view="lHh Lpr lFf"> | |
<q-header elevated class="glossy"> | |
<q-toolbar> | |
<q-btn flat dense round @click="leftDrawerOpen = !leftDrawerOpen" aria-label="Menu"> | |
<q-icon name="menu"/> | |
</q-btn> | |
<div class="row"> | |
<router-link :to="{ name: 'todo' }" tag="span" style="cursor: pointer"> | |
<q-toolbar-title>quasar-amplify-demo</q-toolbar-title> |
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
<template> | |
<div class="auth"> | |
<sign-up :toggle="toggle" v-if="formState === 'signUp'"></sign-up> | |
<sign-in v-if="formState === 'signIn'"></sign-in> | |
<div class="row justify-end"> | |
<q-btn @click="toggle" type="submit" class="authButton"> | |
{{ formState === 'signUp' ? | |
'Already signed up? Sign In' : 'Need an account? Sign Up' | |
}} | |
</q-btn> |
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
<template> | |
<div> | |
<h1>Welcome, {{user.username}}</h1> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'Profile', | |
components: { |
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
<template> | |
<div class="auth"> | |
<h2>Sign In</h2> | |
<form @submit.prevent="signIn"> | |
<q-input square filled color="teal" label="Username" v-model="form.username"/> | |
<q-input square filled color="teal" label="Password" type="password" v-model="form.password"/> | |
<div class="row"> | |
<q-btn type="submit" @click="signIn" label="Sign In" class="authButton"> | |
<template v-slot:loading> | |
<q-spinner-facebook/> |
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
<template> | |
<div class="auth"> | |
<h2>{{ formState === 'signUp' ? 'Sign Up' : 'Confirm Sign Up' }}</h2> | |
<form @submit.prevent="signUp"> | |
<div v-if="formState === 'signUp'"> | |
<q-input square filled color="teal" label="Username" v-model="form.username"/> | |
<q-input | |
square | |
filled | |
color="teal" |
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
<template> | |
<div class="todo"> | |
<div v-if="$apollo.loading"> | |
<div class="text-xs-center"> | |
<q-circular-progress indeterminate size="50px" color="lime" class="q-ma-md"/> | |
</div> | |
</div> | |
<form @submit.prevent.stop="onCreate" class="q-pa-md"> | |
<div class="q-pa-md" style="max-width: 420px"> | |
<q-input |
OlderNewer