-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from oceanprotocol/fix/issue-83-refactor-dbs-u…
…ploader refactor code to remove refs to dbs
- Loading branch information
Showing
17 changed files
with
136 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# WALLET | ||
PUBLIC_INFURA_PROJECT_ID="" | ||
PUBLIC_WALLETCONNECT_PROJECT_ID="" | ||
|
||
# DBS | ||
UPLOADER_URL="" | ||
UPLOADER_ACCOUNT="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { create } from '@storybook/theming/create'; | ||
|
||
export default create({ | ||
brandTitle: 'Ocean DBS UI Library', | ||
brandUrl: 'https://github.com/oceanprotocol/dbs-ui-lib', | ||
brandTitle: 'Ocean Uploader UI Library', | ||
brandUrl: 'https://github.com/oceanprotocol/uploader-ui-lib', | ||
brandImage: 'https://oceanprotocol.com/static/2db93b91a20e45673d4116ee79532142/logo-white.svg', | ||
brandTarget: '_self', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { UploaderClient } from "@oceanprotocol/uploader" | ||
|
||
interface TabsProps { | ||
items: dbs_setting[] | ||
items: uploader_setting[] | ||
className?: string | ||
dbsClient: DBSClient | ||
uploaderClient: UploaderClient | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
require('dotenv').config() | ||
import React from "react"; | ||
import { StoryFn, Meta } from "@storybook/react"; | ||
import Uploader from "./index"; | ||
|
||
export default { | ||
title: "Uploader UI Library/Uploader", | ||
component: Uploader, | ||
parameters:{ | ||
controls:{ | ||
exclude:/.*/g | ||
} | ||
} | ||
} as Meta<typeof Uploader>; | ||
|
||
const Template: StoryFn<typeof Uploader> = (args) => <Uploader {...args} />; | ||
|
||
export const UploaderArgs = Template.bind({}); | ||
console.log('Uploader starting in: ', process.env.UPLOADER_URL, process.env.UPLOADER_ACCOUNT); | ||
|
||
UploaderArgs.args = { | ||
uploader_url: process.env.UPLOADER_URL, | ||
uploader_account: process.env.UPLOADER_ACCOUNT, | ||
infuraId: process.env.PUBLIC_INFURA_PROJECT_ID, | ||
walletConnectProjectId: process.env.PUBLIC_WALLETCONNECT_PROJECT_ID, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.UploaderConnection { | ||
padding: 15px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.