-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
23,388 additions
and
15,930 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"projects": { | ||
"prod": "astrograph-io" | ||
"default": "astrograph-io" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm lint-staged |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,8 @@ | ||
const path = require("path"); | ||
|
||
// Load .env files | ||
const { loadEnv } = require("vue-cli-plugin-apollo/utils/load-env"); | ||
const env = loadEnv([ | ||
path.resolve(__dirname, ".env"), | ||
path.resolve(__dirname, ".env.local") | ||
]); | ||
|
||
module.exports = { | ||
// Docs: https://www.apollographql.com/docs/devtools/apollo-config/ | ||
export default { | ||
client: { | ||
service: env.VUE_APP_APOLLO_ENGINE_SERVICE, | ||
service: "astrograph-alpha", | ||
addTypename: false, | ||
includes: ["src/**/*.{js,jsx,ts,tsx,vue,gql}"] | ||
}, | ||
service: { | ||
name: env.VUE_APP_APOLLO_ENGINE_SERVICE, | ||
localSchemaFile: path.resolve( | ||
__dirname, | ||
"./node_modules/.temp/graphql/schema.json" | ||
) | ||
}, | ||
engine: { | ||
endpoint: process.env.APOLLO_ENGINE_API_ENDPOINT, | ||
apiKey: env.VUE_APP_APOLLO_ENGINE_KEY | ||
} | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import globals from "globals" | ||
import jsPlugin from "@eslint/js" | ||
import tsPlugin from "typescript-eslint" | ||
import prettierPlugin from "eslint-plugin-prettier/recommended" | ||
import vuePlugin from "eslint-plugin-vue" | ||
import * as graphqlPlugin from "@graphql-eslint/eslint-plugin" | ||
|
||
export default tsPlugin.config( | ||
jsPlugin.configs.recommended, | ||
...tsPlugin.configs.recommended, | ||
...vuePlugin.configs["flat/recommended"], | ||
{ | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: "module", | ||
globals: { | ||
...globals.browser, | ||
Prism: "readonly" | ||
} | ||
}, | ||
plugins: { | ||
"@graphql-eslint": graphqlPlugin | ||
} | ||
}, | ||
{ | ||
files: ["*.vue", "**/*.vue"], | ||
languageOptions: { | ||
parserOptions: { | ||
parser: tsPlugin.parser | ||
} | ||
} | ||
}, | ||
// { | ||
// // Setup recommended config for schema files | ||
// files: [SCHEMA_PATH], | ||
// ...graphqlPlugin.flatConfigs['schema-recommended'], | ||
// }, | ||
{ | ||
// Setup recommended config for operations files | ||
files: ["src/**/*.{graphql,gql}"], | ||
...graphqlPlugin.flatConfigs["operations-recommended"] | ||
}, | ||
{ | ||
ignores: ["_playground/**", "dist/**/*.js", "public/**/*.js"] | ||
}, | ||
prettierPlugin | ||
) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
schema: ./server/schema.graphql | ||
documents: ./src/graphql/*.gql | ||
|
||
extensions: | ||
codegen: | ||
generates: | ||
./src/types.ts: | ||
plugins: | ||
- typescript | ||
- typescript-resolvers | ||
endpoints: | ||
Astrograph Pubnet: | ||
url: https://pubnet.astrograph.io/graphql | ||
headers: | ||
user-agent: Astrograph.io | ||
introspect: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> | ||
<title>Astrograph</title> | ||
<link rel="preconnect" href="https://fonts.googleapis.com/" /> | ||
<link rel="preconnect" href="https://www.googletagmanager.com/" /> | ||
<link rel="preconnect" href="https://www.google-analytics.com" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<link rel="apple-touch-icon" sizes="512x512" href="/icon-512x512.png" /> | ||
<meta itemprop="name" content="Astrograph" /> | ||
<meta name="description" content="GraphQL interface to Stellar blockchain. Access Stellar ledger via GraphQL" /> | ||
<meta itemprop="image" content="/icon-512x512.png" /> | ||
<meta name="twitter:card" content="summary" /> | ||
<meta name="twitter:site" content="@evilmartians" /> | ||
<meta name="twitter:title" content="Astrograph" /> | ||
<meta | ||
name="twitter:description" | ||
content="GraphQL interface to Stellar blockchain. Access Stellar ledger via GraphQL" | ||
/> | ||
<meta name="twitter:creator" content="@evilmartians" /> | ||
<meta name="twitter:image" content="/icon-512x512.png" /> | ||
<meta property="og:title" content="Astrograph" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content="%BASE_URL%" /> | ||
<meta property="og:image" content="/icon-512x512.png" /> | ||
<meta property="og:description" content="GraphQL interface to Stellar blockchain. Access Stellar ledger via GraphQL" /> | ||
<meta property="og:site_name" content="Astrograph" /> | ||
<script type="application/ld+json"> | ||
{ | ||
"@context": "http://schema.org/", | ||
"@type": "WebSite", | ||
"name": "Astrograph", | ||
"url": "https://astrograph.io" | ||
} | ||
</script> | ||
<script type="application/ld+json"> | ||
{ | ||
"@context": "http://schema.org/", | ||
"@type": "SoftwareSourceCode", | ||
"image": "https://astrograph.io/icon-512x512.png", | ||
"name": "Astrograph", | ||
"description": "GraphQL interface to Stellar blockchain. Access Stellar ledger via GraphQL", | ||
"codeRepository": "https://github.com/astroband/astrograph" | ||
} | ||
</script> | ||
<script type="application/ld+json"> | ||
{ | ||
"@context": "http://schema.org/", | ||
"@type": "SoftwareApplication", | ||
"image": "https://astrograph.io/icon-512x512.png", | ||
"name": "Astrograph", | ||
"applicationCategory": "Web", | ||
"operatingSystem": "Any" | ||
} | ||
</script> | ||
<!-- Google Tag Manager --> | ||
<script> | ||
(function(w, d, s, l, i) { | ||
w[l] = w[l] || []; | ||
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" }); | ||
var f = d.getElementsByTagName(s)[0], | ||
j = d.createElement(s), | ||
dl = l != "dataLayer" ? "&l=" + l : ""; | ||
j.async = true; | ||
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl; | ||
f.parentNode.insertBefore(j, f); | ||
})(window, document, "script", "dataLayer", "GTM-KQNGZJ5"); | ||
</script> | ||
<script src="/prism.js"></script> | ||
<!-- End Google Tag Manager --> | ||
</head> | ||
|
||
<body> | ||
<!-- Google Tag Manager (noscript) --> | ||
<noscript | ||
><iframe | ||
src="https://www.googletagmanager.com/ns.html?id=GTM-KQNGZJ5" | ||
height="0" | ||
width="0" | ||
style="display:none;visibility:hidden" | ||
></iframe | ||
></noscript> | ||
<!-- End Google Tag Manager (noscript) --> | ||
|
||
<noscript> | ||
<h1>Astrograph</h1> | ||
<h2> | ||
GraphQL interface to Stellar blockchain. Access Stellar ledger via | ||
GraphQL | ||
</h2> | ||
|
||
<p> | ||
Astrograph is a GraphQL server for the | ||
<a href="https://www.stellar.org/" rel="nofollow">Stellar</a> network. | ||
You can think about it as a GraphQL version of | ||
<a href="https://github.com/stellar/go/tree/master/services/horizon" rel="nofollow">Horizon</a>, | ||
the client-facing API server for the Stellar ecosystem. | ||
</p> | ||
|
||
<p> | ||
Astrograph allows you to retrieve various data from the blockchain, as | ||
well as allowing you to subscribe to particular events using | ||
<a href="https://github.com/apollographql/graphql-subscriptions" rel="nofollow">GraphQL subscriptions</a> | ||
mechanisms. | ||
</p> | ||
</noscript> | ||
|
||
<div id="app"></div> | ||
|
||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
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
Oops, something went wrong.