From 25418ee2b9d7aba58708f9c1e47830c956ee89e6 Mon Sep 17 00:00:00 2001 From: Barry Low Date: Fri, 11 Jan 2019 19:05:22 -0800 Subject: [PATCH] Update to Superalgos project --- .env.sample | 4 ++++ .storybook/config.js | 2 +- README.md | 22 +++++++++---------- package.json | 6 ++--- .../__tests__/CropperDialog.test.js | 2 +- .../stories/image-upload.stories.js | 4 ++-- src/page/stories/page.stories.js | 4 ++-- 7 files changed, 24 insertions(+), 20 deletions(-) diff --git a/.env.sample b/.env.sample index e69de29..84e7cef 100644 --- a/.env.sample +++ b/.env.sample @@ -0,0 +1,4 @@ +PORT=port +SITE_URL=site-url + +FACEBOOK_APP_ID=facebook-app-id diff --git a/.storybook/config.js b/.storybook/config.js index ee6d095..73ea375 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -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 diff --git a/README.md b/README.md index 91ac40e..f0b27e1 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 @@ -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 = () => (
@@ -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 }) => ( @@ -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!) { @@ -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 = () => ( @@ -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 | | `` | Node | --- | Can accept children nodes. diff --git a/package.json b/package.json index 224b299..c061ae6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/image-upload/__tests__/CropperDialog.test.js b/src/image-upload/__tests__/CropperDialog.test.js index 6af9a1d..e3a9291 100644 --- a/src/image-upload/__tests__/CropperDialog.test.js +++ b/src/image-upload/__tests__/CropperDialog.test.js @@ -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) diff --git a/src/image-upload/stories/image-upload.stories.js b/src/image-upload/stories/image-upload.stories.js index 4779f2a..2319f5c 100644 --- a/src/image-upload/stories/image-upload.stories.js +++ b/src/image-upload/stories/image-upload.stories.js @@ -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) @@ -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', diff --git a/src/page/stories/page.stories.js b/src/page/stories/page.stories.js index 381ba46..352e3c4 100644 --- a/src/page/stories/page.stories.js +++ b/src/page/stories/page.stories.js @@ -14,9 +14,9 @@ storiesOf('Page', module) (