mirror of
https://github.com/hyperspacedev/hyperspace
synced 2025-01-31 09:37:05 +01:00
commit
14fef7d5ce
16
.github/PULL_REQUEST_TEMPLATE.md
vendored
16
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,10 +1,10 @@
|
|||||||
---
|
|
||||||
name: Pull request
|
|
||||||
about: Create a pull request to help us improve the code
|
|
||||||
title: "Request title"
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
This PR makes the following changes:
|
This PR makes the following changes:
|
||||||
|
|
||||||
<!-- List your changes here as a bullet list. Read the contribution guidelines for more details.-->
|
<!-- List your changes here as a bullet list. Read the contribution guidelines for more details.-->
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-
|
||||||
|
|
||||||
|
- [] This is a release check.
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hyperspace",
|
"name": "hyperspace",
|
||||||
"productName": "Hyperspace",
|
"productName": "Hyperspace",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "A beautiful, fluffy client for the fediverse",
|
"description": "A beautiful, fluffy client for the fediverse",
|
||||||
"author": "Marquis Kurt <hyperspacedev@marquiskurt.net>",
|
"author": "Marquis Kurt <hyperspacedev@marquiskurt.net>",
|
||||||
"repository": "https://github.com/hyperspacedev/hyperspace.git",
|
"repository": "https://github.com/hyperspacedev/hyperspace.git",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"location": "https://hyperspaceapp.herokuapp.com",
|
"location": "https://hyperspaceapp.herokuapp.com",
|
||||||
"branding": {
|
"branding": {
|
||||||
"name": "Hyperspace",
|
"name": "Hyperspace",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { Component, ChangeEvent } from "react";
|
import React, { Component } from "react";
|
||||||
import {
|
import {
|
||||||
withStyles,
|
withStyles,
|
||||||
Paper,
|
Paper,
|
||||||
@ -26,7 +26,8 @@ import { SaveClientSession } from "../types/SessionData";
|
|||||||
import {
|
import {
|
||||||
createHyperspaceApp,
|
createHyperspaceApp,
|
||||||
getRedirectAddress,
|
getRedirectAddress,
|
||||||
inDisallowedDomains
|
inDisallowedDomains,
|
||||||
|
instancesBearerKey
|
||||||
} from "../utilities/login";
|
} from "../utilities/login";
|
||||||
import { parseUrl } from "query-string";
|
import { parseUrl } from "query-string";
|
||||||
import { getConfig } from "../utilities/settings";
|
import { getConfig } from "../utilities/settings";
|
||||||
@ -354,9 +355,13 @@ class WelcomePage extends Component<IWelcomeProps, IWelcomeState> {
|
|||||||
} else {
|
} else {
|
||||||
axios
|
axios
|
||||||
.get(
|
.get(
|
||||||
"https://" +
|
"https://instances.social/api/1.0/instances/show?name=" +
|
||||||
baseUrl +
|
baseUrl,
|
||||||
"/api/v1/timelines/public"
|
{
|
||||||
|
headers: {
|
||||||
|
Authorization: `Bearer ${instancesBearerKey}`
|
||||||
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
.catch((err: Error) => {
|
.catch((err: Error) => {
|
||||||
let userInputError = true;
|
let userInputError = true;
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import Mastodon from "megalodon";
|
import Mastodon from "megalodon";
|
||||||
|
|
||||||
|
export const instancesBearerKey =
|
||||||
|
"QBEULaOyF04OKjHsHktx5reOqDUklWMSWfUiKRdcen7iLDjta8kL2ZEgozAlBScizR0LKSMcxg2su9f3VLdJt5dZyfWkSXEPlxHBUlPzBF4Ju9lAiOhklh0TLNpFZBqA";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the Hyperspace app with the appropriate Redirect URI
|
* Creates the Hyperspace app with the appropriate Redirect URI
|
||||||
* @param name The name of the app (if not Hyperspace, will use `name (Hyperspace-like)`)
|
* @param name The name of the app (if not Hyperspace, will use `name (Hyperspace-like)`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user