Skip to content

Commit

Permalink
Merge pull request #444 from DemocracyEarth/landing
Browse files Browse the repository at this point in the history
Landing Mode for Sovereign navigation
  • Loading branch information
santisiri authored Jan 18, 2019
2 parents f23fdf1 + 6aba29d commit f103abf
Show file tree
Hide file tree
Showing 32 changed files with 802 additions and 196 deletions.
6 changes: 3 additions & 3 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[email protected] # Packages every Meteor app needs to have
[email protected] # Meteor's client-side reactive programming library
[email protected] # ECMAScript 5 compatibility for older browsers.
[email protected].0 # Enable ECMAScript2015+ syntax in app code
[email protected].3 # Enable ECMAScript2015+ syntax in app code

# standard libraries
[email protected] # Helpful client-side library
Expand All @@ -22,7 +22,7 @@ [email protected] # Compile .html files into Meteor Blaze views
mrt:jquery-ui
rajit:bootstrap3-datepicker
mystor:device-detection
[email protected].0
[email protected].2
# [email protected]
velocityjs:velocityjs

Expand All @@ -44,7 +44,7 @@ iron:router
tap:i18n

# accounts, users
session@1.1.8 # Client-side reactive dictionary for your app
session@1.2.0 # Client-side reactive dictionary for your app
[email protected]
[email protected]
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[email protected]
[email protected].0.1
13 changes: 11 additions & 2 deletions i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,20 @@
"get-dapp-browser": "Install recommended Dapp Browser",
"get-web3-wallet": "Install recommended Web3 Wallet",
"ethereum-dapp-browsers": "Sign In with Browser",
"ethereum-web3-wallet": "Sign In with Wallet",
"ethereum-web3-wallet": "Ethereum Sign In",
"feed-token-posts": "Posts with {{asset}} Token",
"feed-geo-posts": "Posts from {{asset}}",
"ledger-token-posts": "{{asset}} Transactions",
"ledger-geo-posts": "Transactions from {{asset}}",
"feed-peer-posts": "Posts by @{{asset}}",
"ledger-peer-posts": "Transactions by @{{asset}}"
"ledger-peer-posts": "Transactions by @{{asset}}",
"start-a-democracy": "Start an Organization",
"landing-title": "Governance for <br>decentralized networks.",
"landing-tagline": "Democracy Earth enables token-powered commmunity participation. Built with open source technology over peer to peer protocols.",
"join": "Join Now",
"email": "E-mail",
"home": "Home",
"paper": "Paper",
"code": "Code",
"foundation": "Foundation"
}
20 changes: 14 additions & 6 deletions imports/startup/both/modules/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@ import { Accounts } from 'meteor/accounts-base';
import { TAPi18n } from 'meteor/tap:i18n';
import { Router } from 'meteor/iron:router';
import { Session } from 'meteor/session';
import { $ } from 'meteor/jquery';

import { displayModal } from '/imports/ui/modules/modal';
import { transact } from '/imports/api/transactions/transaction';
import { displayNotice } from '/imports/ui/modules/notice';
import { addDecimal, getCoin } from '/imports/api/blockchain/modules/web3Util';

import { createDelegation } from '/imports/startup/both/modules/Contract';
import { animatePopup } from '/imports/ui/modules/popup';
import { Transactions } from '/imports/api/transactions/Transactions';

import { token } from '/lib/token';
import { defaultSettings } from '/lib/const';
import { convertToSlug } from '/lib/utils';


import abi from 'human-standard-token-abi';

Expand Down Expand Up @@ -88,6 +85,15 @@ const _getTransactionStatus = (hash) => {
return false;
};

/**
* @summary hide login forms
*/
const _hideLogin = () => {
$('.right').scrollTop(0);
Session.set('userLoginVisible', false);
animatePopup(false, 'user-login');
};

/**
* @summary syncs app with blockchain data
* @param {object} contract to verify if still pending
Expand Down Expand Up @@ -429,6 +435,7 @@ if (Meteor.isClient) {
methodArguments,
});
Router.go('/');
_hideLogin();
},
});
} else {
Expand Down Expand Up @@ -486,3 +493,4 @@ export const transactWithMetamask = _transactWithMetamask;
export const getTransactionStatus = _getTransactionStatus;
export const setupWeb3 = _web3;
export const syncBlockchain = _syncBlockchain;
export const hideLogin = _hideLogin;
2 changes: 1 addition & 1 deletion imports/startup/client/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ const _getNavbarAction = (path) => {
const _configNavbar = (label, path) => {
if (Meteor.Device.isPhone()) {
if (Session.get('sidebar') === undefined) {
Session.set('sidebar', true);
if (Meteor.user()) { Session.set('sidebar', true); }
toggleSidebar();
}
} else if (Session.get('sidebar') === undefined) {
Expand Down
Loading

0 comments on commit f103abf

Please sign in to comment.