Skip to content

Commit dbd5d41

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents a6a8dd5 + e62b94f commit dbd5d41

3 files changed

Lines changed: 34 additions & 20 deletions

File tree

npm/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import "./mustache";
1616
import "./yaml";
1717
import "./encoding";
1818
import "./mail";
19-
import "./file"
19+
import "./file";
2020

2121
/**
2222
* Attaches an event handler for the given event.
@@ -794,4 +794,4 @@ export interface SharedMemory {
794794
* mokapi.log(`Current counter: ${count}`)
795795
* ```
796796
*/
797-
export const shared: SharedMemory;
797+
export const shared: SharedMemory;

webui/e2e/home.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ test('home overview', async ({ home }) => {
44
await home.open()
55

66
await expect(home.heroTitle).toHaveText('Mock APIs. Test Faster. Ship Better.')
7-
await expect(home.heroDescription).toHaveText(`Mokapi is your always-on API contract guardian — lightweight, transparent, and spec-driven. Free, open-source, and fully under your control.`)
7+
await expect(home.heroDescription).toHaveText(`Develop faster without waiting for backends. Test reliably without external dependencies. Deploy confidently with contract validation. Free, open-source, and fully under your control.`)
88
})

webui/src/views/Home.vue

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,30 +48,44 @@ function showImage(evt: MouseEvent) {
4848
<div class="col-12 col-lg-6 px-0">
4949

5050
<h1>Mock APIs. Test Faster. Ship Better.</h1>
51-
<div class="badge-list mb-3" role="navigation" aria-label="API type navigation">
52-
<a href="http"><span class="badge" aria-label="HTTP API Support">HTTP</span></a>
53-
<a href="kafka"><span class="badge" aria-label="Kafka Support">Kafka</span></a>
54-
<a href="ldap"><span class="badge" aria-label="LDAP Support">LDAP</span></a>
55-
<a href="mail"><span class="badge" aria-label="Email Support">Email</span></a>
56-
</div>
51+
<div class="badge-list mb-3" role="list" aria-label="Supported protocols">
52+
<router-link :to="{ path: '/http' }">
53+
<span class="badge" aria-label="HTTP API Support">HTTP</span>
54+
</router-link>
55+
<router-link :to="{ path: '/kafka' }">
56+
<span class="badge" aria-label="Kafka Support">Kafka</span>
57+
</router-link>
58+
<router-link :to="{ path: '/ldap' }">
59+
<span class="badge" aria-label="LDAP Support">LDAP</span>
60+
</router-link>
61+
<router-link :to="{ path: '/mail' }">
62+
<span class="badge" aria-label="Email Support">Email</span>
63+
</router-link>
64+
</div>
5765
<p class="lead description">
58-
Mokapi is your always-on API contract guardian —
59-
lightweight, transparent, and spec-driven.
60-
<span class="fst-italic d-block mt-1">
66+
Develop faster without waiting for backends. Test reliably without
67+
external dependencies. Deploy confidently with contract validation.
68+
<span class="fst-italic d-block mt-2" style="font-size: 0.95rem;">
6169
Free, open-source, and fully under your control.
6270
</span>
6371
</p>
6472
<p class="d-none d-md-block">
6573
<router-link :to="{ path: '/docs/get-started/installation' }" class="btn btn-primary me-2">
6674
Get Started
6775
</router-link>
68-
<router-link :to="{ path: '/resources' }" class="btn btn-primary me-2">
69-
Tutorials
70-
</router-link>
76+
<a href="#demo" class="btn btn-primary">
77+
See Demo
78+
</a>
7179
</p>
7280
</div>
7381
<div class="col-12 col-lg-5">
74-
<img src="/logo.svg" alt="Mokapi logo with an okapi symbol representing friendly and elegant developer tooling" title="Mokapi – the okapi-inspired logo for modern API mocking" class="mx-auto d-block no-dialog" />
82+
<img
83+
src="/logo.svg"
84+
alt="Mokapi logo with an okapi symbol representing friendly and elegant developer tooling"
85+
title="Mokapi – the okapi-inspired logo for modern API mocking"
86+
class="mx-auto d-block no-dialog"
87+
loading="eager"
88+
/>
7589
<div class="text-center github-meta">
7690
<a
7791
href="https://github.com/marle3003/mokapi"
@@ -94,9 +108,9 @@ function showImage(evt: MouseEvent) {
94108
<router-link :to="{ path: '/docs/get-started/installation' }" class="btn btn-primary me-2">
95109
Get Started
96110
</router-link>
97-
<router-link :to="{ path: '/resources' }" class="btn btn-primary me-2">
98-
Tutorials
99-
</router-link>
111+
<a href="#demo" class="btn btn-primary">
112+
See Demo
113+
</a>
100114
</p>
101115
</div>
102116
</div>
@@ -509,7 +523,7 @@ function showImage(evt: MouseEvent) {
509523
</div>
510524
</section>
511525

512-
<section class="py-5 mokapi-demo">
526+
<section class="py-5 mokapi-demo" id="demo">
513527
<div class="container">
514528
<div class="row">
515529
<h2 class="mb-3">See Mokapi in Action</h2>

0 commit comments

Comments
 (0)