Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into token-state
Browse files Browse the repository at this point in the history
  • Loading branch information
ashneverdawn committed Dec 20, 2024
2 parents 62933fb + ae2109c commit 38647b8
Show file tree
Hide file tree
Showing 9 changed files with 199 additions and 14 deletions.
1 change: 1 addition & 0 deletions android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies {
implementation project(':capacitor-share')
implementation project(':capacitor-splash-screen')
implementation project(':capacitor-status-bar')

}


Expand Down
4 changes: 2 additions & 2 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.1;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = com.satellite.uplink.app;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -385,7 +385,7 @@
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = com.satellite.uplink.app;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uplink",
"version": "2.0.6",
"version": "2.0.7",
"private": true,
"scripts": {
"tauri": "tauri",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

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

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uplink"
version = "2.0.6"
version = "2.0.7"
description = "Privacy First, Modular, P2P Universal Messaging Client - With you at it's core"
authors = ["Satellite.IM"]
license = ""
Expand Down
8 changes: 4 additions & 4 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const INTEGRATIONS = {
}

export const DOWNLOAD_LINKS = {
Android: "https://github.com/Satellite-im/UplinkWeb/releases/download/v2.0.6/Uplink_v2.0.6.apk",
Android: "https://github.com/Satellite-im/UplinkWeb/releases/download/v2.0.7/Uplink_v2.0.7.apk",
iOS: "https://apps.apple.com/us/app/satellite-im-uplink/id6737702825",
Windows: "https://github.com/Satellite-im/UplinkWeb/releases/download/v2.0.6/Uplink_v2.0.6.msi",
Mac: "https://github.com/Satellite-im/UplinkWeb/releases/download/v2.0.6/Uplink_v2.0.6.dmg",
Linux: "https://github.com/Satellite-im/UplinkWeb/releases/download/v2.0.6/Uplink_v2.0.6.deb",
Windows: "https://github.com/Satellite-im/UplinkWeb/releases/download/v2.0.7/Uplink_v2.0.7.msi",
Mac: "https://github.com/Satellite-im/UplinkWeb/releases/download/v2.0.7/Uplink_v2.0.7.dmg",
Linux: "https://github.com/Satellite-im/UplinkWeb/releases/download/v2.0.7/Uplink_v2.0.7.deb",
}
8 changes: 4 additions & 4 deletions src/lib/wasm/CommunitiesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ class CommunitiesStore {
}, `Error downloading community attachment from community ${community_id} for message ${message_id}`)
}

async sendCommunityChannelMesssageEvent(community_id: string, channel_id: string, event: wasm.MessageEvent) {
return await this.get(r => r.send_community_channel_messsage_event(community_id, channel_id, event), `Error sending event ${event}`)
async sendCommunityChannelMessageEvent(community_id: string, channel_id: string, event: wasm.MessageEvent) {
return await this.get(r => r.send_community_channel_message_event(community_id, channel_id, event), `Error sending event ${event}`)
}
async cancelCommunityChannelMesssageEvent(community_id: string, channel_id: string, event: wasm.MessageEvent) {
return await this.get(r => r.cancel_community_channel_messsage_event(community_id, channel_id, event), `Error sending event ${event}`)
async cancelCommunityChannelMessageEvent(community_id: string, channel_id: string, event: wasm.MessageEvent) {
return await this.get(r => r.cancel_community_channel_message_event(community_id, channel_id, event), `Error sending event ${event}`)
}

private async sendTo(raygun: wasm.RayGunBox, community_id: string, channel_id: string, message: string[], settings?: { attachments?: FileAttachment[]; replyTo?: string }): Promise<SendMessageResult> {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/settings/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<div id="page">
<SettingSection hook="section-about-header" name={$_("settings.about.name")} description="Uplink"></SettingSection>
<SettingSection hook="section-about-version" name={$_("settings.about.version")} description="2.0.6">
<SettingSection hook="section-about-version" name={$_("settings.about.version")} description="2.0.7">
<Button hook="button-check-for-update" text={$_("settings.about.checkUpdate")} appearance={Appearance.Alt}>
<Icon icon={Shape.Refresh} />
</Button>
Expand Down
184 changes: 184 additions & 0 deletions src/routes/wallet/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
<script lang="ts">
import { Appearance, Route, Shape, Size } from "$lib/enums"
import { Sidebar } from "$lib/layouts"
import { _ } from "svelte-i18n"
import Label from "$lib/elements/Label.svelte"
import { Transaction } from "$lib/components"
import ProfilePicture from "$lib/components/profile/ProfilePicture.svelte"
import Text from "$lib/elements/Text.svelte"
import Input from "$lib/elements/Input/Input.svelte"
import { balance, recent_transactions, transactions_in, transactions_out } from "$lib/mock/wallet"
import TransactionContainer from "$lib/components/wallet/TransactionContainer.svelte"
import { mock_users } from "$lib/mock/users"
import Controls from "$lib/layouts/Controls.svelte"
import Button from "$lib/elements/Button.svelte"
import Icon from "$lib/elements/Icon.svelte"
import NewPayment from "$lib/components/wallet/payments/NewPayment.svelte"
import { get } from "svelte/store"
import { UIStore } from "$lib/state/ui"
let loading: boolean = false
let sidebarOpen: boolean = get(UIStore.state.sidebarOpen)
function toggleSidebar(): void {
UIStore.toggleSidebar()
}
UIStore.state.sidebarOpen.subscribe(s => (sidebarOpen = s))
</script>

<div id="page">
<Sidebar loading={loading} on:toggle={toggleSidebar} open={sidebarOpen} activeRoute={Route.Wallet}>
<Label text={$_("payments.newPayment")} />
<NewPayment recipients={mock_users} embedded />
</Sidebar>
<div class="content">
<div class="header">
<div id="payment-profile">
<ProfilePicture id={mock_users[0].key} image={mock_users[0]?.profile.photo.image} size={Size.Large} status={mock_users[0]?.profile.status} />

<div class="profile-details">
<Label text={$_("generic.username")} />
<Text>{mock_users[0].name}</Text>
<Label text={$_("payments.paymentID")} />
<Input alt disabled value={`${mock_users[0].name}#${mock_users[0].id.short}`} />
</div>
</div>

<div id="current-balance">
<Label text={$_("payments.balance")}></Label>
<Text size={Size.Large}>{balance}</Text>
</div>
</div>

<div id="recent-transactions">
<Label text={$_("payments.recentTransaction")} />
<div class="transactions">
<TransactionContainer>
{#each recent_transactions as transaction}
<Transaction transaction={transaction} />
{/each}
</TransactionContainer>
<Controls>
<Button text={$_("payments.loadMore")} appearance={Appearance.Alt}>
<Icon icon={Shape.ArrowDown} />
</Button>
</Controls>
</div>
</div>
<div id="transactions">
<div id="payments-in">
<Label text={$_("payments.coinIn")} />
<div class="transactions">
<TransactionContainer>
{#each transactions_in as transaction}
<Transaction transaction={transaction} />
{/each}
</TransactionContainer>
<Controls>
<Button text={$_("payments.loadMore")} appearance={Appearance.Alt}>
<Icon icon={Shape.ArrowDown} />
</Button>
</Controls>
</div>
</div>
<div id="payments-out">
<Label text={$_("payments.coinOut")} />
<div class="transactions">
<TransactionContainer>
{#each transactions_out as transaction}
<Transaction transaction={transaction} />
{/each}
</TransactionContainer>
<Controls>
<Button text={$_("payments.loadMore")} appearance={Appearance.Alt}>
<Icon icon={Shape.ArrowDown} />
</Button>
</Controls>
</div>
</div>
</div>
</div>
</div>

<style lang="scss">
#page {
display: flex;
margin: 0;
flex: 1;
height: 100%;
overflow: hidden;
.content {
display: flex;
min-height: 0;
display: flex;
overflow: hidden;
flex-direction: column;
flex: 1;
padding: var(--padding);
gap: var(--gap);
max-height: 100vh;
overflow-y: scroll;
min-width: 0;
.transactions {
min-height: 0;
overflow-y: scroll;
}
.header {
display: inline-flex;
flex-direction: row;
gap: var(--gap);
}
#payment-profile {
background-color: var(--background-alt);
padding: var(--padding);
width: fit-content;
display: inline-flex;
flex-direction: row;
gap: var(--gap);
border-radius: var(--border-radius);
flex: 50%;
}
#current-balance {
display: inline-flex;
flex-direction: column;
justify-content: center;
align-content: center;
text-align: center;
align-items: center;
flex: 50%;
border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius);
}
#transactions {
width: 100%;
display: inline-flex;
flex-direction: row;
gap: var(--gap);
flex: 1;
#payments-in,
#payments-out {
width: 50%;
padding: var(--padding);
background: var(--background-alt);
border-radius: var(--border-radius);
}
}
#recent-transactions {
width: 100%;
padding: var(--padding);
background: var(--background-alt);
border-radius: var(--border-radius);
}
}
}
</style>

0 comments on commit 38647b8

Please sign in to comment.