Skip to content

Commit

Permalink
Merge pull request #8 from tahowallet/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
Shadowfiend authored Jul 12, 2023
2 parents 596c3bc + 2dbe98a commit 542aa6f
Show file tree
Hide file tree
Showing 323 changed files with 265,814 additions and 63,341 deletions.
Binary file added .DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://www.gatsbyjs.com/docs/how-to/local-development/environment-variables/
# We need GATSBY_ prefix for the variable to be available for the front-end code

GATSBY_USE_FIREBASE_EMULATOR="false"

GATSBY_FIREBASE_API_KEY="AIzaSyDPjFWHXWMEVHL7Bf-AMWLQVSJCWpB_S2k"
GATSBY_FIREBASE_AUTH_DOMAIN="tally-dev-0.firebaseapp.com"
GATSBY_FIREBASE_PROJECT_ID="tally-dev-0"
GATSBY_FIREBASE_STORAGE_BUCKET="tally-dev-0.appspot.com"
GATSBY_FIREBASE_MESSAGING_SENDER_ID="923152079345"
GATSBY_FIREBASE_APP_I="1:923152079345:web:3ed820b6f8f36026848c50"

GATSBY_DISCORD_APP_ID="1008427467918295044"
13 changes: 13 additions & 0 deletions .env.prd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://www.gatsbyjs.com/docs/how-to/local-development/environment-variables/
# We need GATSBY_ prefix for the variable to be available for the front-end code

GATSBY_USE_FIREBASE_EMULATOR="false"

GATSBY_FIREBASE_API_KEY="AIzaSyAa78OwfLesUAW8hdzbhUkc5U8LSVH3y7s"
GATSBY_FIREBASE_AUTH_DOMAIN="tally-prd.firebaseapp.com"
GATSBY_FIREBASE_PROJECT_ID="tally-prd"
GATSBY_FIREBASE_STORAGE_BUCKET="tally-prd.appspot.com"
GATSBY_FIREBASE_MESSAGING_SENDER_ID="567502050788"
GATSBY_FIREBASE_APP_I="1:567502050788:web:17610f22d27b6caed363f1"

GATSBY_DISCORD_APP_ID="1008427467918295044"
13 changes: 13 additions & 0 deletions .env.stg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://www.gatsbyjs.com/docs/how-to/local-development/environment-variables/
# We need GATSBY_ prefix for the variable to be available for the front-end code

GATSBY_USE_FIREBASE_EMULATOR="false"

GATSBY_FIREBASE_API_KEY="AIzaSyDLTwPM6GVJjr88jV8wpALgqwMpVod1p84"
GATSBY_FIREBASE_AUTH_DOMAIN="tally-stg.firebaseapp.com"
GATSBY_FIREBASE_PROJECT_ID="tally-stg"
GATSBY_FIREBASE_STORAGE_BUCKET="tally-stg.appspot.com"
GATSBY_FIREBASE_MESSAGING_SENDER_ID="110043097074"
GATSBY_FIREBASE_APP_I="1:110043097074:web:48cfac48940f26cc912d6b"

GATSBY_DISCORD_APP_ID="1008427467918295044"
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
root: true,
extends: ["@thesis-co"],
env: {
browser: true,
},
};
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "tally-dev-0"
}
}
75 changes: 15 additions & 60 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# Static site build
public/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
Expand All @@ -23,12 +16,11 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
Expand All @@ -37,78 +29,41 @@ bower_components
# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
# Typescript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next
# dotenv environment variable files
.env*

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
# gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/
public

# DynamoDB Local files
.dynamodb/
# Mac files
.DS_Store

# TernJS port file
.tern-port

# Netlify local directory
.netlify
.history/**

# Linaria cache
.linaria-cache
# Yarn
yarn-error.log
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14.15.3
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: local
hooks:
- id: lint-js
name: "lint typescript and javascript"
entry: /usr/bin/env npx eslint
files: '\.jsx?$|\.tsx?$'
language: script
description: "Checks JS/TS code according to the package's linter configuration"
- repo: local
hooks:
- id: lint-config
name: "lint config files"
entry: /usr/bin/env npx prettier -c
files: '\.json$|\.yaml$|\.toml$|\.yml$'
language: script
description: "Checks config files according to the package's linter configuration"
- repo: local
hooks:
- id: lint-docs
name: "lint documentation files"
entry: /usr/bin/env npx prettier -c
files: '\.md$'
language: script
description: "Checks documentation files according to the package's linter configuration"
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.cache
package.json
package-lock.json
public
/static/**/*.json
5 changes: 5 additions & 0 deletions .tsconfig-eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": [".eslintrc.js", "**/*.js", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tally.cash
# taho.xyz

The primary website for Tally Ho, the community-owned Web3 wallet.
The primary website for Taho, the community-owned web3 wallet.

## Local development

Expand Down
4 changes: 4 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface Window {
twttr: any;
posthog: any;
}
12 changes: 12 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"hosting": {
"public": "public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
2 changes: 1 addition & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
*/

// You can delete this file if you're not using it
import "./static/fonts.css";
import "shared/styles/global-styles";
34 changes: 28 additions & 6 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
require("dotenv").config({
path: `.env.${process.env.TARGET_ENV ?? "dev"}`,
});

module.exports = {
siteMetadata: {
title: `Tally Ho — The community owned & operated wallet`,
title: `Taho — The community owned & operated wallet`,
description: ``,
image: `https://tally.cash/Tally-Web3-Wallet-website.png`, // Twitter wants an absolute rather than relative url.
image: `https://taho.xyz/cover.png`, // Twitter wants an absolute rather than relative url.
author: `@thesis_co`,
},
plugins: [
Expand All @@ -12,13 +16,13 @@ module.exports = {
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Tally Ho — The community owned & operated wallet`,
short_name: `Tally Ho`,
name: `Taho — The community owned & operated wallet`,
short_name: `Taho`,
start_url: `/`,
background_color: `#fbf9f2`,
theme_color: `#fbf9f2`,
display: `minimal-ui`,
icon: `src/common/favicon.svg`, // This path is relative to the root of the site.
icon: `src/shared/favicon.svg`, // This path is relative to the root of the site.
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
Expand All @@ -32,7 +36,25 @@ module.exports = {
options: {
siteId: "1",
matomoUrl: "https://tallycash.matomo.cloud",
siteUrl: "https://tally.cash",
siteUrl: "https://tallyho.org",
},
},
{
resolve: `gatsby-plugin-twitter-pixel`,
options: {
pixelId: "o9kgt",
},
},
{
resolve: `gatsby-plugin-posthog`,
options: {
apiKey: "phc_VzveyNxrn2xyiKDYn7XjrgaqELGeUilDZGiBVh6jNmh",
initOptions: {
persistence: "localStorage",
autocapture: false,
capture_pageview: false,
disable_session_recording: true,
},
},
},
],
Expand Down
19 changes: 17 additions & 2 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,26 @@

const path = require("path");

// https://www.gatsbyjs.com/docs/how-to/custom-configuration/add-custom-webpack-config/#absolute-imports
exports.onCreateWebpackConfig = ({ actions }) => {
exports.onCreateWebpackConfig = ({ actions, stage, loaders }) => {
// https://www.gatsbyjs.com/docs/how-to/custom-configuration/add-custom-webpack-config/#absolute-imports
actions.setWebpackConfig({
resolve: {
modules: [path.resolve(__dirname, "src"), "node_modules"],
},
});

// https://github.com/gatsbyjs/gatsby/issues/29012#issuecomment-817185831
// https://www.gatsbyjs.com/docs/debugging-html-builds/#fixing-third-party-modules
if (stage === "build-html" || stage === "develop-html") {
actions.setWebpackConfig({
module: {
rules: [
{
test: /firebase/,
use: loaders.null(),
},
],
},
});
}
};
9 changes: 9 additions & 0 deletions manifesto-dapp-backend/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"projects": {
"dev": "tally-dev-0",
"prd": "tally-prd",
"stg": "tally-stg"
},
"targets": {},
"etags": {}
}
Loading

0 comments on commit 542aa6f

Please sign in to comment.