forked from polkadot-js/apps
-
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.
[Substrate Files] New files module (polkadot-js#6106)
* Upgrade crust-pin to Crust Mainnet * Update yarn lock * Files Module (#6) * Describe file's README * Change Endpoint name and location * Update file's README * Add locales for files * Files Module (#6) * Describe file's README * Change Endpoint name and location * Update file's README * Add locales for files * Update yarn locks file * Update Crust Pinner to bearer authorization (#7) * Fix yarn lock * Add folder support (#8) * Add folder support * Fix * Fix files download * Fix translation * Upgrade react component * Fix ipfs gateway (#9) * Fix yarnlock * Upgrade metadata * Resolve polkadot-js version * Change copyright * Fix lint(copyright) Co-authored-by: Eericxu <[email protected]> Co-authored-by: Gavin Fu <[email protected]> Co-authored-by: Yashiro <[email protected]>
- Loading branch information
1 parent
7be8f22
commit 0d0bb48
Showing
27 changed files
with
1,326 additions
and
2 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
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,32 @@ | ||
// Copyright 2017-2022 @polkadot/apps-config authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import type { TFunction } from 'i18next'; | ||
import type { AuthIpfsEndpoint } from './types'; | ||
|
||
// Definitions here are with the following values - | ||
// info: the name of a logo as defined in ../ui/logos, specifically in namedLogos | ||
// text: the IPFS endpoint name | ||
// value: the IPFS endpoint domain | ||
// location: IPFS gateway location | ||
export function createAuthIpfsEndpoints (t: TFunction): AuthIpfsEndpoint[] { | ||
return [ | ||
{ | ||
location: t('Singapore'), | ||
text: t('DCF'), | ||
value: 'https://crustipfs.xyz' | ||
}, | ||
{ | ||
location: t('Seattle'), | ||
text: t('Crust Network'), | ||
value: 'https://crustwebsites.net' | ||
}, | ||
{ | ||
location: t('Berlin'), | ||
text: t('⚡️ Thunder Gateway'), | ||
value: 'https://gw.crustapps.net' | ||
} | ||
]; | ||
} | ||
|
||
export type { AuthIpfsEndpoint }; |
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,8 @@ | ||
// Copyright 2017-2022 @polkadot/apps-config authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
export interface AuthIpfsEndpoint { | ||
text?: string; | ||
value: string; | ||
location?: string; | ||
} |
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,20 @@ | ||
// Copyright 2017-2022 @polkadot/apps-routing authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import type { TFunction } from 'i18next'; | ||
import type { Route } from './types'; | ||
|
||
import Component from '@polkadot/app-files'; | ||
|
||
export default function create (t: TFunction): Route { | ||
return { | ||
Component, | ||
display: { | ||
needsApi: [] | ||
}, | ||
group: 'files', | ||
icon: 'file', | ||
name: 'files', | ||
text: t('nav.files', 'Files', { ns: 'apps-routing' }) | ||
}; | ||
} |
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,40 @@ | ||
{ | ||
"Copy file cid": "Copy file cid", | ||
"Copy link": "Copy link", | ||
"Crust Pinner": "Crust Pinner", | ||
"Do not upload files larger than 100MB!": "Do not upload files larger than 100MB!", | ||
"Download": "Download", | ||
"Export": "Export", | ||
"File": "File", | ||
"File streaming and wallet authentication will be processed by the chosen gateway.": "File streaming and wallet authentication will be processed by the chosen gateway.", | ||
"Folder": "Folder", | ||
"Import": "Import", | ||
"Import Success": "Import Success", | ||
"Import files": "Import files", | ||
"Importing": "Importing", | ||
"Loading": "Loading", | ||
"Need to connect a plug-in wallet or import an account first": "Need to connect a plug-in wallet or import an account first", | ||
"No files": "No files", | ||
"Note: The file list is cached locally, switching browsers or devices will not keep displaying the original browser information.": "Note: The file list is cached locally, switching browsers or devices will not keep displaying the original browser information.", | ||
"Please choose account": "Please choose account", | ||
"Please do not upload more than 2000 files": "Please do not upload more than 2000 files", | ||
"Please select non-empty folder": "Please select non-empty folder", | ||
"Select a Web3 IPFS Gateway": "Select a Web3 IPFS Gateway", | ||
"Select a Web3 IPFS Pinner": "Select a Web3 IPFS Pinner", | ||
"Sign and Upload": "Sign and Upload", | ||
"The account's password specified at the creation of this account.": "The account's password specified at the creation of this account.", | ||
"Upload": "Upload", | ||
"Upload File": "Upload File", | ||
"View status in Crust": "View status in Crust", | ||
"Your Files": "Your Files", | ||
"Your file will be pinned to IPFS for long-term storage.": "Your file will be pinned to IPFS for long-term storage.", | ||
"action": "action", | ||
"file cid": "file cid", | ||
"file content error": "file content error", | ||
"file error": "file error", | ||
"file size": "file size", | ||
"files": "files", | ||
"password": "password", | ||
"status": "status", | ||
"transferrable": "transferrable" | ||
} |
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
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
Empty file.
Empty file.
Oops, something went wrong.