Skip to content

Commit

Permalink
Merge pull request #473 from cosmos/peng/472-rename-voyager
Browse files Browse the repository at this point in the history
rename instances of cosmos ui to voyager
  • Loading branch information
nylira authored Feb 13, 2018
2 parents c195849 + d440ec6 commit 93cdf62
Show file tree
Hide file tree
Showing 20 changed files with 50 additions and 45 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
###Changed
* Updated transaction history to be more clear and descriptive. @jolesbi
* Improved delegate profile page to accommodate candidates and validators. @jolesbi

## [0.4.3] - 2018-02-05
### Changed
* Renamed Cosmos UI to Cosmos Voyager. @nylira
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
![the cosmos network](cosmos-github.jpg)

# Cosmos UI
# Cosmos Voyager

👋 Welcome to the official user interface for the [Cosmos Network](https://cosmos.network/).
👋 Welcome to Voyager, the official user interface for the [Cosmos Network](https://cosmos.network/).

💻 The Cosmos UI is a desktop application built with [Electron](https://github.com/electron/electron). Cosmos UI runs on macOS 10.9+, Windows 7+, and Debian-based Linux distros.
💻 Voyager is a desktop application built with [Electron](https://github.com/electron/electron). Voyager runs on macOS 10.9+, Windows 7+, and Debian-based Linux distros.

⚠️ This is still alpha-level software. __DO NOT__ enter your Cosmos fundraiser seed into the UI.
⚠️ This is still alpha-level software. __DO NOT__ enter your Cosmos fundraiser seed into Voyager.

🎉 Releases can be found [here](https://github.com/cosmos/cosmos-ui/releases).
🎉 Binary releases are [available here](https://github.com/cosmos/voyager/releases).

---

Expand Down Expand Up @@ -125,7 +125,7 @@ A list of all environment variables and their purpose:
|MOCK|'true', 'false'|'true' in development|Mock data to receive from the chain|
|COSMOS_TEST|'true', 'false'|'false'|Disable code that influences unit tests, like logging to files|
|COSMOS_NETWORK|{path to network configuration folder}|'../networks/gaia-1'|Network to connect to|
|COSMOS_HOME|{path to config persistence folder}|'$HOME/cosmos-ui[-dev]'||
|COSMOS_HOME|{path to config persistence folder}|'$HOME/voyager[-dev]'||
|COSMOS_NODE|{ip of a certain node}||Node to connect to|
|PLATFORM_TARGET|'all', 'win32', 'darwin', 'linux', 'mas'|'all'|Which platform to build for|
|COSMOS_DEVTOOLS|'true', 'false'|'false'|Open the debug panel in the electron view|
Expand All @@ -135,7 +135,7 @@ A list of all environment variables and their purpose:

### FAQ

- If tendermint crashes and the log shows `Tendermint state.AppHash does not match AppHash after replay.` delete the config folders at `$HOME/.cosmos-ui[-dev]`.
- If tendermint crashes and the log shows `Tendermint state.AppHash does not match AppHash after replay.` delete the config folders at `$HOME/.voyager[-dev]`.

- If you use yarn, the post-install hook may not execute. If this happens you'll have to execute the script manually:
```bash
Expand Down
4 changes: 2 additions & 2 deletions app/index.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Cosmos - Internet of Blockchains</title>
<title>Cosmos Voyager</title>
<% if (htmlWebpackPlugin.options.appModules) { %>
<!-- Add `app/node_modules` to global paths so `require` works properly in development -->
<script>
Expand All @@ -11,7 +11,7 @@
<div id="app">
<div id="load">
<div id="load-container">
<div id="load-title">Cosmos</div>
<div id="load-title">Cosmos Voyager</div>
<div id="load-main">
<p>app is loading&hellip;</p>
<p>need help? <a href="mailto:[email protected]">email us</a></p>
Expand Down
6 changes: 3 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Cosmos",
"productName": "Cosmos",
"version": "0.3.0",
"name": "cosmos-voyager",
"productName": "Cosmos Voyager",
"version": "0.4.3",
"description": "The human interface for Cosmos.",
"main": "./dist/main.js",
"author": "All In Bits, Inc <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function createWindow () {
width: 1024,
height: 768,
center: true,
title: 'Cosmos',
title: 'Cosmos Voyager',
darkTheme: true,
titleBarStyle: 'hidden',
webPreferences: { webSecurity: false }
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const { app, Menu } = require('electron')
module.exports = function () {
let template = [
{
label: 'Cosmos',
label: 'Cosmos Voyager',
submenu: [
{ label: 'About Cosmos UI', selector: 'orderFrontStandardAboutPanel:' },
{ label: 'About Cosmos Voyager', selector: 'orderFrontStandardAboutPanel:' },
{ type: 'separator' },
{ label: 'Quit', accelerator: 'Command+Q', click: () => app.quit() }
]
Expand Down
2 changes: 1 addition & 1 deletion app/src/renderer/components/common/NiDataError.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template lang="pug">
data-msg(icon="sentiment_very_dissatisfied")
div(slot="title") Aw shucks!
div(slot="subtitle") Even though you're connected a full node, we can't display this data for you right now. Please try again later or #[a(href="https://github.com/cosmos/cosmos-ui/issues") file a bug report]. Apologies!
div(slot="subtitle") Even though you're connected a full node, we can't display this data for you right now. Please try again later or #[a(href="https://github.com/cosmos/voyager/issues") file a bug report]. Apologies!
</template>

<script>
Expand Down
4 changes: 2 additions & 2 deletions app/src/renderer/components/common/NiModalHelp.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template lang="pug">
modal.ni-modal-help(v-if="active" :close="close")
div(slot='title') Need Help?
p Something in the app not working correctly? Tell us what went wrong in developer chat or create an issue on our GitHub. Thanks for improving Cosmos!
p Something in the app not working correctly? Tell us what went wrong in developer chat or create an issue on our GitHub. Thanks for improving Cosmos Voyager!
list-item(
title="Developer Chat"
href="https://riot.im/app/#/room/#cosmos:matrix.org")
list-item(
title="GitHub Issues"
href="https://github.com/cosmos/cosmos-ui/issues")
href="https://github.com/cosmos/voyager/issues")
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion app/src/renderer/components/common/NiSessionWelcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.ni-session: .ni-session-container
.ni-session-header
a &nbsp;
.ni-session-title Welcome to Cosmos!
.ni-session-title Welcome to Cosmos Voyager
a(@click="help"): i.material-icons help_outline
.ni-session-main
li-session(
Expand Down
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require('path')
let config = {
// Name of electron app
// Will be used in production builds
name: 'Cosmos',
name: 'Cosmos Voyager',

// Use ESLint (extends `standard`)
// Further changes can be made in `.eslintrc.js`
Expand Down
10 changes: 5 additions & 5 deletions docs/release.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Creating a Cosmos UI Release
# Creating a Cosmos Voyager Release

## Gaia

Expand All @@ -8,7 +8,7 @@ First, you'll need to either download trusted `gaia` binaries for each platform,

**TODO:** *Use Docker for this step*

If you build the binaries yourself, you'll need to have Golang 1.9 installed, and be on the correct version of `gaia` for the network you are building the UI for:
If you build the binaries yourself, you'll need to have Golang 1.9 installed, and be on the correct version of `gaia` for the network you are building Voyager for:

```bash
go version # should be at least 1.9
Expand Down Expand Up @@ -45,7 +45,7 @@ GOOS=windows GOARCH=386 go build \
# (if you want 64-bit, change `GOARCH=386` to `GOARCH=amd64`)
```

## Cosmos UI
## Cosmos Voyager

Now that we have `gaia`, we can build the app.

Expand Down Expand Up @@ -107,8 +107,8 @@ We will also have a company key for macOS signatures, for extra security and so

Now this release is ready to go out to the world!

- Visit https://github.com/cosmos/cosmos-ui/releases/new to create the Github release
- Fill in the release text based on the format of past releases (https://github.com/cosmos/cosmos-ui/releases)
- Visit https://github.com/cosmos/voyager/releases/new to create the Github release
- Fill in the release text based on the format of past releases (https://github.com/cosmos/voyager/releases)
- Add changes from `CHANGELOG.md`
- Upload the build files from the `builds` folder (Windows `.zip`, Linux and Mac `.tar.gz`)
- Hit the big green button and enjoy the dopamine and serotonin flooding your brain
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "Cosmos",
"productName": "Cosmos",
"version": "0.4.1",
"description": "The electron-based user interface for Cosmos Network.",
"name": "cosmos-voyager",
"productName": "Cosmos Voyager",
"version": "0.4.3",
"description": "Voyager is an electron-based user interface for the Cosmos Network.",
"author": "All In Bits, Inc <[email protected]>",
"license": "Apache-2.0",
"homepage": "https://cosmos.network",
"repository": {
"type": "git",
"url": "git+https://github.com/cosmos/cosmos-ui.git"
"url": "git+https://github.com/cosmos/voyager.git"
},
"engines": {
"node": ">=9.4.0"
Expand Down
2 changes: 1 addition & 1 deletion tasks/test-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function main () {
let executablePath = process.argv[2]

if (!executablePath) {
console.error('\nPlease define the executable you want to test like "yarn run test:exe ./Cosmos.exe"\n')
console.error('\nPlease define the executable you want to test like "yarn run test:exe ./Cosmos Voyager.exe"\n')
process.exit(-1)
}
await test(executablePath)
Expand Down
14 changes: 7 additions & 7 deletions tasks/windows-installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ var package = require('../package.json')

// Installer is customizable: https://github.com/electron/windows-installer
let resultPromise = electronInstaller.createWindowsInstaller({
appDirectory: './builds/Cosmos-win32-x64',
outputDirectory: './builds/cosmos/Cosmos-win32',
title: 'Cosmos',
appDirectory: './builds/cosmos-voyager-win32-x64',
outputDirectory: './builds/cosmos/cosmos-voyager-win32',
title: 'Cosmos Voyager',
authors: package.author,
exe: 'Cosmos.exe',
setupExe: `Cosmos-Setup-v${package.version}.exe`,
iconUrl: 'https://github.com/cosmos/cosmos-ui/raw/develop/app/icons/icon.ico',
exe: 'Cosmos Voyager.exe',
setupExe: `Cosmos-Voyager-Setup-v${package.version}.exe`,
iconUrl: 'https://github.com/cosmos/voyager/raw/develop/app/icons/icon.ico',
setupIcon: './app/icons/icon.ico',
noMsi: true
});

return resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
return resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
1 change: 1 addition & 0 deletions test/e2e/signin.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ test('sign in', async function (t) {
let warning = () => el('#sign-up-warning')
let backedup = () => el('#sign-up-backup')

navigate(t, client, 'Sign In', 'Welcome to Cosmos Voyager')
t.test('did check warning', async function (t) {
await continueButton().click()
t.ok(await warning().$('..').$('..').$('..').isExisting('.ni-form-msg--error'), 'shows error')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`NISessionWelcome with accounts has the expected html structure 1`] = `
<div class=\\"ni-session-header\\">
<a>&nbsp;</a>
<div class=\\"ni-session-title\\">
Welcome to Cosmos!
Welcome to Cosmos Voyager
</div>
<a><i class=\\"material-icons\\">help_outline</i></a>
</div>
Expand Down Expand Up @@ -83,7 +83,7 @@ exports[`NISessionWelcome without accounts has the expected html structure 1`] =
<div class=\\"ni-session-header\\">
<a>&nbsp;</a>
<div class=\\"ni-session-title\\">
Welcome to Cosmos!
Welcome to Cosmos Voyager
</div>
<a><i class=\\"material-icons\\">help_outline</i></a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`NiDataError has the expected html structure 1`] = `
</div>
<div class=\\"ni-data-msg__subtitle\\">
<div>
Even though you're connected a full node, we can't display this data for you right now. Please try again later or <a href=\\"https://github.com/cosmos/cosmos-ui/issues\\">file a bug report</a>. Apologies!
Even though you're connected a full node, we can't display this data for you right now. Please try again later or <a href=\\"https://github.com/cosmos/voyager/issues\\">file a bug report</a>. Apologies!
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports[`NiModalHelp has the expected html structure 1`] = `
class="ni-modal-main"
>
<p>
Something in the app not working correctly? Tell us what went wrong in developer chat or create an issue on our GitHub. Thanks for improving Cosmos!
Something in the app not working correctly? Tell us what went wrong in developer chat or create an issue on our GitHub. Thanks for improving Cosmos Voyager!
</p>
<a
class="ni-li ni-li-link proposal-enter proposal-enter-active"
Expand Down Expand Up @@ -78,7 +78,7 @@ exports[`NiModalHelp has the expected html structure 1`] = `
</a>
<a
class="ni-li ni-li-link proposal-enter proposal-enter-active"
href="https://github.com/cosmos/cosmos-ui/issues"
href="https://github.com/cosmos/voyager/issues"
>
<div
class="ni-li-container"
Expand Down
2 changes: 1 addition & 1 deletion test/unit/specs/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('Startup Process', () => {
})
})

// uses package.json from cosmos-ui/ root.
// uses package.json from voyager/ root.
jest.mock(root + 'package.json', () => ({
version: '0.1.0'
}))
Expand Down
2 changes: 1 addition & 1 deletion test/unit/specs/root.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ describe('Root UI Directory', () => {

it('should create the correct path', () => {
let root = require('../../../app/src/root.js')
expect(root).toBe(join(homedir(), '.cosmos-dev/gaia-2'))
expect(root).toBe(join(homedir(), '.cosmos-voyager-dev/gaia-2'))
})
})

0 comments on commit 93cdf62

Please sign in to comment.