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

Simple Developer Startup #5

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
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
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
patreon: matrixdotorg
liberapay: matrixdotorg
patreon: roleplaygateway
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Please report security issues by email to security@matrix.org -->
<!-- Please report security issues by email to security@roleplaygateway.com -->

<!-- This is a bug report template. By following the instructions below and
filling out the sections with your information, you will help the us to get all
Expand Down Expand Up @@ -38,7 +38,7 @@ For the web app:

- **Browser**: Chrome, Safari, Firefox? which version?
- **OS**: Windows, macOS, Ubuntu, Arch Linux, etc?
- **URL**: riot.im/develop / riot.im/app / somewhere else? If a private server, what version of riot-web?
- **URL**: chat.roleplaygateway.com / somewhere else? If a private server, what version of RPG Chat?

For the desktop app:

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

<!-- Please report security issues by email to security@matrix.org -->
<!-- Please report security issues by email to security@roleplaygateway.com -->

<!-- This is a bug report template. By following the instructions below and
filling out the sections with your information, you will help the us to get all
Expand Down Expand Up @@ -48,7 +48,7 @@ For the web app:

- **Browser**: Chrome, Safari, Firefox? which version?
- **OS**: Windows, macOS, Ubuntu, Arch Linux, etc?
- **URL**: riot.im/develop / riot.im/app / somewhere else? If a private server, what version of riot-web?
- **URL**: chat.roleplaygateway.com / somewhere else? If a private server, what version of RPG Chat?

For the desktop app:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assignees: ''

<!-- A picture's worth a thousand words: PLEASE INCLUDE A SCREENSHOT :P -->

<!-- Please report security issues by email to security@matrix.org -->
<!-- Please report security issues by email to security@roleplaygateway.com -->

<!-- This is a bug report template. By following the instructions below and
filling out the sections with your information, you will help the us to get all
Expand Down Expand Up @@ -50,7 +50,7 @@ For the web app:

- **Browser**: Chrome, Safari, Firefox? which version?
- **OS**: Windows, macOS, Ubuntu, Arch Linux, etc?
- **URL**: riot.im/develop / riot.im/app / somewhere else? If a private server, what version of riot-web?
- **URL**: chat.roleplaygateway.com / somewhere else? If a private server, what version of RPG Chat?

For the desktop app:

Expand Down
57 changes: 57 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://chat.roleplaygateway.com",
"server_name": "roleplaygateway.com"
},
"m.identity_server": {
"base_url": "https://chat.roleplaygateway.com"
}
},
"disable_custom_urls": true,
"disable_guests": true,
"disable_login_language_selector": true,
"disable_3pid_login": true,
"brand": "RPG Chat",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.riot.im/scalar/api"
],
"integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html",
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
"defaultCountryCode": "US",
"showLabsSettings": false,
"features": {
"feature_pinning": "labs",
"feature_custom_status": "labs",
"feature_custom_tags": "labs",
"feature_state_counters": "labs"
},
"default_federate": true,
"default_theme": "dark",
"roomDirectory": {
"servers": [
"roleplaygateway.com",
"fabric.pub",
"verse.im"
]
},
"welcomeUserId": "@hal:roleplaygateway.com",
"@piwik": {
"url": "https://piwik.riot.im/",
"whitelistedHSUrls": ["https://matrix.org"],
"whitelistedISUrls": ["https://vector.im", "https://matrix.org"],
"siteId": 1
},
"enable_presence_by_hs_url": {
"https://matrix.org": false
},
"settingDefaults": {
"breadcrumbs": true
}
}
Binary file added electron_app/img/rpg.ico
Binary file not shown.
Binary file added electron_app/img/rpg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions electron_app/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "riot-web",
"productName": "Riot",
"name": "RPG",
"productName": "RPG Chat",
"main": "src/electron-main.js",
"version": "1.5.2",
"description": "A feature-rich client for Matrix.org",
"author": "New Vector Ltd.",
"version": "0.2.0-RC3-dev",
"description": "Desktop client for RPG Chat",
"author": "Fabric, Inc.",
"dependencies": {
"auto-launch": "^5.0.1",
"electron-store": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion electron_app/src/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ let mainWindow = null;
global.appQuitting = false;

// It's important to call `path.join` so we don't end up with the packaged asar in the final path.
const iconFile = `riot.${process.platform === 'win32' ? 'ico' : 'png'}`;
const iconFile = `rpg.${process.platform === 'win32' ? 'ico' : 'png'}`;
const iconPath = path.join(__dirname, "..", "..", "img", iconFile);
const trayConfig = {
icon_path: iconPath,
Expand Down
22 changes: 20 additions & 2 deletions electron_app/src/vectormenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@ const {app, shell, Menu} = require('electron');

// Menu template from http://electron.atom.io/docs/api/menu/, edited
const template = [
{
label: '&Account',
submenu: [
{
label: 'Manage',
click() { shell.openExternal('https://www.roleplaygateway.com/ucp.php?i=profile&mode=reg_details'); },
},
],
},
{
label: '&Universes',
submenu: [
{
label: 'Browse',
click() { shell.openExternal('https://www.roleplaygateway.com/universes'); },
},
],
},
{
label: '&Edit',
submenu: [
Expand Down Expand Up @@ -57,8 +75,8 @@ const template = [
role: 'help',
submenu: [
{
label: 'Riot Help',
click() { shell.openExternal('https://about.riot.im/help'); },
label: 'RPG Help',
click() { shell.openExternal('https://www.roleplaygateway.com/help-f11.html'); },
},
],
},
Expand Down
42 changes: 28 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "riot-web",
"productName": "Riot",
"name": "@rpg/chat",
"productName": "RPG Chat",
"main": "electron_app/src/electron-main.js",
"version": "1.5.2",
"description": "A feature-rich client for Matrix.org",
"author": "New Vector Ltd.",
"version": "0.2.0-RC3",
"description": "Desktop client for RPG Chat",
"author": "Fabric, Inc.",
"repository": {
"type": "git",
"url": "https://github.com/vector-im/riot-web"
"url": "https://github.com/RolePlayGateway/chat.roleplaygateway.com"
},
"license": "Apache-2.0",
"files": [
Expand Down Expand Up @@ -36,10 +36,13 @@
"build:compile": "yarn reskindex && babel --source-maps -d lib src",
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress --bail --mode production",
"build:bundle:dev": "webpack --progress --bail --mode development",
"build:electron": "yarn clean && yarn build && yarn install:electron && electron-builder -wml --ia32 --x64",
"build:electron": "yarn clean && yarn build && yarn install:electron && electron-builder -wml --x64",
"build:linux": "yarn clean && yarn build && yarn install:electron && electron-builder -l --x64",
"build:macos": "yarn clean && yarn build && yarn install:electron && electron-builder -m --x64",
"build:windows": "yarn clean && yarn build && yarn install:electron && electron-builder -w --x64",
"build:electron:linux": "yarn build && electron-builder -l --x64",
"build:electron:macos": "yarn build && electron-builder -m --x64",
"build:electron:windows": "yarn build && electron-builder -w --ia32 --x64",
"build:electron:windows": "yarn build && electron-builder -w --x64",
"build:react-sdk": "node scripts/yarn-sub.js matrix-react-sdk build",
"build:js-sdk": "node scripts/yarn-sub.js matrix-js-sdk start:init",
"build": "yarn build:js-sdk && yarn build:react-sdk && yarn reskindex && yarn build:res && yarn build:bundle",
Expand All @@ -64,6 +67,7 @@
"test-multi": "karma start"
},
"dependencies": {
"@fabric/rpg": "FabricLabs/rpg#prototype",
"babel-polyfill": "^6.26.0",
"babel-runtime": "^6.26.0",
"bluebird": "^3.5.2",
Expand All @@ -75,7 +79,7 @@
"gfm.css": "^1.1.2",
"highlight.js": "^9.13.1",
"matrix-js-sdk": "2.4.3",
"matrix-react-sdk": "1.7.1",
"matrix-react-sdk": "FabricLabs/matrix-react-sdk#rpg",
"modernizr": "^3.6.0",
"olm": "https://packages.matrix.org/npm/olm/olm-3.1.4.tgz",
"prop-types": "^15.7.2",
Expand Down Expand Up @@ -108,6 +112,7 @@
"cpx": "^1.3.2",
"cross-env": "^4.0.0",
"css-loader": "^2.1.0",
"ecstatic": "^4.1.2",
"electron-builder": "^21.2.0",
"electron-builder-squirrel-windows": "^21.2.0",
"electron-devtools-installer": "^2.2.4",
Expand Down Expand Up @@ -154,7 +159,7 @@
"webpack-dev-server": "^3.1.11"
},
"build": {
"appId": "im.riot.app",
"appId": "com.roleplaygateway.chat",
"electronVersion": "6.1.2",
"files": [
"node_modules/**",
Expand All @@ -169,11 +174,20 @@
"origin_migrator/**/*"
],
"linux": {
"target": "deb",
"target": [
{
"target": "deb",
"arch": "x64"
},
{
"target": "rpm",
"arch": "x64"
}
],
"category": "Network;InstantMessaging;Chat",
"maintainer": "support@riot.im",
"maintainer": "support@roleplaygateway.com",
"desktop": {
"StartupWMClass": "riot"
"StartupWMClass": "rpg"
}
},
"deb": {
Expand All @@ -185,7 +199,7 @@
},
"win": {
"target": {
"target": "squirrel"
"target": "nsis"
}
},
"directories": {
Expand Down
62 changes: 62 additions & 0 deletions res/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<style type="text/css">
.left.floated {
float: left;
margin-right: 0.5em;
}

.bordered.image {
border: 5px solid #1F677A;
}

.centered {
text-align: middle;
}

.medium.image {
max-height: 5em;
max-width: 5em;
}

.large.image {
max-height: 25em;
max-width: 25em;
}
</style>

<div class="ui container">
<div class="ui card">
<div class="centered image">
<a href="https://verse.im"><img src="images/verse.png" class="large bordered image" /></a>
</div>
<div class="content">
<h1>Welcome home, traveler.</h1>
<h2>You're one of the first to discover <em>the engine</em>. Welcome!</h2>
<p><strong>RPG Chat</strong> is a dedicated chat for the role-playing community. It's built with <a href="https://maki.io">Maki</a>, an open-source toolkit for designing and deploying cross-platform apps, so changes are frequent as we enter <code>beta</code> &mdash; feel free to explore <a href="https://github.com/RolePlayGateway/roleplaygateway">View Source &raquo;</a></p>
<p><strong>Verse</strong> is a peer-to-peer game engine designed for <a href="https://www.roleplaygateway.com/">RPG</a>. We're glad you're here!</p>
</div>
</div>

<div class="ui segment">
<h3 class="ui header">Resources</h3>
<a class="ui card" href="#/directory">
<div class="left floated image">
<img src="img/icons-directory.svg" />
</div>
<div class="content">
<h4>_t("Search the room directory")</h4>
<p>We've already built a network of rooms for you to explore. Start here to learn more.</p>
</div>
</a>
</div>

<div class="ui segment">
<h3>Getting Started on Verse</h3>
<p>Worlds on Verse are divided into <a href="/universes">Universes</a>, which are self-hosted instances of their simulations. Universes vary widely in scale, but all share a common text-based interface &mdash; <a href="/sessions">the Shell</a>.</p>
<p>We're preparing for launch. If you need help, check <a href="https://www.roleplaygateway.com/help-f11.html">the RPG Help Forum</a>.</p>
</div>

<div class="ui segment">
<h3>External Links</h3>
<p><a href="https://github.com/RolePlayGateway/chat.verse.im">Source Code</a> &middot; <a href="https://www.roleplaygateway.com/">RPG</a></p>
</div>
</div>
11 changes: 6 additions & 5 deletions res/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Riot - open team collaboration",
"short_name": "Riot",
"name": "RPG Chat",
"short_name": "RPG Chat",
"display": "standalone",
"theme_color": "#76CFA6",
"start_url": "index.html",
Expand Down Expand Up @@ -42,11 +42,12 @@
"density": "4.0"
}
],
"related_applications": [
"related_applications": [],
"//related_applications": [
{
"platform": "play",
"url": "https://play.google.com/store/apps/details?id=im.vector.alpha",
"id": "im.vector.alpha"
"url": "https://play.google.com/store/apps/details?id=chat.roleplaygateway.com",
"id": "chat.roleplaygateway.com"
},
{
"platform": "itunes",
Expand Down
31 changes: 31 additions & 0 deletions res/releases/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Releases &middot; Grove</title>
<link rel="stylesheet" href="tufte.css"/>
<link rel="stylesheet" href="latex.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:url" content="https://chat.fabric.pub/releases" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Releases &middot; Grove" />
<meta property="og:description" content="Desktop and mobile builds for Grove, the Fabric Chat." />
<meta property="og:image" content="https://chat.fabric.pub/images/grove.png" />
</head>
<body>
<article>
<h1>Grove Releases</h1>
<p class="subtitle">Desktop and mobile builds for Grove, the Fabric Chat.</p>

<section>
<h2>alpha</h2>
<ul>
<li><a href="/releases/Grove%20Setup%200.1.0-RC2.exe">Grove Setup 0.1.0-RC2.exe</a> — Windows (64 bit)</li>
<li><a href="/releases/Grove-0.1.0-RC2.dmg">Grove-0.1.0-RC2.dmg</a> — MacOS (64 bit)</li>
<li><a href="/releases/grove-0.1.0-RC2.deb">grove-0.1.0-RC2.deb</a> — Debian (64 bit)</li>
<li><a href="/releases/grove-0.1.0-RC2.rpm">grove-0.1.0-RC2.rpm</a> — RedHat (64 bit)</li>
</ul>
</section>
</article>
</body>
</html>
Loading