Skip to content

Commit

Permalink
Update to Superalgos project
Browse files Browse the repository at this point in the history
  • Loading branch information
bearcanrun committed Jan 12, 2019
1 parent 6e28d93 commit 25418ee
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PORT=port
SITE_URL=site-url

FACEBOOK_APP_ID=facebook-app-id
2 changes: 1 addition & 1 deletion .storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { configure } from '@storybook/react';

setOptions({
addonPanelInRight: true,
name: "Advanced Algos Web Components",
name: "Superalgos Web Components",
});

// automatically import all files ending in *.stories.js
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Advanced Algos Web Components
[![npm version](https://badge.fury.io/js/%40advancedalgos%2Fweb-components.svg)](https://badge.fury.io/js/%40advancedalgos%2Fweb-components)
# Superalgos Web Components
[![npm version](https://badge.fury.io/js/%40superalgos%2Fweb-components.svg)](https://badge.fury.io/js/%40superalgos%2Fweb-components)

## Introduction

The is a repository for shared React web components between the Advanced Algos platform modules.
The is a repository for shared React web components between the Superalgos platform modules.


* [Installation](#installation)
Expand All @@ -25,7 +25,7 @@ This is a [Node.js](https://nodejs.org/en/) module available through the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):

```sh
$ npm install @advancedalgos/web-components
$ npm install @superalgos/web-components
```

# Usage
Expand All @@ -35,7 +35,7 @@ The Message Card is a simple component for outputting a message within a card. G

```javascript
import React from 'react'
import { MessageCard } from '@advancedalgos/web-components'
import { MessageCard } from '@superalgos/web-components'

export const YourComponent = () => (
<div>
Expand All @@ -62,7 +62,7 @@ View the [Full Example](#full-example) for examples with use of client-side Grap

```javascript
import React from 'react'
import { MessageCard, ImageUpload } from '@advancedalgos/web-components'
import { MessageCard, ImageUpload } from '@superalgos/web-components'

const YourComponent = ({ handleAvatar, filename, containerName, avatar, AzureStorageUrl, AzureSASURL }) => (
<React.Fragment>
Expand Down Expand Up @@ -134,7 +134,7 @@ export default YourComponent
```javascript
import React, { Component } from 'react'
import gql from 'graphql-tag'
import { MessageCard, ImageUpload } from '@advancedalgos/web-components'
import { MessageCard, ImageUpload } from '@superalgos/web-components'

const GET_AZURE_SAS = gql`
mutation getAzureSAS($containerName: String!) {
Expand Down Expand Up @@ -315,13 +315,13 @@ Supports basic meta data as well as metadata for Twitter and Facebook

```javascript
import React from 'react'
import { Page, MessageCard } from '@advancedalgos/web-components'
import { Page, MessageCard } from '@superalgos/web-components'

export const YourComponent = () => (
<Page
title='Advanced Algos Development Platform'
title='Superalgos Development Platform'
subtitile='A Platform View'
description='This describes the current view of the Advanced Algos Development Platform'
description='This describes the current view of the Superalgos Development Platform'
>
<MessageCard message={text('Message', 'This message is wrapped by a page component. Check header source to see inserted metadata.')} />
</Page>
Expand All @@ -333,7 +333,7 @@ export const YourComponent = () => (
| `title` | String | --- | Title of site |
| `subtitle` | String | --- | Title of current view |
| `description` | String | --- | Description of current view |
| `twitter` | String | --- | Twitter handle (eg. @advancedalgos) and enables Twitter card metadata |
| `twitter` | String | --- | Twitter handle (eg. @superalgos) and enables Twitter card metadata |
| `facebook` | Boolean | --- | Enables Facebook OpenGraph metadata |
| `image` | string | --- | URL of image that represents current view |
| `<children>` | Node | --- | Can accept children nodes.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@advancedalgos/web-components",
"description": "Shared web components for Advanced Algos modules",
"name": "@superalgos/web-components",
"description": "Shared web components for Superalgos modules",
"version": "0.0.18",
"author": "Advanced Algos, Ltd",
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "https://github.com/AdvancedAlgos/WebComponents.git"
"url": "https://github.com/Superalgos/WebComponents.git"
},
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion src/image-upload/__tests__/CropperDialog.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const cropPreview = {
height: 350
}
const placeHolder =
'https://aadevelop.blob.core.windows.net/module-web-components/assets/aa-logo.png'
'https://aadevelop.blob.core.windows.net/module-web-components/assets/Superalgos-logo-horz-sm.jpg'

const ComponentNaked = unwrap(CropperDialog)

Expand Down
4 changes: 2 additions & 2 deletions src/image-upload/stories/image-upload.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ImageUpload from '../index'
import { CropperDialog, DropZone, ImagePreview } from '../components'

const placeholder =
'https://aadevelop.blob.core.windows.net/module-web-components/assets/aa-logo.png'
'https://aadevelop.blob.core.windows.net/module-web-components/assets/Superalgos-logo-horz-sm.jpg'

storiesOf('ImageUpload', module)
.addDecorator(withKnobs)
Expand Down Expand Up @@ -46,7 +46,7 @@ storiesOf('ImageUpload', module)
dropzoneStyle={{ height: 200 }}
AzureStorageUrl={text(
'AzureStorageUrl',
'https://algobotcommstorage.blob.core.windows.net/'
'https://[storageURL].blob.core.windows.net/'
)}
AzureSASURL={text(
'AzureSASURL',
Expand Down
4 changes: 2 additions & 2 deletions src/page/stories/page.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ storiesOf('Page', module)
<Router>
<Route path='/' component={props => (
<Page
title='Advanced Algos'
title='Superalgos project'
subtitile='Development Platform'
description='This is a description of the Advanced Algos Development Platform'
description='This is a description of the Superalgos Development Platform'
>
<MessageCard message={text('Message', 'This message is wrapped by a page component. Check header source to see inserted metadata.')} />
</Page>
Expand Down

0 comments on commit 25418ee

Please sign in to comment.