Skip to content

Commit 8f9f3c7

Browse files
committed
docs(en): merging all conflicts
2 parents 2f17c11 + 21fdadc commit 8f9f3c7

Some content is hidden

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

49 files changed

+1561
-154
lines changed

.vitepress/config.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,25 @@ const Guide: DefaultTheme.NavItemWithLink[] = [
3030
link: '/guide/animations',
3131
},
3232
{
33+
<<<<<<< HEAD
3334
text: 'Εξαγωγή',
3435
link: '/guide/exporting',
36+
=======
37+
text: 'Draggable Elements',
38+
link: '/guide/draggable',
39+
},
40+
{
41+
text: 'Presenter Mode',
42+
link: '/guide/presenter-mode',
43+
},
44+
{
45+
text: 'Slides Overview',
46+
link: '/guide/overview',
47+
},
48+
{
49+
text: 'Drawing & Annotations',
50+
link: '/guide/drawing',
51+
>>>>>>> 21fdadc17cd2018f65c637e5727de640db5036e3
3552
},
3653
{
3754
text: 'Στατική Φιλοξενία',
@@ -142,9 +159,25 @@ const Customizations: (DefaultTheme.NavItemWithLink | DefaultTheme.NavItemChildr
142159
link: '/custom/config-parser',
143160
},
144161
{
162+
<<<<<<< HEAD
145163
text: 'Ρυθμίστε Συντομεύσεις',
164+
=======
165+
text: 'Configure Routes',
166+
link: '/custom/config-routes',
167+
},
168+
{
169+
text: 'Configure Shortcuts',
170+
>>>>>>> 21fdadc17cd2018f65c637e5727de640db5036e3
146171
link: '/custom/config-shortcuts',
147172
},
173+
{
174+
text: 'Configure Code Runners',
175+
link: '/custom/config-code-runners',
176+
},
177+
{
178+
text: 'Configure Context Menu',
179+
link: '/custom/config-context-menu',
180+
},
148181
{
149182
text: 'Vue Global Context',
150183
link: '/custom/vue-context',
@@ -191,6 +224,10 @@ const slidebars: DefaultTheme.SidebarItem[] = [
191224
text: 'Ενσωματωμένα',
192225
items: BuiltIn,
193226
},
227+
{
228+
text: 'Resources',
229+
items: Resources,
230+
},
194231
]
195232

196233
export default defineConfig({
@@ -230,8 +267,13 @@ export default defineConfig({
230267
themeConfig: {
231268
logo: '/logo.svg',
232269
editLink: {
270+
<<<<<<< HEAD
233271
pattern: 'https://github.com/slidevjs/docs-el/edit/main/:path',
234272
text: 'Προτείνετε αλλαγές σε αυτή τη σελίδα',
273+
=======
274+
pattern: 'https://github.com/slidevjs/slidev/edit/main/docs/:path',
275+
text: 'Suggest changes to this page',
276+
>>>>>>> 21fdadc17cd2018f65c637e5727de640db5036e3
235277
},
236278

237279
search: {

.vitepress/showcases.ts

Lines changed: 51 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const showcases: ShowCaseInfo[] = [
2020
name: 'Anthony Fu',
2121
link: 'https://github.com/antfu',
2222
},
23-
slidesLink: 'https://sli.dev/demo/composable-vue',
24-
sourceLink: 'https://github.com/antfu/talks/tree/master/2021-04-29',
23+
slidesLink: 'https://talks.antfu.me/2021/composable-vue/',
24+
sourceLink: 'https://github.com/antfu/talks/tree/main/2021-04-29',
2525
at: 'VueDay 2021',
2626
datetime: '2021-04-29',
2727
},
@@ -49,29 +49,29 @@ export const showcases: ShowCaseInfo[] = [
4949
at: 'Enter.js Vue Day',
5050
datetime: '2021-06-15',
5151
},
52-
{
53-
title: 'Simply Publish Your Package to npm',
54-
author: {
55-
name: 'Lucky Dewa Satria',
56-
link: 'https://github.com/lucky401',
57-
},
58-
at: 'Weekly sharing',
59-
slidesLink: 'https://masukin.link/talks/simply-publish-your-package-to-npm',
60-
cover: 'https://masukin.link/talks-cover-npm.png',
61-
datetime: '2021-06-12',
62-
},
63-
{
64-
title: 'Create Icon Package With Vue and Rollup',
65-
author: {
66-
name: 'Lucky Dewa Satria',
67-
link: 'https://github.com/lucky401',
68-
},
69-
at: 'Weekly Sharing',
70-
slidesLink: 'https://masukin.link/talks/create-icon-package-with-vue-and-rollup',
71-
sourceLink: 'https://github.com/lucky401/Create-Icon-Package-With-Vue-and-Rollup',
72-
cover: 'https://masukin.link/talks-cover-create-icon-package-with-vue-and-rollup.png',
73-
datetime: '2021-06-19',
74-
},
52+
// {
53+
// title: 'Simply Publish Your Package to npm',
54+
// author: {
55+
// name: 'Lucky Dewa Satria',
56+
// link: 'https://github.com/lucky401',
57+
// },
58+
// at: 'Weekly sharing',
59+
// slidesLink: 'https://masukin.link/talks/simply-publish-your-package-to-npm',
60+
// cover: 'https://masukin.link/talks-cover-npm.png',
61+
// datetime: '2021-06-12',
62+
// },
63+
// {
64+
// title: 'Create Icon Package With Vue and Rollup',
65+
// author: {
66+
// name: 'Lucky Dewa Satria',
67+
// link: 'https://github.com/lucky401',
68+
// },
69+
// at: 'Weekly Sharing',
70+
// slidesLink: 'https://masukin.link/talks/create-icon-package-with-vue-and-rollup',
71+
// sourceLink: 'https://github.com/lucky401/Create-Icon-Package-With-Vue-and-Rollup',
72+
// cover: 'https://masukin.link/talks-cover-create-icon-package-with-vue-and-rollup.png',
73+
// datetime: '2021-06-19',
74+
// },
7575
{
7676
title: 'BeAPT',
7777
author: {
@@ -190,6 +190,30 @@ export const showcases: ShowCaseInfo[] = [
190190
at: 'Presentation on Social Engineering in Computers in Society class',
191191
datetime: '2023-10-20',
192192
},
193+
{
194+
title: 'Diablo Health Orb Shader',
195+
author: {
196+
name: 'SuneBear',
197+
link: 'https://github.com/sunebear',
198+
},
199+
at: 'rctAI Sessions',
200+
slidesLink: 'https://rct-ai.github.io/frontend-slides/diablo-health-orb-shader/',
201+
sourceLink: 'https://github.com/rct-ai/frontend-slides',
202+
cover: 'https://github-production-user-asset-6210df.s3.amazonaws.com/7693264/284304324-db973b4c-a043-4644-932c-826169a1b4d8.gif',
203+
datetime: '2022-09-01',
204+
},
205+
{
206+
title: 'How Rust error handling ease web development',
207+
author: {
208+
name: 'Nguyễn Hồng Quân',
209+
link: 'https://quan.hoabinh.vn',
210+
},
211+
at: 'FOSSASIA Summit 2024',
212+
slidesLink: 'https://talk.quan.hoabinh.vn/rust-error-handling-ease-web-dev/',
213+
sourceLink: 'https://hongquan@bitbucket.org/hongquan/rust-error-handling-ease-web-dev.git',
214+
cover: 'https://i.imgur.com/2eBJofY.png',
215+
datetime: '2024-04-10',
216+
},
193217
// Add yours here!
194218
{
195219
title: 'Yours?',
@@ -199,6 +223,6 @@ export const showcases: ShowCaseInfo[] = [
199223
at: 'Submit your talk/presentation to be list here!',
200224
slidesLink: 'https://github.com/slidevjs/docs/edit/main/.vitepress/showcases.ts',
201225
cover: `${import.meta.env.BASE_URL}theme-placeholder.png`,
202-
datetime: '2021-04-29',
226+
datetime: '2020-1-1',
203227
},
204-
]
228+
].sort((a, b) => new Date(b.datetime).getTime() - new Date(a.datetime).getTime())

.vitepress/theme/components/Demo.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,26 @@ if (typeof window !== 'undefined') {
7171
}
7272
7373
onMounted(() => {
74-
new TypeIt(block.value, {
74+
// @ts-expect-error wrong types provided by TypeIt
75+
new TypeIt(block.value!, {
7576
speed: 50,
7677
startDelay: 900,
7778
afterStep: () => {
7879
// eslint-disable-next-line unicorn/prefer-dom-node-text-content
7980
code.value = JSON.parse(JSON.stringify(block.value!.innerText.replace('|', '')))
8081
},
8182
})
83+
<<<<<<< HEAD
8284
.type('<br><span class="token title"># Καλώς ήρθατε στο Slidev!</span><br><br>', { delay: 400 })
8385
.type('Διαφάνειες παρουσίασης για προγραμματιστές', { delay: 400 })
8486
.move('START', { speed: 0 })
87+
=======
88+
.type('<br><span class="token title"># Welcome to Slidev!</span><br><br>', { delay: 400 })
89+
.type('Presentation Slides for Developers', { delay: 400 })
90+
.move(null, { to: 'START', speed: 0 })
91+
>>>>>>> 21fdadc17cd2018f65c637e5727de640db5036e3
8592
.type('<br>')
86-
.move('START')
93+
.move(null, { to: 'START' })
8794
.exec(pause)
8895
.type('<span class="token punctuation">---<br><br>---</span>')
8996
.move(-4)
@@ -101,7 +108,7 @@ onMounted(() => {
101108
.type(COVER_URL, { speed: 0 })
102109
.exec(resume)
103110
.pause(1000)
104-
.move('END', { speed: 0 })
111+
.move(null, { to: 'END', speed: 0 })
105112
.exec(pause)
106113
.type('<br><br><span class="token punctuation">---</span><br><br>', { delay: 400 })
107114
.exec(resume)

.vitepress/theme/components/DemoEditor.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,27 @@
1313
padding: 10px;
1414
border-radius: 7px;
1515
position: relative;
16-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0 30px 1px rgba(0, 0, 0, 0.15);
16+
box-shadow:
17+
0 0 0 1px rgba(0, 0, 0, 0.05),
18+
0 0 30px 1px rgba(0, 0, 0, 0.15);
1719
}
1820
.dark .demo-editor {
1921
@apply bg-[#161618] border border-gray-400 border-opacity-10;
2022
}
2123
.demo-editor::after {
22-
content: "";
24+
content: '';
2325
position: absolute;
2426
top: 12px;
2527
left: 10px;
2628
width: 12px;
2729
height: 12px;
2830
background: #f95c5b;
2931
border-radius: 100%;
30-
box-shadow: 0 0 0 1px #da3d42, 22px 0 0 0 #fabe3b, 22px 0 0 1px #ecb03e, 44px 0 0 0 #38cd46, 44px 0 0 1px #2eae32;
32+
box-shadow:
33+
0 0 0 1px #da3d42,
34+
22px 0 0 0 #fabe3b,
35+
22px 0 0 1px #ecb03e,
36+
44px 0 0 0 #38cd46,
37+
44px 0 0 1px #2eae32;
3138
}
3239
</style>

.vitepress/theme/components/DemoSlide.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
line-height: 1.2em;
1515
border-radius: 7px;
1616
position: relative;
17-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0 30px 1px rgba(0, 0, 0, 0.15);
17+
box-shadow:
18+
0 0 0 1px rgba(0, 0, 0, 0.05),
19+
0 0 30px 1px rgba(0, 0, 0, 0.15);
1820
@apply mt-4 transform translate-x-20 -translate-y-20 overflow-hidden;
1921
}
2022

.vitepress/theme/components/Environment.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
defineProps<{ type: 'node' | 'client' }>()
2+
defineProps<{ type: 'node' | 'client' | 'both' }>()
33
</script>
44

55
<template>
@@ -10,8 +10,16 @@ defineProps<{ type: 'node' | 'client' }>()
1010
</summary>
1111

1212
<div class="pt2 opacity-75">
13+
<<<<<<< HEAD
1314
<span v-if="type === 'node'">
1415
Αυτή η λειτουργία ρύθμισης θα εκτελεστεί μόνο σε περιβάλλον Node.js, μπορείτε να έχετε πρόσβαση στο API του Node.
16+
=======
17+
<span v-if="type === 'both'">
18+
This setup function will run on <b>both</b> Node.js and client side. Avoid using either Node's or DOM API to avoid runtime errors.
19+
</span>
20+
<span v-else-if="type === 'node'">
21+
This setup function will only run on Node.js environment, you can have access to Node's API.
22+
>>>>>>> 21fdadc17cd2018f65c637e5727de640db5036e3
1523
</span>
1624
<span v-else>
1725
Αυτή η λειτουργία ρύθμισης θα εκτελεστεί μόνο σε client side. Βεβαιωθείτε ότι το πρόγραμμα περιήγησης είναι συμβατό όταν κάνετε εισαγωγή πακέτων.

.vitepress/theme/components/ShowCaseInfo.vue

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ defineProps<{
77
</script>
88

99
<template>
10-
<div>
11-
<div class="block mb-1.5 w-full relative aspect-16/9">
10+
<div class="flex flex-col gap-2">
11+
<div class="block w-full relative aspect-16/9">
1212
<a
1313
class="absolute top-0 bottom-0 left-0 right-0 overflow-hidden"
1414
border="~ rounded gray-400 opacity-20"
@@ -18,45 +18,44 @@ defineProps<{
1818
<img :src="info.cover">
1919
</a>
2020
</div>
21-
<div class="font-bold">
21+
<div class="font-bold line-clamp-2">
2222
{{ info.title }}
2323
</div>
24-
<div
25-
class="text-current text-xs opacity-75 whitespace-nowrap overflow-hidden overflow-ellipsis"
26-
>
24+
<div class="text-current text-xs opacity-75 whitespace-nowrap overflow-hidden overflow-ellipsis">
2725
{{ info.at }}
2826
</div>
29-
<div class="mt-2 flex">
27+
<div class="flex-auto" />
28+
<div class="flex">
3029
<a
3130
v-if="info.author.link"
3231
:href="info.author.link"
33-
class="text-current text-sm opacity-50"
32+
class="text-current! text-sm opacity-50 whitespace-nowrap overflow-hidden overflow-ellipsis"
3433
target="_blank"
3534
>{{ info.author.name }}</a>
36-
<div v-else class="text-current text-sm opacity-50">
35+
<div v-else class="text-current! text-sm opacity-50 whitespace-nowrap overflow-hidden overflow-ellipsis">
3736
{{ info.author.name }}
3837
</div>
3938
<div class="flex-auto" />
4039
<a
4140
v-if="info.videoLink"
4241
:href="info.videoLink"
43-
class="ml-2 text-current opacity-20 hover:opacity-100 hover:text-[#cb3837]"
42+
class="ml-2 text-current! opacity-20 hover:opacity-100 hover:text-[#cb3837]"
4443
target="_blank"
4544
>
4645
<carbon:video />
4746
</a>
4847
<a
4948
v-if="info.slidesLink"
5049
:href="info.slidesLink"
51-
class="ml-2 text-current opacity-20 hover:opacity-100 hover:text-[#cb3837]"
50+
class="ml-2 text-current! opacity-20 hover:opacity-100 hover:text-[#cb3837]"
5251
target="_blank"
5352
>
5453
<carbon:presentation-file />
5554
</a>
5655
<a
5756
v-if="info.sourceLink"
5857
:href="info.sourceLink"
59-
class="ml-2 text-current opacity-20 hover:opacity-100"
58+
class="ml-2 text-current! opacity-20 hover:opacity-100"
6059
target="_blank"
6160
>
6261
<carbon:logo-github />

.vitepress/theme/styles/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.icon-btn {
22
--uno: inline-block cursor-pointer select-none important-outline-none;
33
--uno: opacity-75 transition duration-200 ease-in-out align-middle rounded p-2;
4-
--uno: hover:(opacity-100 bg-gray-400 bg-opacity-10);
4+
--uno: hover-(opacity-100 bg-gray-400 bg-opacity-10);
55
}
66

77
.icon-btn.disabled {

.vitepress/theme/styles/vars.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
* -------------------------------------------------------------------------- */
4545

4646
:root {
47-
--vp-c-brand-1: #3AB9D4;
47+
--vp-c-brand-1: #3ab9d4;
4848
--vp-c-brand-2: #60c4db;
4949
--vp-c-brand-3: #6fcce1;
50-
--vp-c-brand-soft: #3AB9D450;
50+
--vp-c-brand-soft: #3ab9d450;
5151
--vp-c-bg-alt: #f9f9f9;
5252

5353
--vp-font-family-mono: theme('fontFamily.mono');
@@ -56,8 +56,8 @@
5656
.dark {
5757
--vp-c-brand-1: #6fcce1;
5858
--vp-c-brand-2: #60c4db;
59-
--vp-c-brand-3: #3AB9D4;
60-
--vp-c-brand-soft: #3AB9D450;
59+
--vp-c-brand-3: #3ab9d4;
60+
--vp-c-brand-soft: #3ab9d450;
6161
--vp-c-bg-alt: #18181b;
6262
--vp-c-gutter: #8883;
6363
}

0 commit comments

Comments
 (0)