Skip to content

Commit 2e208dc

Browse files
authored
Merge pull request #963 from bavix/micro-fixes
update docs
2 parents 981ca19 + cc6a51d commit 2e208dc

File tree

2 files changed

+56
-14
lines changed

2 files changed

+56
-14
lines changed

docs/.vitepress/config.mts

Lines changed: 50 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ export default defineConfig({
2121
],
2222
[
2323
'link', {
24-
rel: 'mask-icon',
24+
rel: 'icon',
2525
href: 'https://github.com/bavix/laravel-wallet/assets/5111255/f48a8e79-8a9d-469a-b056-b3d04835992d',
26-
color: "#f4e664",
26+
sizes: "any",
27+
type: "image/svg+xml",
2728
}
2829
],
2930
],
@@ -38,7 +39,6 @@ export default defineConfig({
3839
nav: [
3940
{ text: 'Home', link: '/' },
4041
{ text: 'Guide', link: '/guide/introduction/' },
41-
{ text: 'Chat', link: 'https://t.me/laravel_wallet' },
4242
{ text: 'Issues', link: 'https://github.com/bavix/laravel-wallet/issues' },
4343
{ text: 'Discussions', link: 'https://github.com/bavix/laravel-wallet/discussions' },
4444
{ text: 'Donate', link: 'https://opencollective.com/laravel-wallet' },
@@ -53,7 +53,8 @@ export default defineConfig({
5353
{ text: 'Configuration', link: '/guide/introduction/configuration' },
5454
{ text: 'Basic Usage', link: '/guide/introduction/basic-usage' },
5555
{ text: 'Upgrade', link: '/guide/introduction/upgrade' },
56-
]
56+
],
57+
collapsed: false,
5758
},
5859
{
5960
text: 'Single/Default Wallet',
@@ -66,23 +67,26 @@ export default defineConfig({
6667
{ text: 'Cancel Transaction', link: '/guide/single/cancel' },
6768
{ text: 'Exchange', link: '/guide/single/exchange' },
6869
{ text: 'Credit Limits', link: '/guide/single/credit-limits' },
69-
]
70+
],
71+
collapsed: false,
7072
},
7173
{
7274
text: 'Multi Wallet',
7375
items: [
7476
{ text: 'New Wallet', link: '/guide/multi/new-wallet' },
7577
{ text: 'Transfer', link: '/guide/multi/transfer' },
7678
{ text: 'Transaction Filter', link: '/guide/multi/transaction-filter' },
77-
]
79+
],
80+
collapsed: false,
7881
},
7982
{
8083
text: 'Fractional Wallet',
8184
items: [
8285
{ text: 'Deposit', link: '/guide/fractional/deposit' },
8386
{ text: 'Withdraw', link: '/guide/fractional/withdraw' },
8487
{ text: 'Transfer', link: '/guide/fractional/transfer' },
85-
]
88+
],
89+
collapsed: false,
8690
},
8791
{
8892
text: 'Purchases',
@@ -94,15 +98,17 @@ export default defineConfig({
9498
{ text: 'Cart', link: '/guide/purchases/cart' },
9599
{ text: 'Commissions', link: '/guide/purchases/commissions' },
96100
{ text: 'Customize receiving', link: '/guide/purchases/receiving' },
97-
]
101+
],
102+
collapsed: false,
98103
},
99104
{
100105
text: 'Database Transaction',
101106
items: [
102107
{ text: 'Atomic Service', link: '/guide/db/atomic-service' },
103108
{ text: 'Race Condition', link: '/guide/db/race-condition' },
104109
{ text: 'Transaction', link: '/guide/db/transaction' },
105-
]
110+
],
111+
collapsed: false,
106112
},
107113
{
108114
text: 'Events',
@@ -111,37 +117,67 @@ export default defineConfig({
111117
{ text: 'Wallet Created', link: '/guide/events/wallet-created-event' },
112118
{ text: 'Transaction Created', link: '/guide/events/transaction-created-event' },
113119
{ text: 'Customize', link: '/guide/events/customize' },
114-
]
120+
],
121+
collapsed: false,
115122
},
116123
{
117124
text: 'Helpers',
118125
items: [
119126
{ text: 'Formatter', link: '/guide/helpers/formatter' },
120-
]
127+
],
128+
collapsed: false,
121129
},
122130
{
123131
text: 'High performance api handles',
124132
items: [
125133
{ text: 'Batch Transactions', link: '/guide/high-performance/batch-transactions' },
126134
{ text: 'Batch Transfers', link: '/guide/high-performance/batch-transfers' },
127-
]
135+
],
136+
collapsed: false,
128137
},
129138
{
130139
text: 'CQRS',
131140
items: [
132141
{ text: 'Create Wallet', link: '/guide/cqrs/create-wallet' },
133-
]
142+
],
143+
collapsed: false,
134144
},
135145
{
136146
text: 'Additions',
137147
items: [
138148
{ text: 'Wallet Swap', link: '/guide/additions/swap' },
139149
{ text: 'Support UUID', link: '/guide/additions/uuid' },
140-
]
150+
],
151+
collapsed: false,
141152
},
142153
],
143154

144155
socialLinks: [
156+
{
157+
link: 'https://t.me/laravel_wallet',
158+
icon: {
159+
svg: '<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve"><circle style="fill:#59aae7" cx="256" cy="256" r="247.916"/><path style="fill:#3d9ae3" d="M256,8.084c-10.96,0-21.752,0.72-32.337,2.099C345.304,26.029,439.242,130.04,439.242,256\n' +
160+
'\ts-93.939,229.971-215.579,245.817c10.585,1.379,21.377,2.099,32.337,2.099c136.921,0,247.916-110.996,247.916-247.916\n' +
161+
'\tS392.921,8.084,256,8.084z"/><path style="fill:#fcfcfc" d="M167.573,309.4l-79.955-39.978c-2.191-1.096-2.213-4.216-0.037-5.342l303.756-157.115\n' +
162+
'\tc2.231-1.154,4.807,0.786,4.315,3.249l-52.298,261.49c-0.373,1.866-2.369,2.916-4.119,2.167l-71.075-30.46\n' +
163+
'\tc-0.852-0.365-1.825-0.316-2.635,0.135l-91.844,51.024c-1.997,1.109-4.452-0.334-4.452-2.619v-79.87\n' +
164+
'\tC169.229,310.945,168.588,309.908,167.573,309.4z"/><path style="fill:#d8d7da" d="M202.069,336.347l-0.497-79.825c-0.003-0.511,0.262-0.986,0.697-1.253l129.671-79.214\n' +
165+
'\tc1.47-0.898,3.008,1.049,1.794,2.271l-98.682,99.383c-0.109,0.11-0.201,0.236-0.269,0.375l-16.88,33.757l-13.082,25.168\n' +
166+
'\tC204.118,338.36,202.078,337.868,202.069,336.347z"/><path d="M437.019,74.981C388.667,26.628,324.379,0,256,0S123.333,26.628,74.981,74.981S0,187.62,0,256\n' +
167+
'\ts26.628,132.667,74.981,181.019C123.333,485.372,187.62,512,256,512s132.667-26.628,181.019-74.981\n' +
168+
'\tC485.372,388.667,512,324.379,512,256S485.372,123.333,437.019,74.981z M256,495.832C123.756,495.832,16.168,388.244,16.168,256\n' +
169+
'\tS123.756,16.168,256,16.168S495.832,123.756,495.832,256S388.244,495.832,256,495.832z"/><path d="M352.42,282.405l-16.162,80.808l-66.295-28.412c-2.297-0.985-4.923-0.85-7.111,0.363l-85,47.223v-72.492\n' +
170+
'\tc0-3.062-1.73-5.861-4.469-7.231l-72.015-36.007l283.53-146.654l-24.605,123.023c-1,5.003,2.826,9.67,7.928,9.67l0,0\n' +
171+
'\tc3.853,0,7.171-2.721,7.928-6.499l27.903-139.517c0.609-3.047-0.582-6.174-3.064-8.043c-2.482-1.87-5.817-2.15-8.577-0.722\n' +
172+
'\tL79.822,259.599c-2.702,1.397-4.391,4.194-4.371,7.236s1.747,5.815,4.469,7.176l81.764,40.88v81.006c0,2.12,0.721,4.218,2.18,5.757\n' +
173+
'\tc1.614,1.703,3.759,2.557,5.905,2.557c1.352,0,2.704-0.338,3.927-1.018l93.544-51.969l71.597,30.684\n' +
174+
'\tc1.523,0.653,3.209,0.923,4.839,0.619c3.355-0.627,5.849-3.197,6.485-6.372l18.115-90.577c1-5.003-2.826-9.67-7.928-9.67l0,0\n' +
175+
'\tC356.493,275.907,353.175,278.627,352.42,282.405z"/><path d="M200.247,350.099c0.621,0.147,1.244,0.218,1.86,0.218c3.007,0,5.837-1.686,7.228-4.47l31.75-63.5l106.862-106.862\n' +
176+
'\tc2.898-2.898,3.168-7.51,0.627-10.727c-2.541-3.216-7.089-4.024-10.581-1.873l-140.126,86.232c-2.391,1.471-3.847,4.078-3.847,6.885\n' +
177+
'\tv86.232C194.021,345.982,196.599,349.238,200.247,350.099z M210.189,260.517l77.636-47.777l-59.101,59.101\n' +
178+
'\tc-0.613,0.614-1.125,1.324-1.513,2.101l-17.022,34.043V260.517z"/></svg>'
179+
},
180+
},
145181
{ icon: 'github', link: 'https://github.com/bavix/laravel-wallet' },
146182
],
147183

docs/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,26 @@ features:
2121
- title: Default Wallet
2222
details: For simple projects when there is no need for multiple wallets.
2323
icon: 💰
24+
link: /guide/single/deposit
2425
- title: Multi wallets
2526
details: Many wallets for one model. Easy API.
2627
icon: 🎒
28+
link: /guide/multi/new-wallet
2729
- title: Purchases
2830
details: E-commerce. Create goods and buy them using wallets. There are also shopping carts, availability, taxes and fees.
2931
icon: 🛍️
32+
link: /guide/purchases/payment
3033
- title: Exchanges
3134
details: Exchanges between wallets. Convert currency from one wallet to another.
3235
icon: 💱
36+
link: /guide/single/exchange
3337
- title: Support UUID
3438
details: Models with UUID are supported.
3539
icon: ❄️
40+
link: /guide/additions/uuid
3641
- title: Events
3742
details: For more complex projects there are events and high performance API.
3843
icon: 📻
44+
link: /guide/events/balance-updated-event
3945
---
4046

0 commit comments

Comments
 (0)