Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
1cce80c
new features
MaxSkr0210 Mar 4, 2024
faab79c
add fetch
MaxSkr0210 Mar 5, 2024
a86a7f7
Merge pull request #50 from habdevs:user-profile
yzoz Mar 5, 2024
aafe8dc
Merge remote-tracking branch 'origin/develop' into ficha
yzoz Mar 5, 2024
dba4f45
Merge pull request #48 from yatledger:ficha
yzoz Mar 5, 2024
90d0a44
modified: src/boot/db.js
MaxSkr0210 Mar 5, 2024
40a20b1
Reworked HelpPage
aleksei-shvets Mar 8, 2024
592fe60
Add translations for HelpPage
aleksei-shvets Mar 8, 2024
6e54fb1
Debug fetch.js
aleksei-shvets Mar 8, 2024
426efb8
fix bugs
MaxSkr0210 Mar 11, 2024
d25eb9e
Create ScanQr page
aleksei-shvets Mar 11, 2024
3ef5513
Fixed switchCamera
aleksei-shvets Mar 11, 2024
a0c5b05
Update dependencies
aleksei-shvets Mar 11, 2024
46293ed
fix bugs, add search by name, edit contact, add notifications with ex…
MaxSkr0210 Mar 12, 2024
9297a33
Update routes
aleksei-shvets Mar 12, 2024
634393c
Create ScanQr page
aleksei-shvets Mar 12, 2024
f40c3d7
Delete component file
aleksei-shvets Mar 12, 2024
6666a4e
Merge pull request #53 from aleksei-shvets/rework-help-page
goshva Mar 13, 2024
d126c78
Merge branch 'develop' into contacts-database
goshva Mar 13, 2024
e813ef2
Merge pull request #52 from MaxSkr0210/contacts-database
goshva Mar 13, 2024
93f67ff
uzb language to develop
Asliddin351 Mar 13, 2024
3ea9e80
Merge branch 'develop' into lang
Asliddin351 Mar 13, 2024
8bbd847
Merge pull request #56 from Asliddin351/lang
goshva Mar 13, 2024
989d267
Revert "Lang"
goshva Mar 13, 2024
82f5c5a
Merge pull request #57 from yatledger/revert-56-lang
goshva Mar 13, 2024
2305a70
change bug with language
Asliddin351 Mar 13, 2024
a785964
Merge pull request #58 from Asliddin351/master
goshva Mar 13, 2024
e52354d
add uzbek language
Asliddin351 Mar 13, 2024
9d1845b
Merge pull request #59 from Asliddin351/develop
goshva Mar 13, 2024
bfd8680
Add logic
aleksei-shvets Mar 13, 2024
d89da99
Add translations for ScanQr
aleksei-shvets Mar 13, 2024
ad473be
Add functionality
aleksei-shvets Mar 13, 2024
46b774d
Merge branch 'develop' into scan-qr
goshva Mar 15, 2024
2bce5c9
Merge pull request #60 from aleksei-shvets/scan-qr
goshva Mar 15, 2024
bd10e32
fix typoo ru.js
goshva Mar 16, 2024
b305d3c
Update quasar.config.js
goshva Mar 16, 2024
b424460
Updated avatar links and channels avatars form
aleksei-shvets Mar 16, 2024
641e2c3
Change menu icon to "three dots"
aleksei-shvets Mar 16, 2024
79cdd4e
Add functions files
aleksei-shvets Mar 16, 2024
06572cc
Update icons
aleksei-shvets Mar 16, 2024
859280a
Deleted the last comma
aleksei-shvets Mar 17, 2024
4276bfc
add: rendering user tx data, change server url
Antonbinom Mar 18, 2024
d82abf6
sign up page: fix styles for mobile devices
mikartv Mar 18, 2024
f221d97
Merge pull request #63 from mihailArt/develop
goshva Mar 18, 2024
40f706e
add: render user data
Antonbinom Mar 18, 2024
5ba9ff7
remove: sign field
Antonbinom Mar 18, 2024
37d95ff
Revert "remove: sign field"
Antonbinom Mar 18, 2024
724edb1
reset of copied icon on sign up page
mikartv Mar 20, 2024
0915bbe
Merge pull request #64 from mikartv/develop
goshva Mar 20, 2024
ec28f9f
Add logic
aleksei-shvets Mar 20, 2024
9c8ffd4
Add logic with error modal
aleksei-shvets Mar 25, 2024
24ca37f
Moved transaction modal to a separate component
aleksei-shvets Mar 25, 2024
73b5c75
Create error modal component
aleksei-shvets Mar 25, 2024
9127d2d
Corrected text
aleksei-shvets Mar 25, 2024
bbb32eb
Add transactions
aleksei-shvets Mar 25, 2024
6fcee88
Change texts to transactions
aleksei-shvets Mar 25, 2024
357e37f
Corrected stream of camera
aleksei-shvets Mar 25, 2024
48fe100
Delete extra file
aleksei-shvets Mar 25, 2024
e3fc625
Merge pull request #67 from aleksei-shvets/upgrade-qr-scan
goshva Mar 27, 2024
569c374
Merge remote-tracking branch 'origin/develop' into updrade-top-users
aleksei-shvets Mar 27, 2024
4539736
Merge pull request #65 from aleksei-shvets/updrade-top-users
aleksei-shvets Mar 27, 2024
0464746
Fix db problems
aleksei-shvets Mar 28, 2024
faeecc2
Merge branch 'develop' into correct-signup
aleksei-shvets Mar 28, 2024
acf5d39
Corrected routing
aleksei-shvets Mar 28, 2024
9484d69
Footer buttons
aleksei-shvets Mar 28, 2024
2a8c238
Correct logout
aleksei-shvets Mar 28, 2024
c58b30e
Add translations
aleksei-shvets Mar 28, 2024
394ef7a
Corrected routing
aleksei-shvets Mar 28, 2024
784bf60
Create modal for confirm clear device
aleksei-shvets Mar 28, 2024
41ef33e
Corrected import, add logic
aleksei-shvets Mar 28, 2024
80c7934
Merge pull request #69 from aleksei-shvets/correct-signup
goshva Mar 28, 2024
49808a7
Corrected a typo
aleksei-shvets Mar 29, 2024
e74089b
Add styles
aleksei-shvets Mar 29, 2024
23b676e
Corrected layout, improved usability
aleksei-shvets Mar 29, 2024
c81926c
Change texts to transaction
aleksei-shvets Mar 29, 2024
8d2f61e
Add translations
aleksei-shvets Mar 29, 2024
d2e411c
Corrected translations
aleksei-shvets Mar 29, 2024
62e64ee
main btns PC + Mobile
Apr 1, 2024
c98beba
Merge pull request #75 from haxxxs/develop
goshva Apr 1, 2024
8516283
Merge pull request #70 from aleksei-shvets/correct-signup
goshva Apr 1, 2024
38787f0
create-generate-qr-page
OgarkovaTatyanaDev24 Apr 11, 2024
110a223
delete-qr-style
OgarkovaTatyanaDev24 Apr 11, 2024
2d704a3
edit design
OgarkovaTatyanaDev24 Apr 22, 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
2 changes: 1 addition & 1 deletion apollo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
client: {
service: {
name: 'my-service',
url: 'http://127.0.0.1:9696/graphql'
url: 'https://yat.vit.ooo/graphql'
},
// Files processed by the extension
includes: ['src/**/*.vue', 'src/**/*.js', 'src/**/*.ts']
Expand Down
116 changes: 68 additions & 48 deletions package-lock.json

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

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,25 @@
"concurrently:dev:jest": "concurrently \"quasar dev\" \"jest --watch\""
},
"dependencies": {
"@apollo/client": "^3.8.6",
"@chenfengyuan/vue-qrcode": "^2.0.0",
"@quasar/extras": "^1.16.9",
"@scure/base": "^1.1.5",
"@scure/bip39": "^1.2.2",
"@vue/apollo-composable": "^4.0.0",
"check-password-strength": "^2.0.7",
"graphql": "^16.8.1",
"idb": "^7.1.1",
"lodash.clonedeep": "^4.5.0",
"pinia": "^2.1.7",
"qrcode": "^1.5.3",
"qrcode.vue": "^3.4.1",
"quasar": "^2.14.3",
"tweetnacl": "^1.0.3",
"vue": "^3.4.15",
"vue-i18n": "^9.9.0",
"vue-router": "^4.2.5",
"vue3-qrcode-reader": "^0.0.1",
"@apollo/client": "^3.8.6",
"@vue/apollo-composable": "^4.0.0",
"graphql": "^16.8.1"
"vue-qrcode-reader": "^5.5.3",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "^3.4.0",
Expand Down Expand Up @@ -70,4 +71,4 @@
"npm": ">= 6.13.4",
"yarn": ">= 1.21.1"
}
}
}
22 changes: 22 additions & 0 deletions public/avatars/Rectangle 30.svg
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 public/avatars/default-avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ module.exports = configure(function (/* ctx */) {
// https://v2.quasar.dev/quasar-cli/boot-files
boot: [
'i18n',
'apollo'
'apollo',
'db',
'crypt',
'utils',
'fetch'
],

// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
Expand Down Expand Up @@ -67,7 +71,7 @@ module.exports = configure(function (/* ctx */) {

// rebuildCache: true, // rebuilds Vite/linter/etc cache on startup

// publicPath: '/',
publicPath: '/',
// analyze: true,
// env: {},
// rawDefine: {}
Expand Down
20 changes: 19 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@

<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Onest:[email protected]&display=swap');

button,
input {
font-family: "Onest", sans-serif;
font-optical-sizing: auto;
font-weight: 300;
font-style: normal;
text-transform: uppercase;
}

.info-text {
font-family: "Onest", sans-serif;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
font-size: 16px;
}

h2 {
font-family: 'Roboto Slab', serif;
Expand All @@ -31,7 +49,7 @@ p {

a {
color: #ac5de7;
text-decoration: underline;
text-decoration: none;
}

p,
Expand Down
2 changes: 1 addition & 1 deletion src/apollo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export /* async */ function getClientOptions (
uri:
process.env.GRAPHQL_URI ||
// Change to your graphql endpoint.
'http://127.0.0.1:9696/graphql'
'https://yat.vit.ooo/graphql'
})

return <ApolloClientOptions<unknown>>Object.assign(
Expand Down
72 changes: 72 additions & 0 deletions src/boot/crypt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import { boot } from 'quasar/wrappers'
import { sign, randomBytes } from 'tweetnacl'

export default boot(({ app }) => {
const crypt = {

b2h (b) {
return Array.prototype.map.call(b, function (byte) {
return ('0' + (byte & 0xFF).toString(16)).slice(-2)
}).join('')
},

h2b (h) {
if (typeof h !== 'string') throw new TypeError('expected string')
const b = new Uint8Array(h.length / 2)
let i = 0
while (h.length >= 2) {
b[i] = parseInt(h.substring(0, 2), 16)
h = h.substring(2, h.length)
i++
}
return b
},

u2b (s) {
if (typeof s !== 'string') throw new TypeError('expected string')
const d = unescape(encodeURIComponent(s)), b = new Uint8Array(d.length)
for (let i = 0; i < d.length; i++) b[i] = d.charCodeAt(i)
return b
},

b2u (b) {
const s = []
for (let i = 0; i < b.length; i++) s.push(String.fromCharCode(b[i]))
return decodeURIComponent(escape(s.join('')))
},

async genKey () {
return this.b2h(randomBytes(32))
},

async recKey (s) {
let k = ''
if (s.length > 64) {
k = sign.keyPair.fromSecretKey(this.h2b(s)) // legacy
} else {
k = sign.keyPair.fromSeed(this.h2b(s))
}
const sec = k.secretKey // PRIVATE KEY
const pub = k.publicKey // PUBLIC KEY
return [this.b2h(sec), this.b2h(pub)]
},

// mes, sec
sign (m, s) {
return this.b2h(sign(this.u2b(m), this.h2b(s)))
},

// mes, pub
unsign (m, p) {
const o = sign.open(this.h2b(m), this.h2b(p))

if (o) {
return this.b2u(o)
} else {
return false
}
}
}

app.config.globalProperties.$crypt = crypt
})
Loading