Skip to content

Commit 386421f

Browse files
committed
feat: add paystack docs
1 parent b941c6f commit 386421f

File tree

4 files changed

+146
-84
lines changed

4 files changed

+146
-84
lines changed

.vitepress/theme/components/Home/Tooling.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,25 @@ const tab = ref(tooling[0].title);
259259
tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">$uploaded </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> storage</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">()</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-&gt;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">upload</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'fileToUpload'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'path/to/uploads'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">);</span></span></code></pre>
260260
</div>
261261

262+
<p>Need to cache something?</p>
263+
264+
<div class="language-php vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span
265+
class="lang">php</span>
266+
<pre
267+
class="shiki shiki-themes github-light github-dark vp-code dark:!bg-[var(--vp-c-bg)] !bg-[var(--vp-c-bg-alt)]"
268+
tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">$dataFromDatabase</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> cache</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">(</span></span>
269+
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'queries.complexQuery'</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">,</span></span>
270+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 60</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 60</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">,</span></span>
271+
<span class="line"><span style="---shiki-light:#D73A49;--shiki-dark:#F97583;"> function</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">()</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;"> {</span></span>
272+
<span class="line"><span style="--shiki-light:#7F848E;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic;"> // Simulate a complex database query</span></span>
273+
<span class="line"><span style="---shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> db</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">()</span></span>
274+
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> -&gt;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">select</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'complex_table'</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">)</span></span>
275+
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> -&gt;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">where</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'some_column'</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">,</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'some_value'</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">)</span></span>
276+
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> -&gt;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">get</span><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">();</span></span>
277+
<span class="line"><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;"> }</span></span>
278+
<span class="line"><span style="--shiki-light:#ABB2BF;--shiki-dark:#ABB2BF;">);</span></span></code></pre>
279+
</div>
280+
262281
<p>Date and time formatting?</p>
263282

264283
<div class="language-php vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
2-
<a href="https://selll.online" target="_blank" class="p-4 rounded-3xl bg-[var(--vp-c-bg-alt)] mt-5" id="widget">
3-
<img src="https://selll.online/assets/img/screenshots/product.jpg" class="rounded-2xl" alt="Paperplane" width="457"
4-
height="336">
2+
<a href="https://studio.leafphp.dev" target="_blank" class="p-4 rounded-3xl bg-[var(--vp-c-bg-alt)] mt-5" id="widget">
3+
<img src="https://github.com/user-attachments/assets/db120ec2-7092-4b18-b1ec-96c9aab90641" class="rounded-2xl"
4+
alt="Paperplane" width="457" height="336">
55

66
<p class="mt-4 mb-2 text-xs">
77
<i>From the creators of Leaf PHP - </i>
8-
Create your personalized storefront, add your products, share your link, and start sellling for free.
8+
Work with a studio that’s shipped frameworks and products used by millions. Let’s build yours next.
99
</p>
1010

11-
<small class="text-xs font-medium hover:underline">Learn more →</small>
11+
<small class="text-xs font-medium hover:underline">Start Your Project →</small>
1212
</a>
1313
</template>

.vitepress/theme/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export default {
1717
return h(DefaultTheme.Layout, null, {
1818
// 'layout-top': () =>
1919
// h(defineAsyncComponent(() => import('./components/shared/Banner.vue'))),
20-
// 'aside-ads-before' : () =>
21-
// h(defineAsyncComponent(() => import('./components/shared/Ad.vue'))),
20+
'aside-ads-before' : () =>
21+
h(defineAsyncComponent(() => import('./components/shared/Ad.vue'))),
2222
// h(defineAsyncComponent(() => import('./components/shared/GPTLink.vue'))),
2323
'sidebar-nav-before': () =>
2424
h(defineAsyncComponent(() => import('./components/shared/SidebarLinks.vue'))),

0 commit comments

Comments
 (0)