Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4268dfb

Browse files
committed
wip
1 parentdfaae54 commit4268dfb

File tree

8 files changed

+55
-18
lines changed

8 files changed

+55
-18
lines changed

‎build/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ Metalsmith(cwd)
3333
siteurl:'https://nativescript-vue.org/',
3434
description:'Build truly native apps using Vue.js',
3535
moment,
36+
localeMap:{
37+
'en':'English',
38+
'hu':'Magyar',
39+
},
3640
lang(locale,slug){
3741
locale=locale||this.locale||this.defaultLocale;
3842
slug=slug||this.slug;

‎layouts/_partials/contributors.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<divclass="flex flex-wrap justify-center">
44
<%contributors.forEach((username)=> {%>
55
<aclass="flex flex-col p-4 items-center no-underline text-blue-dark font-bold hover:text-green"
6-
href="https://github.com/<%= username %>" target="_blank">
6+
href="https://github.com/<%= username %>" target="_blank" rel="noopener">
77
<spanclass="w-16 h-16 rounded-full border-2 border-green overflow-hidden">
88
<img src="https://github.com/<%= username %>.png" alt="<%= username %>">
99
</span>

‎layouts/_partials/header.ejs

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<divclass="bg-blue-dark border-t-8 border-green">
22
<divclass="container flex items-center flex-wrap px-4 md:px-0 mx-auto">
33
<divclass="flex-1 flex items-center">
4-
<ahref="/">
4+
<ahref="<%= lang() %>">
55
<divclass="relative w-16 h-16">
66
<imgclass="w-16 h-16 absolute pin"
77
src="https://art.nativescript-vue.org/NativeScript-Vue-White-Green.svg"
@@ -12,15 +12,20 @@
1212
</div>
1313
</a>
1414

15-
<spanclass="hidden lg:block w-1 h-1 bg-blue-light rounded-full ml-2"></span>
16-
<spanclass="hidden lg:block w-2 h-2 bg-blue-light rounded-full ml-2"></span>
17-
<spanclass="hidden lg:block w-4 h-4 bg-blue-light rounded-full ml-2"></span>
15+
<spanrole="presentation"aria-hidden="true"
16+
class="hidden lg:block w-1 h-1 bg-blue-light rounded-full ml-2"></span>
17+
<spanrole="presentation"aria-hidden="true"
18+
class="hidden lg:block w-2 h-2 bg-blue-light rounded-full ml-2"></span>
19+
<spanrole="presentation"aria-hidden="true"
20+
class="hidden lg:block w-4 h-4 bg-blue-light rounded-full ml-2"></span>
1821
<divclass="hidden md:block px-4 py-1 rounded-full bg-blue-light ml-2">
19-
<ahref="#"class="no-underline text-white hover:text-green text-sm truncate">Announcing v1.0! Click to read more.</a>
22+
<ahref="/"class="no-underline text-white hover:text-green text-sm truncate">
23+
Announcing v1.0
24+
</a>
2025
</div>
2126
</div>
2227
<divclass="w-auto text-center relative">
23-
<inputclass="w-full md:w-32 px-4 py-2 text-blue-lightest bg-blue-light rounded-full"
28+
<inputclass="w-full md:w-48 px-4 py-2 text-blue-lightest bg-blue-light rounded-full"
2429
type="search"
2530
aria-label="Search"
2631
placeholder="Search coming soon."
@@ -44,8 +49,6 @@
4449
<!-- Nav-->
4550
<div:class="{ hidden: isMobile && !navOpen, flex: isMobile && navOpen }"
4651
class="flex-col md:flex-row w-full md:w-auto">
47-
<!--<a href="<%= lang(null, 'docs/quick-start') %>" class="no-underline text-blue-lightest md:ml-6 mr-4 py-4">Quick-->
48-
<!--Start</a>-->
4952
<ahref="<%= lang(null, 'docs/about-nativescript-vue') %>"
5053
class="no-underline text-blue-lightest md:ml-6 mr-4 py-4">Docs</a>
5154
<ahref="/<%= collections.blog[0].path %>"class="no-underline text-blue-lightest mr-4 py-4">Blog</a>
@@ -56,27 +59,25 @@
5659
<divclass="flex flex-col">
5760
<ahref="https://github.com/rigor789/nativescript-vue"
5861
target="_blank"
62+
rel="noopener"
5963
class="no-underline text-blue-lightest md:text-blue-dark hover:bg-green hover:text-white px-4 py-2">GitHub</a>
6064
<ahref="https://developer.telerik.com/wp-login.php?action=slack-invitation"
65+
@click.prevent="modalVisible = true"
6166
target="_blank"
67+
rel="noopener"
6268
class="no-underline text-blue-lightest md:text-blue-dark hover:bg-green hover:text-white px-4 py-2">Slack</a>
6369
</div>
6470
</div>
6571
</div>
6672
<divclass="inline text-blue-lightest py-4 relative group">
67-
<svgrole="img"aria-label="Language"class="w-4 h-4 fill-current -mb-px"viewBox="0 0 20 20"
68-
version="1.1"xmlns="http://www.w3.org/2000/svg"xml:space="preserve"
69-
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><path
70-
d="M20,10c0,-5.532 -4.488,-10 -10,-10c-5.509,0 -10,4.465 -10,10c0,5.522 4.477,10 10,10c5.52,0 10,-4.475 10,-10Zm-1.678,2.581l-4.01,0c0.277,-1.73 0.266,-3.497 0.002,-5.162l4.008,0c0.517,1.67 0.517,3.492 0,5.162Zm-8.322,6.064c-1.239,-1.118 -2.183,-2.803 -2.72,-4.774l5.44,0c-0.537,1.971 -1.481,3.656 -2.72,4.774Zm-3.006,-6.064c-0.29,-1.669 -0.297,-3.449 0.001,-5.162l6.01,0c0.298,1.712 0.291,3.492 0.001,5.162l-6.012,0Zm3.006,-11.225c1.353,1.221 2.24,3.022 2.718,4.773l-5.436,0c0.48,-1.76 1.37,-3.556 2.718,-4.773Zm7.804,4.773l-3.75,0c-0.441,-1.78 -1.184,-3.375 -2.173,-4.635c2.588,0.569 4.762,2.295 5.923,4.635Zm-9.685,-4.635c-0.989,1.26 -1.732,2.855 -2.173,4.635l-3.75,0c1.161,-2.34 3.335,-4.066 5.923,-4.635Zm-6.441,5.925l4.008,0c-0.264,1.665 -0.275,3.432 0.002,5.162l-4.01,0c-0.517,-1.67 -0.517,-3.492 0,-5.162Zm0.518,6.452l3.755,0c0.443,1.781 1.188,3.38 2.17,4.636c-2.602,-0.572 -4.77,-2.308 -5.925,-4.636Zm9.683,4.636c0.982,-1.256 1.727,-2.855 2.17,-4.636l3.755,0c-1.157,2.332 -3.327,4.065 -5.925,4.636Z"
71-
style="fill-rule:nonzero;"/></svg>
72-
<spanclass="md:hidden">Language</span>
73+
<spanclass="-md:hidden">Translations</span>
7374

7475
<divclass="pl-4 mt-3 md:pl-0 md:hidden group-hover:block hover:block md:absolute md:bg-white md:shadow md:rounded md:pin-r overflow-hidden">
7576
<divclass="flex flex-col">
7677
<%locales.forEach(l=> {%>
7778
<a href="<%= lang(l) %>"
7879
class="no-underline text-blue-lightest md:text-blue-dark hover:bg-green hover:text-white px-4 py-2">
79-
<%=l%>
80+
<%=localeMap[l]%>
8081
</a>
8182
<% })%>
8283
</div>
@@ -85,3 +86,5 @@
8586
</div>
8687
</div>
8788
</div>
89+
90+
<%-include('_partials/slack_modal')%>

‎layouts/_partials/meta.ejs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
<metaname="viewport"
33
content="width=device-width, initial-scale=1.0">
44
<metahttp-equiv="X-UA-Compatible"content="ie=edge">
5+
<style>
6+
[v-cloak] {
7+
display:none!important;
8+
}
9+
</style>
510
<linkrel="stylesheet"href="https://unpkg.com/highlight.js@9.12.0/styles/paraiso-dark.css">
611
<linkrel="stylesheet"href="https://unpkg.com/github-markdown-css@2.9.0/github-markdown.css">
712
<linkrel="stylesheet"href="/styles.css">

‎layouts/_partials/slack_modal.ejs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<divv-cloakv-show="modalVisible"class="fixed pin z-50 overflow-auto bg-smoke-dark flex"@click.self="modalVisible = false">
2+
<divclass="relative p-4 w-full max-w-md m-auto flex flex-col"style="background:#f1f1f1;">
3+
<divclass="absolute pin-t pin-r mr-4 mt-4 cursor-pointer text-smoke-dark hover:text-black"
4+
@click="modalVisible = false">
5+
<svgclass="w-4 h-4 fill-current"viewBox="0 0 20 20"version="1.1"xmlns="http://www.w3.org/2000/svg"
6+
xml:space="preserve"
7+
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
8+
<pathd="M11.534,10l8.254,-8.254c0.283,-0.283 0.283,-0.74 0,-1.023l-0.511,-0.511c-0.283,-0.283 -0.74,-0.283 -1.023,0l-8.254,8.254l-8.254,-8.248c-0.283,-0.283 -0.74,-0.283 -1.023,0l-0.511,0.511c-0.283,0.283 -0.283,0.74 0,1.023l8.254,8.248l-8.248,8.254c-0.283,0.283 -0.283,0.74 0,1.023l0.511,0.511c0.283,0.283 0.74,0.283 1.023,0l8.248,-8.254l8.254,8.254c0.283,0.283 0.74,0.283 1.023,0l0.511,-0.511c0.283,-0.283 0.283,-0.74 0,-1.023l-8.254,-8.254Z"
9+
style="fill-rule:nonzero;"></path>
10+
</svg>
11+
</div>
12+
13+
<divclass="flex items-center">
14+
<iframev-if="modalLoaded || modalVisible"
15+
:src="'https://developer.telerik.com/wp-login.php?action=slack-invitation'"
16+
class="w-full h-full"
17+
style="height:420px;"
18+
@load="modalLoaded = true"
19+
frameborder="0"
20+
></iframe>
21+
</div>
22+
23+
</div>
24+
</div>

‎layouts/docs.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<%if(typeof authors!=='undefined') {%>
3737
<divclass="text-blue-light mb-8">
3838
<%=moment(date).format('MMMM DD, YYYY')%>
39-
by<%-authors.map(author=>`<a href="https://github.com/${author}">${author}</a>`).join(',')%>
39+
by<%-authors.map(author=>`<a href="https://github.com/${author}"rel="noopener"class="no-underline text-green hover:text-blue-dark">${author}</a>`).join(',')%>
4040
</div>
4141
<% }%>
4242

‎layouts/post.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<%if(typeof authors!=='undefined') {%>
4040
<divclass="text-blue-light mb-8">
4141
<%=moment(date).format('MMMM DD, YYYY')%>
42-
by<%-authors.map(author=>`<a href="https://github.com/${author}">${author}</a>`).join(',')%>
42+
by<%-authors.map(author=>`<a href="https://github.com/${author}"rel="noopener"class="no-underline text-green hover:text-blue-dark">${author}</a>`).join(',')%>
4343
</div>
4444
<% }%>
4545

‎src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ document.addEventListener('DOMContentLoaded', () => {
44

55
data:{
66
modalVisible:false,
7+
modalLoaded:false,
78
isMobile:false,
89
navOpen:false,
910
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp