Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into dev-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomicvladan committed Mar 27, 2024
2 parents b6f0161 + eb31397 commit f4aef56
Show file tree
Hide file tree
Showing 34 changed files with 287 additions and 154 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/swarm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- master
- development
- staging

jobs:
build:
Expand All @@ -15,15 +13,20 @@ jobs:
working-directory: .
strategy:
matrix:
node-version: [18.x]
node-version: [16.x]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: checkout
uses: actions/checkout@v3

- name: Set environment specific variables
uses: jnus/[email protected]
with:
scope: ${{ github.ref_name }}
scope: "swarm"
configFile: '.github/workflows/variables.json'
secrets: '${{ toJson(secrets.github_token) }}'

Expand Down Expand Up @@ -62,6 +65,7 @@ jobs:
bee-url: ${{ env.SWARM_URL }}
dir: ./out
index-document: index.html
pin: true
timeout: 200000
- name: update feed
id: swarm-feed
Expand All @@ -71,7 +75,7 @@ jobs:
with:
bee-url: ${{ env.SWARM_URL }}
reference: ${{ steps.swarm-upload.outputs.reference }}
topic: consents
topic: theapp
signer: ${{ secrets[env.SIGNER] }}
- name: get CID
id: swarm-cid
Expand All @@ -88,4 +92,4 @@ jobs:
env:
TOKEN: '${{ secrets.purge_token }}'
run: |
curl -s ${{ env.PURGE_URL }}/deploy/purge?token=${{ secrets.purge_token }} -H "site: app.fairdrive${{ env.DEPLOYMENT }}fairdatasociety.org" -H "uri: "
curl -s ${{ env.PURGE_URL }}/deploy/purge?token=${{ secrets.purge_token }} -H "site: app.fairdrive${{ env.DEPLOYMENT }}io" -H "uri: /"
69 changes: 64 additions & 5 deletions .github/workflows/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"Scope": {
"Environment": [
"master",
"main"
"main",
"swarm"
]
}
},
Expand Down Expand Up @@ -74,6 +75,15 @@
]
}
},
{
"Name": "NEXT_PUBLIC_FAIRDRIVEHOST",
"Value": "https://app.fairdrive.io",
"Scope": {
"Environment": [
"swarm"
]
}
},
{
"Name": "NEXT_PUBLIC_FAIRDRIVEHOST",
"Value": "https://fairdrive#{DEPLOYMENT}fairdatasociety.org",
Expand All @@ -91,7 +101,8 @@
"main",
"master",
"staging",
"development"
"development",
"swarm"
]
}
},
Expand All @@ -103,17 +114,65 @@
{
"Name": "NEXT_PUBLIC_CREATE_ACCOUNT_REDIRECT",
"Value": "https://create#{DEPLOYMENT}fairdatasociety.org",
"Scope": {}
"Scope": {
"Environment": [
"main",
"master",
"staging",
"development"
]
}
},
{
"Name": "NEXT_PUBLIC_CREATE_ACCOUNT_REDIRECT",
"Value": "https://create.fairdrive.io",
"Scope": {
"Environment": [
"swarm"
]
}
},
{
"Name": "NEXT_PUBLIC_NFT_GENERATOR_URL",
"Value": "https://nft#{DEPLOYMENT}fairdatasociety.org",
"Scope": {}
"Scope": {
"Environment": [
"main",
"master",
"staging",
"development"
]
}
},
{
"Name": "NEXT_PUBLIC_NFT_GENERATOR_URL",
"Value": "https://nft.fairdrive.io",
"Scope": {
"Environment": [
"swarm"
]
}
},
{
"Name": "NEXT_PUBLIC_CONSENT_VIEWER",
"Value": "https://app.crviewer#{DEPLOYMENT}fairdatasociety.org",
"Scope": {}
"Scope": {
"Environment": [
"main",
"master",
"staging",
"development"
]
}
},
{
"Name": "NEXT_PUBLIC_CONSENT_VIEWER",
"Value": "https://crviewer.fairdrive.org",
"Scope": {
"Environment": [
"swarm"
]
}
},
{
"Name": "NEXT_PUBLIC_BLOCKCHAIN_INFO",
Expand Down
10 changes: 3 additions & 7 deletions docs/CONTACT.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

# Contact Us

If you have any questions, concerns, or feedback about Fairdrive, we'd love to hear from you! Here's how you can reach us:

## Discussions

You can join discussions on [GitHub](https://github.com/orgs/fairDataSociety/discussions)
You can join discussions on [GitHub](https://github.com/orgs/fairDataSociety/discussions)

## Social Media

Expand All @@ -15,11 +14,8 @@ You can also reach out to us on social media:
- [GitHub](https://github.com/fairDataSociety)
- [Discord](https://discord.com/invite/vw3PmWf2rE)


## Getting Help

If you need help using Fairdrive, check out our [User Guide](USER-GUIDE.md) and [FAQ](FAQ.md).
Start [here](GETTING-STARTED.md) or see [Design](DESIGN.md), [Functionality](FUNCTIONALITY.md) or [Architecture](ARCHITECTURE.md).
If you need help using Fairdrive, check out our [User Guide](USER-GUIDE.md) and [FAQ](FAQ.md).
Start [here](GETTING-STARTED.md) or see [Design](DESIGN.md), [Functionality](FUNCTIONALITY.md) or [Architecture](ARCHITECTURE.md).
Developers can check [Development Instructions](DEVELOPMENT.md).

If you can't find the answer to your question, feel free to [contact us](CONTACT.md).
18 changes: 15 additions & 3 deletions docs/GETTING-STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,25 @@ Fairdrive is a web application, so there's no need to install anything on your c

## Creating an Account

To use Fairdrive, you'll need to create an account. Here's how:
To use Fairdrive, you'll need to create an account, or migrate through Metamask.

Follow these steps to create an account:

1. Go to the Fairdrive website.
2. Click on the "Sign Up" button.
3. Fill out the registration form with your details.
4. Click "Submit" to create your account.

Follow these steps to login with Metamask

1. Install Metamask extension to Chrome.
2. Go to the Fairdrive website.
3. Click on the connect button in the right header corner.
4. Select Metamask, if you are not logged in currently, please login.
5. Provide a one-time-only password for athentication.
6. Send the neccessary gas fee.
7. When the funding is done, you are able to see the Fairdrive overview section. In this page you will see the migrate button above, to proceed with user credentials for interoperability.

## Logging In

Once you've created your account, you can log in to Fairdrive:
Expand All @@ -41,8 +53,8 @@ Once you're logged in, you can start using Fairdrive to manage your pods, files,

## Getting Help

If you need help using Fairdrive, check out our [User Guide](USER-GUIDE.md) and [FAQ](FAQ.md).
Start [here](GETTING-STARTED.md) or see [Design](DESIGN.md), [Functionality](FUNCTIONALITY.md) or [Architecture](ARCHITECTURE.md).
If you need help using Fairdrive, check out our [User Guide](USER-GUIDE.md) and [FAQ](FAQ.md).
Start [here](GETTING-STARTED.md) or see [Design](DESIGN.md), [Functionality](FUNCTIONALITY.md) or [Architecture](ARCHITECTURE.md).
Developers can check [Development Instructions](DEVELOPMENT.md).

If you can't find the answer to your question, feel free to [contact us](CONTACT.md).
Expand Down
9 changes: 1 addition & 8 deletions docs/USER-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ To use Fairdrive, you'll need to create an account using any of below options. H
4. When you finish procedure your FDP account will be ready
5. Login into Fairdrive using your username/password

#### 3. Using Bloosom extension

1. Make sure you are logged in inside Blossom extension
2. Click Connect
3. Select Blossom
4. Allow Fairdrive full access of your personal storage

## Logging In

**Metamask** account:
Expand All @@ -49,7 +42,7 @@ To use Fairdrive, you'll need to create an account using any of below options. H
2. Enter passphrase
3. Sign message

**FDP Portable account** to log in to Fairdrive:
**FDP Portable account** (development only) to log in to Fairdrive:

1. Go to the Fairdrive website.
2. Click on the "Log In" button.
Expand Down
2 changes: 1 addition & 1 deletion src/components/Connect/Metamask/MetamaskConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const MetamaskConnect = ({ onConnect }: MetamaskConnectProps) => {
setAddress(wallet.address);
setMnemonic(mnemonic);

router.push('/overview');
router.push('/drive');
} catch (error) {
console.error(error);
setErrorMessage(String(error.message || error));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function MetamaskCreateAccount({
await fdpClientRef.current.account.register(request);
const wallet = new Wallet(fdpClientRef.current.account.wallet.privateKey);
setWallet(wallet);
setFdpStorageType('native');
setFdpStorageType('native', undefined, undefined, false);
setIsLoggedIn(true);
setLoginType('username');
setUser(username);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ const MetamaskMigrationDialog = ({
if (clickOutside) {
return;
}
setMetamaskMigrationNotification('closed');
setMetamaskMigrationNotification(
step === Step.COMPLETE ? 'completed' : 'closed'
);
onClose();
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/Footers/MainFooter/MainFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const MainFooter: FC = () => {
const { intl } = useLocales();

return (
<div className="hidden md:flex justify-between items-center w-full h-32 px-8 bg-white shadow-top">
<div className="hidden md:flex justify-between items-center w-full py-2 px-8 bg-white shadow-top">
<div className="flex items-center flex-wrap mr-4">
<a
href="https://fairdatasociety.org/"
Expand Down
Loading

0 comments on commit f4aef56

Please sign in to comment.