{this.state.title}
59 |{this.state.description}
60 |├── license ├── .dockerignore ├── .babelrc ├── src ├── iframes │ ├── README.md │ ├── webGold │ │ └── js │ │ │ ├── .babelrc │ │ │ ├── components │ │ │ ├── Wallet │ │ │ │ ├── reducers │ │ │ │ │ └── walletReducer.js │ │ │ │ ├── actions │ │ │ │ │ └── storeActions.js │ │ │ │ ├── Disclaimer.js │ │ │ │ ├── ExtraEntropy.js │ │ │ │ └── PasswordEntry.js │ │ │ ├── PaymentForm │ │ │ │ ├── BraintreeForm.js │ │ │ │ ├── BitcoinForm.js │ │ │ │ ├── AddFunds │ │ │ │ │ ├── AddFundsButton.js │ │ │ │ │ ├── LoginButton.js │ │ │ │ │ └── index.js │ │ │ │ ├── Alert.js │ │ │ │ └── PaymentData.js │ │ │ ├── User │ │ │ │ ├── UserInfo.js │ │ │ │ └── User.spec.js │ │ │ ├── EthereumClient │ │ │ │ └── index.js │ │ │ ├── PresaleForm │ │ │ │ ├── BitcoinForm.js │ │ │ │ ├── Alert.js │ │ │ │ └── PaymentData.js │ │ │ ├── BalanceLine.js │ │ │ ├── Info.js │ │ │ ├── Disclaimer.js │ │ │ ├── ExtraEntropy.js │ │ │ └── PaymentHistory │ │ │ │ └── index.js │ │ │ ├── stores │ │ │ ├── PaymentActions.js │ │ │ ├── PaymentStore.js │ │ │ └── BalanceStore.js │ │ │ ├── actions │ │ │ └── transactions.js │ │ │ ├── libs │ │ │ ├── url.js │ │ │ ├── units.js │ │ │ └── apicalls.js │ │ │ ├── admin │ │ │ ├── requests.js │ │ │ ├── Prepayments.js │ │ │ ├── Emissions.js │ │ │ ├── Donations.js │ │ │ ├── Invoices.js │ │ │ ├── EtherFeeds.js │ │ │ └── Presales.js │ │ │ ├── crypto │ │ │ └── __mocks__ │ │ │ │ └── tweetnacl.js │ │ │ ├── resizeSender.js │ │ │ ├── presale.js │ │ │ └── txsigner.js │ ├── Pinger │ │ └── js │ │ │ ├── constants.js │ │ │ ├── index.js │ │ │ ├── actions │ │ │ └── formactions.js │ │ │ ├── auth.js │ │ │ ├── urlutils.js │ │ │ ├── utils.js │ │ │ ├── iframeresize.js │ │ │ ├── urlutils.spec.js │ │ │ └── components │ │ │ └── FileEntry.js │ └── constant.js ├── CoreEditor │ ├── components │ │ ├── utils │ │ │ ├── is_profile_url.js │ │ │ ├── change_urls_to_urls_for_edit.js │ │ │ └── is_profile_url.spec.js │ │ ├── Loading.js │ │ ├── Alert.js │ │ ├── StyleButton.js │ │ ├── CoverHeader.js │ │ ├── CommentEnabler.js │ │ ├── EditExternal.js │ │ ├── ListEditor.js │ │ └── Modal.js │ ├── epics │ │ ├── index.js │ │ └── imagePreview.js │ ├── utils │ │ ├── get_my_list.js │ │ ├── url.spec.js │ │ ├── get_my_list.spec.js │ │ ├── reducerTools.js │ │ ├── html2list.js │ │ ├── html2list.spec.js │ │ ├── helpers.js │ │ ├── entitytools.spec.js │ │ └── insertAtomicBlock.js │ ├── actions │ │ ├── externalsEditor.js │ │ ├── imagedialog.js │ │ ├── ticketdialog.js │ │ ├── coverActions.js │ │ ├── indexActions.spec.js │ │ ├── listEditorActions.js │ │ ├── linkdialog.js │ │ └── publishActions.spec.js │ ├── fixtures │ │ ├── fixture.js │ │ └── social.json │ ├── containers │ │ ├── CoverHeaderContainer.js │ │ ├── EditExternal.js │ │ ├── ArticleNavigationContainer.js │ │ ├── ListEditorContainer.js │ │ ├── LinkUrlDialog.js │ │ ├── ImageUrlDialog.js │ │ ├── TicketDialog.js │ │ ├── Postsettings.js │ │ └── CoverEditingDialogContainer.js │ ├── mixins │ │ └── mentions.js │ ├── mentions │ │ ├── scripts.js │ │ ├── mention.spec.js │ │ ├── mention.js │ │ └── mentions.js │ ├── DraftConverters │ │ └── article │ │ │ └── JSONToDraft.spec.js │ ├── reducers │ │ ├── externalsEditorReducer.js │ │ ├── imageDialog.js │ │ ├── linkDialog.js │ │ ├── ticketDialog.js │ │ ├── indexReducer.js │ │ ├── publish.spec.js │ │ ├── docUtils.js │ │ └── listEditorReducer.js │ ├── webrunesAPI.js │ ├── client.js │ ├── selectors │ │ └── publishSelectors.js │ ├── configureStore.js │ └── EditorEntities │ │ ├── LinkEntity.js │ │ ├── ImageEntitiy.js │ │ └── TicketEntity.js ├── base │ ├── actions │ │ ├── hashUpdateHook.js │ │ └── first_route.js │ ├── jsonld │ │ ├── entities │ │ │ ├── README.md │ │ │ ├── SocialMediaPosting.js │ │ │ ├── ItemList.js │ │ │ ├── LdJsonObject.spec.js │ │ │ ├── ImageObject.js │ │ │ └── Article.js │ │ ├── mentions │ │ │ ├── README.md │ │ │ ├── abstractMention.js │ │ │ ├── mention.spec.js │ │ │ └── image.js │ │ └── LdJsonDocument.spec.js │ ├── components │ │ ├── utils │ │ │ ├── linkBuilder │ │ │ │ └── linkCreator.js │ │ │ ├── change_url_to_url_for_edit.js │ │ │ └── string.js │ │ ├── misc │ │ │ ├── Loading.js │ │ │ ├── ListThumbnail.js │ │ │ ├── FixedCarousel.js │ │ │ └── CommentsDisabled.js │ │ ├── BackToTheProvidersPageButton.js │ │ ├── mapbox │ │ │ └── files │ │ │ │ ├── config.js │ │ │ │ └── data.js │ │ ├── Externals.js │ │ ├── ReadItLater.js │ │ ├── ArticleLists.js │ │ ├── widgets │ │ │ ├── Presale.js │ │ │ ├── Transactions.js │ │ │ └── Details.js │ │ ├── ItemList.js │ │ ├── Ticket.js │ │ ├── ArticleElement.js │ │ └── deprecated │ │ │ ├── CreateControlButtons.js │ │ │ └── CreateCover.js │ ├── Plus │ │ ├── utils │ │ │ ├── tools.spec.js │ │ │ ├── normURL.spec.js │ │ │ └── normURL.js │ │ ├── components │ │ │ ├── GenericListItem.js │ │ │ ├── Item.spec.js │ │ │ └── Item.js │ │ └── reducers │ │ │ └── plusReducer.spec.js │ ├── reducers │ │ ├── rootReducer.js │ │ ├── loginReducer.js │ │ ├── WrioDocument.spec.js │ │ └── documentReducer.spec.js │ ├── utils │ │ ├── set_url_with_hash.js │ │ ├── SafariStorage.js │ │ └── CrossStorageFactory.js │ ├── containers │ │ ├── CoverHeaderContainer.js │ │ └── ArticleNavigationContainer.js │ ├── servicelocator.js │ ├── global.js │ └── configureStore.js ├── config.js ├── devserver │ ├── core │ │ └── index.html │ └── pinger │ │ ├── index.html │ │ └── pingeriframe.html └── main.js ├── hub ├── googlec2c6e6a32837e668.html ├── googled54479b6cc666467.html ├── img │ ├── Soil.png │ ├── Desgin.png │ ├── cells.png │ ├── cover1.jpg │ ├── dht11.png │ ├── mission.jpg │ ├── Connections.png │ ├── Desgin-black.png │ ├── Soil-depth.png │ ├── architecture.jpg │ ├── cover_author.jpg │ ├── cover_user.jpg │ ├── ttgo-esp32.png │ ├── advanced_guide.jpg │ ├── cover1-200x200.jpg │ ├── mission-schema.jpg │ ├── beginners_guide.jpg │ ├── cover_developer.jpg │ ├── ttgo-esp32-front.png │ ├── cover_entrepreneur.jpg │ └── ttgo-esp32-cpmponents.png ├── offer │ └── img │ │ ├── bounty.jpg │ │ ├── development.jpg │ │ ├── promotion.jpg │ │ ├── bounty_200x200.jpg │ │ ├── promotion-200x200.jpg │ │ └── development-200x200.jpg ├── collection │ ├── img │ │ ├── stack-200x200.png │ │ ├── financing_strategy-200x200.png │ │ ├── investments_tokens-200x200.png │ │ └── financial_statement-200x200.png │ ├── investments_and_tokens │ │ └── img │ │ │ ├── series.png │ │ │ └── percentage_ratio.png │ └── financial_statement │ │ └── index.html └── ru │ ├── блог │ └── index.html │ ├── дао │ └── финансовая_отчётность │ │ └── index.html │ └── обложка │ └── index.html ├── compress.sh ├── .flowconfig ├── docker ├── README.md └── Dockerfile ├── test ├── fakeDom.js └── createInfoTicketTest.js ├── opsworks_nodejs ├── attributes │ └── customize.rb └── templates │ └── default │ └── node_web_app.monitrc.erb ├── .eslintrc ├── .gitignore ├── .travis.yml └── travis └── reset_cloudfront_cache.sh /license: -------------------------------------------------------------------------------- 1 | https://wrioos.com/license 2 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | ./git/* 2 | /node_modules/* 3 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react", "es2015", "stage-0"] 3 | } 4 | -------------------------------------------------------------------------------- /src/iframes/README.md: -------------------------------------------------------------------------------- 1 | This folder contains code that runs inside iframes 2 | -------------------------------------------------------------------------------- /hub/googlec2c6e6a32837e668.html: -------------------------------------------------------------------------------- 1 | google-site-verification: googlec2c6e6a32837e668.html -------------------------------------------------------------------------------- /hub/googled54479b6cc666467.html: -------------------------------------------------------------------------------- 1 | google-site-verification: googled54479b6cc666467.html -------------------------------------------------------------------------------- /hub/img/Soil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/Soil.png -------------------------------------------------------------------------------- /src/iframes/webGold/js/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react","es2015","stage-0"] 3 | } 4 | -------------------------------------------------------------------------------- /hub/img/Desgin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/Desgin.png -------------------------------------------------------------------------------- /hub/img/cells.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/cells.png -------------------------------------------------------------------------------- /hub/img/cover1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/cover1.jpg -------------------------------------------------------------------------------- /hub/img/dht11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/dht11.png -------------------------------------------------------------------------------- /hub/img/mission.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/mission.jpg -------------------------------------------------------------------------------- /hub/img/Connections.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/Connections.png -------------------------------------------------------------------------------- /hub/img/Desgin-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/Desgin-black.png -------------------------------------------------------------------------------- /hub/img/Soil-depth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/Soil-depth.png -------------------------------------------------------------------------------- /hub/img/architecture.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/architecture.jpg -------------------------------------------------------------------------------- /hub/img/cover_author.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/cover_author.jpg -------------------------------------------------------------------------------- /hub/img/cover_user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/cover_user.jpg -------------------------------------------------------------------------------- /hub/img/ttgo-esp32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/ttgo-esp32.png -------------------------------------------------------------------------------- /hub/offer/img/bounty.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/offer/img/bounty.jpg -------------------------------------------------------------------------------- /hub/img/advanced_guide.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/advanced_guide.jpg -------------------------------------------------------------------------------- /hub/img/cover1-200x200.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/cover1-200x200.jpg -------------------------------------------------------------------------------- /hub/img/mission-schema.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/mission-schema.jpg -------------------------------------------------------------------------------- /hub/img/beginners_guide.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/beginners_guide.jpg -------------------------------------------------------------------------------- /hub/img/cover_developer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/cover_developer.jpg -------------------------------------------------------------------------------- /hub/img/ttgo-esp32-front.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/ttgo-esp32-front.png -------------------------------------------------------------------------------- /hub/offer/img/development.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/offer/img/development.jpg -------------------------------------------------------------------------------- /hub/offer/img/promotion.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/offer/img/promotion.jpg -------------------------------------------------------------------------------- /hub/img/cover_entrepreneur.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/cover_entrepreneur.jpg -------------------------------------------------------------------------------- /src/CoreEditor/components/utils/is_profile_url.js: -------------------------------------------------------------------------------- 1 | module.exports = url => 2 | url.split('/')[4] === 'index.html' 3 | -------------------------------------------------------------------------------- /src/iframes/webGold/js/components/Wallet/reducers/walletReducer.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by michbil on 06.05.17. 3 | */ 4 | -------------------------------------------------------------------------------- /hub/img/ttgo-esp32-cpmponents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/img/ttgo-esp32-cpmponents.png -------------------------------------------------------------------------------- /hub/offer/img/bounty_200x200.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/offer/img/bounty_200x200.jpg -------------------------------------------------------------------------------- /hub/collection/img/stack-200x200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/collection/img/stack-200x200.png -------------------------------------------------------------------------------- /hub/offer/img/promotion-200x200.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/offer/img/promotion-200x200.jpg -------------------------------------------------------------------------------- /hub/offer/img/development-200x200.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/offer/img/development-200x200.jpg -------------------------------------------------------------------------------- /hub/collection/img/financing_strategy-200x200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/collection/img/financing_strategy-200x200.png -------------------------------------------------------------------------------- /hub/collection/img/investments_tokens-200x200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/collection/img/investments_tokens-200x200.png -------------------------------------------------------------------------------- /hub/collection/img/financial_statement-200x200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/collection/img/financial_statement-200x200.png -------------------------------------------------------------------------------- /hub/collection/investments_and_tokens/img/series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/collection/investments_and_tokens/img/series.png -------------------------------------------------------------------------------- /src/base/actions/hashUpdateHook.js: -------------------------------------------------------------------------------- 1 | import Rx from "rxjs"; 2 | 3 | const listener = new Rx.Subject(); 4 | 5 | export const postUpdateHook = () => listener.next(); 6 | -------------------------------------------------------------------------------- /src/iframes/Pinger/js/constants.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by michbil on 26.05.17. 3 | */ 4 | 5 | export const COMMENT_LENGTH = 1024; 6 | export const TITLE_LENGTH = 72; 7 | -------------------------------------------------------------------------------- /src/iframes/webGold/js/stores/PaymentActions.js: -------------------------------------------------------------------------------- 1 | import Reflux from "reflux"; 2 | 3 | var Actions = Reflux.createActions(["changeAmount"]); 4 | 5 | export default Actions; 6 | -------------------------------------------------------------------------------- /src/CoreEditor/epics/index.js: -------------------------------------------------------------------------------- 1 | import { combineEpics } from 'redux-observable'; 2 | import imagePreview from './imagePreview'; 3 | 4 | export default combineEpics(imagePreview); 5 | -------------------------------------------------------------------------------- /hub/collection/investments_and_tokens/img/percentage_ratio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-InternetOS/HEAD/hub/collection/investments_and_tokens/img/percentage_ratio.png -------------------------------------------------------------------------------- /src/base/jsonld/entities/README.md: -------------------------------------------------------------------------------- 1 | # Short desc 2 | 3 | This directory contains JSON-LD abstraction classes, each type of 4 | the LD+JSON entity is abstracted using some class. 5 | 6 | -------------------------------------------------------------------------------- /src/base/components/utils/linkBuilder/linkCreator.js: -------------------------------------------------------------------------------- 1 | export default (data = {}, title, queryString) => { 2 | window.history.pushState(data,title,window.location.pathname + queryString) 3 | } -------------------------------------------------------------------------------- /src/iframes/webGold/js/actions/transactions.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by michbil on 06.12.15. 3 | */ 4 | 5 | import Reflux from "reflux"; 6 | 7 | module.exports = Reflux.createActions(["Balance", "Rate"]); 8 | -------------------------------------------------------------------------------- /src/base/components/utils/change_url_to_url_for_edit.js: -------------------------------------------------------------------------------- 1 | const 2 | getServiceUrl = require('../../servicelocator').getServiceUrl; 3 | 4 | module.exports = url => 5 | getServiceUrl('core') + '/edit?article=' + url 6 | -------------------------------------------------------------------------------- /src/base/jsonld/mentions/README.md: -------------------------------------------------------------------------------- 1 | # short desc 2 | 3 | This folder contains mention- and mention- alike objects, that are mapped 4 | directly into the text of the article 5 | 6 | All classes derived from abstract mention class -------------------------------------------------------------------------------- /src/config.js: -------------------------------------------------------------------------------- 1 | var config = {}; 2 | 3 | //config.gatewaysServiceUrl = "https://imec.herokuapp.com"; Testbed Gateways address 4 | config.gatewaysServiceUrl = "https://107.22.105.145"; // Lora Gateways AWS Server 5 | module.exports = config; -------------------------------------------------------------------------------- /src/base/jsonld/entities/SocialMediaPosting.js: -------------------------------------------------------------------------------- 1 | import LdJsonObject from "./LdJsonObject.js"; 2 | 3 | export default class SocialMediaPosting extends LdJsonObject { 4 | constructor(json, order, parent) { 5 | super(json, order, parent); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/devserver/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
9 | );
10 |
11 | export default Loading;
12 |
--------------------------------------------------------------------------------
/src/base/components/BackToTheProvidersPageButton.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | export default ({ providerLink }) => {
3 | return (WRG balance:
15 |Ethereum balance:
16 |9 | These 12 words are your wallet seed. It will unlock complete access to 10 | your funds even if you can't access your computer anymore. Please 11 | write them down on a piece of paper before continuing. 12 |
13 |14 | Important: We care about the security and anonymity of our 15 | users, thus we do not save passwords, access keys or personal data on 16 | the servers. It is impossible to steal something that doesn't exist. 17 | This protects your data and money against interventions of hackers and 18 | other third parties. But remember: we will not be able to recover 19 | access to the wallet if you lose the code phrase provided below. 20 |
21 |9 | These 12 words are your wallet seed. It will unlock complete access to 10 | your funds even if you can't access your computer anymore. Please 11 | write them down on a piece of paper before continuing. 12 |
13 |14 | Important: We care about the security and anonymity of our 15 | users, thus we do not save passwords, access keys or personal data on 16 | the servers. It is impossible to steal something that doesn't exist. 17 | This protects your data and money against interventions of hackers and 18 | other third parties. But remember: we will not be able to recover 19 | access to the wallet if you lose the code phrase provided below. 20 |
21 |Comments haven't been enabled by author.
27 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/base/configureStore.js:
--------------------------------------------------------------------------------
1 | import { createStore, applyMiddleware, compose } from 'redux';
2 | import thunkMiddleware from 'redux-thunk';
3 | import { createLogger } from 'redux-logger';
4 | import rootReducer from './reducers/rootReducer.js';
5 | import { loginMessage } from 'base/actions/WindowMessage';
6 | import * as actions from 'base/actions/actions';
7 | import { getPlusData } from 'base/Plus/actions/PlusActions';
8 | const getMyList = require('../CoreEditor/utils/get_my_list');
9 |
10 | const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
11 |
12 | const loggerMiddleware = createLogger();
13 |
14 | const dispatchLoginMessages = function dispatchLoginMessages(store) {
15 | store.dispatch(getPlusData());
16 | loginMessage
17 | .filter(msg => !!msg && !!msg.profile)
18 | .distinct()
19 | .subscribe((msg) => {
20 | const action = actions.loginMessage(msg);
21 | store.dispatch(action);
22 | });
23 | };
24 |
25 | export default function configureStore(preloadedState) {
26 | const store = createStore(
27 | rootReducer,
28 | preloadedState,
29 | composeEnhancers(applyMiddleware(thunkMiddleware, loggerMiddleware)),
30 | );
31 | dispatchLoginMessages(store);
32 | return store;
33 | }
34 |
--------------------------------------------------------------------------------
/src/CoreEditor/reducers/imageDialog.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by michbil on 16.07.17.
3 | */
4 |
5 | import {
6 | IMAGE_DIALOG_OPEN,
7 | IMAGE_DIALOG_CLOSE,
8 | IMAGE_DIALOG_PREVIEW_START,
9 | IMAGE_DIALOG_PREVIEW_FAILED,
10 | IMAGE_DIALOG_PREVIEW_SUCCESS,
11 | } from '../actions/imagedialog';
12 |
13 | const defaultState = {
14 | titleValue: '',
15 | urlValue: '',
16 | descValue: '',
17 | showDialog: false,
18 | previewBusy: false,
19 | };
20 |
21 | export function imageDialogReducer(state = defaultState, action) {
22 | const {
23 | titleValue, urlValue, descValue, linkEntityKey,
24 | } = action;
25 | switch (action.type) {
26 | case IMAGE_DIALOG_OPEN:
27 | return {
28 | ...state,
29 | showDialog: true,
30 | titleValue,
31 | urlValue,
32 | descValue,
33 | linkEntityKey,
34 | };
35 | case IMAGE_DIALOG_PREVIEW_START:
36 | return { ...state, previewBusy: true };
37 | case IMAGE_DIALOG_PREVIEW_SUCCESS:
38 | case IMAGE_DIALOG_PREVIEW_FAILED:
39 | return { ...state, previewBusy: false };
40 | case IMAGE_DIALOG_CLOSE:
41 | return { showDialog: false };
42 |
43 | default:
44 | return state;
45 | }
46 | }
47 |
48 | export default imageDialogReducer;
49 |
--------------------------------------------------------------------------------
/src/CoreEditor/containers/LinkUrlDialog.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { submitDialog, closeDialog, removeLink } from '../actions/linkdialog';
3 | import EntityDialog from '../components/EntityDialog';
4 | import mkActions from '../actions/indexActions';
5 | import { connect } from 'react-redux';
6 | import { reduxForm } from 'redux-form';
7 |
8 | function mapStateToProps(state) {
9 | const {
10 | showDialog, linkEntityKey, urlValue, titleValue, descValue,
11 | } = state.linkDialog;
12 | return {
13 | showDialog,
14 | linkEntityKey,
15 | showTitle: false, // customize settings
16 | showDescription: false, // customize settings
17 | isEditLink: true,
18 | initialValues: {
19 | url: urlValue,
20 | },
21 | };
22 | }
23 |
24 | // dispatch according actions
25 |
26 | const mapDispatchToProps = dispatch => ({
27 | onRemoveLink: key => {
28 | dispatch(removeLink(key))
29 | },
30 | onCancelLink: () => {
31 | dispatch(closeDialog())
32 | },
33 | onSubmit: values => {
34 | dispatch(submitDialog(values))
35 | }
36 | });
37 |
38 | export default connect(mapStateToProps, mapDispatchToProps)(reduxForm({
39 | // a unique name for the form
40 | form: 'linkDialog',
41 | enableReinitialize: true,
42 | })(EntityDialog));
43 |
--------------------------------------------------------------------------------
/src/base/Plus/reducers/plusReducer.spec.js:
--------------------------------------------------------------------------------
1 | import assert from 'assert';
2 | import should from 'should';
3 | import { setMock } from '../../utils/CrossStorageFactory.js';
4 | import plusReducer from './plusReducer.js';
5 |
6 | const mockval = {
7 | plus: {
8 | 'webrunes.com': {
9 | name: 'webRunes',
10 | url: 'webrunes.com',
11 | order: 0,
12 | },
13 | 'wrioos.com': {
14 | name: 'WRIO OS',
15 | url: 'wrioos.com',
16 | order: 1,
17 | },
18 | 'webrunes.com/blog.htm': {
19 | name: 'Blogs',
20 | url: 'webrunes.com/blog.htm',
21 | author: 'webrunes.com',
22 | order: 2,
23 | active: true,
24 | },
25 | },
26 | };
27 |
28 | import { loginMessage } from 'base/actions/WindowMessage';
29 |
30 | import {
31 | addPageToTabs,
32 | hasActive,
33 | removeLastActive,
34 | deletePageFromTabs,
35 | normalizeTabs,
36 | saveCurrentUrlToPlus,
37 | } from '../utils/tabTools.js';
38 |
39 | it('Should create jsonld store, and get plus from crossStorage', () => {
40 | setMock(mockval);
41 | // loginMessage.onNext({wrioID:'558153389649',temporary:false,profile: {}}); // fake got wrio id request
42 | const state = plusReducer(undefined, { type: 'DUMMY_ACTION' });
43 | expect(state).not.toEqual(undefined);
44 | });
45 |
--------------------------------------------------------------------------------
/src/iframes/Pinger/js/iframeresize.js:
--------------------------------------------------------------------------------
1 | // Utility to send iframe height to the master frame
2 |
3 | (function () {
4 | const throttle = function (type, name, obj) {
5 | obj = obj || window;
6 | let running = false;
7 | const func = function () {
8 | if (running) {
9 | return;
10 | }
11 | running = true;
12 | requestAnimationFrame(() => {
13 | // For IE compatibility
14 | const evt = document.createEvent('CustomEvent');
15 | evt.initCustomEvent(name, false, false, {
16 | cmd: 'resize',
17 | });
18 | obj.dispatchEvent(evt);
19 | // obj.dispatchEvent(new CustomEvent(name));
20 | running = false;
21 | });
22 | };
23 | obj.addEventListener(type, func);
24 | };
25 |
26 | /* init - you can init any event */
27 | throttle('resize', 'optimizedResize');
28 | }());
29 |
30 | // handle event
31 | window.addEventListener('optimizedResize', () => {
32 | frameReady();
33 | });
34 |
35 | window.frameReady = () => {
36 | const ht = $('#frame_container').outerHeight(true);
37 | console.log(ht);
38 | parent.postMessage(JSON.stringify({ pingerHeight: ht }), '*'); // signal that iframe is renered and ready to go, so we can calculate it's actual height now
39 | return true;
40 | };
41 |
--------------------------------------------------------------------------------
/src/iframes/webGold/js/components/PresaleForm/PaymentData.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import QRCode from "../../3rdparty/qrcode";
3 | import PropTypes from "prop-types";
4 |
5 | class PaymentData extends React.Component {
6 | constructor(props) {
7 | super(props);
8 | }
9 |
10 | componentDidMount() {
11 | console.log("PaymentData Mounted");
12 | new QRCode(document.getElementById("qrcode"), this.props.adress);
13 | }
14 |
15 | render() {
16 | return (
17 | 21 | Please send {this.props.amount}BTC to the address{" "} 22 | {this.props.adress} 23 |
24 |There is nothing, yet...
List of deferred payments, when user have 0 WRG balance
24 || id | 28 |TO | 29 |AMOUNT | 30 | 31 |TIMESTAMP | 32 |
|---|---|---|---|
| {item.id} | 39 |{item.to} | 40 |{item.amount / 100} | 41 |{moment(item.timestamp).format("H:mm:ss DD.MM.YYYY")} | 42 |
{p}
; 31 | }); 32 | } 33 | 34 | render() { 35 | let figcaption; 36 | if (this.name) { 37 | let desc = 38 | typeof this.description == "object" 39 | ? this.renderParagraphs(this.description) 40 | : this.description; 41 | figcaption = ( 42 |{desc}
45 |{this.state.description}
60 |List of newly emitted WRG's
51 || WRIOID | 55 |Amount | 56 |Timestamp | 57 |
|---|---|---|
| {item.userID} | 64 |{item.amount / 100} | 65 |{moment(item.timestamp).format("H:mm:ss DD.MM.YYYY")} | 66 |
| Source | 53 |Destination | 54 |Amount | 55 |Timestamp | 56 |Success | 57 |
|---|---|---|---|---|
| {item.srcWrioID} | 64 |{item.destWrioID} | 65 |{item.amount / 100} | 66 |{moment(item.timestamp).format("H:mm:ss DD.MM.YYYY")} | 67 |68 | |
| Bitcoin Adress | 40 |Amount | 41 |Time | 42 |Status | 43 |
|---|---|---|---|
| {item.input_address} | 56 |{amount} | 57 |{item.timestamp} | 58 |{item.state} | 59 |
| Wrio ID | 43 |Bitcoin Adress | 44 |Amount | 45 |Time | 46 |Status | 47 |
|---|---|---|---|---|
| {item.wrioID} | 60 |{item.input_address} | 61 |{amount} | 62 |{moment(item.timestamp).format("H:mm:ss DD.MM.YYYY")} | 63 |{item.state} | 64 |
51 | Description: to ensure proper user account operation each accound is 52 | feeded with minimal ether amount to perform opartion. Each ether 53 | withdrawal by user is logged in this page 54 |
55 || Amount | 59 |Ethereum account | 60 |Timestamp | 61 |
|---|---|---|
| {item.amount} | 68 |{item.eth_account} | 69 |{moment(item.timestamp).format("H:mm:ss DD.MM.YYYY")} | 70 |
| Ethereum ID | 42 |BTC Adress | 43 |BTC Amount | 44 |Time | 45 |Status | 47 ||
|---|---|---|---|---|---|
| {item.ethID || ""} | 60 |{item.address || ""} | 61 |{amount || ""} | 62 |{moment(item.timestamp).format("H:mm:ss DD.MM.YYYY")} | 63 |{item.email || ""} | 64 |{item.state || ""} | 65 |