-
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.
- Loading branch information
Showing
13 changed files
with
398 additions
and
147 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 |
---|---|---|
@@ -1,46 +1,6 @@ | ||
# Redis. | ||
PUBLIC_POP_CLIENT_KEY= | ||
POP_SERVER_KEY= | ||
SEND_DEVPROTOCOL_API_KEY= | ||
REDIS_URL= | ||
REDIS_USERNAME= | ||
REDIS_PASSWORD= | ||
|
||
# Market auths. | ||
PUBLIC_DISCORD_CLIENT_ID= | ||
PUBLIC_DISCORD_CLIENT_SECRET= | ||
|
||
PUBLIC_YOUTUBE_CLIENT_ID= | ||
|
||
# FIREBASE | ||
PUBLIC_FIREBASE_APP_ID= | ||
PUBLIC_FIREBASE_API_KEY= | ||
PUBLIC_FIREBASE_PROJECT_ID= | ||
PUBLIC_FIREBASE_MESSAGING_SENDER_ID= | ||
PUBLIC_FIREBASE_CALLBACK_SIGNIN_URL="http://localhost:3000/signin/authentication" | ||
|
||
# Web3. | ||
PUBLIC_ALCHEMY_KEY= | ||
PUBLIC_WEB3_PROVIDER_URL= | ||
PUBLIC_DYNAMIC_ENVIRONMENT_ID= | ||
PUBLIC_WALLET_CONNECT_PROJECT_ID= | ||
|
||
# Imgur. | ||
PUBLIC_IMGUR_CLIENT_ID= | ||
PUBLIC_IMGUR_CLIENT_SECRET= | ||
|
||
# Email. | ||
SENDGRID_API_KEY= | ||
SENDGRID_FROM_EMAIL= | ||
PUBLIC_EMAIL_AUTH_ENDPOINT= | ||
PUBLIC_GATED_CONTACT_FORM_SENDGRID_ENV_KEY='SENDGRID_API_KEY' | ||
|
||
# Misc. | ||
SALT= | ||
SEND_TX_API_KEY= | ||
SEND_DEVPROTOCOL_API_KEY= | ||
CREATOR_CLUBS_CREATION_LIMIT='3' | ||
|
||
# KYC. | ||
PUBLIC_ONDATO_VERIFICATION_URL= | ||
|
||
# Mock Achievements. | ||
MOCK_ACHIEVEMENTS_API_MESSAGE= | ||
MOCK_ACHIEVEMENTS_ADMIN_SIGNATURE= |
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,4 +1,8 @@ | ||
import theme from './theme' | ||
import thisPlugin from '../src/index' | ||
|
||
export default [theme, thisPlugin] | ||
export default [ | ||
theme, | ||
thisPlugin, | ||
{ meta: { id: 'devprotocol:clubs:simple-memberships' } }, | ||
] |
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,44 @@ | ||
<script lang="ts" setup> | ||
import { onMounted, ref } from 'vue' | ||
import { BrowserProvider } from 'ethers' | ||
import { connection } from '@devprotocol/clubs-core/connection' | ||
const walletAddress = ref<string | undefined>('') | ||
const handleConnection = async () => { | ||
const signer = connection().signer.value | ||
if (!signer) { | ||
return | ||
} | ||
// get wallet address | ||
const connectedAddress = await signer.getAddress() | ||
walletAddress.value = connectedAddress | ||
} | ||
onMounted(() => { | ||
connection().signer.subscribe(handleConnection) | ||
}) | ||
const onClick = async () => { | ||
try { | ||
const eth = (window as any).ethereum | ||
await eth.send('eth_requestAccounts') | ||
connection().setEip1193Provider(eth, BrowserProvider) | ||
} catch (error) { | ||
console.error(error) | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<span> | ||
<button | ||
v-if="!walletAddress" | ||
class="rounded-3xl w-full border border-transparent bg-blue-600 px-8 py-2 text-base text-white shadow-sm focus:outline-none" | ||
@click="onClick" | ||
> | ||
Wallet connect | ||
</button> | ||
</span> | ||
</template> |
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,53 +1,7 @@ | ||
## development | ||
## Clubs Payments | ||
|
||
Install Dependencies: | ||
### Development | ||
|
||
```bash | ||
yarn install | ||
``` | ||
Accessing the following local URL, you can debug the Checkout flow with the ClubsConfigration in `.preview/config.ts`. | ||
|
||
Start the app: | ||
|
||
```bash | ||
yarn dev | ||
``` | ||
|
||
## releases | ||
|
||
Use `npm version` to manage git tags and update hosted Clubs by publishing them as GitHub Releases. | ||
|
||
```bash | ||
npm version [patch|minor|major] | ||
git push && git push --tags | ||
``` | ||
|
||
Semantic versioning can basically be determined by the following rules: | ||
|
||
| command | when | | ||
| --------------------- | -------------------------------------------------- | | ||
| npm version **patch** | Bug fixes, Updates without changing functionality. | | ||
| npm version **minor** | Updates without breaking changes. | | ||
| npm version **major** | Major updates with breaking changes. | | ||
|
||
### pre-release | ||
|
||
Changes to the `main` branch are always automatically deployed as prereleases. | ||
|
||
## setup env file | ||
|
||
example: | ||
|
||
``` | ||
REDIS_USERNAME=default | ||
REDIS_PASSWORD=my-redis-password | ||
REDIS_URL='redis://redis....com:16141' | ||
``` | ||
|
||
## populate Redis with tenants | ||
|
||
Once you have set the Redis env variables, you are ready to populate your database. | ||
You can do this by running `yarn run populate`. | ||
|
||
## copy clubs from the production | ||
|
||
For debugging purposes, you can copy the production configuration to a locally connected Redis by running `yarn copy --club CLUB_TENANT_ID`. | ||
http://localhost:4321/fiat/yen/0xf84a97f1f0a956e738abd85c2e0a5026f8874e3ec09c8f012159dfeeaab2b156 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
const { tailwindPreset } = require('@devprotocol/clubs-core') | ||
const typography = require('@tailwindcss/typography') | ||
import { tailwindPreset as clubs } from '@devprotocol/clubs-core' | ||
import typography from '@tailwindcss/typography' | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
mode: 'jit', | ||
presets: [tailwindPreset], | ||
export default { | ||
presets: [clubs], | ||
content: [...clubs.content, '.preview/**/*'], | ||
plugins: [typography], | ||
theme: { | ||
extend: { | ||
animation: { | ||
'c-bash-spinner': 'c-bash-spinner 1s linear infinite', | ||
}, | ||
keyframes: { | ||
'c-bash-spinner': { | ||
'0%': { content: '"/"' }, | ||
'33%': { content: '"-"' }, | ||
'66%': { content: '"\\005C"' }, | ||
'100%': { content: '"|"' }, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
Oops, something went wrong.