Skip to content

Commit 8216ad2

Browse files
committed
vitepress init
1 parent f15232b commit 8216ad2

File tree

210 files changed

+4192
-2509
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+4192
-2509
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ laravel-wallet - Easy work with virtual wallet.
1010

1111
[[Benchmark](https://github.com/bavix/laravel-wallet-benchmark/)]
1212
[[Documentation](https://bavix.github.io/laravel-wallet/)]
13-
[[Get Started](https://bavix.github.io/laravel-wallet/#/basic-usage)]
13+
[[Get Started](https://bavix.github.io/laravel-wallet/guide/introduction/)]
1414

1515
* **Vendor**: bavix
1616
* **Package**: laravel-wallet

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
}
6060
},
6161
"scripts": {
62-
"docs": "@php -S localhost:3000 -t ./docs",
62+
"docs": "@php -S localhost:3000 -t old_docs",
6363
"parabench":"@php ./vendor/bin/testbench package:test --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
6464
"infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases",
6565
"phpstan": ["@phpstan-src", "@phpstan-tests"],

docs/.nojekyll

Whitespace-only changes.

docs/.vitepress/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cache/

docs/.vitepress/config.mts

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: "Laravel Wallet",
6+
description: "Easy work with virtual wallet",
7+
base: '/laravel-wallet/',
8+
head: [
9+
[
10+
'script',
11+
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-LNEGT551DV' }
12+
],
13+
[
14+
'script',
15+
{},
16+
`window.dataLayer = window.dataLayer || [];
17+
function gtag(){dataLayer.push(arguments);}
18+
gtag('js', new Date());
19+
gtag('config', 'G-LNEGT551DV');`
20+
]
21+
],
22+
themeConfig: {
23+
// https://vitepress.dev/reference/default-theme-config
24+
search: {
25+
provider: 'local'
26+
},
27+
editLink: {
28+
pattern: 'https://github.com/bavix/laravel-wallet/edit/master/docs/:path'
29+
},
30+
nav: [
31+
{ text: 'Home', link: '/' },
32+
{ text: 'Guide', link: '/guide/introduction/' },
33+
{ text: 'Chat', link: 'https://t.me/laravel_wallet' },
34+
{ text: 'Issues', link: 'https://github.com/bavix/laravel-wallet/issues' },
35+
{ text: 'Discussions', link: 'https://github.com/bavix/laravel-wallet/discussions' },
36+
{ text: 'Donate', link: 'https://opencollective.com/laravel-wallet' },
37+
],
38+
39+
sidebar: [
40+
{
41+
text: 'Getting started',
42+
items: [
43+
{ text: 'Introduction', link: '/guide/introduction/' },
44+
{ text: 'Installation', link: '/guide/introduction/installation' },
45+
{ text: 'Configuration', link: '/guide/introduction/configuration' },
46+
{ text: 'Basic Usage', link: '/guide/introduction/basic-usage' },
47+
{ text: 'Upgrade', link: '/guide/introduction/upgrade' },
48+
]
49+
},
50+
{
51+
text: 'Single/Default Wallet',
52+
items: [
53+
{ text: 'Deposit', link: '/guide/single/deposit' },
54+
{ text: 'Withdraw', link: '/guide/single/withdraw' },
55+
{ text: 'Transfer', link: '/guide/single/transfer' },
56+
{ text: 'Refresh Balance', link: '/guide/single/refresh' },
57+
{ text: 'Confirm Transaction', link: '/guide/single/confirm' },
58+
{ text: 'Cancel Transaction', link: '/guide/single/cancel' },
59+
{ text: 'Exchange', link: '/guide/single/exchange' },
60+
{ text: 'Credit Limits', link: '/guide/single/credit-limits' },
61+
]
62+
},
63+
{
64+
text: 'Multi Wallet',
65+
items: [
66+
{ text: 'New Wallet', link: '/guide/multi/new-wallet' },
67+
{ text: 'Transfer', link: '/guide/multi/transfer' },
68+
{ text: 'Transaction Filter', link: '/guide/multi/transaction-filter' },
69+
]
70+
},
71+
{
72+
text: 'Fractional Wallet',
73+
items: [
74+
{ text: 'Deposit', link: '/guide/fractional/deposit' },
75+
{ text: 'Withdraw', link: '/guide/fractional/withdraw' },
76+
{ text: 'Transfer', link: '/guide/fractional/transfer' },
77+
]
78+
},
79+
{
80+
text: 'Purchases',
81+
items: [
82+
{ text: 'Payment', link: '/guide/purchases/payment' },
83+
{ text: 'Payment Free', link: '/guide/purchases/payment-free' },
84+
{ text: 'Refund', link: '/guide/purchases/refund' },
85+
{ text: 'Gift', link: '/guide/purchases/gift' },
86+
{ text: 'Cart', link: '/guide/purchases/cart' },
87+
{ text: 'Commissions', link: '/guide/purchases/commissions' },
88+
{ text: 'Customize receiving', link: '/guide/purchases/receiving' },
89+
]
90+
},
91+
{
92+
text: 'Database Transaction',
93+
items: [
94+
{ text: 'Atomic Service', link: '/guide/db/atomic-service' },
95+
{ text: 'Race Condition', link: '/guide/db/race-condition' },
96+
{ text: 'Transaction', link: '/guide/db/transaction' },
97+
]
98+
},
99+
{
100+
text: 'Events',
101+
items: [
102+
{ text: 'Balance Updated', link: '/guide/events/balance-updated-event' },
103+
{ text: 'Wallet Created', link: '/guide/events/wallet-created-event' },
104+
{ text: 'Transaction Created', link: '/guide/events/transaction-created-event' },
105+
{ text: 'Customize', link: '/guide/events/customize' },
106+
]
107+
},
108+
{
109+
text: 'Helpers',
110+
items: [
111+
{ text: 'Formatter', link: '/guide/helpers/formatter' },
112+
]
113+
},
114+
{
115+
text: 'High performance api handles',
116+
items: [
117+
{ text: 'Batch Transactions', link: '/guide/high-performance/batch-transactions' },
118+
{ text: 'Batch Transfers', link: '/guide/high-performance/batch-transfers' },
119+
]
120+
},
121+
{
122+
text: 'CQRS',
123+
items: [
124+
{ text: 'Create Wallet', link: '/guide/cqrs/create-wallet' },
125+
]
126+
},
127+
],
128+
129+
socialLinks: [
130+
{ icon: 'github', link: 'https://github.com/bavix/laravel-wallet' },
131+
],
132+
133+
footer: {
134+
message: 'Released under the <a href="https://github.com/bavix/laravel-wallet/blob/master/LICENSE">MIT License</a>.',
135+
copyright: 'Copyright © 2018-present <a href="https://github.com/rez1dent3">Babichev Maksim</a>'
136+
}
137+
}
138+
})

docs/.vitepress/dist/404.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US" dir="ltr">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<title>404 | Laravel Wallet</title>
7+
<meta name="description" content="Not Found">
8+
<meta name="generator" content="VitePress v1.2.3">
9+
<link rel="preload stylesheet" href="/laravel-wallet/assets/style.A34_PHSu.css" as="style">
10+
11+
<script type="module" src="/laravel-wallet/assets/app.Bju71ejy.js"></script>
12+
<link rel="preload" href="/laravel-wallet/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
13+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LNEGT551DV"></script>
14+
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date),gtag("config","G-LNEGT551DV");</script>
15+
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
16+
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
17+
</head>
18+
<body>
19+
<div id="app"></div>
20+
<script>window.__VP_HASH_MAP__=JSON.parse("{\"include_models_user_simple_float.md\":\"BHKtZpXH\",\"guide_events_transaction-created-event.md\":\"Duh3XbkM\",\"guide_db_transaction.md\":\"CZUiznZz\",\"include_eager_loading.md\":\"DEcAtRed\",\"guide_db_race-condition.md\":\"Bk_sun3W\",\"guide_events_wallet-created-event.md\":\"CK_r0lzx\",\"guide_events_customize.md\":\"9V6b1Caz\",\"include_composer.md\":\"Bahh6vzC\",\"guide_fractional_deposit.md\":\"BWDu9S8t\",\"guide_fractional_withdraw.md\":\"e7s23Eiv\",\"guide_helpers_formatter.md\":\"DgY9iwej\",\"guide_fractional_transfer.md\":\"B94kgHWa\",\"guide_introduction_configuration.md\":\"BkIk8Nu_\",\"guide_multi_transfer.md\":\"CmmGlTvH\",\"guide_high-performance_batch-transactions.md\":\"BEEhiD5t\",\"include_models_user_simple.md\":\"DWW_tdne\",\"guide_additions_laravel-wallet-swap.md\":\"CAXVUHnE\",\"guide_events_balance-updated-event.md\":\"CBcnawJm\",\"guide_db_atomic-service.md\":\"csSpqsjE\",\"guide_introduction_index.md\":\"OLZq5yD4\",\"guide_cqrs_create-wallet.md\":\"BIpY-lGh\",\"guide_additions_laravel-wallet-uuid.md\":\"DIFSzon4\",\"guide_multi_new-wallet.md\":\"C77SSs4v\",\"guide_purchases_receiving.md\":\"DgdGYpnV\",\"guide_multi_transaction-filter.md\":\"BJcsCpfk\",\"guide_high-performance_batch-transfers.md\":\"CDYVA106\",\"guide_purchases_payment-free.md\":\"BkfY0cCS\",\"guide_purchases_refund.md\":\"Cvi1Vscy\",\"guide_introduction_basic-usage.md\":\"8BCaXADC\",\"guide_purchases_cart.md\":\"9T34pvFh\",\"guide_introduction_upgrade.md\":\"DAWn6XRt\",\"guide_single_confirm.md\":\"e4AeBLuv\",\"guide_introduction_installation.md\":\"cd8KQDEh\",\"guide_purchases_payment.md\":\"CqJ47XjU\",\"guide_single_deposit.md\":\"DWjBMxNa\",\"guide_single_credit-limits.md\":\"m6HNPX38\",\"guide_single_cancel.md\":\"CNo1Ld3C\",\"guide_single_transfer.md\":\"BGFEmOXn\",\"guide_single_refresh.md\":\"RmgocjVW\",\"guide_purchases_gift.md\":\"BL1g8j1n\",\"index.md\":\"CxOcTylj\",\"guide_single_exchange.md\":\"DHAqruLi\",\"guide_single_withdraw.md\":\"Cqspz8GJ\",\"guide_single_taxing.md\":\"t-q6--Yk\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Laravel Wallet\",\"description\":\"Easy work with virtual wallet\",\"base\":\"/laravel-wallet/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"search\":{\"provider\":\"local\"},\"editLink\":{\"pattern\":\"https://github.com/bavix/laravel-wallet/edit/master/docs/:path\"},\"nav\":[{\"text\":\"Home\",\"link\":\"/\"},{\"text\":\"Guide\",\"link\":\"/guide/introduction/\"},{\"text\":\"Chat\",\"link\":\"https://t.me/laravel_wallet\"},{\"text\":\"Issues\",\"link\":\"https://github.com/bavix/laravel-wallet/issues\"},{\"text\":\"Discussions\",\"link\":\"https://github.com/bavix/laravel-wallet/discussions\"},{\"text\":\"Donate\",\"link\":\"https://opencollective.com/laravel-wallet\"}],\"sidebar\":[{\"text\":\"Getting started\",\"items\":[{\"text\":\"Introduction\",\"link\":\"/guide/introduction/\"},{\"text\":\"Installation\",\"link\":\"/guide/introduction/installation\"},{\"text\":\"Configuration\",\"link\":\"/guide/introduction/configuration\"},{\"text\":\"Basic Usage\",\"link\":\"/guide/introduction/basic-usage\"},{\"text\":\"Upgrade\",\"link\":\"/guide/introduction/upgrade\"}]},{\"text\":\"Single Wallet\",\"items\":[{\"text\":\"Deposit\",\"link\":\"/guide/single/deposit\"},{\"text\":\"Withdraw\",\"link\":\"/guide/single/withdraw\"},{\"text\":\"Transfer\",\"link\":\"/guide/single/transfer\"},{\"text\":\"Refresh Balance\",\"link\":\"/guide/single/refresh\"},{\"text\":\"Confirm Transaction\",\"link\":\"/guide/single/confirm\"},{\"text\":\"Cancel Transaction\",\"link\":\"/guide/single/cancel\"},{\"text\":\"Exchange\",\"link\":\"/guide/single/exchange\"},{\"text\":\"Taxing\",\"link\":\"/guide/single/taxing\"},{\"text\":\"Credit Limits\",\"link\":\"/guide/single/credit-limits\"}]},{\"text\":\"Multi Wallet\",\"items\":[{\"text\":\"New Wallet\",\"link\":\"/guide/multi/new-wallet\"},{\"text\":\"Transfer\",\"link\":\"/guide/multi/transfer\"},{\"text\":\"Transaction Filter\",\"link\":\"/guide/multi/transaction-filter\"}]},{\"text\":\"Fractional Wallet\",\"items\":[{\"text\":\"Deposit\",\"link\":\"/guide/fractional/deposit\"},{\"text\":\"Withdraw\",\"link\":\"/guide/fractional/withdraw\"},{\"text\":\"Transfer\",\"link\":\"/guide/fractional/transfer\"}]},{\"text\":\"Purchases\",\"items\":[{\"text\":\"Payment\",\"link\":\"/guide/purchases/payment\"},{\"text\":\"Payment Free\",\"link\":\"/guide/purchases/payment-free\"},{\"text\":\"Refund\",\"link\":\"/guide/purchases/refund\"},{\"text\":\"Gift\",\"link\":\"/guide/purchases/gift\"},{\"text\":\"Cart\",\"link\":\"/guide/purchases/cart\"},{\"text\":\"Customize receiving\",\"link\":\"/guide/purchases/receiving\"}]},{\"text\":\"Database Transaction\",\"items\":[{\"text\":\"Atomic Service\",\"link\":\"/guide/db/atomic-service\"},{\"text\":\"Race Condition\",\"link\":\"/guide/db/race-condition\"},{\"text\":\"Transaction\",\"link\":\"/guide/db/transaction\"}]},{\"text\":\"Events\",\"items\":[{\"text\":\"Balance Updated\",\"link\":\"/guide/events/balance-updated-event\"},{\"text\":\"Wallet Created\",\"link\":\"/guide/events/wallet-created-event\"},{\"text\":\"Transaction Created\",\"link\":\"/guide/events/transaction-created-event\"},{\"text\":\"Customize\",\"link\":\"/guide/events/customize\"}]},{\"text\":\"Helpers\",\"items\":[{\"text\":\"Formatter\",\"link\":\"/guide/helpers/formatter\"}]},{\"text\":\"High performance api handles\",\"items\":[{\"text\":\"Batch Transactions\",\"link\":\"/guide/high-performance/batch-transactions\"},{\"text\":\"Batch Transfers\",\"link\":\"/guide/high-performance/batch-transfers\"}]},{\"text\":\"CQRS\",\"items\":[{\"text\":\"Create Wallet\",\"link\":\"/guide/cqrs/create-wallet\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/bavix/laravel-wallet\"}],\"footer\":{\"message\":\"Released under the <a href=\\\"https://github.com/bavix/laravel-wallet/blob/master/LICENSE\\\">MIT License</a>.\",\"copyright\":\"Copyright © 2018-present <a href=\\\"https://github.com/rez1dent3\\\">Babichev Maksim</a>\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
21+
22+
</body>
23+
</html>

docs/.vitepress/dist/_include/composer.html

Lines changed: 26 additions & 0 deletions
Large diffs are not rendered by default.

docs/.vitepress/dist/_include/eager_loading.html

Lines changed: 42 additions & 0 deletions
Large diffs are not rendered by default.

docs/.vitepress/dist/_include/models/user_simple.html

Lines changed: 32 additions & 0 deletions
Large diffs are not rendered by default.

docs/.vitepress/dist/_include/models/user_simple_float.html

Lines changed: 32 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)