Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
801 commits
Select commit Hold shift + click to select a range
c7aa12f
fix: fix settings page issues
nikaaru Sep 19, 2023
5b60dfe
chore: fix confirm wallets bugs
Ikari-Shinji-re Sep 20, 2023
ca69ab6
feat: add animation for modal
samobasquiat Sep 20, 2023
209c388
feat: loading for bridges and exchanges
mikasackermn Sep 20, 2023
547f0b2
feat: design history item page
samobasquiat Sep 27, 2023
5ca2b63
feat: add notification to widget
nikaaru Sep 27, 2023
5cbdc3d
feat: add route skeleton component
Ikari-Shinji-re Sep 27, 2023
ea922d6
feat: add skeleton for wallet-page & showing its error
samobasquiat Sep 27, 2023
fd1e888
feat: history list page loading
samobasquiat Sep 27, 2023
e904ee1
feat: update playground design layout
RanGojo Oct 1, 2023
ab9c268
chore: update wallet icons urls
RanGojo Oct 1, 2023
6df4513
chore: fix layout and styles problems
Ikari-Shinji-re Oct 1, 2023
3e72d9b
fix: fix watch command for Windows OS
Ikari-Shinji-re Sep 30, 2023
cec1213
chore: fix broken demos
RanGojo Oct 1, 2023
d085a64
chore: trigger build
RanGojo Oct 1, 2023
f9a7a92
chore(release): publish
github-actions[bot] Oct 1, 2023
bb8d2af
chore: release
yeager-eren Oct 2, 2023
467344c
chore(release): publish
github-actions[bot] Oct 2, 2023
3701ab1
chore: sync versions
yeager-eren Oct 2, 2023
13c69ec
chore: sync versions
yeager-eren Oct 2, 2023
c48df2a
chore(release): publish
github-actions[bot] Oct 2, 2023
b8cfa4d
chore: fix paths for ui packcage
yeager-eren Oct 2, 2023
182b745
fix: fallback to empty string if image is null
yeager-eren Oct 2, 2023
78f4b68
chore(release): publish
github-actions[bot] Oct 2, 2023
9f7e292
chore: fix remaining bugs and improve styles
Ikari-Shinji-re Oct 4, 2023
4cee8eb
chore: fix widget embedded build
Ikari-Shinji-re Oct 4, 2023
d7f6842
chore(release): publish
github-actions[bot] Oct 4, 2023
237c4b6
feat: implement general style options for playground
samobasquiat Oct 7, 2023
6ab2f46
chore(release): publish
github-actions[bot] Oct 7, 2023
8375c19
feat: sync swap process with notifications
samobasquiat Oct 7, 2023
b845f58
chore(release): publish
github-actions[bot] Oct 7, 2023
b101067
fix: widget config for default amount/chain/token
samobasquiat Oct 8, 2023
6e238c3
chore(release): publish
github-actions[bot] Oct 8, 2023
01535ec
Merge branch 'next' of github.com:rango-exchange/rango-client into next
mikasackermn Oct 9, 2023
a77ede6
chore: improve filter blockchains/tokens performance
Ikari-Shinji-re Oct 9, 2023
18d291d
chore(release): publish
github-actions[bot] Oct 9, 2023
5449a44
feat: loading swap history item
nikaaru Oct 9, 2023
73f8800
chore(release): publish
github-actions[bot] Oct 9, 2023
79cacb2
fix: updating query params
yeager-eren Oct 9, 2023
3717313
chore(release): publish
github-actions[bot] Oct 9, 2023
f395d89
fix: reset position of scroll in chain/token selector
samobasquiat Oct 7, 2023
7ee8fc5
chore(release): publish
github-actions[bot] Oct 9, 2023
bfefdff
fix: fix widget navigation bugs
Ikari-Shinji-re Oct 8, 2023
42f68fa
chore(release): publish
github-actions[bot] Oct 10, 2023
0515100
Merge branch 'next' of github.com:rango-exchange/rango-client into next
mikasackermn Oct 10, 2023
4cefdd2
chore(release): publish
github-actions[bot] Oct 10, 2023
285b1ca
feat: widget colors!
mikasackermn Oct 11, 2023
b431dbe
chore: fix redirecting home page
Ikari-Shinji-re Oct 11, 2023
9faea64
chore(release): publish
github-actions[bot] Oct 11, 2023
245fa45
fix: not-found position in swap history
samobasquiat Oct 11, 2023
cc48e70
chore(release): publish
github-actions[bot] Oct 11, 2023
34a8de9
fix: update playground export code ui
RanGojo Oct 11, 2023
320fda5
chore: update bitget wallet info
RanGojo Oct 12, 2023
e193a4a
chore(release): publish
github-actions[bot] Oct 12, 2023
fc52b8f
fix: convert string to i18n function
nikaaru Oct 11, 2023
d171916
chore(release): publish
github-actions[bot] Oct 15, 2023
8cf0ecf
feat: implement playgroud wallet section
samobasquiat Oct 15, 2023
f8b6504
chore(release): publish
github-actions[bot] Oct 15, 2023
13e6c6e
chore: fix bugs and change styles
Ikari-Shinji-re Oct 15, 2023
8ac183a
chore(release): publish
github-actions[bot] Oct 16, 2023
2737ecd
feat: implement mobile version of playground
samobasquiat Oct 16, 2023
e38f37a
chore(release): publish
github-actions[bot] Oct 16, 2023
d9344fe
chore: make components inherit font-family
Ikari-Shinji-re Oct 16, 2023
3b21543
chore(release): publish
github-actions[bot] Oct 16, 2023
95b4ba8
fix: radius config & tooltip problem in playground
samobasquiat Oct 17, 2023
c79395c
chore(release): publish
github-actions[bot] Oct 17, 2023
94e3107
fix: reading and showing blockchains/tokens based on config
Ikari-Shinji-re Oct 17, 2023
6b9e948
chore(release): publish
github-actions[bot] Oct 17, 2023
520b957
chore: fixing show more bug on codesandbox
RanGojo Oct 17, 2023
96f9116
chore(release): publish
github-actions[bot] Oct 17, 2023
932dbcc
fix: fix minor bugs
Ikari-Shinji-re Oct 17, 2023
8290807
chore(release): publish
github-actions[bot] Oct 18, 2023
d3a6d3d
chore: merged with main
RanGojo Oct 18, 2023
f5bccff
chore: update embedded readmee
RanGojo Oct 18, 2023
cae55aa
chore: upgrade all packages versions
RanGojo Oct 18, 2023
8379798
chore(release): publish
RanGojo Oct 18, 2023
6ae70ae
fix: error in wallet-connect projectId
samobasquiat Oct 21, 2023
502708a
chore(release): publish
github-actions[bot] Oct 21, 2023
5649fb9
feat: implement default chain/token/amount section to playground
samobasquiat Oct 21, 2023
2eafc8a
chore(release): publish
github-actions[bot] Oct 21, 2023
f960036
feat: implement supportedBlockchain in playground
samobasquiat Oct 22, 2023
0357ccb
chore(release): publish
github-actions[bot] Oct 22, 2023
868e226
chore: exclude binance and station providers
RanGojo Oct 24, 2023
465015d
chore: exclude binance and station from provider-all
RanGojo Oct 24, 2023
86a2c8e
chore(release): publish
github-actions[bot] Oct 24, 2023
2efcef1
fix: fix retry logic in failed swaps
Ikari-Shinji-re Oct 21, 2023
8d8afff
chore(release): publish
github-actions[bot] Oct 25, 2023
079afc1
fix: input outlines & blockchains displayNames
samobasquiat Oct 25, 2023
43acae0
chore(release): publish
github-actions[bot] Oct 25, 2023
5503b2e
fix: fix cosmostation experimental chain issue
nikaaru Oct 22, 2023
9d2dd38
chore(release): publish
github-actions[bot] Oct 25, 2023
c32bf10
feat: implement Themes section in Style for playground
mikasackermn Oct 25, 2023
911ebb8
chore(release): publish
github-actions[bot] Oct 25, 2023
d808fbf
chore: fix import errors
RanGojo Oct 25, 2023
5029701
chore(release): publish
github-actions[bot] Oct 25, 2023
23761c4
hotfix: move color picker deps to playground
RanGojo Oct 27, 2023
1348194
chore(release): publish
github-actions[bot] Oct 27, 2023
c7d75df
fix: add presets from v1
mikasackermn Oct 30, 2023
06bb1d5
chore(release): publish
github-actions[bot] Oct 30, 2023
3e32420
feat: don't show safe when not injected
RanGojo Oct 30, 2023
6df2c1e
chore(release): publish
github-actions[bot] Oct 31, 2023
d518110
fix: fix tronlink connect
RanGojo Oct 31, 2023
1d16238
chore(release): publish
github-actions[bot] Oct 31, 2023
bb62e0f
Merge branch 'next' of github.com:rango-exchange/rango-client into next
mikasackermn Oct 31, 2023
5268162
feat: custom colors for presets (style sidebar)
mikasackermn Oct 31, 2023
32e578a
Merge branch 'next' of github.com:rango-exchange/rango-client into next
mikasackermn Oct 31, 2023
2785eec
chore(release): publish
github-actions[bot] Oct 31, 2023
187518d
Merge branch 'next' of github.com:rango-exchange/rango-client into next
mikasackermn Nov 4, 2023
84ed7f0
feat: implement liquidity sources for playground
samobasquiat Nov 4, 2023
f77764a
chore(release): publish
github-actions[bot] Nov 4, 2023
551e8ef
feat: support multi languages
nikaaru Nov 4, 2023
9a5578e
chore(release): publish
github-actions[bot] Nov 4, 2023
c27a06d
feat: keep user history for selected chains
yeager-eren Nov 5, 2023
6bbb158
chore(release): publish
github-actions[bot] Nov 5, 2023
f0967cb
feat: implement supportedTokens for playground
samobasquiat Nov 5, 2023
bc331bf
chore(release): publish
github-actions[bot] Nov 5, 2023
4642e6a
feat: setup crowdin localization
nikaaru Nov 5, 2023
8785a06
chore(release): publish
github-actions[bot] Nov 5, 2023
3397e6b
fix: fixed color selection bug when no preset is selected
mikasackermn Nov 5, 2023
9df81fb
chore(release): publish
github-actions[bot] Nov 5, 2023
333775d
feat: persist playground config
mikasackermn Nov 5, 2023
e295621
chore(release): publish
github-actions[bot] Nov 5, 2023
5db6a46
Merge branch 'next' of github.com:rango-exchange/rango-client into next
mikasackermn Nov 6, 2023
0002e69
fix: add suggest and connect to wallet for experimental chain
nikaaru Nov 5, 2023
a59283a
chore(release): publish
github-actions[bot] Nov 6, 2023
481ce06
fix: fix dynamic content issue in crowdin
nikaaru Nov 6, 2023
3bfb5b9
chore(release): publish
github-actions[bot] Nov 6, 2023
25be5ae
fix: add reject modal for experimental suggest chain
nikaaru Nov 6, 2023
d3d91e7
chore(release): publish
github-actions[bot] Nov 6, 2023
4b27c10
Merge branch 'next' of github.com:rango-exchange/rango-client into next
mikasackermn Nov 7, 2023
7c0da1b
chore: use latest versions
yeager-eren Nov 8, 2023
34e258e
chore: silent failed in making github release.
yeager-eren Nov 8, 2023
975bdd7
chore: use latest versions.
yeager-eren Nov 8, 2023
5f918e7
chore: use latest versions
yeager-eren Nov 8, 2023
c3639ee
chore: use latest versions
yeager-eren Nov 8, 2023
23aca33
chore: use latest versions
yeager-eren Nov 8, 2023
baa4da0
chore: use latest versions
yeager-eren Nov 8, 2023
3fcadcf
chore(release): publish
github-actions[bot] Nov 12, 2023
8c4a17b
fix: handle switch network flow for wallet-connect
RanGojo Nov 12, 2023
c787cd5
chore(release): publish
github-actions[bot] Nov 12, 2023
f10175c
fix: clean evm transaction in wallet-connect signer
RanGojo Nov 12, 2023
ca3614f
chore(release): publish
github-actions[bot] Nov 12, 2023
ee13d90
chore: refactor route errors and warnings
Ikari-Shinji-re Nov 13, 2023
680a27a
chore(release): publish
github-actions[bot] Nov 13, 2023
57aff95
Create PULL_REQUEST_TEMPLATE.md
yeager-eren Nov 14, 2023
cedc535
fix: fix emitting failed event in swap execution
Ikari-Shinji-re Nov 15, 2023
3bdca28
chore(release): publish
github-actions[bot] Nov 15, 2023
5d50d0f
fix: add initial state with props in app store and fix bug of passing…
Ikari-Shinji-re Nov 15, 2023
00649ba
chore(release): publish
github-actions[bot] Nov 15, 2023
52fcca4
fix: handle safe wallet in widget
RanGojo Nov 14, 2023
f0b0a28
chore(release): publish
github-actions[bot] Nov 15, 2023
455138f
chore: remove wallet connect 1 provider
RanGojo Nov 15, 2023
a31c34d
fix: zustand store in context
yeager-eren Nov 15, 2023
94b2283
chore(release): publish
github-actions[bot] Nov 15, 2023
63e0bf3
chore: delete binance chain wallet (deprecated)
RanGojo Nov 15, 2023
60eceab
chore(release): publish
github-actions[bot] Nov 15, 2023
1073cd2
feat: handle wallet referrer in widget
mikasackermn Nov 18, 2023
79e5c8a
fix: comments
mikasackermn Nov 18, 2023
52fcd52
chore(release): publish
github-actions[bot] Nov 18, 2023
65f1824
feat: implement WidgetProvider & useWidget for accessing specific wid…
samobasquiat Nov 18, 2023
cdd568e
chore(release): publish
github-actions[bot] Nov 18, 2023
01c4c45
feat: add dark/light theme to playground
mikasackermn Nov 19, 2023
b6dbcf8
chore(release): publish
github-actions[bot] Nov 19, 2023
ad28865
chore: refactor navigation
Ikari-Shinji-re Nov 19, 2023
a8f3d13
chore(release): publish
github-actions[bot] Nov 19, 2023
58b72f1
chore: fix build issue in safe
RanGojo Nov 20, 2023
c643444
chore: revert wallet connect deps
RanGojo Nov 20, 2023
b4a1385
chore(release): publish
github-actions[bot] Nov 20, 2023
d5e104f
chore: fix import issue
RanGojo Nov 20, 2023
0641344
chore(release): publish
github-actions[bot] Nov 20, 2023
c2deaec
feat: add langugage section to Playground
mikasackermn Nov 19, 2023
9a0713a
chore(release): publish
github-actions[bot] Nov 20, 2023
7b77dec
fix(widget): Showing history for selected blockchain if a blockchain …
yeager-eren Nov 21, 2023
792a9c1
chore(release): publish
github-actions[bot] Nov 21, 2023
4261610
feat: support experimental features
samobasquiat Nov 21, 2023
c3f8f05
chore: fix navigation in notification component
Ikari-Shinji-re Nov 20, 2023
2721150
chore(release): publish
github-actions[bot] Nov 21, 2023
3668d84
fix: fix quote info bugs
Ikari-Shinji-re Nov 21, 2023
262dbba
chore(release): publish
github-actions[bot] Nov 21, 2023
2a59055
feat: add state of wallets' details to useWidget
samobasquiat Nov 22, 2023
b7c378e
chore(release): publish
github-actions[bot] Nov 22, 2023
5ffd1ac
fix: update blockchain category icons
nikaaru Nov 22, 2023
9e4c4ae
chore(release): publish
github-actions[bot] Nov 22, 2023
56d25b3
chore: fix widget configs in memory router
Ikari-Shinji-re Nov 22, 2023
e1a7042
chore(release): publish
github-actions[bot] Nov 22, 2023
8524820
fix: fix HMR for widget and playground
Ikari-Shinji-re Nov 25, 2023
5a3f2bb
chore: Add docs for HMR
yeager-eren Nov 26, 2023
cb30d14
chore(release): publish
github-actions[bot] Nov 26, 2023
425e6de
chore: remove extra padding in widget-app
RanGojo Nov 27, 2023
660c2ba
chore(release): publish
github-actions[bot] Nov 27, 2023
8444ec9
chore: upgrade node to v18
RanGojo Nov 28, 2023
aea814e
chore(release): publish
github-actions[bot] Nov 29, 2023
487674b
chore: export types & logics from useWidget
samobasquiat Dec 2, 2023
23f3a40
chore(release): publish
github-actions[bot] Dec 2, 2023
ea0b1be
fix: fix performance issues on token selector
Ikari-Shinji-re Dec 3, 2023
0a8920a
fix: add wallets-core to rango-preset package dependencies
samobasquiat Dec 3, 2023
d73f6df
chore(release): publish
github-actions[bot] Dec 3, 2023
a1b74cc
feat: remove unnecessary files & logics in playground
mikasackermn Dec 3, 2023
e2f962e
chore(release): publish
github-actions[bot] Dec 3, 2023
c9b5705
feat: implement feature disabling in widget config
samobasquiat Dec 4, 2023
47a9969
chore(release): publish
github-actions[bot] Dec 4, 2023
5c8fbc5
feat: export meta and additional logics from useWidget
samobasquiat Dec 5, 2023
368e283
chore(release): publish
github-actions[bot] Dec 5, 2023
3c44607
chore(deps): bump vite from 4.5.0 to 4.5.1
dependabot[bot] Dec 6, 2023
c976bff
fix: display transaction url after refreshing
samobasquiat Dec 5, 2023
b28a984
chore(release): publish
github-actions[bot] Dec 6, 2023
bbfc775
chore: read pending swap from rango-types
RanGojo Dec 13, 2023
8166c77
chore(release): publish
github-actions[bot] Dec 13, 2023
3c89278
fix: update classNames to new pattern for conflict prevention
samobasquiat Dec 13, 2023
d9fca82
chore(release): publish
github-actions[bot] Dec 14, 2023
ad57603
fix: fix wallet button state in swap details page
Ikari-Shinji-re Dec 18, 2023
e399616
chore(release): publish
github-actions[bot] Dec 18, 2023
c849db2
feat: implement pin tokens in From and To
mikasackermn Dec 18, 2023
866985a
chore(release): publish
github-actions[bot] Dec 18, 2023
75a3107
fix: improve widget for smaller screens
Ikari-Shinji-re Dec 24, 2023
9b2ab23
chore(release): publish
github-actions[bot] Dec 24, 2023
30c543b
chore: upgrade to latest version
yeager-eren Dec 24, 2023
bbb8a01
chore: upgrade publish scripts
yeager-eren Dec 24, 2023
4250352
Merge branch 'main' into next
yeager-eren Dec 24, 2023
5b49401
chore: use latest versions
yeager-eren Dec 24, 2023
2806e09
chore(release): publish
github-actions[bot] Dec 24, 2023
8728c05
fix: quote summary width
samobasquiat Dec 24, 2023
c93c30c
chore(release): publish
github-actions[bot] Dec 24, 2023
a3a1407
chore: add a pat to bypass protected branches
yeager-eren Dec 24, 2023
c33e839
doc: update readme
yeager-eren Dec 24, 2023
84235ac
chore: update mytonwallet
yeager-eren Dec 24, 2023
6cc93eb
chore(release): publish
github-actions[bot] Dec 24, 2023
f2092af
chore: update versions
yeager-eren Dec 24, 2023
4fea9a3
chore(release): publish
github-actions[bot] Dec 24, 2023
6d24d10
chore(release): publish
github-actions[bot] Dec 24, 2023
5912b70
fix: correct item picker style
samobasquiat Dec 25, 2023
238977c
feat: add default injected wallet
RanGojo Dec 26, 2023
094e02c
chore(release): publish
github-actions[bot] Dec 26, 2023
403009e
fix: fix widget-iframe styles
Ikari-Shinji-re Dec 27, 2023
a281580
chore(release): publish
github-actions[bot] Dec 27, 2023
7515215
fix: resolve issues for prices and dates, and add tooltips for prices
samobasquiat Dec 27, 2023
87416c2
chore(release): publish
github-actions[bot] Dec 27, 2023
d96cc3e
hotfix: fix starknet signer problem
RanGojo Dec 27, 2023
8be41a5
chore(release): publish
github-actions[bot] Dec 27, 2023
067f782
feat: add transition for tabs in playground
samobasquiat Dec 27, 2023
9255ed9
chore(release): publish
github-actions[bot] Dec 27, 2023
88d6a42
fix: cleanup wallets' subscriber when setProvider get null
samobasquiat Dec 30, 2023
fdd1e3a
chore(release): publish
github-actions[bot] Dec 30, 2023
455d70b
feat: update filter tokens interface in widget
mikasackermn Dec 30, 2023
0705448
chore(release): publish
github-actions[bot] Dec 30, 2023
7731e41
feat: add github action for sync translation with crowdin
nikaaru Dec 30, 2023
6233014
fix: update github token
nikaaru Dec 30, 2023
37eb600
feat: integrate shapeshift snap
RyukTheCoder Dec 31, 2023
25ef097
feat: integrate shapeshift snap
RyukTheCoder Dec 31, 2023
795d29c
feat: integrate shapeshift snap
RyukTheCoder Jan 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
dist
*.js
scripts
142 changes: 142 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"react",
"react-hooks",
"destructuring"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
// "project": ["tsconfig.base.json"]
"project": true
},
"rules": {
"no-extra-boolean-cast": "off",
"multiline-comment-style": "error",
"arrow-spacing": "error",
"curly": ["error", "all"],
"no-else-return": "error",
"no-multiple-empty-lines": "error",
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [
"type",
"builtin",
"external",
"internal",
"parent",
"sibling",
"object",
"index"
],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"import/first": "error",
"import/no-duplicates": "error",
"import/newline-after-import": [
"error",
{
"count": 1
}
],
"react-hooks/rules-of-hooks": "error",
"react/no-array-index-key": "error",
"react/jsx-no-constructed-context-values": "error",
"react/jsx-key": "error",
"react/no-unescaped-entities": "off",
"destructuring/in-params": "error",
"destructuring/in-methods-params": "error",
// These rules will be override by @typescript-eslint
"no-unused-vars": "off",
"no-throw-literal": "off",
"no-magic-numbers": "off",
"camelcase": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/no-magic-numbers": [
"error",
{
"ignore": [-1, 0, 1, 2]
}
],
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-mixed-enums": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/prefer-enum-initializers": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error"
// "@typescript-eslint/explicit-function-return-type": "error",
// "@typescript-eslint/naming-convention": [
// "error",
// {
// "selector": "default",
// "format": ["camelCase"]
// },

// {
// "selector": "variable",
// "format": ["camelCase", "UPPER_CASE"]
// },
// {
// "selector": "parameter",
// "format": ["camelCase"],
// "leadingUnderscore": "allow"
// },

// {
// "selector": "memberLike",
// "modifiers": ["private"],
// "format": ["camelCase"],
// "leadingUnderscore": "require"
// },

// {
// "selector": "typeLike",
// "format": ["PascalCase"]
// }
// ]
}
}
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Summary

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)


# How did you test this change?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

- [ ] Test A
- [ ] Test B


# Checklist:

- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] Implemented a user interface (UI) change, referencing our Figma design to ensure pixel-perfect precision.
40 changes: 40 additions & 0 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Setup Environments
description: 'Setting up Git, NodeJS and authenticate.'
inputs:
NPM_TOKEN:
description: 'Put your NPM_TOKEN'
required: false

runs:
using: 'composite'
steps:
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'

- name: Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
shell: 'bash'

- name: Auth
if: ${{ inputs.NPM_TOKEN != 0 }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ inputs.NPM_TOKEN }}
shell: 'bash'

- name: Restore cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install packages
run: yarn install --frozen-lockfile
shell: 'bash'
21 changes: 21 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Conventional Commits Check
on:
pull_request:
types: [opened, reopened, synchronize, labeled]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare
uses: ./.github/actions/prepare

- name: Checking Conventional Commits
run: node ./scripts/check-conventional-commits/command.mjs
env:
REF: ${{ github.ref }}
BASE_REF: ${{ github.event.pull_request.base.ref }}
62 changes: 62 additions & 0 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Sync translations using Crowdin

on:
workflow_dispatch:
inputs:
branch:
description: 'to trigger the workflow manually'
required: false
type: string
workflow_call:
secrets:
CROWDIN_PROJECT_ID:
description: 'You need a crowdin project id to be set.'
required: true
CROWDIN_PERSONAL_TOKEN:
description: 'You need a crowdin token to be set.'
required: true
PAT:
description: 'Add a PAT to secrets.'
required: true

jobs:
crowdin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}

- name: Prepare
uses: ./.github/actions/prepare

- name: Extract new source
run: yarn run i18n:extract

- name: Crowdin push & pull translations
uses: crowdin/github-action@v1
id: crowdin-download
with:
upload_sources: true
upload_translations: false
download_translations: true
source: translations/en.po
translation: translations/%two_letters_code%.po
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
commit_message: 'chore(translation): update translations'

localization_branch_name: l10n_crowdin_translations
create_pull_request: true
pull_request_title: '🤖chore(translation): update translations'
pull_request_body: 'New Crowdin pull request with translations'
pull_request_base_branch_name: 'next'
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

- name: Enable auto-merge for the PR
if: steps.crowdin-download.outputs.pull_request_url
run: gh pr --repo $GITHUB_REPOSITORY merge ${{ steps.crowdin-download.outputs.pull_request_url }} --admin --merge
env:
GITHUB_TOKEN: ${{secrets.PAT}}
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy
on:
workflow_dispatch:

jobs:
deploy-it:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}

- name: Prepare
uses: ./.github/actions/prepare

- name: Deploy packages
run: yarn run deploy
env:
REF: ${{ github.ref }}
BASE_REF: ${{ github.event.pull_request.base.ref }}
GH_TOKEN: ${{ github.token }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_PROJECT_WALLETS: ${{ secrets.VERCEL_PROJECT_WALLETS }}
VERCEL_PROJECT_Q: ${{ secrets.VERCEL_PROJECT_Q }}
VERCEL_PROJECT_WALLET_ADAPTER: ${{ secrets.VERCEL_PROJECT_WALLET_ADAPTER }}
VERCEL_PROJECT_WIDGET_CONFIG: ${{ secrets.VERCEL_PROJECT_WIDGET_CONFIG }}
VERCEL_PROJECT_WIDGET_APP: ${{ secrets.VERCEL_PROJECT_WIDGET_APP }}
Loading