Final Refactoring from Advanced Algos to Superalgos

This commit is contained in:
Luis Fernando Molina committed 2019-01-11 16:11:48 +01:00
1 parent a5fbb8e1ab
commit 129367cbb4
21 files changed
+70 -70

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at superalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
+2 -2
View File
@@ -61,7 +61,7 @@ In the client of the module to be developed:
npm link
```
Make note of the module package name — the name in the module's client package.json. *e.g. @advancedalgos/key-vault-client*
Make note of the module package name — the name in the module's client package.json. *e.g. @superalgos/key-vault-client*
In the Master app client dir link the developing module:
@@ -70,7 +70,7 @@ In the Master app client dir link the developing module:
npm link <module-package-name>
e.g.
npm link @advancedalgos/key-vault-client
npm link @superalgos/key-vault-client
```
### Starting a new module
+4 -4
View File
@@ -4,12 +4,12 @@ NODE_ENV=development
#Graphql API
DEV_GRAPHQL=http://localhost:4100/graphql
PROD_GRAPHQL=https://app.advancedalgos.net/graphql
PROD_GRAPHQL=https://app.superalgos.org/graphql
#Auth0 Server
AUTH0_DOMAIN=advancedalgos.eu.auth0.com
AUTH0_AUDIENCE=https://auth-dev.advancedalgos.net
AUTH0_ISSUER=https://advancedalgos.eu.auth0.com/
AUTH0_DOMAIN=superalgos.eu.auth0.com
AUTH0_AUDIENCE=https://auth-dev.superalgos.org
AUTH0_ISSUER=https://superalgos.eu.auth0.com/
AUTH0_CLIENTID=<auth0-client-id>
#Auth0 Client
+1 -1
View File
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at superalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
+4 -4
View File
@@ -13,8 +13,8 @@
<link rel="shortcut icon" type="image/png/ico" href="/favicon.ico" />
<script src="https://unpkg.com/apollo-client-browser@1.7.0"></script>
<script type="text/javascript" src="https://charts-dev.advancedalgos.net/Scripts/require.js"></script>
<script type="text/javascript" src="https://charts-dev.advancedalgos.net/Scripts/AppPreLoader.js"></script>
<script type="text/javascript" src="https://charts-dev.superalgos.org/Scripts/require.js"></script>
<script type="text/javascript" src="https://charts-dev.superalgos.org/Scripts/AppPreLoader.js"></script>
<script type="text/javascript">
function loadCanvas(){
@@ -25,9 +25,9 @@
executingAt: 'Master App',
visible: false,
topMargin: 130,
urlPrefix: 'https://charts-dev.advancedalgos.net/' , /* 'http://localhost:1337/' */ /* 'https://charts-dev.advancedalgos.net/' */
urlPrefix: 'https://charts-dev.superalgos.org/' , /* 'http://localhost:1337/' */ /* 'https://charts-dev.superalgos.org/' */
graphQL: {
masterAppApiUrl: 'https://platform-api-dev.advancedalgos.net/graphql'
masterAppApiUrl: 'https://platform-api-dev.superalgos.org/graphql'
},
context: {}
};
+17 -17
View File
@@ -4,9 +4,9 @@
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@advancedalgos/events-client": {
"@superalgos/events-client": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/@advancedalgos/events-client/-/events-client-0.0.4.tgz",
"resolved": "https://registry.npmjs.org/@superalgos/events-client/-/events-client-0.0.4.tgz",
"integrity": "sha512-8kwr6IB7AaoZzhLzeGZFTLowTxetOWOwSX4vb0YJQZBA1FJ/CQSU7ARD3WPdyTQAWOOSrquddC6SzLgg11MuiA==",
"dev": true,
"requires": {
@@ -25,9 +25,9 @@
"react-sortable-hoc": "0.8.4"
}
},
"@advancedalgos/financial-beings-client": {
"@superalgos/financial-beings-client": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/@advancedalgos/financial-beings-client/-/financial-beings-client-0.0.5.tgz",
"resolved": "https://registry.npmjs.org/@superalgos/financial-beings-client/-/financial-beings-client-0.0.5.tgz",
"integrity": "sha512-N2g7LQ+bWeznV7gDqaxoVsgQuBaZENIZhfpmBtKd6NcSXOU69RUfzo3rMnhJ2ZGE4iVCo7odCPADAHhE+Qting==",
"dev": true,
"requires": {
@@ -48,9 +48,9 @@
"react-sortable-hoc": "0.8.4"
}
},
"@advancedalgos/key-vault-client": {
"@superalgos/key-vault-client": {
"version": "0.0.25",
"resolved": "https://registry.npmjs.org/@advancedalgos/key-vault-client/-/key-vault-client-0.0.25.tgz",
"resolved": "https://registry.npmjs.org/@superalgos/key-vault-client/-/key-vault-client-0.0.25.tgz",
"integrity": "sha512-CDGm4/ITV1sa01LNFh5LVlrd3OcwAAcL2ffNr7CZ+w2JRjZX6UnIzC21ZmypLZoTNmT34L8xk5dd7Tq3rh2TyQ==",
"dev": true,
"requires": {
@@ -68,9 +68,9 @@
"react-router-dom": "4.3.1"
}
},
"@advancedalgos/operations-client": {
"@superalgos/operations-client": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/@advancedalgos/operations-client/-/operations-client-0.0.1.tgz",
"resolved": "https://registry.npmjs.org/@superalgos/operations-client/-/operations-client-0.0.1.tgz",
"integrity": "sha512-ulh2RGQiX1mzCrXYYlii4r48V1ylgtpBWcVprlNgrrNR3scZWG3dbXU97/0Dv+eUG2jc/MfAQqJicWuTKYoQFQ==",
"dev": true,
"requires": {
@@ -88,13 +88,13 @@
"react-router-dom": "4.3.1"
}
},
"@advancedalgos/teams-client": {
"@superalgos/teams-client": {
"version": "0.0.32",
"resolved": "https://registry.npmjs.org/@advancedalgos/teams-client/-/teams-client-0.0.32.tgz",
"resolved": "https://registry.npmjs.org/@superalgos/teams-client/-/teams-client-0.0.32.tgz",
"integrity": "sha512-G8f5Jmso+6OTUUVafyOyfmaBC1GasX68dm5DjeJn7c8KVnDA8gU1Zm2yebDTPsoHMyvk6/eJIF6jISiaW6Itsw==",
"dev": true,
"requires": {
"@advancedalgos/web-components": "0.0.17",
"@superalgos/web-components": "0.0.17",
"@azure/storage-blob": "10.0.0-preview",
"apollo-cache-inmemory": "1.3.11",
"apollo-client": "2.4.7",
@@ -123,9 +123,9 @@
"subscriptions-transport-ws": "0.9.15"
},
"dependencies": {
"@advancedalgos/web-components": {
"@superalgos/web-components": {
"version": "0.0.17",
"resolved": "https://registry.npmjs.org/@advancedalgos/web-components/-/web-components-0.0.17.tgz",
"resolved": "https://registry.npmjs.org/@superalgos/web-components/-/web-components-0.0.17.tgz",
"integrity": "sha512-xD+0E4XBltgIxH/9TkzMS6a6iz7973YjxOzEr2O/D93lGIeHaYJQTDwykOLtSocuSaSSYRzxFlf82pVh22wLIA==",
"dev": true,
"requires": {
@@ -162,9 +162,9 @@
}
}
},
"@advancedalgos/users-client": {
"@superalgos/users-client": {
"version": "0.0.24",
"resolved": "https://registry.npmjs.org/@advancedalgos/users-client/-/users-client-0.0.24.tgz",
"resolved": "https://registry.npmjs.org/@superalgos/users-client/-/users-client-0.0.24.tgz",
"integrity": "sha512-Ab5crZqo3CGlUVnwNFO/Ym3KYGUHg3XwoGCOHspBrsdijQ4IiKHo8Kp/IMd1kfJ/JvQloiuFH5Nc1UqcgBl6hQ==",
"dev": true,
"requires": {
@@ -226,9 +226,9 @@
}
}
},
"@advancedalgos/web-components": {
"@superalgos/web-components": {
"version": "0.0.18",
"resolved": "https://registry.npmjs.org/@advancedalgos/web-components/-/web-components-0.0.18.tgz",
"resolved": "https://registry.npmjs.org/@superalgos/web-components/-/web-components-0.0.18.tgz",
"integrity": "sha512-zkfIRdiyJwRhtdcyTEltx3gQcVZPFh8IYMIDiFbFBfWbihwYLHpDQctR9DjSOCFeUsNqbV6OCzaSD7pZa51w8Q==",
"dev": true,
"requires": {
+7 -7
View File
@@ -25,13 +25,13 @@
},
"homepage": "https://github.com/Algoteers/MasterApp#readme",
"devDependencies": {
"@advancedalgos/events-client": "0.0.4",
"@advancedalgos/financial-beings-client": "0.0.5",
"@advancedalgos/key-vault-client": "0.0.25",
"@advancedalgos/teams-client": "0.0.32",
"@advancedalgos/users-client": "0.0.24",
"@advancedalgos/web-components": "0.0.18",
"@advancedalgos/operations-client": "0.0.1",
"@superalgos/events-client": "0.0.4",
"@superalgos/financial-beings-client": "0.0.5",
"@superalgos/key-vault-client": "0.0.25",
"@superalgos/teams-client": "0.0.32",
"@superalgos/users-client": "0.0.24",
"@superalgos/web-components": "0.0.18",
"@superalgos/operations-client": "0.0.1",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
+6 -6
View File
@@ -14,12 +14,12 @@ import Auth from './auth'
import { Layout, Home, Charts, Callback, EmailSignupConfirm } from './views'
import Users from '@advancedalgos/users-client'
import Teams from '@advancedalgos/teams-client'
import Events from '@advancedalgos/events-client'
import KeyVault from '@advancedalgos/key-vault-client'
import FinancialBeings from '@advancedalgos/financial-beings-client'
import Operations from '@advancedalgos/operations-client'
import Users from '@superalgos/users-client'
import Teams from '@superalgos/teams-client'
import Events from '@superalgos/events-client'
import KeyVault from '@superalgos/key-vault-client'
import FinancialBeings from '@superalgos/financial-beings-client'
import Operations from '@superalgos/operations-client'
export const auth = new Auth(
result => console.log('Authentication successful.'),
+1 -1
View File
@@ -338,7 +338,7 @@ header.menu{
.bannerTopBar{
background-position: center center;
background-size: cover;
background-image: url(https://advancedalgos.net/img/photos/teams.jpg);
background-image: url(https://superalgos.org/img/photos/teams.jpg);
width: 100%;
height: 220px;
&.big{
+1 -1
View File
@@ -6,7 +6,7 @@ const Callback = () => <BannerTopBar
size='big'
title=''
text='Authenticating...'
backgroundUrl='https://advancedalgos.net/img/photos/superalgos-platform.jpg'
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
/>
export default Callback
+1 -1
View File
@@ -44,7 +44,7 @@ class Charts extends Component {
size='medium'
title=''
text='Charts loading...'
backgroundUrl='https://advancedalgos.net/img/photos/superalgos-platform.jpg'
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
/>
)
}
@@ -43,7 +43,7 @@ export class SignupVerifyResponse extends React.Component {
size='big'
title={BannerTitle}
text={BannerText}
backgroundUrl='https://advancedalgos.net/img/photos/superalgos-platform.jpg'
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
/>
)
}
@@ -63,7 +63,7 @@ export class SignupVerifyResponse extends React.Component {
size='big'
title='Mailing Sign-Up Complete!'
text='We look forward to keeping you up-to-date on the Superalgos project.'
backgroundUrl='https://advancedalgos.net/img/photos/superalgos-platform.jpg'
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
>
{displayForm && <SignupForm alignCenter />}
</BannerTopBar>
@@ -76,7 +76,7 @@ export class SignupVerifyResponse extends React.Component {
size='big'
title='Processing...'
text=''
backgroundUrl='https://advancedalgos.net/img/photos/superalgos-platform.jpg'
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
/>
)
}
+1 -1
View File
@@ -27,7 +27,7 @@ export const EmailSignupConfirm = ({ tokenParam }) => {
size='big'
title=''
text={BannerText}
backgroundUrl='https://advancedalgos.net/img/photos/superalgos-platform.jpg'
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
/>
)
}
+3 -3
View File
@@ -10,7 +10,7 @@ class Home extends Component {
size='big'
title='Superalgos Platform'
text='People and machines working together to create Superalgos'
backgroundUrl='https://advancedalgos.net/img/photos/superalgos-platform.jpg'
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
/>
<div className='homePage container'>
<Typography variant='h1' align='center' className='title'>Welcome to the Superalgos Platform!</Typography>
@@ -28,11 +28,11 @@ class Home extends Component {
</div>
<div className='column'>
<Typography align='justify'>
Feel free to explore the menu in the top-right corner or visit the <a href='https://www.advancedalgos.net/documentation-quick-start.shtml' target='_blank'>Quick Start Guide</a>.
Feel free to explore the menu in the top-right corner or visit the <a href='https://www.superalgos.org/documentation-quick-start.shtml' target='_blank'>Quick Start Guide</a>.
Reporting of bugs at the corresponding <a href='https://github.com/Superalgos' target='_blank' rel='nofollow'>Superalgos Github repository</a> is highly appreciated.
</Typography>
<Typography align='justify'>
Get in touch with the rest of the community and get answers to your questions in our <a href='https://t.me/advancedalgoscommunity' target='_blank' rel='nofollow'>Telegram Group</a>.
Get in touch with the rest of the community and get answers to your questions in our <a href='https://t.me/superalgoscommunity' target='_blank' rel='nofollow'>Telegram Group</a>.
Have fun!
</Typography>
</div>
+3 -3
View File
@@ -41,7 +41,7 @@ class Footer extends Component {
<Typography className={classNames(classes.textLight, classes.descriptionText)} ><strong>Superalgos Ltd.</strong></Typography>
<Typography className={classNames(classes.textLight, classes.descriptionText)} gutterBottom>Ground Floor, Palace Court, Church Street,<br />St. Julians&nbsp;STJ3049, Malta</Typography>
<Typography className={classNames(classes.textLight, classes.descriptionText)}>
<a target='_blank' href='https://www.advancedalgos.net/legal-privacy-statement.shtml' className={classes.linkLight}>Privacy Statement</a> | <a target='_blank' href='https://www.advancedalgos.net/legal-terms-of-service.shtml' className={classes.linkLight}>Terms of Service</a>
<a target='_blank' href='https://www.superalgos.org/legal-privacy-statement.shtml' className={classes.linkLight}>Privacy Statement</a> | <a target='_blank' href='https://www.superalgos.org/legal-terms-of-service.shtml' className={classes.linkLight}>Terms of Service</a>
</Typography>
<Typography variant='body2' className={classNames(classes.textLight, classes.copyright)} gutterBottom>&copy; Superalgos, Ltd. 2018 | All Rights Reserved.</Typography>
</Grid>
@@ -51,13 +51,13 @@ class Footer extends Component {
<SignupForm displayTitle displayIntro />
<Typography variant='subtitle1' className={classes.textWhite} style={{ textAlign: width === 'xs' ? 'center' : '' }}>Meet us on Social Networks:</Typography>
<Grid container justify={width === 'xs' ? 'center' : 'flex-start'}>
<a target='_blank' href='https://t.me/advancedalgoscommunity' title='Join us on Telgram' className={classes.linkLight}>
<a target='_blank' href='https://t.me/superalgoscommunity' title='Join us on Telgram' className={classes.linkLight}>
<FontAwesomeIcon
icon={faTelegramPlane}
className={classNames(classes.icon, classes.iconHover)}
/>
</a>
<a target='_blank' href='https://twitter.com/advancedalgos' title='Follow us on Twitter' className={classes.linkLight}>
<a target='_blank' href='https://twitter.com/superalgos' title='Follow us on Twitter' className={classes.linkLight}>
<FontAwesomeIcon
icon={faTwitter}
className={classNames(classes.icon, classes.iconHover)}
+1 -1
View File
@@ -35,7 +35,7 @@ export const LoggedIn = props => {
<ul className='subMenu'>
<li><Link to='/users/user' onClick={() => closeAll()}> Your Profile </Link></li>
<li><a href='#' onClick={() => auth.logout()}> Logout </a></li>
<li><a href='https://www.advancedalgos.net'> Exit Platform </a></li>
<li><a href='https://www.superalgos.org'> Exit Platform </a></li>
</ul>
</li>
)
+1 -1
View File
@@ -134,7 +134,7 @@ class Header extends Component {
</li>
{menus}
<li className='primaryLink'>
<a href='https://www.advancedalgos.net/documentation-quick-start.shtml'> Docs </a>
<a href='https://www.superalgos.org/documentation-quick-start.shtml'> Docs </a>
</li>
{this.state.user !== undefined && this.state.user !== null ? (
<LoggedIn
@@ -9,12 +9,12 @@ module.exports = {
rules: [
{
test: /\.js$/,
include: /node_modules\\@advancedalgos/,
include: /node_modules\\@superalgos/,
loader: 'babel-loader'
},
{
test: /\.js$/,
include: /node_modules\/@advancedalgos/,
include: /node_modules\/@superalgos/,
loader: 'babel-loader'
},
{
+1 -1
View File
@@ -16,6 +16,6 @@ The symlinks in
1. Navigate to your module client.
2. Run `npm link`
3. Navigate `MasterApp/client`.
4. Run `npm link [you-module-package]`. eg `npm link @advancedalgos/teams-client`
4. Run `npm link [you-module-package]`. eg `npm link @superalgos/teams-client`
5. Start server: `npm run dev`
6. When a change is made in your module, after a second or two, the browser page should update without reloading.
+9 -9
View File
@@ -7,18 +7,18 @@ KEYVAULT_API_PRESHARED=THIS_IS_VERY_SECRET
FINANCIAL_BEINGS_API_PRESHARED=THIS_IS_VERY_SECRET
NOTIFICATIONS_API_PRESHARED=THIS_IS_VERY_SECRET
# PROJECT_SITE_URL=https://advancedalgos.net
# PROJECT_SITE_URL=https://superalgos.org
PROJECT_SITE_URL=http://localhost:3999
# PLATFORM_URL=https://platform.advancedalgos.net
# PLATFORM_URL=https://platform.superalgos.org
PLATFORM_URL=http://localhost:3100
GRAPHQL_API_URL=https://platform-api-dev.advancedalgos.net/graphql
TEAMS_API_URL=https://teams-api-dev.advancedalgos.net/graphql
USERS_API_URL=https://users-api-dev.advancedalgos.net/graphql
EVENTS_API_URL=https://events-api-dev.advancedalgos.net/graphql
KEYVAULT_API_URL=https://keyvault-api-dev.advancedalgos.net/graphql
FINANCIAL_BEINGS_API_URL=https://financialbeings-api-dev.advancedalgos.net/graphql
NOTIFICATIONS_API_URL=https://notifications-api-dev.advancedalgos.net/graphql
GRAPHQL_API_URL=https://platform-api-dev.superalgos.org/graphql
TEAMS_API_URL=https://teams-api-dev.superalgos.org/graphql
USERS_API_URL=https://users-api-dev.superalgos.org/graphql
EVENTS_API_URL=https://events-api-dev.superalgos.org/graphql
KEYVAULT_API_URL=https://keyvault-api-dev.superalgos.org/graphql
FINANCIAL_BEINGS_API_URL=https://financialbeings-api-dev.superalgos.org/graphql
NOTIFICATIONS_API_URL=https://notifications-api-dev.superalgos.org/graphql
AUTH0_DOMAIN=auth0-domain
AUTH0_AUDIENCE=auth0-audience
+1 -1
View File
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at superalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.