Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to repo in welcome dialog #448

Merged
merged 2 commits into from
Nov 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion browser/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bugout-browser",
"productName": "BUGOUT",
"version": "1.0.0",
"version": "1.0.1",
"description": "Graphical user interface for BUGOUT Go/Baduk/Weiqi",
"author": "Terkwood <38859656+Terkwood@users.noreply.github.com>",
"homepage": "/~https://github.com/Terkwood/BUGOUT",
Expand Down
2 changes: 1 addition & 1 deletion browser/src/components/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const EDITION = "Vacation";
const EDITION = "Source";

const EventEmitter = require("events");
const { ipcRenderer, remote } = require("electron");
Expand Down
19 changes: 14 additions & 5 deletions browser/src/components/bugout/WelcomeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const {
IdleStatus,
} = require("../../modules/multiplayer/bugout");

const FRONT_MATTER_TEXT =
"We recommend playing against KataGo, a leading AI running on a power-efficient device. ";

class WelcomeModal extends Component {
constructor() {
super();
Expand All @@ -23,6 +26,16 @@ class WelcomeModal extends Component {
appEvents,
}) {
let empty = h("div", { id });
let frontMatter = h(
"div",
{ id: "welcome-front-matter" },
FRONT_MATTER_TEXT,
h(
"a",
{ href: "/~https://github.com/Terkwood/BUGOUT" },
"View the source on Github."
)
);

if (idleStatus && idleStatus !== IdleStatus.ONLINE) {
return empty;
Expand Down Expand Up @@ -67,11 +80,7 @@ class WelcomeModal extends Component {
isOpen: true,
},
h(Dialog.Header, null, "Go🔹Baduk🔸Weiqi"),
h(
Dialog.Body,
null,
"We recommend playing against KataGo, a leading AI running on a power-efficient device."
),
h(Dialog.Body, null, frontMatter),
h(
Dialog.Footer,
null,
Expand Down