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

ArConnect 1.20.0 #527

Merged
merged 60 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
09f073d
Add different logos when using the extension in development.
Danziger Oct 10, 2024
c2f8efb
feat: printer capabilities callback
martonlederer Oct 13, 2024
224167f
feat: add callback for printers list
martonlederer Oct 13, 2024
2df851f
fix: add printer permission
martonlederer Oct 13, 2024
444eea9
feat: upload to arweave & correct printer capabilities
martonlederer Oct 13, 2024
fae86a9
feat: upload as a bundled tx, fix type errors
martonlederer Oct 13, 2024
2f796ce
Move CSS reset outside React.
Danziger Oct 15, 2024
5a4bf78
Merge development and resolve conflicts.
Danziger Oct 15, 2024
fc0c5c3
fix: hide fiat value for AO tokens received from redstone
pawanpaudel93 Oct 15, 2024
5b87679
Fix theme flicker.
Danziger Oct 15, 2024
62b9855
add tokenBalance api endpoint
7i7o Oct 15, 2024
5d6a476
fix: Update logic for showing add AR to get started
pawanpaudel93 Oct 15, 2024
3cc6936
refactor: Delay 'Add AR to get started' until AO balances are fetched
pawanpaudel93 Oct 15, 2024
d8af6eb
refactor: improve error handling for AO token balance retrieval
pawanpaudel93 Oct 15, 2024
323c014
fix: Update useDecryptionKey with the correct hook usage
pawanpaudel93 Oct 16, 2024
3ecfe8c
Remove comments.
Danziger Oct 16, 2024
971fa76
refactor: Update getAoTokenBalance with error handling
pawanpaudel93 Oct 16, 2024
9d56e9c
- Remove unnecessary markup.
Danziger Oct 16, 2024
11c1d05
Remove expanded URL param for the expanded popup view.
Danziger Oct 16, 2024
b5528b5
refactor: throw error if result Messages is empty
pawanpaudel93 Oct 17, 2024
9b44947
Implement the expanded mode with another HTML file and just CSS (no JS).
Danziger Oct 17, 2024
ef5c981
Implement reduced motion (no framer animations/transitions) mode base…
Danziger Oct 17, 2024
739d547
Speed up cover removal.
Danziger Oct 17, 2024
7ef6198
Add .editorcofig, .env.example and remove console.log().
Danziger Oct 17, 2024
fe8cd95
fix: replaced receive ar to view all assets
nicholaswma Oct 17, 2024
4b6ea66
Merge pull request #493 from martonlederer/feat/print-to-arweave
pawanpaudel93 Oct 17, 2024
d1847a0
feat: add arweave upload fallback if turbo fails
pawanpaudel93 Oct 17, 2024
511ee6f
refactor: add sign transaction popup for print authorization
pawanpaudel93 Oct 17, 2024
ba00357
refactor: add small delay before opening the tab
pawanpaudel93 Oct 18, 2024
61db327
Merge pull request #501 from arconnectio/feat/print-to-arweave
nicholaswma Oct 18, 2024
d4d4cea
Merge pull request #499 from arconnectio/arc-643/arlocal-brick-wallet
nicholaswma Oct 18, 2024
39592ff
Merge pull request #498 from arconnectio/arc-642/add-ar-get-started
nicholaswma Oct 18, 2024
64903ae
Merge pull request #496 from arconnectio/fix-token-promises
nicholaswma Oct 18, 2024
34e56c7
Merge pull request #495 from arconnectio/arc-653/ao-fiat-value
nicholaswma Oct 18, 2024
44188b9
fix: update bazar and alex links
nicholaswma Oct 18, 2024
242e859
chore: remove logs
nicholaswma Oct 18, 2024
bdfe537
chore: update contributing.md to branch off development
nicholaswma Oct 18, 2024
d6158b2
Merge pull request #502 from arconnectio/development
nicholaswma Oct 18, 2024
b4b2ff8
Merge pull request #494 from arconnectio/feature/ui-fixes
Danziger Oct 21, 2024
3492248
Merge pull request #503 from arconnectio/chore/update-contributing.md
nicholaswma Oct 21, 2024
a6dd3ab
fix: updated sign screen to display network tx cost
nicholaswma Oct 21, 2024
68377bc
fix: hide tx fee depending on the txn
nicholaswma Oct 21, 2024
35a0220
Fix window is not defined error when initializing the darkModePrefere…
Danziger Oct 22, 2024
f180267
Fix auth popup.
Danziger Oct 22, 2024
407fa66
feat: Add print archive transactions to notifications and tx history
pawanpaudel93 Oct 22, 2024
dfa5d0e
Merge pull request #518 from arconnectio/fix/theme-import
Danziger Oct 22, 2024
be8aaf8
fix: generate unique wallet names when adding new wallet
pawanpaudel93 Oct 22, 2024
322b4b3
fix: add message for transaction without recipient
pawanpaudel93 Oct 22, 2024
8fab743
Merge pull request #517 from arconnectio/arc-664/print-confirmation
nicholaswma Oct 22, 2024
eea78c7
Merge pull request #519 from arconnectio/arc-662/fix-wallet-name
nicholaswma Oct 22, 2024
89cd53d
Merge pull request #520 from arconnectio/arc-663/print-arweave-transa…
nicholaswma Oct 22, 2024
ecc1afd
Merge pull request #521 from arconnectio/development
nicholaswma Oct 22, 2024
73b8b64
Update Connect / Disconnect Explainer.json
MattClabs Oct 23, 2024
c4870f1
Update messages - Chinese.json
MattClabs Oct 23, 2024
6123830
Merge pull request #524 from arconnectio/MattClabs-patch-1-new
nicholaswma Oct 23, 2024
e0d372e
refactor: disable data loading for print arweave transactions
pawanpaudel93 Oct 23, 2024
f35d52f
refactor: show data with download icon for print arweave transactions
pawanpaudel93 Oct 23, 2024
d8108d5
fix: made data clickable
nicholaswma Oct 23, 2024
63f0054
Merge pull request #525 from arconnectio/fix/disable-print-archive-data
nicholaswma Oct 23, 2024
2edd055
Merge pull request #526 from arconnectio/development
nicholaswma Oct 23, 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
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{sh,bash}]
end_of_line = lf
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PLASMO_PUBLIC_APP_TYPE=extension
2 changes: 2 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Thank you for your interest in contributing to the ArConnect extension! Below are the guidelines to help you get started.

> **Important:** Always work from the "development" branch when making contributions. This ensures your changes are based on the latest development version.

## Building the Project

1. **Clone the Repository:** Clone this repository to your local machine.
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ keys.json
.tsbuildinfo

# temporary remove development icon
assets/icon.development.png
assets/icon.development.png
66 changes: 65 additions & 1 deletion assets/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,10 @@
"message": "View all",
"description": "View all link text"
},
"view_all_assets": {
"message": "View all assets",
"description": "View all link text"
},
"setting_tokens": {
"message": "Tokens",
"description": "Tokens setting title"
Expand Down Expand Up @@ -1560,7 +1564,7 @@
"description": "Not connected indicator"
},
"not_connected_text": {
"message": "This app is not yet using ArConnect. Find the \"Connect\" button on the page to connect it.",
"message": "\"Connect / Disconnect\" is an indicator for when your ArConnect wallet is connected to an Arweave or AO application. For regular use like sending, receiving, checking balances, etc., ArConnect will always show disconnected.",
"description": "Not connected indicator explainer"
},
"disconnect": {
Expand Down Expand Up @@ -2221,5 +2225,65 @@
"transak_unavailable": {
"message": "Transak is unavailable at the moment. Please try again later.",
"description": "Transak unavailable error message"
},
"print_archived": {
"message": "Print archived",
"description": "Print archived description"
},
"new_data_uploaded": {
"message": "New data uploaded",
"description": "New data uploaded description"
},
"sent_balance": {
"message": "Sent $QTY$ $TICKER$ to $ADDRESS$",
"description": "Sent balance description",
"placeholders": {
"qty": {
"content": "$1",
"example": "10"
},
"ticker": {
"content": "$2",
"example": "AR"
},
"address": {
"content": "$3",
"example": "ljvCPN31...-CS-6Iho8U"
}
}
},
"received_balance": {
"message": "Received $QTY$ $TICKER$ from $ADDRESS$",
"description": "Received balance description",
"placeholders": {
"qty": {
"content": "$1",
"example": "10"
},
"ticker": {
"content": "$2",
"example": "AR"
},
"address": {
"content": "$3",
"example": "ljvCPN31...-CS-6Iho8U"
}
}
},
"notification_from": {
"message": "from",
"description": "From description"
},
"notification_to": {
"message": "to",
"description": "To description"
},
"new_message": {
"message": "New message",
"description": "New message description"
},
"new_transaction": {
"message": "New transaction",
"description": "New transaction description"
}
}
68 changes: 66 additions & 2 deletions assets/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,10 @@
"message": "查看全部",
"description": "View all link text"
},
"view_all_assets": {
"message": "查看所有资产",
"description": "View all assets link text"
},
"setting_tokens": {
"message": "代币",
"description": "Tokens setting title"
Expand Down Expand Up @@ -1549,7 +1553,7 @@
"description": "Not connected indicator"
},
"not_connected_text": {
"message": "此应用尚未使用 ArConnect。找到页面上的“连接”按钮以连接。",
"message": "“连接/断开连接”是指示您的 ArConnect 钱包是否已连接到 Arweave 或 AO 应用程序的指示器。对于发送、接收、检查余额等常规使用,ArConnect 将始终显示断开连接。",
"description": "Not connected indicator explainer"
},
"disconnect": {
Expand Down Expand Up @@ -2207,5 +2211,65 @@
"transak_unavailable": {
"message": "Transak 目前不可用。请稍后再试。",
"description": "Transak unavailable error message"
}
},
"print_archived": {
"message": "打印已归档",
"description": "Print archived description"
},
"new_data_uploaded": {
"message": "新数据已上传",
"description": "New data uploaded description"
},
"sent_balance": {
"message": "已发送 $QTY$ $TICKER$ 给 $ADDRESS$",
"description": "Sent balance description",
"placeholders": {
"qty": {
"content": "$1",
"example": "10"
},
"ticker": {
"content": "$2",
"example": "AR"
},
"address": {
"content": "$3",
"example": "ljvCPN31...-CS-6Iho8U"
}
}
},
"received_balance": {
"message": "收到 $QTY$ $TICKER$ 来自 $ADDRESS$",
"description": "Received balance description",
"placeholders": {
"qty": {
"content": "$1",
"example": "10"
},
"ticker": {
"content": "$2",
"example": "AR"
},
"address": {
"content": "$3",
"example": "ljvCPN31...-CS-6Iho8U"
}
}
},
"notification_from": {
"message": "来自",
"description": "From description"
},
"notification_to": {
"message": "至",
"description": "To description"
},
"new_message": {
"message": "新消息",
"description": "New message description"
},
"new_transaction": {
"message": "新交易",
"description": "New transaction description"
}
}
Binary file added assets/icon512.development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/icon.development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/offline/logo128.development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/offline/logo256.development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/offline/logo64.development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/online/logo128.development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/online/logo256.development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/online/logo64.development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 122 additions & 0 deletions assets/popup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
@font-face {
font-family: "ManropeLocal";
font-style: normal;
font-weight: 300;
src: url(/assets/fonts/Manrope-Light.woff2) format('woff2');
}

@font-face {
font-family: "ManropeLocal";
font-style: normal;
font-weight: 400;
src: url(/assets/fonts/Manrope-Regular.woff2) format('woff2');
}

@font-face {
font-family: "ManropeLocal";
font-style: normal;
font-weight: 500;
src: url(/assets/fonts/Manrope-Medium.woff2) format('woff2');
}

@font-face {
font-family: "ManropeLocal";
font-style: normal;
font-weight: 600;
src: url(/assets/fonts/Manrope-SemiBold.woff2) format('woff2');
}

@font-face {
font-family: "ManropeLocal";
font-style: normal;
font-weight: 600;
src: url(/assets/fonts/Manrope-Bold.woff2) format('woff2');
}

@font-face {
font-family: "ManropeLocal";
font-style: normal;
font-weight: 700;
src: url(/assets/fonts/Manrope-ExtraBold.woff2) format('woff2');
}

* {
scrollbar-width: none;
}

*::-webkit-scrollbar {
display: none
}

::selection {
background-color: rgba(171, 154, 255, .6);
color: #fff;
}

:root {
--defaultBackgroundColor: white;
}

@media (prefers-color-scheme: dark) {
:root {
--defaultBackgroundColor: black;
}
}

body {
margin: 0;
padding: 0;
}

body#popup {
width: 377px;
height: 600px;
}

body.fullscreen {
width: 377px;
height: 100vh;
margin: 0 auto;
}

body.fullscreen::before {
content: "";
position: fixed;
top: 50%;
left: 50%;
width: 377px;
height: 100vh;
transform: translate(-50%, -50%);
pointer-events: none;
box-shadow: 0 0 128px 0 rgba(171, 154, 255, .4);
}

body,
button,
input,
select,
textarea {
font-family: "ManropeLocal", "Manrope VF", "Manrope", sans-serif !important;
}

button {
background: transparent;
border: 0;
padding: 0;
}

#cover {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 99999999;
background-color: var(--backgroundColor, var(--defaultBackgroundColor, white));
transition: background-color linear 230ms;
}

#cover[aria-hidden] {
background: transparent;
pointer-events: none;
}
3 changes: 3 additions & 0 deletions assets/popup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const backgroundColor = localStorage.getItem("ARCONNECT_THEME_BACKGROUND_COLOR");

if (backgroundColor) document.documentElement.style.setProperty('--backgroundColor', backgroundColor);
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"packageManager": "yarn@1.22.18",
"homepage": "https://arconnect.io",
"scripts": {
"dev:chrome": "plasmo dev",
"dev:chrome": "plasmo dev --verbose",
"build:chrome": "plasmo build --no-hoist",
"dev:firefox": "plasmo dev --target=firefox-mv2",
"build:firefox": "plasmo build --target=firefox-mv2 --no-hoist",
"nuke": "rm -rf node_modules build .plasmo",
"fmt": "prettier --write .",
"fmt:check": "prettier --check .",
"prepare": "husky install"
Expand All @@ -25,7 +26,8 @@
"contextMenus",
"tabs",
"webNavigation",
"notifications"
"notifications",
"printerProvider"
],
"web_accessible_resources": [
{
Expand Down Expand Up @@ -69,7 +71,7 @@
"check-password-strength": "^2.0.7",
"copy-to-clipboard": "^3.3.2",
"dayjs": "^1.11.6",
"framer-motion": "7.5.3",
"framer-motion": "^11.11.7",
"human-crypto-keys": "^0.1.4",
"js-confetti": "^0.11.0",
"mitt": "^3.0.0",
Expand Down
3 changes: 3 additions & 0 deletions src/api/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ import subscriptionModule from "./modules/subscription";
import subscription from "./modules/subscription/subscription.background";
import userTokensModule from "./modules/user_tokens";
import userTokens from "./modules/user_tokens/user_tokens.background";
import tokenBalanceModule from "./modules/token_balance";
import tokenBalance from "./modules/token_balance/token_balance.background";

/** Background modules */
const modules: BackgroundModule<any>[] = [
Expand All @@ -69,6 +71,7 @@ const modules: BackgroundModule<any>[] = [
{ ...signDataItemModule, function: signDataItem },
{ ...subscriptionModule, function: subscription },
{ ...userTokensModule, function: userTokens },
{ ...tokenBalanceModule, function: tokenBalance },
{ ...batchSignDataItemModule, function: batchSignDataItem }
];

Expand Down
Loading
Loading