Skip to content

Commit dec3f64

Browse files
committed
docs: update ecosystem
1 parent 8403a08 commit dec3f64

File tree

9 files changed

+89
-3
lines changed

9 files changed

+89
-3
lines changed

docs/.vitepress/config.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,13 @@ const config = {
7878
text: 'Official Tooling',
7979
link: '/ecosystem/official'
8080
},
81+
{
82+
text: '3rd Party Integrations',
83+
link: '/ecosystem/integrations'
84+
},
8185
{
8286
text: '3rd Party Tooling',
83-
link: '/ecosystem/third'
87+
link: '/ecosystem/tools'
8488
},
8589
],
8690
'/api/': [
@@ -257,9 +261,13 @@ const config = {
257261
text: 'Official Tooling',
258262
link: '/ja/ecosystem/official'
259263
},
264+
{
265+
text: '3rd Party Integrations',
266+
link: '/ja/ecosystem/integrations'
267+
},
260268
{
261269
text: '3rd Party Tooling',
262-
link: '/ja/ecosystem/third'
270+
link: '/ja/ecosystem/tools'
263271
},
264272
],
265273
'/ja/api/': [
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<script lang="ts">
2+
import { defineComponent } from 'vue'
3+
4+
export default defineComponent({
5+
name: 'service',
6+
7+
props: {
8+
title: {
9+
type: String,
10+
requried: true
11+
},
12+
13+
link: {
14+
type: String
15+
},
16+
17+
source: {
18+
type: String,
19+
required: true
20+
},
21+
22+
description: {
23+
type: String,
24+
required: true
25+
}
26+
}
27+
})
28+
</script>
29+
30+
<template>
31+
<h2>{{ title }}</h2>
32+
<a :href="link" class="base" target="_blank" rel="noopener">
33+
<img class="banner" :alt="title" :src="source" />
34+
</a>
35+
<p>{{ description }}</p>
36+
<br />
37+
<a class="become-a-sponsor" href="https://github.com/sponsors/kazupon" target="_blank" rel="noopener">Become a sponsor on GitHub</a>
38+
</template>
39+
40+
<style scoped>
41+
.base {
42+
margin: 1rem 1rem 0 1rem;
43+
height: auto;
44+
display: inline-block;
45+
vertical-align: middle;
46+
width: 15rem;
47+
}
48+
.banner {
49+
max-width: 100%;
50+
vertical-align: midele;
51+
}
52+
</style>

docs/.vitepress/theme/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { h } from 'vue'
22
import DefaultTheme from 'vitepress/dist/client/theme-default'
33
import Layout from './Layout.vue'
44
import Sponsor from './components/Sponsor.vue'
5+
import Service from './components/Service.vue'
56
import { sponsors } from './sponsor'
7+
import { integrations } from './integrations'
68

79
export default {
810
...DefaultTheme,
@@ -13,6 +15,7 @@ export default {
1315
app.component('GoldSponsors', () => sponsors.golds.map(prop => h(Sponsor, prop)))
1416
app.component('SilverSponsors', () => sponsors.silvers.map(prop => h(Sponsor, prop)))
1517
app.component('BronzeSponsors', () => sponsors.bronzes.map(prop => h(Sponsor, prop)))
18+
app.component('IntegrationServices', () => integrations.map(prop => h(Service, prop)))
1619
// test
1720
// app is the Vue 3 app instance from createApp()
1821
// router is VitePress' custom router (see `lib/app/router.js`)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"title": "Localazy ®",
4+
"source": "/localazy.svg",
5+
"link": "https://localazy.com/blog/how-to-localize-vuejs-app-with-vue-i18n-and-localazy?utm_source=kazupon&utm_medium=banner&utm_campaign=sponsorships_kazupon&utm_content=logo",
6+
"description": "Software internationalization and content localization platform with dedicated support for Vue-i18n library and over 50 other integrations to cover your tech stack for the whole team."
7+
}
8+
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import data from './integrations.json'
2+
3+
export interface Service {
4+
title: string
5+
link: string
6+
source: string
7+
description: string
8+
}
9+
10+
export const integrations = data

docs/ecosystem/integrations.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Third-party integrations
2+
3+
<IntegrationServices />
File renamed without changes.

docs/ja/ecosystem/integrations.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Third-party integrations
2+
3+
<IntegrationServices />

docs/ja/ecosystem/third.md renamed to docs/ja/ecosystem/tools.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Third-party tooling
22

3-
43
## Nuxt Module
54

65
[nuxt-i18n](https://github.com/nuxt-community/nuxt-i18n/) is corresponding Nuxt.js module.

0 commit comments

Comments
 (0)