Skip to content

Commit

Permalink
feat: remove notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed Oct 7, 2024
1 parent 82fc625 commit c3027f5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 367 deletions.
4 changes: 0 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ export const network = networks[networkId];
export const signInContractId = networkId === 'testnet' ? 'v1.social08.testnet' : 'social.near';
export const termsDomainName = `${process.env.NEXT_PUBLIC_TOS_SUBDOMAIN_NAME}/ipfs/${process.env.NEXT_PUBLIC_TERMS_CID}`;
export const privacyDomainName = `${process.env.NEXT_PUBLIC_TOS_SUBDOMAIN_NAME}/ipfs/${process.env.NEXT_PUBLIC_PRIVACY_CID}`;
export const notificationApplicationServerKey = process.env.NEXT_PUBLIC_NOTIFICATIONS_APPLICATION_SERVER_KEY;
export const notificationsHostName = process.env.NEXT_PUBLIC_NOTIFICATIONS_HOSTNAME;
export const notificationsGatewayUrl = `${process.env.NEXT_PUBLIC_HOSTNAME}`;
export const notificationsLocalStorageKey = 'push-notifications-v0';
export const localStorageAccountIdKey = 'near-social-vm:v01::accountId:';
export const isLocalEnvironment = process.env.NEXT_PUBLIC_LOCAL_ENVIRONMENT === 'true';
export const sidebarLayoutEnabled = process.env.NEXT_PUBLIC_SIDEBAR_LAYOUT === 'true';
Expand Down
27 changes: 0 additions & 27 deletions src/data/bos-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ type NetworkComponents = {
ecosystemOverviewPage: string;
ecosystemWorkAndEarnPage: string;
homePage: string;
notifications: {
page: string;
alert: string;
settings: string;
button: string;
iosHomeScreenAlert: string;
};
learnPage: string;
blockchainPage: string;
openWebApplicationsPage: string;
Expand All @@ -48,7 +41,6 @@ type NetworkComponents = {
homePage: string;
};
relayerDemo: string;
notificationButton: string;
peoplePage: string;
profileImage: string;
profileInlineBlock: string;
Expand All @@ -68,7 +60,6 @@ type NetworkComponents = {
eventsPage: string;
navigation: {
largeScreenHeader: string;
notificationButton: string;
profileDropdown: string;
nameDropdown: string;
search: string;
Expand Down Expand Up @@ -108,13 +99,6 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
ecosystemOverviewPage: `${testnetTLA}/widget/NearOrg.Ecosystem.OverviewPage`,
ecosystemWorkAndEarnPage: `${testnetTLA}/widget/NearOrg.Ecosystem.WorkAndEarnPage`,
homePage: `${testnetTLA}/widget/NearOrg.HomePage`,
notifications: {
page: `${testnetTLA}/widget/NearOrg.Notifications.Notifications`,
alert: `${testnetTLA}/widget/NearOrg.Notifications.NotificationAlert`,
settings: `${testnetTLA}/widget/NearOrg.Notifications.Settings`,
button: `${testnetTLA}/widget/NearOrg.Notifications.NotificationButton`,
iosHomeScreenAlert: `${testnetTLA}/widget/NearOrg.Notifications.HomeScreenAlert`,
},
learnPage: `${testnetTLA}/widget/NearOrg.LearnPage`,
blockchainPage: `${testnetTLA}/widget/NearOrg.BlockchainPage`,
openWebApplicationsPage: `${testnetTLA}/widget/NearOrg.OpenWebApplicationsPage`,
Expand All @@ -131,7 +115,6 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
homePage: `${testnetTLA}/widget/Gateway.Home`,
},
relayerDemo: 'one.testnet/widget/RelayerMessageDemo',
notificationButton: `${testnetTLA}/widget/NotificationButton`,
peoplePage: `${testnetTLA}/widget/PeoplePage`,
profileImage: 'eugenethedream/widget/ProfileImage',
profileInlineBlock: 'eugenethedream/widget/Profile.InlineBlock',
Expand All @@ -151,7 +134,6 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
eventsPage: `${testnetTLA}/widget/Events.Index`,
navigation: {
largeScreenHeader: `${testnetTLA}/widget/Navigation.LargeScreenHeader`,
notificationButton: `${testnetTLA}/widget/NearOrg.Notifications.NotificationButton`,
profileDropdown: `${testnetTLA}/widget/Navigation.ProfileDropdown`,
nameDropdown: `${testnetTLA}/widget/Navigation.NameDropdown`,
search: `${testnetTLA}/widget/Navigation.Search`,
Expand Down Expand Up @@ -184,13 +166,6 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
ecosystemOverviewPage: 'near/widget/NearOrg.Ecosystem.OverviewPage',
ecosystemWorkAndEarnPage: 'near/widget/NearOrg.Ecosystem.WorkAndEarnPage',
homePage: 'near/widget/NearOrg.HomePage',
notifications: {
page: 'near/widget/NearOrg.Notifications.Notifications',
alert: 'near/widget/NearOrg.Notifications.NotificationAlert',
settings: 'near/widget/NearOrg.Notifications.Settings',
button: 'near/widget/NearOrg.Notifications.NotificationButton',
iosHomeScreenAlert: 'near/widget/NearOrg.Notifications.HomeScreenAlert',
},
learnPage: 'near/widget/NearOrg.LearnPage',
blockchainPage: 'near/widget/NearOrg.BlockchainPage',
openWebApplicationsPage: 'near/widget/NearOrg.OpenWebApplicationsPage',
Expand All @@ -207,7 +182,6 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
homePage: 'near/widget/Gateway.Home',
},
relayerDemo: 'relayer-demo.near/widget/RelayerMessageDemo',
notificationButton: 'near/widget/NotificationButton',
peoplePage: 'near/widget/PeoplePage',
profileImage: 'mob.near/widget/ProfileImage',
profileInlineBlock: 'mob.near/widget/Profile.InlineBlock',
Expand All @@ -227,7 +201,6 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
eventsPage: 'near/widget/Events.Index',
navigation: {
largeScreenHeader: 'near/widget/Navigation.LargeScreenHeader',
notificationButton: 'near/widget/NearOrg.Notifications.NotificationButton',
profileDropdown: 'near/widget/Navigation.ProfileDropdown',
nameDropdown: 'near/widget/Navigation.NameDropdown',
search: 'near/widget/Navigation.Search',
Expand Down
16 changes: 8 additions & 8 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,22 @@ const HomePage: NextPageWithLayout = () => {

<Tabs.Trigger
onClick={() => {
setTab('web3-apps');
setTab('chain-abstraction');
}}
value="web3-apps"
value="chain-abstraction"
>
<Globe fill="bold" />
Web3 Apps
<Link fill="bold" />
Chain Abstraction
</Tabs.Trigger>

<Tabs.Trigger
onClick={() => {
setTab('chain-abstraction');
setTab('web3-apps');
}}
value="chain-abstraction"
value="web3-apps"
>
<Link fill="bold" />
Chain Abstraction
<Globe fill="bold" />
Web3 Apps
</Tabs.Trigger>

<Tabs.Trigger
Expand Down
174 changes: 0 additions & 174 deletions src/utils/notifications.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/utils/notificationsHelpers.ts

This file was deleted.

Loading

0 comments on commit c3027f5

Please sign in to comment.