Skip to content

Commit

Permalink
Merge pull request #988 from ethereum-push-notification-service/dynam…
Browse files Browse the repository at this point in the history
…ic-urls

Dynamic urls in chat -> app.push.org/#/chat/gmdm.eth
  • Loading branch information
0xNilesh authored Mar 29, 2023
2 parents 726f810 + a9488e6 commit 00bfbf7
Show file tree
Hide file tree
Showing 18 changed files with 659 additions and 365 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pushprotocol/dapp",
"version": "0.6.2",
"name": "@project/react-app",
"version": "0.6.3",
"homepage": "https://app.push.org",
"browserslist": {
"production": [
Expand Down Expand Up @@ -34,7 +34,7 @@
"@mui/lab": "^5.0.0-alpha.72",
"@mui/material": "^5.5.0",
"@pushprotocol/ledgerlive": "0.0.1",
"@pushprotocol/restapi": "1.0.0",
"@pushprotocol/restapi": "^1.0.0",
"@pushprotocol/socket": "0.4.2",
"@pushprotocol/uiweb": "0.5.0",
"@reduxjs/toolkit": "^1.7.1",
Expand Down Expand Up @@ -108,7 +108,7 @@
"react-player": "2.9.0",
"react-query": "^3.39.1",
"react-redux": "^7.2.6",
"react-router-dom": "6",
"react-router-dom": "^6.9.0",
"react-scripts": "^5.0.1",
"react-scroll-to-bottom": "^4.2.0",
"react-select": "^5.2.2",
Expand Down
3 changes: 2 additions & 1 deletion public/index-alpha.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/">
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand All @@ -13,7 +14,7 @@
<link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#cf1c84" />
<meta name="msapplication-TileColor" content="#9f00a7" />
<meta name="theme-color" content="#ffffff" />
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<!-- <script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
3 changes: 2 additions & 1 deletion public/index-dev.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/">
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand All @@ -13,7 +14,7 @@
<link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#cf1c84" />
<meta name="msapplication-TileColor" content="#9f00a7" />
<meta name="theme-color" content="#ffffff" />
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<!-- <script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
3 changes: 2 additions & 1 deletion public/index-prod.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/">
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand All @@ -13,7 +14,7 @@
<link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#cf1c84" />
<meta name="msapplication-TileColor" content="#9f00a7" />
<meta name="theme-color" content="#ffffff" />
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<!-- <script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
3 changes: 2 additions & 1 deletion public/index-staging.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/">
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand All @@ -13,7 +14,7 @@
<link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#cf1c84" />
<meta name="msapplication-TileColor" content="#9f00a7" />
<meta name="theme-color" content="#ffffff" />
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<!-- <script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
3 changes: 2 additions & 1 deletion public/index-w2w.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/">
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand All @@ -13,7 +14,7 @@
<link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#cf1c84" />
<meta name="msapplication-TileColor" content="#9f00a7" />
<meta name="theme-color" content="#ffffff" />
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<!-- <script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
25 changes: 13 additions & 12 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/">
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand All @@ -13,7 +14,7 @@
<link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#cf1c84" />
<meta name="msapplication-TileColor" content="#9f00a7" />
<meta name="theme-color" content="#ffffff" />
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<!-- <script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -28,23 +29,23 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<!-- HTML Meta Tags -->
<title>Push Dev App (Previously EPNS) | Communication Protocol of Web3</title>
<meta name="description" content="Push Dev App (Previously EPNS) | Communication Protocol of Web3">
<title>Push App (Previously EPNS) | Communication Protocol of Web3</title>
<meta name="description" content="Push App (Previously EPNS) | Communication Protocol of Web3">

<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://dev.push.org">
<meta property="og:url" content="https://app.push.org">
<meta property="og:type" content="website">
<meta property="og:title" content="Push Dev App (Previously EPNS)">
<meta property="og:description" content="Push Dev App (Previously EPNS) | Communication Protocol of Web3">
<meta property="og:image" content="https://dev.push.org/previews/homepage-dev.jpg">
<meta property="og:title" content="Push App (Previously EPNS)">
<meta property="og:description" content="Push App (Previously EPNS) | Communication Protocol of Web3">
<meta property="og:image" content="https://app.push.org/previews/homepage.jpg">

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="dev.push.org">
<meta property="twitter:url" content="https://dev.push.org">
<meta name="twitter:title" content="Push Dev App (Previously EPNS)">
<meta name="twitter:description" content="Push Dev App (Previously EPNS) | Communication Protocol of Web3">
<meta name="twitter:image" content="https://dev.push.org/previews/homepagetwitter-dev.jpg">
<meta property="twitter:domain" content="app.push.org">
<meta property="twitter:url" content="https://app.push.org">
<meta name="twitter:title" content="Push App (Previously EPNS)">
<meta name="twitter:description" content="Push App (Previously EPNS) | Communication Protocol of Web3">
<meta name="twitter:image" content="https://app.push.org/previews/homepagetwitter.jpg">

<!-- Meta Tags Generated via https://www.opengraph.xyz -->

Expand Down
7 changes: 3 additions & 4 deletions src/components/chat/chatsnap/ChatSnap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const ChatSnap = ({ pfp, username, chatSnapMsg, timestamp, selected, onClick, is
const theme = useTheme();
// get ens name
const ensName = useResolveEns(!isGroup ? username : null);
// get reverse name


// get short username
const walletAddress = !isGroup ? caip10ToWallet(username) : null;
const shortUsername = !isGroup ? shortenText(walletAddress, 8, 7) : null;
Expand Down Expand Up @@ -66,7 +65,7 @@ const ChatSnap = ({ pfp, username, chatSnapMsg, timestamp, selected, onClick, is
className="fa fa-picture-o"
aria-hidden="true"
></i>{' '}
Media
Image
</SpanV2>
) : chatSnapMsg.type === 'File' ? (
<SpanV2 color={theme.default.secondaryColor}>
Expand All @@ -76,7 +75,7 @@ const ChatSnap = ({ pfp, username, chatSnapMsg, timestamp, selected, onClick, is
></i>{' '}
File
</SpanV2>
) : chatSnapMsg.type === 'GIF' ? (
) : chatSnapMsg.type === 'GIF' || chatSnapMsg.type === 'MediaEmbed' ? (
<SpanV2 color={theme.default.secondaryColor}>
<i
className="fa fa-picture-o"
Expand Down
Loading

0 comments on commit 00bfbf7

Please sign in to comment.