Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/example vue #54

Merged
merged 33 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
39781c5
Vue demo
hieu-w Aug 27, 2024
2d1836a
Wrap up
hieu-w Aug 27, 2024
f305dec
Vue-demo update README, packages
hieu-w Aug 28, 2024
55aff3a
Merge branch 'master' into feat/example-vue
hieu-w Oct 30, 2024
54d3fd3
Update vue demo
hieu-w Oct 31, 2024
85b2980
Move to examples folders
hieu-w Oct 31, 2024
878f873
Move test from web3auth-backend package
hieu-w Nov 7, 2024
d4f4531
Add vitest and test case
hieu-w Nov 24, 2024
8982f3e
Update vitest config, remove chai, mocha
hieu-w Nov 24, 2024
bb96cef
npm audit fix
hieu-w Nov 24, 2024
aa52a91
Merge pull request #70 from Web3Auth/feat/PD-4086-Add-more-tests-for-…
chaitanyapotti Nov 25, 2024
8732a0d
Update vitest.config.mjs
hieu-w Nov 25, 2024
23e4f58
Fix CI
hieu-w Nov 25, 2024
6348479
Merge pull request #74 from Web3Auth/fix/CI-and-test-timeout-fix
chaitanyapotti Nov 25, 2024
6dd262d
update torus.js
arch1995 Dec 2, 2024
7fc206b
Merge branch 'master' of https://github.com/Web3Auth/single-factor-au…
arch1995 Dec 2, 2024
eb7809f
remove node test
arch1995 Dec 2, 2024
0de7e26
adds rollup package
arch1995 Dec 2, 2024
c0e54f9
remove fetch node details deps
arch1995 Dec 2, 2024
8fe89bf
adds tests + fixes condition
arch1995 Dec 2, 2024
4b38164
Merge pull request #75 from Web3Auth/feat/torus-update
chaitanyapotti Dec 2, 2024
fa4a387
update deps to fix npm vuln
chaitanyapotti Dec 2, 2024
4f17944
Release 9.3.0
chaitanyapotti Dec 2, 2024
7f116c1
Vue demo
hieu-w Aug 27, 2024
0ac23da
Wrap up
hieu-w Aug 27, 2024
8b25459
Vue-demo update README, packages
hieu-w Aug 28, 2024
121a99a
Update vue demo
hieu-w Oct 31, 2024
5385fa6
Move to examples folders
hieu-w Oct 31, 2024
8dbfb9b
Merge branch 'feat/example-vue' of https://github.com/Web3Auth/single…
hieu-w Dec 2, 2024
783a496
Vue Demo update packages
hieu-w Dec 2, 2024
24dab7b
Vue Demo replace web3 by ethers
hieu-w Dec 2, 2024
209f9dd
cleanup
chaitanyapotti Dec 4, 2024
fcac372
open sfa
chaitanyapotti Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
if: github.ref == 'refs/heads/master'
uses: jakejarvis/s3-sync-action@master
env:
SOURCE_DIR: "./example/react-app/build"
SOURCE_DIR: "./examples/react-app/build"
AWS_REGION: "us-east-1"
AWS_S3_BUCKET: "demo-sfa.web3auth.io"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"eslint.workingDirectories": [
{
"directory": "example/*/*",
"directory": "examples/*/*",
"changeProcessCWD": true
}
],
Expand Down
37 changes: 19 additions & 18 deletions examples/react-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions examples/vue-app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
root: true,
extends: ["@toruslabs/vue"],
parser: "vue-eslint-parser",
ignorePatterns: ["*.config.js", ".eslintrc.js"],
parserOptions: {
parser: "@typescript-eslint/parser",
sourceType: "module",
ecmaVersion: 2022,
project: "./tsconfig.json",
},
env: {
browser: true,
node: true,
mocha: true,
},
rules: {
camelcase: 0,
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
},
};
24 changes: 24 additions & 0 deletions examples/vue-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
5 changes: 5 additions & 0 deletions examples/vue-app/.prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# .prettierrc or .prettierrc.yaml
printWidth: 150
singleQuote: false
semi: true
htmlWhitespaceSensitivity: ignore
5 changes: 5 additions & 0 deletions examples/vue-app/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
}
}
25 changes: 25 additions & 0 deletions examples/vue-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Web3Auth SFA x Vue Demo App

## Quickstart

To use this demo app, you'll first have to build the Web3Auth SFA packages.

### Build the `Web3Auth SFA` packages

```bash
git clone https://github.com/Web3Auth/web3auth-web.git
cd single-factor-auth-web
npm install
npm run build
```

### Start the demo app

> Inside `single-factor-auth-web` directory.

```bash
cd demo/vue-app
npm install
npm run dev
# localhost:3000
```
25 changes: 25 additions & 0 deletions examples/vue-app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html lang="en">
<head>
<script type="module">
import { Buffer } from "buffer";
import process from "process";
// window.global ||= window;
window.Buffer = Buffer;
window.process = process;
</script>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web3Auth demo</title>
</head>
<body>
<noscript>
<strong>
We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading
Loading